Hi all!
I have configured randr
and autorandr
, and it works well for the session:
When running autorandr -c
it applies the configuration.
When running systemctl start autorandr.service
, it asks for the admin password and also applies the desired config.
But on reboot, the config is not applied.
> journalctl -u autorandr.service
...
-- Boot 865d6ebbcebd4a579ee37455e9a4dbdf --
Dec 27 21:47:02 lightview systemd[1]: Starting autorandr execution hook...
Dec 27 21:47:03 lightview systemd[1]: autorandr.service: Deactivated successfully.
Dec 27 21:47:03 lightview systemd[1]: Finished autorandr execution hook.
> systemctl cat autorandr
# /usr/lib/systemd/system/autorandr.service
[Unit]
Description=autorandr execution hook
After=sleep.target
StartLimitIntervalSec=5
StartLimitBurst=1
[Service]
ExecStart=/usr/bin/autorandr --batch --change --default lightview
Type=oneshot
RemainAfterExit=false
KillMode=process
[Install]
WantedBy=sleep.target
How do I configure it to apply my config on reboot? I would appreciate any suggestions.