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 ed466a366adb68fa3ee5fd3cc7466950d5fbb669.
This commit is contained in:
parent
605e379208
commit
252550cd0c
@ -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