Merge pull request #88 from prauscher/cec-support
Add support for HDMI CEC by providing cec-{on,off}.sh in home-dir
This commit is contained in:
commit
f63fa3904c
@ -142,7 +142,7 @@ ssh "sudo rm /etc/profile.d/sshpwd.sh"
|
||||
ssh "echo | sudo tee /etc/motd"
|
||||
|
||||
working "Installing packages"
|
||||
ssh "sudo apt-get update && sudo apt-get install -y vim matchbox-window-manager unclutter mailutils nitrogen jq chromium-browser xserver-xorg xinit rpd-plym-splash xdotool"
|
||||
ssh "sudo apt-get update && sudo apt-get install -y vim matchbox-window-manager unclutter mailutils nitrogen jq chromium-browser xserver-xorg xinit rpd-plym-splash xdotool cec-utils"
|
||||
# We install mailutils just so that you can check "mail" for cronjob output
|
||||
|
||||
working "Setting home directory default content"
|
||||
|
||||
3
home/cec-off.sh
Executable file
3
home/cec-off.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo 'standby 0' | cec-client -s > /dev/null
|
||||
3
home/cec-on.sh
Executable file
3
home/cec-on.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo 'on 0' | cec-client -s > /dev/null
|
||||
@ -14,6 +14,7 @@ DISPLAY=:0.0
|
||||
0 3 * * * sudo reboot
|
||||
|
||||
# Example: Turn display on weekdays at 7 AM
|
||||
# Note: You may exchange "display-on" / "display-off" with "cec-on" / "cec-off" in order to use HDMI CEC
|
||||
# 0 7 * * 1-5 ~/display-on.sh
|
||||
|
||||
# Example: Turn display off weekdays at 7 PM (and after the nightly reboot)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user