You are not logged in.
Pages: 1
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
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
Pages: 1