Merge branch 'master' of github.com:OpenELEC/OpenELEC.tv

This commit is contained in:
Stephan Raue 2013-04-20 17:20:39 +02:00
commit be928da3b7

View File

@ -24,14 +24,13 @@
case "$1" in
hibernate|suspend)
for screen in HDMI-0 HDMI-1 HDMI-2 DFP0 DFP1 DFP2 CRT0 CRT1 CRT2; do
SCREENS=$(xrandr -q | grep "[^dis]connected" | cut -d" " -f1 | grep -E '^HDMI|^DFP|^CRT')
for screen in $SCREENS; do
xrandr --output $screen --off
done
;;
thaw|resume)
for screen in HDMI-0 HDMI-1 HDMI-2 DFP0 DFP1 DFP2 CRT0 CRT1 CRT2; do
xrandr --output $screen --auto
done
xrandr --auto
;;
*) exit $NA
;;