Fix Bluetooth discovery so scanned devices are listed
This commit is contained in:
1 parent
5d859d7b11
commit
6a6222c198
9 files changed
+276
-7
No files matched your search
@@ -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.
|
||||
|
||||
### Bluetooth scanning
|
||||
|
||||
- **Scan found no devices**: the Bluetooth tab ran `bluetoothctl --timeout 15 scan on` with stdout discarded and then queried `bluetoothctl devices` from a second process. BlueZ discovery belongs to the D-Bus client that started it: when the scanning client exits, discovery stops and unpaired devices may be removed before the follow-up query, so a fresh scan legitimately produced an empty list on the 2720 Flip's WCNSS controller. `networks.so` now captures the discovery stream, parses ANSI-coloured `[NEW]`/`[CHG]` device and name/alias lines (`parseBtScanDevices()`), merges them with the persistent `bluetoothctl devices` list, powers the controller on when `bluetoothctl show` reports `Powered: no`, and falls back to a plain `scan on` if `--timeout` is unsupported. `isBtEnabledFast()` no longer depends solely on `/run/bluetoothd.pid`. `scripts/test-bluetooth-scan.py` validates the parser on the host and `check-rebuild.sh` guards the rebuilt `networks.so`. The `nokia-argon` path keeps the same paired-device and OBEX behaviour.
|
||||
|
||||
### 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.
|
||||
|
||||
Reference in new issue
Block a user