Skip to main content
Topic: 2-in-1 PC screen is not rotating in KDE (Read 479 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

2-in-1 PC screen is not rotating in KDE

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 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