Menu

#1565 Support HiDPI screens

None
closed
HiDPI (2)
1
2020-05-31
2019-01-19
No

Rosegarden is unusable by default on a HiDPI screen (Linux). Fortunately you can tell Qt to handle this [via AA_EnableHighDpiScaling].

Attached is patch.

1 Attachments

Related

Bugs: #1565

Discussion

  • Ted Felix

    Ted Felix - 2019-01-21
    • summary: Support HiPDI screens --> Support HiDPI screens
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,3 @@
    -Rosegarden is unusable by default on a HiDPI screen (Linux). Fortunately you can tell Qt to handle this.
    +Rosegarden is unusable by default on a HiDPI screen (Linux). Fortunately you can tell Qt to handle this *[via AA_EnableHighDpiScaling]*.
    
     Attached is patch.
    
    • assigned_to: David Faure
     
  • David Faure

    David Faure - 2019-01-27

    I tested this patch on a 4K Linux laptop, and:

    • In my setup, the patch changes nothing. This is because I use Plasma and I have these environment variables set: QT_AUTO_SCREEN_SCALE_FACTOR=0 and QT_SCREEN_SCALE_FACTORS=2.
    • If I set the former to 1 and unset the latter, or if I apply this patch, the result is the same (as documented for AA_EnableHighDpiScaling). In my case it means all widgets on the left are really big, because Qt autodetects a scaling factor of 3 rather than 2. http://www.davidfaure.fr/2019/qt_auto_scaling.png

    However I believe that's Qt (or X) messing up somehow, not the fault of this patch.
    On a system where Qt autodetects the right scaling factor, things should indeed be much better with the patch than without. And on systems where it misbehaves, one can set the env vars like I do.

    So I have no objection to the patch, it can go in.

     
  • Hubert Figuiere

    Hubert Figuiere - 2019-01-27

    I run GNOME 3 (default setup as in F29) + Wayland (default too), on a Dell XPS13. I need to set QT_AUTO_SCREEN_SCALE_FACTOR=1 to have Rosegarden UI be properly sized.

    This is how it looks (emacs in the background for comparison):

     
  • Ted Felix

    Ted Felix - 2019-01-28
    • status: open --> closed
     
  • Ted Felix

    Ted Felix - 2019-01-28

    Patch applied in [r15444].

     

    Related

    Commit: [r15444]

  • David Sicilia

    David Sicilia - 2019-06-06

    I'm a bit confused as to what this patch is supposed to do -- both the new version of Rosegarden (with this patch) and the previous version behave the same by default (namely, unusable UI), and also behave the same if I set one of the QT scaling variables above (scaling). In other words, I can't see any difference between the two... am I doing something wrong? My setup is Linux Mint 19 with 4k resolution, and with Cinnamon desktop environment scaled up 2x.

     
    • Ted Felix

      Ted Felix - 2019-06-06

      I don't really know anything about HiDPI, but maybe the environment variables aren't getting to rosegarden? E.g. to try enabling automatic scaling:

      $ QT_AUTO_SCREEN_SCALE_FACTOR=1 build/rosegarden
      

      Alternatively, you can use export to get the environment variable to "stick" across commands:

      $ export QT_AUTO_SCREEN_SCALE_FACTOR=1
      $ build/rosegarden
      

      This is the only thing that comes to mind for me, as I've been bitten by this in the past. Doing the following will not work at all:

      $ QT_AUTO_SCREEN_SCALE_FACTOR=1
      $ build/rosegarden
      
       
      • David Sicilia

        David Sicilia - 2019-06-06

        Thanks — what you suggest with the environment variables does indeed work,
        but it also works with older versions, which is what had me confused. For
        example, up until now I’ve been running version 17.12.1 [Qt 5.9.3] (this is
        the version from the Ubuntu repo) and it also responds to those environment
        variables seemingly in the same way as the new version. So I was wondering
        if you are observing any change in behavior after this patch on your system?
        Thanks
        David

        On Wed, Jun 5, 2019 at 10:15 PM Ted Felix tedfelix@users.sourceforge.net
        wrote:

        I don't really know anything about HiDPI, but maybe the environment
        variables aren't getting to rosegarden? E.g. to try enabling automatic
        scaling:

        $ QT_AUTO_SCREEN_SCALE_FACTOR=1 build/rosegarden

        Alternatively, you can use export to get the environment variable to
        "stick" across commands:

        $ export QT_AUTO_SCREEN_SCALE_FACTOR=1
        $ build/rosegarden

        This is the only thing that comes to mind for me, as I've been bitten by
        this in the past. Doing the following will not work at all:

        $ QT_AUTO_SCREEN_SCALE_FACTOR=1
        $ build/rosegarden


        Status: closed
        Group: None
        Created: Sat Jan 19, 2019 03:15 PM UTC by Hubert Figuiere
        Last Updated: Thu Jun 06, 2019 12:19 AM UTC
        Owner: David Faure
        Attachments:

        Rosegarden is unusable by default on a HiDPI screen (Linux). Fortunately
        you can tell Qt to handle this [via AA_EnableHighDpiScaling].

        Attached is patch.

        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/rosegarden/bugs/1565/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #1565

        • David Sicilia

          David Sicilia - 2019-06-06

          Correction: just tried the two versions on a different system and now I
          observe a difference between the two in that the newer version will do the
          scaling even without the QT_* variables set, so please ignore my question.
          Thanks
          David

          On Wed, Jun 5, 2019 at 10:35 PM David Sicilia dpsicilia@gmail.com wrote:

          Thanks — what you suggest with the environment variables does indeed work,
          but it also works with older versions, which is what had me confused. For
          example, up until now I’ve been running version 17.12.1 [Qt 5.9.3] (this is
          the version from the Ubuntu repo) and it also responds to those environment
          variables seemingly in the same way as the new version. So I was wondering
          if you are observing any change in behavior after this patch on your system?
          Thanks
          David

          On Wed, Jun 5, 2019 at 10:15 PM Ted Felix tedfelix@users.sourceforge.net
          wrote:

          I don't really know anything about HiDPI, but maybe the environment
          variables aren't getting to rosegarden? E.g. to try enabling automatic
          scaling:

          $ QT_AUTO_SCREEN_SCALE_FACTOR=1 build/rosegarden

          Alternatively, you can use export to get the environment variable to
          "stick" across commands:

          $ export QT_AUTO_SCREEN_SCALE_FACTOR=1
          $ build/rosegarden

          This is the only thing that comes to mind for me, as I've been bitten by
          this in the past. Doing the following will not work at all:

          $ QT_AUTO_SCREEN_SCALE_FACTOR=1
          $ build/rosegarden


          Status: closed
          Group: None
          Created: Sat Jan 19, 2019 03:15 PM UTC by Hubert Figuiere
          Last Updated: Thu Jun 06, 2019 12:19 AM UTC
          Owner: David Faure
          Attachments:

          Rosegarden is unusable by default on a HiDPI screen (Linux). Fortunately
          you can tell Qt to handle this [via AA_EnableHighDpiScaling].

          Attached is patch.

          Sent from sourceforge.net because you indicated interest in
          https://sourceforge.net/p/rosegarden/bugs/1565/

          To unsubscribe from further messages, please visit
          https://sourceforge.net/auth/subscriptions/

           

          Related

          Bugs: #1565

        • Hubert Figuiere

          Hubert Figuiere - 2019-06-06

          FWIW, the patch. which make setting the env unnecessary, only works with Qt5 5.12 and up. So 5.9 is too old for that.

           
          • David Sicilia

            David Sicilia - 2019-06-06

            Thanks Hubert, that explains what I am seeing.
            David

            On Wed, Jun 5, 2019 at 11:37 PM Hubert Figuiere
            hub@users.sourceforge.net wrote:

            FWIW, the patch. which make setting the env unnecessary, only works with Qt5 5.12 and up. So 5.9 is too old for that.


            [bugs:#1565] Support HiDPI screens

            Status: closed
            Group: None
            Created: Sat Jan 19, 2019 03:15 PM UTC by Hubert Figuiere
            Last Updated: Thu Jun 06, 2019 02:15 AM UTC
            Owner: David Faure
            Attachments:

            patch-hub-20190119.diff (409 Bytes; text/x-patch)

            Rosegarden is unusable by default on a HiDPI screen (Linux). Fortunately you can tell Qt to handle this [via AA_EnableHighDpiScaling].

            Attached is patch.


            Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/rosegarden/bugs/1565/

            To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

             

            Related

            Bugs: #1565

  • Ted Felix

    Ted Felix - 2020-05-31
    • labels: --> HiDPI
     

Log in to post a comment.

MongoDB Logo MongoDB