Skip to main content
Topic: 2-in-1 PC screen is not rotating in KDE (Read 23 times) previous topic - next topic
0 Members and 2 Guests 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 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]
dinitctl enable iio-sensor-proxy
dinitctl: error loading service (or dependency of service).
dinitctl: try 'dinitcheck <service-name>' or check log for more information.
This is the output of the dinit logs:
Code: [Select]
dinit: Could not load service dbus: service description not found.
dinit: Could not load service iio-sensor-proxy: could not load dependency.
Unfortunately I'm not really experienced when it comes to dinit and user services, so I don't know how to continue from here.

EDIT: found out that there is a dbus-dinit-user package. I've installed and started it and my service is now starting. However it still doesn't work:
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