mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Revert "xrandr: switch off only HDMI/DFP/CRT outputs on suspend"
This reverts commit 1ed64daf5afc9f5e96427622bc72930afa4b25f1.
This commit is contained in:
parent
4f40fdaf72
commit
f0fb14a6d9
@ -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
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user