Implement 0014 keypad debouncer, Sparkler LRA filter, standby fixes, and stage a1125 (ampere)

- Extend 0012 standby optimizations with removable-SD-only MMC_CAP_AGGRESSIVE_PM | MMC_CAP2_FULL_PWR_CYCLE in sdhci-msm, proxy mem clock and BIMC XO re-parenting + 0x45000 BIT(2) early-vote clear in qcom_q6v5_mss / gcc-msm8909, 100 MHz opp-99999975 floor across qcom-msm8909.dtsi and all 6 device DTS/DTBs, disabled-by-default Bluetooth with bt_enabled persistence, NM ipv6.method=ignore + standby wlan0/disable_ipv6 muting, and post-park DSDS signal hysteresis

- Add ABI-preserving system-core keypad debouncer patch 0014 (drivers/input/input.c key_debounce_ms + pm8941-pwrkey press/release chatter holdoff), replace ignored col-scan-delay-ms with col-scan-delay-us = <0x32> and raise DT debounce intervals across all 6 DTS/DTBs, configure per-target key_debounce_ms at boot and xset r rate 300 25, and add C/DTS verification in scripts/test-keypad-debouncer.py

- Isolate Nokia 8000 4G (nokia-sparkler / nokia-leo) media playback from the shared 157 Hz SPK_DRV vibrator channel via dynamic Speaker-only filtering in music.so, files.so, and ringtones.so, explicit RX3/SPK mixer zeroing on Earpiece/Headphones/Bluetooth routes in sxmo_audio.sh and preview plugins, and Sparkler/Leo-only /etc/mpv/mpv.conf provisioning

- Register upcoming build a1125 (ampere) in scripts/version.sh, scripts/check-rebuild.sh, AGENTS.md, and CHANGELOG.md, fix --for-rebuild pre-rebuild stale output checks in check-rebuild.sh/test-cover-dt.py, rebuild vmlinuz/DTBs/plugins and all 4 --mkinitfs target images stamped a1125 (ampere), and pin their verified SHA-256 checksums
This commit is contained in:
Luxferre committed 2026-11-23 15:26:56 +02:00
1 parent c529463ae3
commit 5d427e39ab
55 files changed
+78935 -77569

No files matched your search

+23
View File
@@ -1634,3 +1634,26 @@ After integrating the `a1120` 4-core SMP/cpufreq patch (`0013`), IMS/VoLTE/VoWiF
5. **Dark-screen NetworkManager status spawner (`30-bananarchy-network-status.sh`)**:
- Every `dhcp4-change`, `dhcp6-change`, `dns-change`, or `connectivity-change` event spawned `su user -s /bin/sh -c /usr/bin/bananarchy-network-event.sh` even when dark.
- **Fix**: Gated noisy change events in `30-bananarchy-network-status.sh` behind `is_screen_dark()` while keeping `up`/`down`/`vpn-*` transitions unconditional.
## 25. Live Nokia 2720 Hardware Audit: <48h Regression Root Causes & Fixes (2026-11-23)
Live telemetry collected from a flashed `a1120` `nokia-beatles` unit running DSDS + Wi-Fi ON + a 128 GB UHS-I `SDR104` microSD card measured well over `31 mA` (`<48 h` standby) and pinpointed six remaining hardware/userspace drains:
1. **Bluetooth powered ON out-of-the-box (`~5-10 mA`)**:
- `scripts/bootstrap-rootfs-container.sh` enabled `bluetooth` in the OpenRC `default` runlevel. On a fresh rootfs without an existing `/var/lib/rfkill` block state, `hci0` booted unblocked, so `sxmo_hook_start.sh` observed `sxmo_bluetoothtoggle.sh status == "on"` and launched `bananarchy-bt-obex`, `[krfcommd]`, and `bluetoothd` with `bredr + le + pairable on` (`PairableTimeout = 0`).
- **Fix**: Removed `bluetooth` from `enable_service default` in `scripts/bootstrap-rootfs-container.sh` and added `rm -f "$TARGET_ROOTFS/etc/runlevels/default/bluetooth"` in `scripts/apply-bananarchy-overlay.sh`; persisted explicit user intent in `/home/user/.config/sxmo/bt_enabled` from `sxmo_bluetoothtoggle.sh` (`on()`/`off()`); enforced `rfkill block bluetooth` and service stop in `/etc/local.d/10-power-save.start` when `bt_enabled` is unset; and switched all three `sxmo_hook_start.sh` copies to check `bt_enabled` instead of raw `rfkill` status.
2. **microSD (`mmc1`) `SDR104` `vmmc`/`vqmmc` kept active 24/7 (`~6-12 mA`)**:
- `sdhci@7864000` (`mmc1`) lacked `MMC_CAP_AGGRESSIVE_PM` (`caps = 0x405f030f`), causing `mmc_sd_runtime_suspend()` to return `0` without powering off the card. While idle, PM8909 `L11` (`2.9 V`, `0x4a46=0x80`) and `L12` (`1.8 V`, `0x4b46=0x80`, `0x4b45=0x80` NPM) stayed active continuously with an `SDR104` card in `tran` state.
- **Fix**: Extended `patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch` (`drivers/mmc/host/sdhci-msm.c`) to set `MMC_CAP_AGGRESSIVE_PM | MMC_CAP2_FULL_PWR_CYCLE` exclusively on non-`mmc0`, non-8-bit, SD-capable hosts (`of_alias_get_id(node, "mmc") != 0 && !(caps & MMC_CAP_8_BIT_DATA) && !(caps2 & (MMC_CAP2_NO_SD | MMC_CAP2_HS200_1_8V_SDR | MMC_CAP2_HS400_1_8V))`), leaving rootfs eMMC `mmc0` (`sdhci@7824000`, which omits `no-sd;` in DTS) strictly excluded while powering off both `L11` and `L12` during removable microSD idle.
3. **Modem `qcom_q6v5_mss` pinning `BIMC_PLL` and `gcc_boot_rom_ahb_clk` on APSS (`~3-6 mA`)**:
- `4080000.remoteproc` (`msm8909_mss` / `msm8916_mss`) kept `"mem"` (`gcc_boot_rom_ahb_clk`) in `.active_clk_names` indefinitely and enabled `gcc_mss_q6_bimc_axi_clk`, whose clock parent `&bimc_ddr_clk_src -> bimc_pll -> bimc_pll_early` held APSS `GCC_APCS_GPLL_ENA_VOTE` (`0x45000` `BIT(2)`) asserted 24/7.
- **Fix**: Updated `0012` across `drivers/remoteproc/qcom_q6v5_mss.c` (moving `"mem"` from `.active_clk_names` into `.proxy_clk_names` released at `qcom_msa_handover()`) and `drivers/clk/qcom/gcc-msm8909.c` (re-parenting `gcc_mss_q6_bimc_axi_clk` to `gcc_xo_data`, adding `CLK_GET_RATE_NOCACHE` to `pcnoc_bfdcd_clk_src` and `system_noc_bfdcd_clk_src`, and clearing the bootloader APSS `BIT(2)` vote in `gcc_msm8909_probe()`).
4. **Dark-screen CPU/L2/SCU `powersave` floor stuck at `200 MHz` (`~2-3 mA`)**:
- With `CPU_L2_SLEEP=0` (`L2_ON`), `powersave` kept Cortex-A7 + shared L2/SCU clocked at `199,999,951 Hz` (`gpll0 / 4`).
- **Fix**: Added `opp-99999975` (`99,999,975 Hz` = `gpll0 / 8`, `hid_div = 15`, supported directly by the 5-bit `apcs-msm8916` mux-divider) to `qcom-msm8909.dtsi` in `0012` and to all 6 standalone `devices/*/*.dts` OPP tables, cutting dark-screen CPU/L2 clock power in half while preserving `schedutil` peak boost rates (`1.094` / `1.267 GHz`).
5. **Wi-Fi IPv6 link-local/MLDv2 background traffic & post-`_park_rat` DSDS hysteresis (`~2-4 mA`)**:
- NetworkManager Wi-Fi profiles defaulted to `ipv6.method=auto`, overriding `net.ipv6.conf.default.disable_ipv6=1` and leaving `fe80::` link-local + `kworker/R-mld` active on `wlan0`; separately, `park_wifi_rat()` in `bananarchy-power-policy.sh` switched Primary GW from UMTS to GSM 45 s after `screenoff` without re-sending `bananarchy-dsds --sig-hysteresis dark` for the newly camped RAT.
- **Fix**: Added `ipv6.method=ignore` under `[connection]` in `10-power.conf` (keeping `wifi.scan-interval` absent); extended `mute_wifi_ipv6_ra()` / `restore_wifi_ipv6_ra()` in `bananarchy-power-policy.sh` to toggle `BANANARCHY_DISABLE_IPV6_PATH` (`wlan0/disable_ipv6`) when `VOWIFI_ACTIVE && VOWIFI_IPV6_EPDG` is inactive; and invoked `"$DSDS_BIN" --sig-hysteresis dark` after `: > "$RAT_PARKED"` in `park_wifi_rat()`.
6. **Desktop `superd` `pipewire` / `wireplumber` startup race**:
- Checking `pidof -s pipewire` matched unmanaged/pulse instances, leaving `superctl status pipewire` as `failed` and `wireplumber` as `stopped`.
- **Fix**: Updated all three `sxmo_hook_start.sh` copies to verify `superctl status pipewire`, clean up stale unmanaged `pipewire` PIDs and socket/lock files before starting `pipewire` under `superd`, and retry `superctl start wireplumber` if `stopped`.