Files
bananarchy/overlay/rootfs/etc/bananarchy-power-policy.conf
T
Luxferre fc5c4282f5 Implement 0012 72h standby battery optimizations and initramfs depmod hook
- Add patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch, rebuild affected kernel/module artifacts and all six device DTS/DTB files (msm8916-wcd-analog s2/bias gating, wcn36xx offload_sync_work and healthy-RSSI screen_off_offload scan short-circuit, pm8916_bms_vm screen_off FORCE_S3 OCV mode, panel-mipi-dbi dc/reset low on blank, spi-qup runtime PM sleep pinctrl, PM8909 l1/l4 LDO seeding, and sdhci-msm vmmc/vqmmc set_load with regulator-allow-set-load on l8/l12), and switch msm8905-cam from direct APSS SPMI LDO6/LDO17 writes to RPM regulator consumer voting.

- Update standby power policy and compiled C daemons (WIFI_LISTEN_INTERVAL=8, WIFI_STANDBY_RAT=gsm with CS verification and fallback, 10-bananarchy-dpm.sh wifi-up/unpark-rat dispatch, 25 s boot QRTR wait and QMI DMS online recovery, pm8916_bms_vm screen_off sync, bananarchy-run-aligned dark-screen skip, bananarchy-dsds --sig-hysteresis, bananarchy-cover-idle wake_blank_timeout = 8, and scripts/test-standby-power-policy.py).

- Add overlay/rootfs/etc/boot-deploy/hooks/10-initramfs-depmod.sh to run depmod -b per staged initramfs cpio archive and eliminate Stage 2 udevd missing-module boot console errors, enforce .ko.zst-only module installs in apply-bananarchy-overlay.sh, stage Alpine 3.24 /usr/lib/{libz,libcrypto}.so* in rebuild-image.sh chroot with failure cleanup, and add initramfs cpio guards plus verified image hashes in scripts/check-rebuild.sh.

- Document all changes under Unreleased in CHANGELOG.md and synchronize AGENTS.md, MANUAL.md, and BATTERY-OPTIMIZATION-ANALYSIS.md.
2026-11-15 14:46:50 +02:00

45 lines
2.1 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=8
# Qualcomm modem DRX mode via AT$QCDRX (0, 6-9). 0 = firmware DSDS paging
# default (avoids competing with ModemManager on open /dev/wwan0at* ports).
# 6-9 remain opt-in for manual testing; values above 6 are undocumented on this
# firmware and may make the AT channel unresponsive.
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
# Last-man APSS RPM/vMPM sleep handoff in cpuidle_qcom_spm (1 = enable).
# Keep 0 by default: per-core SPC with L2 retention stays active (< 0.2 ms
# wakeup on all GIC SPIs), whereas runtime L2_OFF/vMPM without CONFIG_SUSPEND
# collapses APSS GIC and drops internal smd-edge modem wakeups.
CPU_RPM_SLEEP=0
# Last-man L2 SAW2 retention / HSFS_OPEN state in cpuidle_qcom_spm (1 = enable).
# Keep 0 by default alongside CPU_RPM_SLEEP=0 so APSS GIC stays awake.
CPU_L2_SLEEP=0
# Mute unsolicited IPv6 router advertisements on wlan0 while the screen is off
# when wlan0 already holds an IPv4 address (1 = enable, restored on wake).
WIFI_SCREEN_OFF_IPV6_MUTE=1
# Opt-in modem RAT parking while the screen is off and wlan0 is up:
# keep = keep current RAT preference (default)
# gsm = park NAS mode preference to GSM after 45 s dark on Wi-Fi (with CS
# registration verification and auto-fallback on 2G-sunset networks)
WIFI_STANDBY_RAT=gsm