-
-
Save meanderer-tech/bde87cf7f929285d38f55ea3416d7f79 to your computer and use it in GitHub Desktop.
Revisions
-
quelleck revised this gist
Apr 6, 2017 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,19 +9,19 @@ is_off () case $1 in off) if is_off then echo Already off... else vcgencmd display_power 0 fi ;; on) if is_off then vcgencmd display_power 1 else echo Already on... fi ;; status) -
quelleck revised this gist
Apr 6, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ is_off () { vcgencmd display_power | grep "display_power=0" >/dev/null } case $1 in -
quelleck revised this gist
Apr 6, 2017 . No changes.There are no files selected for viewing
-
quelleck revised this gist
Apr 6, 2017 . 1 changed file with 11 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,26 +4,24 @@ is_off () { vcgencmd display_power | grep "display_power=0" } case $1 in off) if is_off then echo Already off... else vcgencmd display_power 0 fi ;; on) if is_off then vcgencmd display_power 1 else echo Already on... fi ;; status) @@ -40,4 +38,4 @@ case $1 in ;; esac exit 0 -
AGWA renamed this gist
Jul 13, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
AGWA renamed this gist
Jul 13, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
AGWA renamed this gist
Jul 13, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
AGWA created this gist
Mar 30, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,43 @@ #!/bin/sh # Enable and disable HDMI output on the Raspberry Pi is_off () { tvservice -s | grep "TV is off" >/dev/null } case $1 in off) tvservice -o ;; on) if is_off then tvservice -p curr_vt=`fgconsole` if [ "$curr_vt" = "1" ] then chvt 2 chvt 1 else chvt 1 chvt "$curr_vt" fi fi ;; status) if is_off then echo off else echo on fi ;; *) echo "Usage: $0 on|off|status" >&2 exit 2 ;; esac exit 0