Skip to content

Instantly share code, notes, and snippets.

@mattie47
Created October 22, 2019 02:11
Show Gist options
  • Save mattie47/f1d818f43c3db58b31089b0259f44c0e to your computer and use it in GitHub Desktop.
Save mattie47/f1d818f43c3db58b31089b0259f44c0e to your computer and use it in GitHub Desktop.
#Copy the following into "/etc/systemd/system/cec-remote.service":
[Unit]
Description=HDMI-CEC remote script service.
[Service]
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/pi/.Xauthority
Type=simple
ExecStart=/bin/bash /usr/bin/cec-remote.sh
[Install]
WantedBy=graphical.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment