The systemd user service might not clear the LED's because systemd doesn't allow enough time for the grabber to gracefully shutdown, so this service ensures the LED's do turn off, unfortunately this doesn't occur on user logout, putting a ExecStop in the user script could also be a viable option.
13 lines
328 B
Desktop File
13 lines
328 B
Desktop File
# /etc/systemd/system/hgx11stop.service
|
|
# systemctl enable hgx11stop.service && systemctl start hgx11stop.service
|
|
[Unit]
|
|
Description=Clears hyperion LED's on shutdown.
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/echo 1
|
|
RemainAfterExit=1
|
|
ExecStop=/usr/bin/hyperion-remote -a 192.168.2.213:19444 -c 000000
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|