Add support for HDMI CEC by providing cec-{on,off}.sh in home-dir
Using CEC may add support for better power saving (sending the monitor to standby instead of rendering "waiting for devices"). This commit adds separate cec-scripts, installs the necessary package and provides a note in the crontab
This commit is contained in:
parent
818a81335f
commit
73c59d41c9
@ -142,7 +142,7 @@ ssh "sudo rm /etc/profile.d/sshpwd.sh"
|
|||||||
ssh "echo | sudo tee /etc/motd"
|
ssh "echo | sudo tee /etc/motd"
|
||||||
|
|
||||||
working "Installing packages"
|
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
|
# We install mailutils just so that you can check "mail" for cronjob output
|
||||||
|
|
||||||
working "Setting home directory default content"
|
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
|
0 3 * * * sudo reboot
|
||||||
|
|
||||||
# Example: Turn display on weekdays at 7 AM
|
# 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
|
# 0 7 * * 1-5 ~/display-on.sh
|
||||||
|
|
||||||
# Example: Turn display off weekdays at 7 PM (and after the nightly reboot)
|
# Example: Turn display off weekdays at 7 PM (and after the nightly reboot)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user