Measurement-corrected battery optimization pass (DSDS + Wi-Fi)
Re-analyzed the running nokia-argon (a1105, 43 h uptime, DSDS + Wi-Fi on) and implemented the corrected kernel/userspace optimization list. No sleep state existed at all (/sys/power/state was 0 bytes) and cpuinfo_transition_latency was UINT_MAX, while the CPU cores were already ~98% power-collapsed. Kernel (K1-K14) - Enable CONFIG_SUSPEND / SUSPEND_FREEZER / PM_WAKELOCKS / PM_AUTOSLEEP and build the zImage from the tuned config; ship it as overlay/rootfs/boot/vmlinuz plus config and System.map. Add wakeup-source to the WCNSS pronto remoteproc. - Add clock-latency-ns to cpu-opp-table in all 5 device trees (fixes CPUFREQ_ETERNAL at its source instead of a userspace rate_limit_us override). - New patch 0006: wcn36xx keep-alive 30s->120s, listen_interval=3, VM-BMS sample interval 10s->30s, power_supply_changed() only on real capacity changes, GPU devfreq polling_ms 50->100. - Retune the config for idle (HZ=100, PREEMPT_VOLUNTARY, TEO cpuidle governor, no ftrace/perf/kprobes/BPF-JIT-always-on/debug options, no serial console, DRM_FBDEV_OVERALLOC=0, lz4 zram, ENERGY_MODEL) and drop earlycon / console=ttyMSM0 from every kernel cmdline. - net.ipv6.conf.default.disable_ipv6=1 to stop ND/MLD multicast on new interfaces; keep NETFILTER/IPV6/CGROUPS and FRAMEBUFFER_CONSOLE for VPN/tethering, elogind and plymouth. Userspace (U1-U14) - Idle blanking without the passcode locker (bananarchy-idle-blank.sh + idle_locker resume hook, SXMO_UNLOCK_IDLE_TIME=60, sxmo.noidle opts out). - Guarded deep standby (bananarchy-suspend.sh / -deep-standby.sh / sxmo_autosuspend.sh / sxmo_suspend.sh), AllowSuspend=yes, doas rule, no infinite wakelock, no sxmo.nosuspend. Shipped disabled via /etc/bananarchy-no-deep-standby until the new kernel is boot-tested; freeze is preferred, mem is opt-in. - statusbar_periodics 60s->300s, no mmcli/nmcli/rfkill polls, xsetroot only on change; battery udev rule filtered and no 2 s recheck fork. - On-demand QMI DPM port, longer DSDS/modemmonitor backoffs, chrony long polls, NM wifi.scan-interval=600, bluetooth AutoEnable=false, tmpfs on /tmp, zero-log superd, GPU devfreq governor on screen-off, longer SIP/Tox timers. - Fix the cosmetic wpa_supplicant yesno typo; withdraw the disproven duplicate wpa_supplicant and soundmonitor 5 s loop items. Rebuilt images/bananarchy-nokia-argon.img with --mkinitfs: boot.img contains the new zImage + DTB byte-for-byte and no serial-console cmdline. Deployed the userspace overlay to the connected phone and verified shell/Python syntax, the idle-blank round trip, the statusbar hook and the deep-standby guard. check-rebuild.sh and sync-prebuilt-overlay.sh --check both pass. Docs: BATTERY-OPTIMIZATION-ANALYSIS.md (measurement-corrected, with implementation status), CHANGELOG.md, MANUAL.md, README.md, AGENTS.md.
This commit is contained in:
1 parent
2ea2db443d
commit
ad3461babf
169 files changed
+151574
-333
No files matched your search
@@ -67,7 +67,7 @@ icmp0= # no incompressible page writing to backup device
|
||||
idle0= # no idle page writing to backup device
|
||||
wlim0= # no writeback_limit for idle page writing for backup device
|
||||
notr0= # keep the default on linux-3.15 or newer
|
||||
algo0=zstd # zstd (since linux-4.18), lz4 (since linux-3.15), or lzo.
|
||||
algo0=lz4 # U12/K13: lz4 is far cheaper on CPU than zstd
|
||||
# Size: zstd (best) > lzo > lz4. Speed: lz4 (best) > zstd > lzo
|
||||
para0= # No algorithm parameters
|
||||
labl0=zram_swap # the label name
|
||||
@@ -80,7 +80,7 @@ args0= # we could e.g. have set args0="-L 'zram_swap'" instead of using labl0
|
||||
# rc_need=zram-init in their /etc/conf.d/... file
|
||||
type1=/tmp
|
||||
flag1=ext4
|
||||
size1=2048
|
||||
size1=256
|
||||
mlim1= # no hard memory limit
|
||||
back1= # no backup device
|
||||
icmp1= # no incompressible page writing to backup device
|
||||
@@ -89,12 +89,12 @@ wlim1= # no writeback_limit for idle page writing for backup device
|
||||
blck1=1024 # the default blocksize of 4096
|
||||
irat1= # bytes/inode ratio
|
||||
inod1= # inode number
|
||||
opts1="strictatime,nosuid,nodev,noexec" # e.g. "relatime" or "noatime" are also reasonable choices
|
||||
opts1="noatime,nosuid,nodev,noexec" # U12: no atime writes into compressed RAM
|
||||
mode1=1777
|
||||
owgr1= # No reason to change the default "root:root"
|
||||
notr1= # keep the default on linux-3.15 or newer
|
||||
algo1=zstd
|
||||
para1="level=3" # algorithm-specific parameters such as compression level
|
||||
algo1=lz4
|
||||
para1= # lz4 has no level parameter
|
||||
labl1=tmp_dir
|
||||
uuid1=
|
||||
args1=
|
||||
@@ -115,7 +115,7 @@ opts2=relatime # e.g. "noatime" or "strictatime" are also reasonable choices
|
||||
mode2=1777
|
||||
owgr2= # No reason to change the default "root:root"
|
||||
notr2= # keep the default on linux-3.15 or newer
|
||||
algo2=zstd
|
||||
algo2=lz4
|
||||
para2= # No algorithm parameters
|
||||
labl2=var_tmp_dir
|
||||
uuid2=
|
||||
@@ -126,7 +126,7 @@ args2=
|
||||
type3=- # Only format the filesystem but actually do not mount it
|
||||
flag3=btrfs
|
||||
size3=1024
|
||||
algo3=zstd
|
||||
algo3=lz4
|
||||
labl3=zbtrfs
|
||||
uuid3=
|
||||
args3=
|
||||
|
||||
Reference in new issue
Block a user