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.

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

      Ah. Ubuntu touch has the driver included, you just need to activate it. It is still the buggy driver, but it is a driver.

      I am liking the experience a lot, for me it works fine, exept for the screen being rotated. I would suggest getting one.

      I will have to say bluetooth also does not work yet, and kde (the default with danctnix) does not work really wel with a touchscreen.

      • Thanks!

        How are you with the CLI? Are you using Wayland, and have you tried X? X may give you better options for managing your geometries. Have you tried xrandr to manage the rotation? Have you tried arandr, the GUI version?

        If you can get it rotated the way you like, there are a couple of packages that can persist and restore your layout, but autorandr is probably where you might start.

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

          I almost live in my terminal…

          But can you run lomiri on X? Mir is like wayland, where the shell and the wm are bound to the display server, and they work on that specific display server right? If it would be possible to run lomiri on X, I an trying that immediatly!

            • vosjedev@lemm.eeOP
              link
              fedilink
              arrow-up
              1
              ·
              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.