Screen (auto) rotation on new Lenovo Convertible

Hey everyone,

tl;dr

  • How can I get auto-rotation to work if (presumably) the necessary sensors are not detected?

And if there is no trivial way for that:

  • How can I manually rotate the screen via terminal commands in GNOME + Wayland?

some info about my system:

  • OS: Ubuntu 24.04.2 LTS (x86_64)
  • Device: Lenovo Yoga 7i 2-in-1 Gen 10 (Model: 83JQ)
  • Kernel: 6.11.0-21-generic
  • DE: GNOME 46.0
  • WM: Mutter (Wayland session)
  • Shell: Bash 5.2.21
  • Resolution: 2880x1800
  • CPU: Intel Ultra 7 258V (8 cores @ 4.7GHz)
  • GPU: Integrated Intel Graphics
  • RAM: 32 GB

my problem description:

I just bought a new laptop/tablet convertible — the Lenovo Yoga 7i 2-in-1 Gen 10 (14″) — and I can’t get auto-rotation to work.
I suspect the accelerometer isn’t being detected by the kernel. ChatGPT pointed me to the tool monitor-sensor. Which outputs that no accelerometer is detected. I’m quite a noob with this deeper Linux stuff, so I’m really grateful for any help here even if I assume that this is not an Ubuntu problem but one of the Linux kernel?

I also tried the GNOME extension “System Rotate”, but that didn’t work either.

So I figured I’d just write a simple bash script to manually rotate the screen and disable the internal keyboard and touchpad. But now I’m stuck again, because I can’t find a working terminal command to rotate the screen.

At this point, the only method I’ve found is to manually rotate the screen every time via the GUI settings:
Settings → Display → Orientation → Landscape (flipped)

Is there any other option to consider?

Thanks a lot for taking the time to read and help!

This topic was automatically closed after 30 days. New replies are no longer allowed.