Added sed to power_saving_mode script

Persists refresh rate changes on X restart
This commit is contained in:
2021-11-12 15:09:26 +02:00
parent 61a54ec64c
commit 8349a97606

View File

@@ -11,6 +11,7 @@ then
done
xrandr --output DP-4 --mode 2560x1600 --rate 60 > /dev/null 2>&1
xrandr --output eDP-1 --mode 2560x1600 --rate 60 > /dev/null 2>&1
sed -i 's/Modes "2560x1600_165"/Modes "2560x1600_60"/g' /etc/X11/xorg.conf.d/10-monitor.conf
for i in {1..3}; do brightness_down; done
echo "Power Saving Mode is now active"
elif [ "$1" == "off" ]
@@ -21,6 +22,7 @@ then
done
xrandr --output DP-4 --mode 2560x1600 --rate 165 > /dev/null 2>&1
xrandr --output eDP-1 --mode 2560x1600 --rate 165 > /dev/null 2>&1
sed -i 's/Modes "2560x1600_60"/Modes "2560x1600_165"/g' /etc/X11/xorg.conf.d/10-monitor.conf
for i in {1..3}; do brightness_up; done
echo "Power Saving Mode is now inactive"
else