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

This reverts commit 1ed64daf5afc9f5e96427622bc72930afa4b25f1.
This commit is contained in:
Stefan Saraev 2013-05-11 00:08:21 +03:00
parent 4f40fdaf72
commit f0fb14a6d9

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
;;