Fix idle-blank wake race and PIN-locked SIM DSDS provisioning
Two issues reported after the recovery image booted: 1. Pressing the power key turned the screen on and immediately back off. Root cause: U1 used sxmo_idle.sh + xprintidle, but dwm consumes keypad events at the evdev level before X sees them, so the X idle counter never reliably reset and the blank/resume commands raced. Replaced it with a dwm-native idle timer (src/sxmo-dwm/dwm.c): last_input_ms is updated from evdev and X key events, poll() is armed with the SXMO_UNLOCK_IDLE_TIME deadline (default 60 s), bananarchy-idle-blank.sh off fires once, and wake_phone() clears idle_blanked and resets the timer on the next real key. sxmo.noidle still disables it; idle_locker was removed from sxmo_hook_unlock.sh. Added a defensive wake-grace guard to bananarchy-idle-blank.sh and a /tmp/bananarchy_last_wake timestamp in sxmo_wm.sh display on so an already-flashed device is fixed too. 2. A PIN on one SIM prevented the other SIM from registering. provision_slot() tried to bind the preferred slot to primary-gw-provisioning even when its app was pin1/puk1 or PIN1 state enabled-not-verified, so no session came up and neither subscription registered. It now detects a locked preferred slot and falls back to the other ready slot for the primary GW; verify-pin/xmodem re-run boot after unlock and provision both slots normally. Verified on the connected phone: all three deployed scripts pass sh -n, all 5 embedded Python heredocs parse, SIM status still reports both slots registered, and off -> on -> immediate off leaves the screen on (grace guard). Rebuilt dwm/plugins and images/bananarchy-nokia-argon.img with --mkinitfs; boot.img still contains the known-good zImage + DTB byte-for-byte. check-rebuild.sh passes and artifact drift is 0. Docs: CHANGELOG.md, MANUAL.md, BATTERY-OPTIMIZATION-ANALYSIS.md (section 12).
This commit is contained in:
1 parent
0dbb37fba3
commit
22d629f59b
10 files changed
+138
-12
No files matched your search
@@ -9,6 +9,34 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
|
||||
---
|
||||
|
||||
## Unreleased — idle-blank wake fix and PIN-locked SIM provisioning
|
||||
|
||||
Two issues reported after the recovery image booted:
|
||||
|
||||
- **Idle blank turned the screen back off immediately after a wake (U1)**:
|
||||
`sxmo_hook_unlock.sh` used `sxmo_idle.sh` + `xprintidle`, but dwm consumes
|
||||
keypad events at the evdev level before X sees them, so the X idle counter
|
||||
never reliably reset and the blank/resume commands raced. Idle blanking is
|
||||
now driven by dwm's own input timer: `src/sxmo-dwm/dwm.c` tracks
|
||||
`last_input_ms` from evdev and X key events, arms `poll()` with the
|
||||
`SXMO_UNLOCK_IDLE_TIME` deadline (default 60 s), calls
|
||||
`bananarchy-idle-blank.sh off` once, and `wake_phone()` clears the flag and
|
||||
resets the timer on the next real key press. `sxmo.noidle` still disables it.
|
||||
The `idle_locker` job was removed from `sxmo_hook_unlock.sh`. A defensive
|
||||
wake-grace guard was also added to `bananarchy-idle-blank.sh` (and
|
||||
`sxmo_wm.sh display on` records `/tmp/bananarchy_last_wake`) so the
|
||||
legacy path cannot re-blank within 10 s of a wake on an already-flashed
|
||||
device. Verified live: `off -> on -> immediate off` leaves the screen on.
|
||||
- **PIN on one SIM prevented the other SIM from registering (DSDS)**:
|
||||
`msm-modem-uim-selection provision_slot` tried to bind the preferred slot to
|
||||
`primary-gw-provisioning` even when its application was `pin1`/`puk1` (or
|
||||
`PIN1 state: enabled-not-verified`), so no provisioning session came up and
|
||||
neither subscription registered. It now detects a locked preferred slot and
|
||||
falls back to the other *ready* slot for the primary GW; after the PIN is
|
||||
entered `xmodem`/`verify-pin` re-runs `boot` and both slots are provisioned.
|
||||
|
||||
---
|
||||
|
||||
## Unreleased — recovery: restore the known-good kernel (module ABI)
|
||||
|
||||
**The previous battery pass produced an unbootable image.** Two independent incompatibilities
|
||||
|
||||
Reference in new issue
Block a user