There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

[half solved] How to force screen orientation on lomiri desktop

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.

sxan ,
@sxan@midwest.social avatar

How are you liking it? I’m waiting for the wifi issues to be resolved, but I’m on board as soon as that happens.

vosjedev OP ,

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.

sxan ,
@sxan@midwest.social avatar

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 OP ,

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!

sxan ,
@sxan@midwest.social avatar

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 OP ,

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.

elmicha ,

I searched for “lomiri rotate screen” and found this page.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines