Skip to main content
Topic: Plasma / Wayland Screen auto-rotation / open-rc (Read 278 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Plasma / Wayland Screen auto-rotation / open-rc

Install iio-sensor-proxy-git
Code: [Select]
paru iio-sensor-proxy-git
Found this near perfect rc-service script
https://git.alpinelinux.org/aports/tree/community/iio-sensor-proxy/iio-sensor-proxy.initd

Code: [Select]
sudo nano /etc/init.d/iio-sensor-proxy

Code: [Select]
#!/sbin/openrc-run

command="/usr/lib/iio-sensor-proxy"

depend() {
need dbus
}

Code: [Select]
sudo chmod +x /etc/init.d/iio-sensor-proxy
sudo reboot

Enable touch mode:

Settings> General Behavior>Touch mode

You should now have the option for auto screen rotation in Plasma:

Settings>Display & Monitor>Orientation>Automatic

Bonus fun:

To monitor the iio-sensor-proxy:

Code: [Select]
monitor-sensor
Old-timer penguin