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

How to manually change the screen orientation ?

Scheduled Pinned Locked Moved Unsolved Support
16 Posts 7 Posters 1.1k Views 4 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.
    • K Online
      kugiigi @Ub
      last edited by kugiigi 19 Apr 2022, 19:00

      @ub So you basically want your phone to be always in landscape?
      there's a configuration to change the native orientation of a device.

      Or if you want, I can make you patch to use the rotation lock setting to change between portrait and landscape 😄

      U 1 Reply Last reply 19 Apr 2022, 19:24 Reply Quote 0
      • U Offline
        Ub @kugiigi
        last edited by 19 Apr 2022, 19:24

        @kugiigi No I actually didn't explain well what I want. I want to be able to switch from portrait to landscape (and vice versa), that's what I want.
        Making a patch would be nice, I would appreciate but would you mind telling me how I can do that by myself ? Unless this is too complex of course.
        The thing is that I want to improve my skills in programming/scripting. I'd be fine if this requires QML code. I didn't find much about it in the doc though...

        K 2 Replies Last reply 20 Apr 2022, 07:27 Reply Quote 0
        • U Offline
          Ub @domubpkm
          last edited by 19 Apr 2022, 19:38

          @domubpkm Yes I did. This didn't solve the issue. Maybe I should factory reset.

          D K 2 Replies Last reply 19 Apr 2022, 19:55 Reply Quote 0
          • D Offline
            domubpkm @Ub
            last edited by 19 Apr 2022, 19:55

            @ub Strange. You can try to change the channel with phone system settings or flash again the phone using the UBports installer (without wipe data option).

            1 Reply Last reply Reply Quote 1
            • K Online
              kugiigi @Ub
              last edited by 20 Apr 2022, 07:27

              @ub Try to check of your sensor is really broken. I had the same rotation problem on my Nexus 7 2013 but not on my Nexus 5. Anyway, in case you really want a patch, I actually created a script to install custom patches in UT. I can point you to that script and provide a package with the patch you need.

              1 Reply Last reply Reply Quote 0
              • K Offline
                Keneda @Ub
                last edited by 20 Apr 2022, 12:06

                @ub you should try sensor status app from openstore as suggested by @Ian before anything else to be sure it's not a hardware issue.

                2015-2023 : Meizu MX4 ☠️⚰️✝️
                2023-2024 : Nexus 5 ☠️⚰️✝️
                2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                🇲🇫🇬🇧

                1 Reply Last reply Reply Quote 0
                • K Online
                  kugiigi @Ub
                  last edited by 20 Apr 2022, 16:34

                  @ub I was able to create a patch where if rotation is locked, it'll switch to portrait when unlocked, it'll switch to landscape. You can try the script I created (https://github.com/kugiigi/jerk-installer) to easily install and uninstall it or I can provide you the single QML file for it. Not yet sure where to put the files though. If you have telegram, I can send them to you.

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    hankschwie
                    last edited by 20 Apr 2022, 16:35

                    Hi!

                    Perhaps it is an "app issue"? Some apps are restricted to a certain screen orientation. You could check in ~.local/share/applications, in the .desktop files. Some apps have a setting called

                    X-Ubuntu-Supported-Orientations=
                    

                    Possible values are

                    primary, portrait, inverted-portrait, landscape, inverted-landscape
                    

                    perhaps it helps to change it there.

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      jezek
                      last edited by 21 Apr 2022, 15:13

                      @kugiigi said in How to manually change the screen orientation ?:

                      @ub I was able to create a patch where if rotation is locked, it'll switch to portrait when unlocked, it'll switch to landscape. You can try the script I created (https://github.com/kugiigi/jerk-installer) to easily install and uninstall it or I can provide you the single QML file for it. Not yet sure where to put the files though. If you have telegram, I can send them to you.

                      Put it somewhere public (in jerk-installer/sample-packages?) please. Last week I thought such feature (manualy rotate screen if rotation is locked) would be great for me. I now I read you made something similar. I would like to try it too.

                      Thanks.

                      jEzEk

                      K 1 Reply Last reply 22 Apr 2022, 09:25 Reply Quote 0
                      • K Online
                        kugiigi @jezek
                        last edited by 22 Apr 2022, 09:25

                        @jezek I created a separate repo. Check the ManualOrientation under Lomiri.

                        J 1 Reply Last reply 22 Apr 2022, 16:17 Reply Quote 1
                        • J Offline
                          jezek @kugiigi
                          last edited by 22 Apr 2022, 16:17

                          @kugiigi said in How to manually change the screen orientation ?:

                          @jezek I created a separate repo. Check the ManualOrientation under Lomiri.

                          Thank you.

                          jEzEk

                          1 Reply Last reply Reply Quote 0
                          15 out of 16
                          • First post
                            15/16
                            Last post