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 2.5k 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 Offline
        kugiigi @Ub
        last edited by

        @ub Do you want a one thing change of orientation or something that you can toggle?

        U 1 Reply Last reply Reply Quote 0
        • U Offline
          Ub @kugiigi
          last edited by

          @kugiigi I only need a one thing change, I'm okay with that. Do you know a way?

          K 1 Reply Last reply Reply Quote 0
          • D Offline
            domubpkm @Ub
            last edited by

            @ub

            I checked the lock

            Did you try to reboot your phone to check if the feature really doesn't work ?

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

              @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 Reply Quote 0
              • U Offline
                Ub @kugiigi
                last edited by

                @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 Reply Quote 0
                • U Offline
                  Ub @domubpkm
                  last edited by

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

                  D KenedaK 2 Replies Last reply Reply Quote 0
                  • D Offline
                    domubpkm @Ub
                    last edited by

                    @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 Offline
                      kugiigi @Ub
                      last edited by

                      @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
                      • KenedaK Offline
                        Keneda @Ub
                        last edited by

                        @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
                        šŸ‡²šŸ‡«šŸ‡¬šŸ‡§

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

                          @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
                          • hankschwieH Offline
                            hankschwie
                            last edited by

                            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
                            • jezekJ Offline
                              jezek
                              last edited by

                              @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 Reply Quote 0
                              • K Offline
                                kugiigi @jezek
                                last edited by

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

                                jezekJ 1 Reply Last reply Reply Quote 1
                                • jezekJ Offline
                                  jezek @kugiigi
                                  last edited by

                                  @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

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better šŸ’—

                                  Register Login
                                  • First post
                                    Last post