Keep live BlueZ discovery client alive for real scans
The previous Bluetooth fix only proved parser behavior with a synthetic stream. Real BlueZ discovery needs one interactive client to stay alive while unpaired Device1 objects exist. Add a bluetoothctl wrapper and bananarchy-bt-scan.sh PTY session that powers on, sets auto/duplicate-data filters, queries devices during discovery, and stops discovery cleanly. Add util-linux-misc, host test, docs and rebuild guards. Deployed to the live phone; a physical peripheral in pairing mode is still needed for final confirmation.
This commit is contained in:
1 parent
f892531df6
commit
77127c7844
10 files changed
+232
-4
No files matched your search
@@ -13,6 +13,12 @@ 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.
|
||||
|
||||
### Live Bluetooth peripheral discovery
|
||||
|
||||
- **Synthetic-only regression**: the previous Bluetooth fix could find an injected `BT_PROBE` line but not real peripherals. Live diagnostics showed non-interactive `bluetoothctl --timeout 15 scan on` emitted only discovery-filter/controller messages, a separate `bluetoothctl devices` query after the scan client exited was empty, and `scan off` from another client failed with `org.bluez.Error.InProgress` while the original client still owned discovery. The synthetic test had bypassed this whole BlueZ client-lifetime path.
|
||||
- **Discovery path**: `overlay/rootfs/usr/local/bin/bluetoothctl` now intercepts only `scan on`/`scan bredr`/`scan le` and forwards every other command to `/usr/bin/bluetoothctl`. `bananarchy-bt-scan.sh` drives one interactive `bluetoothctl` session through `script(1)`, powers the controller on, sets `transport auto` and `duplicate-data on`, queries `devices` repeatedly while the same discovery client is active, then sends `scan off` and `quit`. The existing `networks.so` parser accepts both `[NEW] Device ...` stream lines and `Device <MAC> <Name>` list lines, so no plugin rebuild is needed. `util-linux-misc` is now explicit in the rootfs package set to provide `script(1)`.
|
||||
- **Guards and live status**: `scripts/test-bluetooth-live-scan.py` exercises the wrapper with a stub real `bluetoothctl` under a real PTY and verifies device-list output, clean shutdown, and non-scan forwarding; `check-rebuild.sh` guards the package, overlay installation, helper syntax and host test. The wrapper was deployed to the live phone. Final confirmation with a physical peripheral in pairing mode is still required; no push was performed.
|
||||
|
||||
### Live nokia-beatles plugin verification and WebKit GSettings schema fix
|
||||
|
||||
- **Stale live runtime**: the phone was still running the pre-fix `webarchy.so` (`3e3c3ac7...`) and `networks.so` (`97eaae44...`) from the baseline image, while `prebuilt/`, `overlay/rootfs/` and the local `rootfs/` already carried the rebuilt artifacts (`8eb1b493...` and `e12103ee...`). That is why the earlier repository fixes were not visible on the device. The current binaries were deployed, their hashes verified, and both resident plugins restarted.
|
||||
|
||||
Reference in new issue
Block a user