From 5a76ee34b8cd4982995b121cde02c1ca4c700f56 Mon Sep 17 00:00:00 2001 From: Jarno Rantanen Date: Sat, 23 Jan 2016 13:20:09 +0200 Subject: [PATCH] Add basic HDMI output control scripts. --- dist/display-off.sh | 3 +++ dist/display-on.sh | 3 +++ 2 files changed, 6 insertions(+) create mode 100755 dist/display-off.sh create mode 100755 dist/display-on.sh diff --git a/dist/display-off.sh b/dist/display-off.sh new file mode 100755 index 0000000..efb1962 --- /dev/null +++ b/dist/display-off.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +sudo tvservice -o > /dev/null diff --git a/dist/display-on.sh b/dist/display-on.sh new file mode 100755 index 0000000..8fe3888 --- /dev/null +++ b/dist/display-on.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +sudo tvservice -p > /dev/null && sudo chvt 1 && sudo chvt 8 # cycling virtual terminals helps wake up the display