Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: renguangxi on 26 February 2025, 12:08:41

Title: 2-in-1 PC screen is not rotating in KDE
Post by: renguangxi on 26 February 2025, 12:08:41
I have a Dell Inspiron 14 7440 2-in-1. When I fold the display the screen should auto-rotate, but it doesn't. I have iio-sensor-poxy installed but it seems that it's not recognized by the system. This is the output of monitor-sensor:
Code: [Select]
Waiting for iio-sensor-proxy to appear
By investigating a little bit I found out that iio-sensor-poxy has a systemd service, which I assume is needed to start the program correctly. On the forum here (https://forum.artixlinux.org/index.php/topic,7015.0.html) I've found an open-rc service.  As I use dinit I tried to create a similar service:
Code: [Select]
cat $HOME/.config/dinit.d/iio-sensor-proxy 
type = process
command = /usr/lib/iio-sensor-proxy
depends-on = dbus
log-type = buffer
I have turnstile and dbus-dinit-user package installed and loaded correctly:
Code: [Select]
sudo dinitctl list | grep turnstile
[{+}     ] turnstiled (pid: 1094)
However when I try to start the service I get the following error:
Code: [Select]
[STOPPD] iio-sensor-proxy
[  OK  ] iio-sensor-proxy
[STOPPD] iio-sensor-proxy
[  OK  ] iio-sensor-proxy
[STOPPD] iio-sensor-proxy
[  OK  ] iio-sensor-proxy
dinit: Service iio-sensor-proxy restarting too quickly; stopping.
[STOPPD] iio-sensor-proxy