Optimize kernel-to-userspace battery life across CAMSS, SPI runtime PM, dwm, NeoUI, and plugins
This commit is contained in:
1 parent
f112b6ae72
commit
456d3fbc42
61 files changed
+466
-148
No files matched your search
@@ -12,6 +12,22 @@ fi
|
||||
{ echo 6000 > /proc/sys/vm/dirty_expire_centisecs; } 2>/dev/null || true
|
||||
{ echo 0 > /proc/sys/kernel/nmi_watchdog; } 2>/dev/null || true
|
||||
{ echo "1 4 1 4" > /proc/sys/kernel/printk; } 2>/dev/null || true
|
||||
{ echo Y > /sys/module/workqueue/parameters/power_efficient; } 2>/dev/null || true
|
||||
{ echo Y > /sys/module/printk/parameters/console_suspend; } 2>/dev/null || true
|
||||
|
||||
# Lower SPI controller (78b9000.spi) runtime PM autosuspend from 1000 ms to 50 ms
|
||||
# and ensure runtime PM auto-suspend is enabled across SoC buses
|
||||
for spi_dev in /sys/devices/platform/soc@0/*.spi; do
|
||||
if [ -d "$spi_dev/power" ]; then
|
||||
{ echo 50 > "$spi_dev/power/autosuspend_delay_ms"; } 2>/dev/null || true
|
||||
{ echo auto > "$spi_dev/power/control"; } 2>/dev/null || true
|
||||
fi
|
||||
done
|
||||
for pm_dev in /sys/devices/platform/soc@0/1c00000.gpu /sys/devices/platform/soc@0/*.sdhci /sys/devices/platform/soc@0/*.serial /sys/devices/platform/soc@0/*.serial/*; do
|
||||
if [ -w "$pm_dev/power/control" ]; then
|
||||
{ echo auto > "$pm_dev/power/control"; } 2>/dev/null || true
|
||||
fi
|
||||
done
|
||||
|
||||
# Tune CPUFreq schedutil governor for rapid downclocking to 200 MHz at idle
|
||||
# (qcom-cpufreq reports transition_latency=UINT_MAX, causing schedutil rate_limit_us
|
||||
|
||||
Reference in new issue
Block a user