diff options
author | Sebastian Schmelzer | 2010-09-02 17:50:49 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2010-09-02 17:50:49 +0200 |
commit | 416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5 (patch) | |
tree | 4715f7d742fec50931017f38fe6ff0a89d4ceccc /src/os-plugins/plugins/infoscreen/files/kiosk.dpms | |
parent | Fix for the problem reported on the list (sed filter forgotten for the (diff) | |
download | core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.tar.gz core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.tar.xz core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.zip |
change dir structure
Diffstat (limited to 'src/os-plugins/plugins/infoscreen/files/kiosk.dpms')
-rwxr-xr-x | src/os-plugins/plugins/infoscreen/files/kiosk.dpms | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/os-plugins/plugins/infoscreen/files/kiosk.dpms b/src/os-plugins/plugins/infoscreen/files/kiosk.dpms new file mode 100755 index 00000000..d8fd57c5 --- /dev/null +++ b/src/os-plugins/plugins/infoscreen/files/kiosk.dpms @@ -0,0 +1,27 @@ +#!/bin/bash + +case "$1" in + "sleep") + xset -display :0 dpms force off + xset -display :0 dpms 0 0 0 + exit 0 + ;; + "wakeup") + xset -display :0 dpms force on + xset -display :0 dpms 0 0 0 + xset -display :0 s reset + xset -display :0 s noblank + xset -display :0 s noexpose + xset -display :0 s 0 0 + xset -display :0 s off + xset -display :0 -dpms + exit 0 + ;; + *) + echo "Usage: kiosk.dpms <command>" + echo "Commands" + echo " sleep : shut monitor down" + echo " wakeup : wake monitor up" + exit 0 + ;; +esac |