Fix 2720 closed-flip call wakeups/preservation, live timezone sync, and Power menu

- Default CPU_RPM_SLEEP=0, CPU_L2_SLEEP=0, and MODEM_DRX_MODE=0 across bananarchy-power-policy.conf, bananarchy-power-policy.sh, bananarchy-display-power-sync, and kernel patch 0010 so closed-flip incoming calls wake APSS promptly via smd-edge without AT port contention.
- Serialize sxmo_modem.sh incoming/finished call checks, expire stale /tmp/sxmo_hangup_requested flags, re-verify live ModemManager call state before ringing/raising callscreen, guard idle/flip-open HANGUP_CLOSE paths in locker.so, callscreen.so, bananarchy-idle-lock.sh, and bananarchy-lid, preserve calls on flip-open (UNGRAB/RAISE), and add closed-flip cover call controls (bananarchy-cover-idle, bananarchy-cover-event.sh, bananarchy-volume-keys).
- Propagate live network/manual timezone updates across statusbar, locker.so, bananarchy-cover-idle, bananarchy-dsds, callscreen.so, and bananarchy-run-aligned without reboot (scripts/test-time-timezone-sync.py), remove non-functional Logout from the Power menu, ignore post-call sxmo_calls markers, add scripts/build-dwm-plugins.sh, and update a1114 (carbonara) hashes and docs.
This commit is contained in:
Luxferre committed 2026-11-14 10:57:29 +02:00
1 parent 786480a08f
commit 8b466ef8ae
110 files changed
+2728 -285

No files matched your search

+40 -22
View File
@@ -1287,17 +1287,20 @@ display controller active continuously without `CONFIG_SUSPEND`:
`ci_ulpi_resume()`'s `ULPI_SYNC_STATE` viewport poll when
`CI_HDRC_OVERRIDE_PHY_CONTROL` is set so cable hotplug resumes cleanly before
`CI_HDRC_CONTROLLER_RESET_EVENT` powers the ULPI PHY.
4. **Default dual-port `MODEM_DRX_MODE=6` and dark-screen `dsds-daemon` sleep**:
`bananarchy-power-policy.conf` defaults to `MODEM_DRX_MODE=6` while keeping
`DSDS_SECONDARY_MODE=active` so both SIMs stay reachable;
`msm-modem-uim-selection` adds `at all` multi-port support and `screen_is_idle()`
in `dsds-daemon` (`poll_timeout = None` whenever locked, cover-lit, or
backlight off); and `bananarchy-power-policy.sh` serializes AT port access
with `flock`, waits past `ModemManager`'s startup port probe at boot, and
re-applies `AT$QCDRX=6` across all `/dev/wwan0at*` ports on `modem-ready`
4. **Dual-port `AT$QCDRX` infrastructure and dark-screen `dsds-daemon` sleep
(`MODEM_DRX_MODE=0` safe shipping default)**:
`bananarchy-power-policy.conf` defaults to `MODEM_DRX_MODE=0` while keeping
`DSDS_SECONDARY_MODE=active` so both SIMs stay reachable via MPSS's native
DSDS paging scheduler (`Slot 2` UMTS + `Slot 1` GSM) without competing with
`ModemManager` (which holds both `/dev/wwan0at0` and `/dev/wwan0at1` open);
`6-9` remain opt-in. `msm-modem-uim-selection` adds `at all` multi-port
support and `screen_is_idle()` in `dsds-daemon` (`poll_timeout = None`
whenever locked, cover-lit, or backlight off); and
`bananarchy-power-policy.sh` serializes AT port access with `flock` and
applies `AT$QCDRX` across `/dev/wwan0at*` ports on `modem-ready`
(`sxmo_hook_modem.sh` `registered`/`connected` and post-PIN/switch
registration) with per-port devtmpfs inode caching in
`/run/bananarchy-power-policy/drx.<port>`.
registration) when `MODEM_DRX_MODE != 0`, with per-port devtmpfs inode
caching in `/run/bananarchy-power-policy/drx.<port>`.
5. **MIPI DCS `DISPOFF` + `SLPIN` on `panel-mipi-dbi` DPMS off**:
`panel_mipi_dbi_disable()` sends `0x28` (`msleep(20)`) and `0x10`
(`msleep(50)`) under `drm_dev_enter()` after `backlight_disable()`, halting
@@ -1438,12 +1441,12 @@ vMPM timer programming or last-man L2 SAW2 shutdown.
fixes SAW2 v3.0 `0x3B` / `PC_MODE` / `SLP_CMD_MODE` indexing and XPU-locked
L2 readback guards, guards `qcom_mpm_handler()` against `NULL` `irq_desc`
mappings for pre-enabled MPM pins (`49`, `58`, `62`), keeps per-CPU SPM in
`PM_SLEEP_MODE_SPC` even when `l2_sleep=0`, and teaches
`cpuidle-qcom-spm` to enter APSS RPM/vMPM sleep (`rpm_sleep=1`,
`rpm_min_residency_us=3000`) and L2 SAW2 collapse (`l2_sleep=1`,
`QCOM_SCM_CPU_PWR_DOWN_L2_OFF`) when the last online CPU enters idle, gated on
`PM_SLEEP_MODE_SPC` even when `l2_sleep=0`, and supports opt-in
`cpuidle-qcom-spm` APSS RPM/vMPM sleep (`rpm_sleep`, `rpm_min_residency_us=3000`)
and L2 SAW2 collapse (`l2_sleep`, `QCOM_SCM_CPU_PWR_DOWN_L2_OFF`) when the last
online CPU enters idle, gated on
`/sys/module/cpuidle_qcom_spm/parameters/screen_off` (toggled by
`bananarchy-display-power-sync` and `bananarchy-power-policy.sh`) plus
`bananarchy-display-power-sync` only when `rpm_sleep=Y`) plus
`qcom_msm8909_gdsc_is_active()` in `gcc-msm8909.c` so RPM/L2 collapse never
fires while `oxili_gdsc`/`mdss_gdsc`/`venus_gdsc`/`vfe_gdsc` or the panel
are active, uses `ktime_sub(tick_nohz_get_next_hrtimer(), ktime_get())` to
@@ -1478,13 +1481,28 @@ vMPM timer programming or last-man L2 SAW2 shutdown.
and `50-device-*.conf` fragments so `blsp1_uart1_apps_clk` no longer holds
`gpll0` (`enable_count = 0`).
4. **Runtime policy & telemetry additions (`bananarchy-power-policy.conf` /
`.sh`)**: added `CPU_RPM_SLEEP=1`, `CPU_L2_SLEEP=1`,
`WIFI_SCREEN_OFF_IPV6_MUTE=1` (mutes unsolicited IPv6 RAs on `wlan0` during
screen-off whenever `wlan0` already holds an IPv4 address, restored on wake),
and opt-in `WIFI_STANDBY_RAT=keep|gsm` (parks QMI NAS mode preference to GSM
after 30 s dark while `wlan0` is `up`, restored on wake), plus `status`
readouts for `cpuidle_qcom_spm`, `/sys/kernel/debug/qcom_stats/*`, and
`/sys/kernel/debug/qcom_rpm_master_stats/*`.
`.sh`)**: added `CPU_RPM_SLEEP=0`, `CPU_L2_SLEEP=0`, and `MODEM_DRX_MODE=0`
safe shipping defaults alongside `WIFI_SCREEN_OFF_IPV6_MUTE=1` (mutes
unsolicited IPv6 RAs on `wlan0` during screen-off whenever `wlan0` already
holds an IPv4 address, restored on wake), opt-in `WIFI_STANDBY_RAT=keep|gsm`
(parks QMI NAS mode preference to GSM after 30 s dark while `wlan0` is `up`,
restored on wake), plus `status` readouts for `cpuidle_qcom_spm`,
`/sys/kernel/debug/qcom_stats/*`, and `/sys/kernel/debug/qcom_rpm_master_stats/*`.
Live telemetry on a dual-SIM `nokia-beatles` (`2720 Flip`) showed that
with `# CONFIG_SUSPEND is not set`, `QCOM_SCM_CPU_PWR_DOWN_L2_OFF` collapsed
L2, SCU, and the APSS GIC while `apss_master_stats` stayed at `Count: 0`;
because `vMPM` does not route internal SoC GIC SPIs (`GIC-0 57 smd-edge`,
`GIC-0 166 ci_hdrc_msm`, `GIC-0 178 wcn36xx_rx`), `L2_OFF` black-holed
closed-flip incoming call interrupts until the flip opened (`gpio36` -> `mpm`)
and delayed USB/Wi-Fi traffic until minute-aligned timers. Meanwhile,
`ModemManager` holds both `/dev/wwan0at0` and `/dev/wwan0at1` open, so
`AT$QCDRX` writes from `bananarchy-power-policy.sh` contended with
`ModemManager`'s AT parser. Keeping `CPU_RPM_SLEEP=0`, `CPU_L2_SLEEP=0`, and
`MODEM_DRX_MODE=0` default preserves `< 0.2 ms` per-core `SPC` (`L2_ON`)
wakeup on every GIC SPI and MPSS native DSDS paging while keeping
`wcn36xx` `screen_off_offload`, IPv6 RA mute, Adreno `0 KB/s` BIMC/GDSC
idle, `wcd-digital` runtime autosuspend, unclaimed PM8909 LDO cleanup, and
`ttyMSM0` disable active.
5. **Compiled C11 autostart daemons (`bananarchy-dsds`, monitors, session)**:
replaced `python3 - dsds-daemon`, `sxmo_modemmonitor.sh`,
`sxmo_soundmonitor.sh` (`evtest`), `sxmo_notifs.sh monitor` (`inotifywait`),