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
@@ -53,12 +53,14 @@ xorgdisplay() {
|
||||
printf 'powersave\n' > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor 2>/dev/null || true
|
||||
fi
|
||||
xset s off s noblank >/dev/null 2>&1 || true
|
||||
xset dpms force off >/dev/null 2>&1 || true
|
||||
;;
|
||||
on)
|
||||
if [ -w /sys/devices/system/cpu/cpufreq/policy0/scaling_governor ]; then
|
||||
printf 'schedutil\n' > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor 2>/dev/null || true
|
||||
fi
|
||||
xset s off s noblank >/dev/null 2>&1 || true
|
||||
xset dpms force on >/dev/null 2>&1 || true
|
||||
if [ -w /sys/class/backlight/backlight/bl_power ]; then
|
||||
printf '0\n' > /sys/class/backlight/backlight/bl_power 2>/dev/null || true
|
||||
fi
|
||||
@@ -88,6 +90,7 @@ xorgdisplay() {
|
||||
fi
|
||||
printf '%s\n' "${_restore_kbd:-255}" > /sys/class/leds/white:kbd_backlight/brightness 2>/dev/null || true
|
||||
fi
|
||||
doas -n /usr/bin/bananarchy-display-power-sync >/dev/null 2>&1 || true
|
||||
;;
|
||||
"")
|
||||
_cur_bl=14
|
||||
|
||||
Reference in new issue
Block a user