Revert "xrandr: switch off only HDMI/DFP/CRT outputs on suspend"

This reverts commit ed466a366adb68fa3ee5fd3cc7466950d5fbb669.
This commit is contained in:
Stefan Saraev 2013-05-11 00:10:09 +03:00
parent 605e379208
commit 252550cd0c

View File

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