diff --git a/src/modules/gui/filesystem/home/pi/scripts/start_gui b/src/modules/gui/filesystem/home/pi/scripts/start_gui index 6203db33..88d2d961 100755 --- a/src/modules/gui/filesystem/home/pi/scripts/start_gui +++ b/src/modules/gui/filesystem/home/pi/scripts/start_gui @@ -1,7 +1,22 @@ #!/bin/bash -xset s off # don't activate screensaver -xset -dpms # disable DPMS (Energy Star) features. -xset s noblank # don't blank the video device + +# Stop the screen from turning off when idle. +DISABLE_POWER_MANAGEMENT=yes + +# Rotate screen if needed, see 'xrandr -h' for options. +DISPLAY_ORIENTATION=normal + +if ["${DISPLAY_ORIENTATION}" != 'normal']; +then + xrandr --orientation ${DISPLAY_ORIENTATION} +fi + +if ["${DISABLE_POWER_MANAGEMENT}" == 'yes']; +then + xset s off # don't activate screensaver + xset -dpms # disable DPMS (Energy Star) features. + xset s noblank # don't blank the video device +fi matchbox-window-manager &