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

+17 -9
View File
@@ -12,7 +12,9 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
---
## Unreleased
## Upcoming build `a1125` — codename `ampere`
Upcoming release build (`a1125` / `ampere` via `scripts/version.sh`) targeting **Nokia 8110 4G (`nokia-argon`)**, **Nokia 2720 Flip (`nokia-beatles`)**, **Nokia 800 Tough (`nokia-coconut`)**, and **Nokia 8000 4G (`nokia-sparkler`)** while keeping `a1120` (`cocojamboo`) as the current published release.
### Cellular PS attach, Dual-SIM QMI WDS subscription binding (`libmm-wds-bind.so`), and mobile data (`wwan0`) fixes across all targets
@@ -33,16 +35,22 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
- **IMS Combined EPS/IMSI detection, QRTR idle sleep, and VoWiFi backoff (`src/bananarchy-daemons/ims_qrtr.h`, `bananarchy-imsd.c`, `src/dwm-plugins/bananarchy_vowifi.cpp`, `overlay/rootfs/etc/NetworkManager/dispatcher.d/40-bananarchy-ims.sh`)**: inspected TLV `0x01` `cs_attach` in `ims_qmi_nas_get_serving()` (plus PS-attach/registered checks) so standard Combined EPS/IMSI (`cs_attach == 1`) LTE+CSFB cells stay `NETWORK_4G_ONLY=0` under `volte_mode=auto` / `vowifi_mode=auto` rather than keeping VoLTE/VoWiFi active and blocking GSM Wi-Fi standby RAT parking; added `close_qrtr()` when idle, deduplicated `ims_state_write()` updates via `ims_state_equal()`, bounded child sync/check retries so `bananarchy-imsd` returns to `poll(..., -1)` instead of waking every `2,000 ms`, skipped NAS QRTR probes on Wi-Fi events while parked or inactive, skipped `40-bananarchy-ims.sh` `dhcp4-change` / `dhcp6-change` / `connectivity-change` notifications when both `VOLTE_ACTIVE` and `VOWIFI_ACTIVE` are `0`, guarded `openCtlSocket()` rebinds in `bananarchy-vowifi`, and replaced its `1.5 s` / `10 s` retry storm with capped exponential backoff (`5 s` to `300 s`).
- **Display/lockscreen/cover power-policy sync & idempotency (`overlay/rootfs/usr/bin/bananarchy-display-power-sync`, `bananarchy-power-policy.sh`, `src/dwm-plugins/locker_plugin.cpp`, `30-bananarchy-network-status.sh`)**: synced `CPU_GOV_PATH` (`powersave` when dark or cover-lit, `schedutil` on interactive wake) and `sync_standby_policy()` across both flip and non-flip branches of `bananarchy-display-power-sync`, wired `blankScreenBacklight()` / `wakeScreenBacklight()` in `locker.so` to `/usr/bin/bananarchy-power-policy.sh screenoff|screenon`, made `screenoff()`, `screenon()`, and `arm_rat_park_timer()` idempotent via `$RUNDIR/standby.mode` and `$RUNDIR/rat_timer.pid` across dark/cover-lit/dark cycles, and suppressed `30-bananarchy-network-status.sh` `su user` spawns for noisy `dhcp4-change` / `dhcp6-change` / `dns-change` / `connectivity-change` events while dark.
- **QMI NAS signal hysteresis wire-protocol fix (`src/bananarchy-daemons/bananarchy-dsds.c`)**: corrected `apply_sig_hysteresis()` from wrong opcodes `0x006F` (`4`-byte sub) and `0x004F` (`GET_SIGNAL_INFO`) + TLV `0x13` to `QMI_NAS_BIND_SUBSCRIPTION` (`0x0045`, `1`-byte TLV `0x01`) and `QMI_NAS_CONFIG_SIGNAL_INFO` (`0x0050`) with `RSSI` (`0x10`), WCDMA `RSCP` (`0x18`), LTE `RSRP` (`0x16`, 16-bit LE), and `lte_report` (`0x17`, `rate=0`, `avg=5 s` dark / `1 s` wake) verified against `libqmi-glib.so.5.12.0`, suppressing minor standby RF fluctuations from waking APSS over QRTR.
- **Disabled-by-default Bluetooth, removable microSD `MMC_CAP_AGGRESSIVE_PM`, MSS/BIMC clock unpinning, `100 MHz` idle OPP, IPv6 standby mute, and `pipewire`/`wireplumber` startup race fix (`0012`, `devices/*/*.dts`, `bootstrap-rootfs-container.sh`, `apply-bananarchy-overlay.sh`, `sxmo_bluetoothtoggle.sh`, `10-power-save.start`, `sxmo_hook_start.sh`, `10-power.conf`, `bananarchy-power-policy.sh`)**: removed `bluetooth` from OpenRC `default` runlevel (`rm -f /etc/runlevels/default/bluetooth`), tracked user opt-in via `/home/user/.config/sxmo/bt_enabled`, enforced `rfkill block bluetooth` + daemon stop at boot when unset, and switched `sxmo_hook_start.sh` to check `bt_enabled`; added `MMC_CAP_AGGRESSIVE_PM | MMC_CAP2_FULL_PWR_CYCLE` in `sdhci-msm.c` strictly for removable SD hosts (excluding `mmc0` / `8-bit` / `no-sd` / `HS200`/`HS400`) so `L11`/`L12` power off during microSD idle; moved `"mem"` (`gcc_boot_rom_ahb_clk`) to `.proxy_clk_names` in `qcom_q6v5_mss.c`, re-parented `gcc_mss_q6_bimc_axi_clk` to `gcc_xo_data`, added `CLK_GET_RATE_NOCACHE` to `pcnoc_bfdcd_clk_src`/`system_noc_bfdcd_clk_src`, and cleared bootloader APSS `0x45000 BIT(2)` (`bimc_pll_early`) in `gcc_msm8909_probe()`; added `opp-99999975` (`100 MHz` = `gpll0 / 8`) across `qcom-msm8909.dtsi` and all 6 device DTS files to halve dark `powersave` L2/SCU clock draw; added `ipv6.method=ignore` in `10-power.conf`, `wlan0/disable_ipv6` standby toggling (preserving IPv6 ePDG VoWiFi), and post-`_park_rat` `--sig-hysteresis dark` in `bananarchy-power-policy.sh`; and guarded `superctl` `pipewire`/`wireplumber` startup in `sxmo_hook_start.sh`.
### System-core keypad debouncer (`0014`) and Nokia 8000 (`nokia-sparkler`) LRA vibrator isolation during media playback
- **System-core `input_core` key debouncer, PMIC release chatter guard, matrix column settle fix, and X11 repeat tuning (`0014-input-core-keypad-debouncer.patch`, `devices/*/*.dts`, `10-power-save.start`, `bananarchy-x11-session.sh`, `scripts/test-keypad-debouncer.py`)**: added an ABI-preserving post-release chatter debouncer (`ba_filter_key_bounce`, `ba_pop_trailing_msc_scan`, `ba_clear_key_debounce_dev`) inside `drivers/input/input.c` without altering `include/linux/input.h`, exposing `/sys/module/input_core/parameters/key_debounce_ms` (booting to `55 ms` on `nokia-argon`/`nokia-sparkler`/`nokia-leo`, `45 ms` on `nokia-beatles`/`nokia-coconut`, overrideable in `/etc/bananarchy/key-debounce.conf`) with `0 ms` press/release latency and bypassing `BUS_VIRTUAL`, `BUS_BLUETOOTH`, `BUS_USB`, and pointer buttons; added symmetric press + `45 ms` post-release chatter holdoff in `pm8941-pwrkey.c`; replaced ignored KaiOS `col-scan-delay-ms` with `col-scan-delay-us = <0x32>` (`50 us`) and raised `gpio-matrix-keypad` / `gpio-keys` debounce intervals across all 6 DTS/DTB files (`18 ms` / `25 ms` on `argon`/`sparkler`/`leo`; `14 ms` / `20 ms` on `beatles`/`coconut`); raised `xset r rate` from `180 30` to `300 25` to eliminate short-press auto-repeat doubles; and added offline C/DTS verification in `scripts/test-keypad-debouncer.py`.
- **Nokia 8000 4G (`nokia-sparkler`) media player LRA isolation (`music_plugin.cpp`, `files_plugin.cpp`, `ringtones_plugin.cpp`, `sxmo_audio.sh`, `scripts/apply-bananarchy-overlay.sh`, `scripts/test-sparkler-port.py`)**: isolated `xmusic` (`music.so` dynamic IPC `af` switching + `AUDIO_ROUTE` FIFO notification), `xfiles` / `xringtones` previews, and standalone `mpv` (`/etc/mpv/mpv.conf` installed per-target on `nokia-sparkler` and `nokia-leo` only) from the `157 Hz` speaker-LRA band (`highpass=f=260` 4th-order + `bandreject=f=157`) when outputting via `Speaker`, while preserving full bass on `Headphones` and `Bluetooth` and explicitly zeroing `RX3 MIX1 INP1` (`'ZERO'`) / `SPK DAC Switch` (`0`) across `Earpiece`, `Headphones`, and `Bluetooth` routes in `sxmo_audio.sh`, `files_plugin.cpp`, and `ringtones_plugin.cpp`.
- **microSD PM8909 `l11` static `200 mA` load removal & `sdhci-msm` probe/active HPM + standby LPM `set_load` (`patches/kernel/0012-msm8909-standby-wifi-wcd-panel-ldo-bms.patch`, `devices/*/*.dts`, `prebuilt/kernel-6.12.1-msm8916/`)**: removed static `regulator-system-load = <0x30d40>;` from PM8909 `l11` across all 6 DTS files while extending `sdhci-msm.c` (`sdhci_msm_register_vreg()`, `sdhci_msm_set_vmmc()`, `msm_toggle_vqmmc()`, `sdhci_msm_runtime_resume()`, `sdhci_msm_runtime_suspend()`) and rebuilding `vmlinuz`/modules/DTBs so microSD probe and UHS-I tuning receive full `200 mA` / `20 mA` HPM without brownout (`-5`/`-110`) and idle runtime suspend drops `vmmc`/`vqmmc` to `2 mA`/`0 mA` PM8909 LPM.
- **Offline verification (`scripts/test-imsd-volte.py`, `scripts/test-standby-power-policy.py`, `scripts/check-rebuild.sh`, `BATTERY-OPTIMIZATION-ANALYSIS.md`)**: added host regression tests for Combined EPS/IMSI (`cs_attach=1`), `searching_lte`, and 0-packet `2.2 s` QRTR idle silence in `test-imsd-volte.py`; added host tests for `CPU_GOV_PATH` + idempotent `screenoff`/`screenon` across dark/cover-lit/open, `standby.mode`/`rat_timer.pid`, `bananarchy-dsds --sig-hysteresis` QMI `0x0045`/`0x0050` wire framing over `AF_UNIX` `SOCK_SEQPACKET`, and `30-bananarchy-network-status.sh` dark gating in `test-standby-power-policy.py`; guarded DTS/DTBs against `regulator-system-load` in `check-rebuild.sh`; and documented Section 24 in `BATTERY-OPTIMIZATION-ANALYSIS.md`.
- **Rebuilt local image SHA-256 checksums (`--mkinitfs`, no release `.zip` archives built yet)**:
- `images/bananarchy-nokia-argon.img`: `4f72a1156a2e9144386d82f10fc8078e90c69ed60446d0259dfbdf66362f47bc`
- `images/bananarchy-nokia-beatles.img`: `ac29427c8582049bc5fbaa504685442a997e260eb3f74d7b92d5b999f0f4a4fa`
- `images/boot-bananarchy-nokia-beatles.img`: `35aa314d1d21a401412794820416c21d1d22457671489dcf05410d39daf9f7da`
- `images/bananarchy-nokia-coconut.img`: `d7bcfffdc33fefa12f173b4b3664ae02ecb4850b9f7ccf096719f2d19a799772`
- `images/boot-bananarchy-nokia-coconut.img`: `8ffc67df915d27b286aaf0d82186f2d52719d27c67f954f7abafbd206331efc1`
- `images/bananarchy-nokia-sparkler.img`: `d3da5d807c8c53c4c6e153fa3a03155ec2d9e1a854ba29ed18d61dba77fb0174`
- `images/boot-bananarchy-nokia-sparkler.img`: `b46341849e509e71272a946829d3742881dbdb8ed33a58f6a6316288cbb8bb36`
- **Rebuilt local `a1125` (`ampere`) image SHA-256 checksums (`--mkinitfs`, no release `.zip` archives built yet)**:
- `images/bananarchy-nokia-argon.img`: `a0a02a8502736fae9c25de54cb8043231b2fd3ac488e123676cc8c3a35577ea1`
- `images/bananarchy-nokia-beatles.img`: `9703ab732bac535ad83862a89c71931a4c16704b685f1bca45c23d7ac066c341`
- `images/boot-bananarchy-nokia-beatles.img`: `7eab3dcf44ba01f044e9b6dba3f786aebe80a3380884966e6ecd5dafc455c16a`
- `images/bananarchy-nokia-coconut.img`: `5158dc6e545c975387ba29c44593afe2758a4cd926e0c43df90e8b79b72a6b37`
- `images/boot-bananarchy-nokia-coconut.img`: `d79b51d86344441f170b1ddf205b721b54ce8c995a66bb611670065911768347`
- `images/bananarchy-nokia-sparkler.img`: `90ff40226f344d280b7a9cca1d23fb587cc987255c375b57969b3fd415c786b4`
- `images/boot-bananarchy-nokia-sparkler.img`: `4e1ddbfd5acc8335cb3e3e50b3fef46b9c6fe93afdaa9c2c0826500e63b60adf`
---