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:
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:
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:
sudo dinitctl list | grep turnstile
[{+} ] turnstiled (pid: 1094)
However when I try to start the service I get the following error:
[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