Skip to content

Instantly share code, notes, and snippets.

@AGWA
AGWA / rpi-hdmi.sh
Last active Jul 2, 2020
Enable and disable the HDMI port on the Raspberry Pi: `rpi-hdmi on` to turn on, `rpi-hdmi off` to turn off. X is properly reinitialized when re-enabling.
View rpi-hdmi.sh
#!/bin/sh
# Enable and disable HDMI output on the Raspberry Pi
is_off ()
{
tvservice -s | grep "TV is off" >/dev/null
}
case $1 in
You can’t perform that action at this time.