Merge branch 'master' of github.com:kevinlekiller/Hyperion_Grabber_X11_QT
This commit is contained in:
commit
8df1ef57e5
@ -17,8 +17,10 @@ Example usage: `Hyperion_Grabber_X11_QT --address 192.168.2.213 --port 19444 --f
|
||||
|
||||
`hgx11.service` is included as an example if you wish to use a systemd service to start the grabber on login.
|
||||
Edit it to set your options.
|
||||
You would copy it to `~/.config/systemd/user/` and enable it with `systemctl --user enable hypergrabx11.service`,
|
||||
to start it run `systemctl --user enable hypergrabx11.service`.
|
||||
You would copy it to `~/.config/systemd/user/` and enable it with `systemctl --user enable hgx11.service`,
|
||||
to start it run `systemctl --user enable hgx11.service`.
|
||||
|
||||
`hgx11stop.service` ensures the LED's are cleared on shutdown, edit it and put it in `/etc/systemd/system/`
|
||||
|
||||
## Info
|
||||
|
||||
|
||||
@ -1,18 +1,16 @@
|
||||
# ~/.config/systemd/user/hgx11.service
|
||||
# systemctl --user enable hgx11.service && systemctl --user start hgx11.service
|
||||
[Unit]
|
||||
Description=Starts Hyperion_Grabber_X11_QT.
|
||||
After=graphical.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
[Service]
|
||||
Environment="DISPLAY=:0"
|
||||
ExecStartPre=/usr/bin/bash -c "while ! xset q &> /dev/null; do sleep 1; done"
|
||||
ExecStart=/usr/local/sbin/Hyperion_Grabber_X11_QT --address 192.168.2.213 --port 19444 --frameskip 1 --scale 48 --inactive 600 --redadjust "255,10,0" --greenadjust "75,210,0" --blueadjust "0,10,160"
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
# There seems to be a bug in systemd user services where it doesn't wait for he ExecStart process to end so this is a hacky workaround
|
||||
# https://superuser.com/questions/1450650/wait-for-user-service-to-gracefully-exit-before-machine-shutdown-reboot
|
||||
TimeoutStopSec=5
|
||||
ExecStop=/usr/bin/hyperion-remote -a 192.168.2.213:19444 -c 000000
|
||||
ExecStopPost=/usr/bin/hyperion-remote -a 192.168.2.213:19444 -c 000000
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=default.target
|
||||
|
||||
12
hgx11stop.service
Normal file
12
hgx11stop.service
Normal file
@ -0,0 +1,12 @@
|
||||
# /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
|
||||
Loading…
x
Reference in New Issue
Block a user