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