From 654456127ec6be3617d8c06a91890d38442d88f5 Mon Sep 17 00:00:00 2001 From: Cassiano Aquino <caquino@users.noreply.github.com> Date: Wed, 2 Oct 2019 21:33:08 +0100 Subject: [PATCH] Add the check if HDMI cable is connected For some reason this if was not added during my PR. --- sdcard/rootfs/etc/rc.local | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdcard/rootfs/etc/rc.local b/sdcard/rootfs/etc/rc.local index e93d2d8..bab03e6 100755 --- a/sdcard/rootfs/etc/rc.local +++ b/sdcard/rootfs/etc/rc.local @@ -11,6 +11,9 @@ # # By default this script does nothing. # Powersave (Disable HDMI) ~30ma -/opt/vc/bin/tvservice -o +sleep 10 +if ! /opt/vc/bin/tvservice -s | grep HDMI; then + /opt/vc/bin/tvservice -o +fi /root/pwnagotchi/scripts/startup.sh & exit 0