Fix display DPMS power-down and schedutil rate limit
Enable the X11 DPMS extension and force the DRM connector off/on on blank and wake, including the lid-close and lockscreen paths that write backlight sysfs directly (driven by a backlight change udev rule and a small sync helper). DPMS timeouts stay at zero so unlocked auto-blanking remains off. Re-apply schedutil rate_limit_us=40000 after every powersave to schedutil governor switch, which recreates the kobject with the 6.44 s default, and drop the writes to nonexistent up_rate_limit_us / down_rate_limit_us files. Remove the dead iw power-save call: NetworkManager wifi.powersave=3 and the wcn36xx WIPHY_FLAG_PS_ON_BY_DEFAULT patch already report "Power save: on".
This commit is contained in:
1 parent
691a989838
commit
7b6c6b25d4
9 files changed
+68
-14
No files matched your search
@@ -102,9 +102,9 @@ fi
|
||||
|
||||
if ! pidof -s Xorg >/dev/null 2>&1; then
|
||||
if [ -f /tmp/bananarchy_ext_logging ]; then
|
||||
"$XORG_BIN" :0 -s 0 -dpms -nolisten tcp -config "$XORG_CONFIG" -modulepath "$XORG_MODPATH" -logfile /tmp/Xorg.0.log >/dev/null 2>&1 </dev/null &
|
||||
"$XORG_BIN" :0 -s 0 -nolisten tcp -config "$XORG_CONFIG" -modulepath "$XORG_MODPATH" -logfile /tmp/Xorg.0.log >/dev/null 2>&1 </dev/null &
|
||||
else
|
||||
"$XORG_BIN" :0 -s 0 -dpms -nolisten tcp -config "$XORG_CONFIG" -modulepath "$XORG_MODPATH" -logfile /dev/null -logverbose 0 >/dev/null 2>&1 </dev/null &
|
||||
"$XORG_BIN" :0 -s 0 -nolisten tcp -config "$XORG_CONFIG" -modulepath "$XORG_MODPATH" -logfile /dev/null -logverbose 0 >/dev/null 2>&1 </dev/null &
|
||||
fi
|
||||
i=0
|
||||
while [ "$i" -lt 40 ]; do
|
||||
@@ -114,8 +114,12 @@ if ! pidof -s Xorg >/dev/null 2>&1; then
|
||||
sleep 0.05
|
||||
i=$((i + 1))
|
||||
done
|
||||
xset +dpms >/dev/null 2>&1 || true
|
||||
xset dpms 0 0 0 >/dev/null 2>&1 || true
|
||||
else
|
||||
xset s off s noblank s 0 0 >/dev/null 2>&1 || true
|
||||
xset +dpms >/dev/null 2>&1 || true
|
||||
xset dpms 0 0 0 >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
SESSION_PID_FILE="/tmp/bananarchy-x11-session.pid"
|
||||
|
||||
Reference in new issue
Block a user