Kernel (source-only, ABI-preserving, patch 0007): - pm8916_bms_vm.c: bound VADC raw samples to 8000..16000 (~2.34-4.69 V) with a 3.7 V nominal fallback in raw_to_uv(); reject out-of-window FIFO samples in the IRQ handler and probe pre-read. Fixes the 19.2 V / "Over voltage" / 100% misreport from an uninitialised 0xffff sample after a hard reset (also covers the OCV register reads on probe/resume). - wcn36xx: listen_interval becomes a module parameter (1-10, default 5, was hardcoded 3) so the beacon skip is configurable at module load. Runtime power policy (/etc/bananarchy-power-policy.conf): - WIFI_LISTEN_INTERVAL drives /etc/modprobe.d/10-bananarchy-power.conf. - MODEM_DRX_MODE (0 or 6-9) applies Qualcomm AT$QCDRX at boot and on wake. Standard AT+CPSMS / AT+CEDRXS are unsupported on this modem firmware. - DSDS_SECONDARY_MODE=eco parks the secondary GW provisioning session after DSDS_PARK_DELAY seconds of a dark panel and restores it on wake, capturing the actual slot and AID. Uses QMI provisioning sessions, not SIM power-off (which clears PIN verification). Default active keeps both SIMs reachable. - New bananarchy-power-policy.sh, OpenRC default-runlevel service, doas rule, and hooks in sxmo_wm.sh display off/on. Live-verified on nokia-argon: DRX 6 readback, eco park/unpark round-trip, Wi-Fi param 5, status output, module vermagic match, both SIMs registered. Rebuilt image with --mkinitfs: initramfs and rootfs carry the new modules (SHA-256 match), boot.img keeps the byte-identical known-good zImage + DTB. Docs updated (BATTERY-OPTIMIZATION-ANALYSIS.md section 15, CHANGELOG, MANUAL, README, AGENTS).
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
# Bananarchy runtime power policy. Read by bananarchy-power-policy.sh.
|
|
# Edit as root, then run: doas /usr/bin/bananarchy-power-policy.sh apply
|
|
# (or reboot). Every knob is deliberately conservative by default.
|
|
|
|
# wcn36xx beacon listen interval (1-10). Higher values cut idle Wi-Fi RX
|
|
# wakeups but delay inbound packets. 0 removes the module option and uses
|
|
# the driver default. Applied at module load, so changes need a reboot or
|
|
# a wcn36xx module reload.
|
|
WIFI_LISTEN_INTERVAL=5
|
|
|
|
# Qualcomm modem DRX mode via AT$QCDRX (0, 6-9). 0 = firmware default, no
|
|
# policy. 6-9 = progressively longer paging cycles: lower modem idle
|
|
# current, longer call/SMS setup latency. Values above 6 are undocumented
|
|
# on this firmware; 9 made the AT channel briefly unresponsive in testing.
|
|
MODEM_DRX_MODE=0
|
|
|
|
# Secondary SIM (DSDS) policy while the panel is dark:
|
|
# active = keep both subscriptions provisioned (default)
|
|
# eco = deactivate the secondary GW provisioning session after
|
|
# DSDS_PARK_DELAY seconds of darkness, and reactivate it on wake.
|
|
# SIM2 is unreachable while parked. This uses QMI provisioning
|
|
# sessions, not SIM power-off, so a PIN-locked SIM stays locked.
|
|
DSDS_SECONDARY_MODE=active
|
|
DSDS_PARK_DELAY=300
|