Trigger the screenlock daemon on idle screen blanking

This commit is contained in:
Luxferre committed 2026-11-10 12:51:15 +02:00
1 parent 77d95c715c
commit 5d859d7b11
11 files changed
+382 -12

No files matched your search

+4
View File
@@ -13,6 +13,10 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
Work since `a1108` has focused on reliable 2720 Flip hardware support and a reproducible boot/flash path. Earlier incremental and superseded diagnostic entries are consolidated here.
### Screenlock daemon on idle blank
- **Screenlock never triggered on blank**: dwm's native idle blanking called `bananarchy-idle-blank.sh off`, which only powered the panel down through `sxmo_wm.sh display off`. It never entered the Sxmo state machine, and the session no longer starts an `idle_locker` job, so `locker.so` received no `LOCK_BLANK` and the phone stayed unlocked after blanking. `bananarchy-idle-lock.sh` now arms a trusted `sxmo_state.sh set screenoff` transition after 30 seconds of dark panel (`xlocker screenoff` -> `LOCK_BLANK`), configurable with `bananarchy-idle-lock.sh get|label|set <seconds|off>` (`~/.config/sxmo/idle_lock_delay`; `0` locks immediately, `off` restores blank-without-passcode). `bananarchy-idle-blank.sh off/on`, `bananarchy-screen-wake.sh` and `sxmo_hook_unlock.sh` cancel the pending lock on every wake, and the transition is skipped if the panel is already back on, so a quick key press still returns to the unlocked desktop on `nokia-argon` as well as the 2720 Flip. `scripts/test-idle-blank-lock.py` exercises arming, cancellation and both wake paths against stubbed Sxmo commands, and `check-rebuild.sh` guards the wiring.
### Webarchy WebKit renderer
- **Unexpected WebKit error on the 2720 Flip**: `webarchy.so` used `setenv(..., "0")` for the WebKitGTK presence flags `WEBKIT_DISABLE_COMPOSITING_MODE`, `WEBKIT_DISABLE_DMABUF_RENDERER` and `WEBKIT_SKIA_ENABLE_CPU_RENDERING` while still requesting `WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS`. WebKitGTK treats the presence of those variables as "disable", so the WebProcess started with conflicting renderer state and died on every navigation, which WebKit reported as an "Unexpected WebKit error". `configureWebkitRenderer()` now unsets all three flags first, enables the CPU renderer only where required, and chooses `WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER` on `nokia,beatles` (and after the first WebProcess crash) while `nokia-argon` keeps `WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS` and WebGL. Create `~/.config/sxmo/webarchy_software_renderer` to force the software profile on any target. Load failures now report the GError domain/code in the browser status line instead of an opaque message. `scripts/check-rebuild.sh` guards the profile and the rebuilt `webarchy.so`.