I recently got a pinetab2, and I booted it into ubuntu-touch, running lomiri. But the screen orientation is the wrong way (portrait). I am not interested in autorotate, so how would I force the screen orientation of a mir-based desktop to landscape? If you need more info to help me, just ask for it.

edit:
Yesterday while writing this I didn’t have much time, so I forgot to mention the accual problem…
The problem I’m having is that the autorotation sensor always reports portait mode, even when in landscape. It does report a change. I know this because it switches to desktop mode when I rotate with the keyboard plugged in.
edit while writing previous edit:
Now it does not even go to desktop mode anymore… So I guess it is now stuck even more.

My solution was either disabling the rotation sensor’s driver to make lomiri default to the set rotation in /etc/ubuntu-touch-session.d/flo.conf, or fixing the driver so it reports orientation correctly.

edit 2: I currently solved this by editing /etc/deviceinfo/devices/pinetab2.yaml and removing all supported rotations except InvertedLandscape. This means it can’t autorotate at all, but I wasn’t interested in autorotate in the first place. If someone knows how to fix the driver and make autorotate work correctly, please let me know.

  • Gosh, I thought Mir was abandoned. I doubt that Lomiri runs on X, based on the brief look I gave it. Well, good luck, and if you figure it out, don’t hesitate to provide a postfix here!

    • vosjedev@lemm.eeOP
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 year ago

      Yea, so I updated the post with my current solution. Also, I moved away from ubuntu touch, because of lomiri not supporting X apps like libreoffice. Therefore I do not recommend ubuntu touch… But I am going to try postmarketos+kde plasma mobile. I will update if that works better.