This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Enable and disable HDMI output on the Raspberry Pi | |
# The script uses the cec-hdmi command to manage the hdmi interface. | |
# https://pimylifeup.com/raspberrypi-hdmi-cec/ | |
# On a Raspberry Pi 4 i could only get this to work if i used the hdmi 2 port. | |
# To setup the script run "echo 'scan' | cec-client -s -d 1" to identify the adress of the HDMI unit. |