You are not logged in.

#1 2025-11-13 00:15:28

dootfs
Member
Registered: 2024-01-27
Posts: 36

Dell 2-in-1 Screen Rotation

I've got a Dell Inspiron 2-in-1 laptop running Gnome with Mutter on Arch. Everything works except the screen rotation. This is a problem when converting the laptop to tablet mode.

The iio-sensor-proxy package is installed, and running monitor-sensor confirms that the accelerometer is working. The super+O key combination toggles the rotation lock, but the screen doesn't rotate in any case.

I could put together a script to take the monitor-sensor inputs and map that to the screen orientation, but I'm wondering if there's a better way to set it up.

Offline

#2 2025-12-08 15:25:27

nanvenomous
Member
Registered: 2025-12-08
Posts: 1

Re: Dell 2-in-1 Screen Rotation

I went through this recently with my framework 12 2 in 1.

I'm not sure if there is a standard to access the degrees of rotation of the laptop hinge. Mine is at:
cat /sys/bus/iio/devices/iio:device0/in_angl_raw
I then used https://github.com/efernau/rot8
and wrote a script to run rot8 when the hinge angle passed a certain point. it also kills rot8 when the hinge angle indicates laptop mode.

You would probably need to edit this script for your system, but here is mine:
https://github.com/nanvenomous/unix/blo … otation.sh

Offline

Board footer

Powered by FluxBB