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

    Rotation lock for specific apps

    Scheduled Pinned Locked Moved General
    rotation lock
    22 Posts 5 Posters 5.0k Views 2 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.
      • mihaelM Offline
        mihael @doniks
        last edited by

        @doniks Again. Thank you.

        Regarding filing an issue, I wanted first to know if other users are affected by this.

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          doniks @mihael
          last edited by

          @mihael said in Rotation lock for specific apps:

          @doniks Again. Thank you.

          Regarding filing an issue, I wanted first to know if other users are affected by this.

          Good point. I don't have a sim card, so I'm not affected 🙂

          advocatuxA 1 Reply Last reply Reply Quote 0
          • advocatuxA Offline
            advocatux @doniks
            last edited by

            @doniks hmm I wonder if we should keep in mind this portrait only behaviour for other phone apps (v.g. SIP ones)

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              doniks @advocatux
              last edited by doniks

              @advocatux said in Rotation lock for specific apps:

              @doniks hmm I wonder if we should keep in mind this portrait only behaviour for other phone apps (v.g. SIP ones)

              Well, not for me please. I do want to be able to use apps in portrait. But I admit that I'm biased, because I use a Nexus 7 (7 inch tablet) which I hold landscape most of the times. Apps that force an orientation break my user experience. This was very painful for me a few years ago before Canonical improved the rotation support. I don't have a UT phone, but I think I would also like to be able to use a UT phone in landscape. I know that I suffer from Androids inability to provide a proper rotation experience.

              I think, forcing portrait is a nice hack for @mihael's problem. But the actual bug is: "Too rapid rotations". I don't think "force portrait" is an apropriate fix for this. It's more a workaround that throws away a bunch of valid use cases. The device should do The Right Thing (tm) also with a SIP dialer and that is: Give me a good user experience on multiple form factors and orientations.

              Btw, can you reproduce the too rapid rotation behaviour that @mihael observes?

              advocatuxA LakotaubpL 2 Replies Last reply Reply Quote 0
              • advocatuxA Offline
                advocatux @doniks
                last edited by

                @doniks yes, I agree with you of course. I was just thinking out loud and I should have explain myself better 🙂

                After some quick tests, it seems I don't have that quick rotation problem. My Nexus 5 (xenial rc) rotates 'normal' from what I can tell, but I'll keep an eye on that.

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  doniks @advocatux
                  last edited by

                  @advocatux said in Rotation lock for specific apps:

                  @doniks yes, I agree with you of course. I was just thinking out loud and I should have explain myself better 🙂

                  No worries. These things need to be discussed! I don't think it's obvious what is the right thing with many of these converging use cases. That's why UT is the best in class. Because it's hard 🙂

                  1 Reply Last reply Reply Quote 0
                  • mihaelM Offline
                    mihael
                    last edited by

                    @doniks In /usr/share/dialer-app/dialer-app.qml there is a automaticOrientation: false setting - so it is set to false...

                    D 1 Reply Last reply Reply Quote 0
                    • LakotaubpL Offline
                      Lakotaubp @doniks
                      last edited by

                      @doniks As very quick aside what version if Ubports are you on the nexus 7. Mine defaults to portrait oonce the unlock code us entered and does not go back.Mine us 16.04 rc. Think oughts the tablet not Ubports side want ti check. Thanks

                      D 1 Reply Last reply Reply Quote 0
                      • D Offline
                        doniks @mihael
                        last edited by

                        @mihael said in Rotation lock for specific apps:

                        @doniks In /usr/share/dialer-app/dialer-app.qml there is a automaticOrientation: false setting - so it is set to false...

                        What does that mean? I don't get it.

                        mihaelM 1 Reply Last reply Reply Quote 0
                        • mihaelM Offline
                          mihael @doniks
                          last edited by

                          @doniks It means that is the only thing I found in dialer-app files about orientation but it is already set to false...

                          D 1 Reply Last reply Reply Quote 0
                          • D Offline
                            doniks @mihael
                            last edited by

                            @mihael I'm still not following. Did the X-Ubuntu-Supported-Orientations not work? Are you looking for another workaround? Is it rotating now with automaticOrientation: false? Or not? Which values in the desktop file?

                            I'm lost where we are right now and what we're talking about ...

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              doniks @Lakotaubp
                              last edited by

                              @lakotaubp said in Rotation lock for specific apps:

                              @doniks As very quick aside what version if Ubports are you on the nexus 7. Mine defaults to portrait oonce the unlock code us entered and does not go back.Mine us 16.04 rc. Think oughts the tablet not Ubports side want ti check. Thanks

                              Well, I have the images from ubports server for Nexus 7 gsm (deb!). 16.04, not sure now which channel (devel? rc?), haven't updated for a few weeks and I'm "between laptops" so I can't easily check and it's ... a ... bit ... uhm ... an adventurous installation 🙂 because: https://github.com/ubports/ubuntu-touch/issues/643 However, it rotates every which way I want it to. (Except the login screen, but I think that rotates for no one). Happy to discuss further, but then let's jump into a separate thread shall we.

                              LakotaubpL 1 Reply Last reply Reply Quote 0
                              • LakotaubpL Offline
                                Lakotaubp @doniks
                                last edited by

                                @doniks Yes sounds great. Working most of the day so will start one later in the support section when free.

                                1 Reply Last reply Reply Quote 0
                                • mihaelM Offline
                                  mihael
                                  last edited by

                                  @doniks Sorry for not being more specific and thank you for your patience.

                                  I didn't modify anything. The setting that I described is as I found it and I thought that if it is already set to false, there is no point in me setting it to true since what I want is that the app would not change orientation automatically.

                                  D 1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    doniks @mihael
                                    last edited by

                                    @mihael ah, ok. understood. But, well, I don't know whether or what that variable does. I'm not really familiar with the dialer source code

                                    1 Reply Last reply Reply Quote 0
                                    • dobeyD Offline
                                      dobey
                                      last edited by

                                      As dialer-app already has automaticOrientation set to false, and specifies only portrait as supported orientation in the .desktop file, it should not be rotating at all.

                                      This is a bug. An extremely complex new feature, such as locking rotation configurations at app level granularity, is not the right fix.

                                      Is there an open issue about this problem? If not, please report the issue in github.

                                      mihaelM D 2 Replies Last reply Reply Quote 0
                                      • mihaelM Offline
                                        mihael @dobey
                                        last edited by

                                        @dobey @doniks Yey!! I did it!!!

                                        I added X-Ubuntu-Supported-Orientations=portrait at the end of /usr/share/applications/dialer-app.desktop and now the dialer app does not rotate anymore. This is what I wanted. Thanks guys for all the help and suggestions!

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          doniks @dobey
                                          last edited by

                                          @dobey said in Rotation lock for specific apps:

                                          As dialer-app already [...] specifies only portrait as supported orientation in the .desktop file

                                          It doesn't specify that as far as I can tell ....

                                          It rotates for me and I consider that a feature

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