UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    UI scaling issue with OTA-24

    Scheduled Pinned Locked Moved Solved Fairphone 3
    7 Posts 2 Posters 511 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • G Offline
        gandalf
        last edited by

        Hi all

        I recently updated to OTA-24 and have an issue with the UI scaling since. The scaling slider in the UT tweak tools eternally thinks it's on 21, but the actual scaling sits at 23 (three icons wide drawer) after a reboot (or when re-opening the tweak tools). I can choose to "reset to default values" in the tweak tools and it will reset to a scaling of 21 (4 icons wide app drawer), but the slider will again sit at 23. If I apply the 23 scaling it will change to that, but again I can't select the 21 scaling without resetting to default values (and the mandatory unity8 restarted that requires). Is there a workaround to fix the scaling?

        thanks :waving_hand:

        1 Reply Last reply Reply Quote 0
        • K Offline
          kugiigi
          last edited by

          If I understand correctly, you want to set it to 21 but it's stuck to 23 and can't change to 21?
          Did the scaling value change after the OTA update? because I don't think that's possible unless didn't change it and the default device value was changed in OTA-24

          1 Reply Last reply Reply Quote 0
          • G Offline
            gandalf
            last edited by gandalf

            I'm honestly not sure what the default was before the update and if I changed it to 21 or if that was the default value previously. It looks like 21 is the new default value somewhere as well, but it's not properly applied/sync'ed to the UI.

            yeah, that text is a bit hard to follow, so here's two screenshots:
            After booting the scale is set to 23. I can "apply" 23, which changes nothing. The UI slider can't decide if it's set to 21 (internally) or 23 (as displayed) I think:
            screenshot20221221_101433378.png

            If I change the slider to 21 I can't apply that, as it's stuck with the same confusion here again:
            screenshot20221221_101448789.png

            "restore to default" is the only way I can get the 21 scaling back, and that doesn't stick around. After that the UI is scaled correctly to 21, but the slider once again thinks it's on 23.

            1 Reply Last reply Reply Quote 0
            • K Offline
              kugiigi
              last edited by

              Sorry, I'm still confused 😅
              But in any case, you can check this file ~/.config/upstart/ut_tweak_gu.conf. It'll show you the actual value applied to the system.
              And default value is whatever the scaling was when you first opened the tweak tool app. So that also means if you transferred the config from another phone, it'll use the other phone's default scaling

              1 Reply Last reply Reply Quote 0
              • G Offline
                gandalf
                last edited by gandalf

                @kugiigi
                I see. That file does not exist most of the time oO This is my first UT phone, so no copying from anywhere else.
                Usually have this file only:

                $ cat ~/.config/ut-tweak-tool.sverzegnassi/ut-tweak-tool.sverzegnassi.conf 
                [General]
                defaultDeviceGU=21
                
                $ ls -l ~/.config/upstart/
                total 0
                

                I think you're right that the default scaling changed in OTA24...

                $ initctl get-env GRID_UNIT_PX
                23
                

                I changed the scaling in the tweak tools to 20 and it did create "your" file:

                $cat ~/.config/upstart/ut_tweak_gu.conf 
                start on starting dbus
                exec initctl set-env --global GRID_UNIT_PX=20
                

                Resetting the scaling in the tweak tools seems to simply delete this file. Not sure why that reverts to 21 though. Maybe the tweak tools call the initctl command explicitly with it's saved default value?

                I changed the scaling to 20 in the tweak tools, then manually changed it to 21 in the newly created ~/.config/upstart/ut_tweak_gu.conf. It now stays after a reboot.

                I guess I can just change the default value in ut-tweak-tool.sverzegnassi.conf to 23 or delete that file/directory (an re-install the tweak tools) to get UT and the tweak tools to agree on the system state again?

                Thanks for pointing out that file and location.

                Edit: I changed the stored default value in ~/.config/ut-tweak-tool.sverzegnassi/ut-tweak-tool.sverzegnassi.conf' to 23 and things are behaving as expected again. :thumbs_up:

                K 1 Reply Last reply Reply Quote 1
                • G gandalf marked this topic as a question on
                • G gandalf has marked this topic as solved on
                • K Offline
                  kugiigi @gandalf
                  last edited by

                  @gandalf I guess this is a bug in the tweak tool so thanks for reporting too.

                  G 1 Reply Last reply Reply Quote 0
                  • G Offline
                    gandalf @kugiigi
                    last edited by

                    @kugiigi
                    I think it's the same issue as this old bug report:
                    https://gitlab.com/myii/ut-tweak-tool/-/issues/32 instead of copying an old value over this time the default for the device changed ¯\_(ツ)_/¯

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post