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

+2 -1
View File
@@ -20,7 +20,8 @@
### System and hardware support
- **Mainline Linux 6.12 kernel**: custom patches and out-of-tree drivers for Qualcomm **Adreno 304 (`FD304`, 96 KB GMEM)** 3D GPU acceleration (`drm/msm` + `qcom-iommu`), Qualcomm QDSP6/Q6Voice audio routing, Dual-SIM modem control, the rear 2MP GalaxyCore `GC2395` / `GC2385` / `GC2365` camera (`/dev/video0`), the `SY7807` flashlight LED (`white:torch`), physical keypad/slider events, and clean PM8909 poweroff. The kernel image is built from `config-bananarchy-msm8909.armv7` with the known-good pmaports module ABI, and ships with idle-blanking power management; `BATTERY-OPTIMIZATION-ANALYSIS.md` records the measured idle state and explains why suspend-to-RAM is unavailable on this firmware (PSCI `SYSTEM_SUSPEND` missing) and why a full custom module tree rebuild is not worthwhile. Section 17 adds the `a1108` re-analysis and two low-risk wins: the active zram swap now uses `lz4` instead of `zramstart`'s `zstd` default, and `vm.compaction_proactiveness=0` removes ~2 `kcompactd0` wakeups/s. Section 18 replaces the idle `nmcli device monitor` poller with NetworkManager dispatcher hooks and records the kernel/VFS tweaks that were A/B tested and rejected, while sections 19-21 add event-driven compiled C11 idle and autostart daemons, MSM8909 RPM interconnect bus scaling (`BIMC`/`PCNOC`/`SNOC`), live WCN3620 screen-off firmware offloads, ChipIdea USB runtime PM while unplugged, `panel-mipi-dbi` DPMS sleep, and dual-port DSDS standby power policy (with opt-in `AT$QCDRX` paging). Runtime Wi-Fi listen-interval, modem DRX and DSDS secondary-SIM power policies are configurable in `/etc/bananarchy-power-policy.conf`; see `MANUAL.md`.
- **Target-correct camera orientation**: the V4L2 demosaic path rotates frames 180 degrees on `nokia-beatles`, `nokia-sparkler`, and `nokia-leo`, correcting those targets' sensor mounting directly at `/dev/video0` for the viewfinder, saved photos, and third-party V4L2 consumers without an extra frame-buffer copy, while `nokia-argon` and `nokia-coconut` retain their upright orientation.
- **Target-correct camera orientation and system-core keypad debouncing**: the V4L2 demosaic path rotates frames 180 degrees on `nokia-beatles`, `nokia-sparkler`, and `nokia-leo`, correcting those targets' sensor mounting directly at `/dev/video0` for the viewfinder, saved photos, and third-party V4L2 consumers without an extra frame-buffer copy, while `nokia-argon` and `nokia-coconut` retain their upright orientation. At the kernel `input_core` layer (`0014-input-core-keypad-debouncer.patch`), a zero-latency post-release chatter debouncer (`/sys/module/input_core/parameters/key_debounce_ms`, defaulting at boot to `55 ms` on `nokia-argon`/`nokia-sparkler`/`nokia-leo` and `45 ms` on `nokia-beatles`/`nokia-coconut`), combined with `col-scan-delay-us = <50>` (`matrix_keypad`), `pm8941-pwrkey` release chatter holdoff, and `xset r rate 300 25`, suppresses mechanical dome double-presses while keeping `uinput`, Bluetooth HOGP/AVRCP, and USB HID untouched.
- **Speaker-LRA haptic isolation on Nokia 8000 4G (`nokia-sparkler`)**: on devices that drive haptics over `SPK_DRV` (`RX3`) with a 157 Hz speaker-LRA (`nokia,sparkler`, `nokia,leo`), `xmusic`, `xfiles`, `xringtones`, and standalone `mpv` dynamically notch out the 157 Hz LRA resonance (`highpass=f=260` + `bandreject=f=157`) when outputting on `Speaker` while keeping full-range bass on `Headphones` and `Bluetooth` and zeroing `RX3` on `Earpiece`/`Headphones`/`Bluetooth` (`sxmo_audio.sh`), leaving `sxmo_vibrate` (`157.0 Hz`) calibration untouched.
- **High-brightness display and reliable flip handling**: the 2720 Flip internal panel uses a live-verified 25 MHz SPI clock to prevent corruption when backlight PWM exceeds the former 71% threshold, without reducing the brightness range. The compiled lid daemon combines event-driven `EV_SW` handling with 200 ms raw-hall reconciliation, so missed edges or stale switch state cannot leave the phone awake when closed.
- **Stock-signed Wi-Fi, Bluetooth, and modem firmware**: `msm-firmware-loader` mounts the phone's `modem` and `persist` partitions before udev, supplies `wcnss.mdt`, `mba.mbn`, and the device-specific WCNSS NV data to the mainline remote processors, and preserves the factory radio calibration and MAC addresses. The sysinit and boot service links are shipped explicitly so clean, `--no-scripts` image builds bring up both `wlan0`/`wcn36xx` and `hci0`/`btqcomsmd` without packaging device-specific firmware blobs.
- **Alpine Linux Edge base**: full access to the Alpine package ecosystem with `< 95 MB` idle RAM usage on 512 MB devices and full local root access out of the box.