Fix bluetoothd CPU busy-loops, cache BT state, and refresh a1120 images
- Add /etc/conf.d/bluetooth (supervise-daemon, retry=TERM/3/KILL/1, --noplugin=hfp,bap,bass,mcp,vcp,micp,csip,ccp,tmap,gmap,asha,midi,neard) and drop gateway UUIDs (111f/1112/110a) from main.conf ReconnectUUIDs so Experimental = true keeps PreferredBearer without BlueZ hfp-hf/ATT EOF GMainLoop spins. - Set duplicate-data off in bananarchy-bt-scan.sh and update sxmo_bluetoothtoggle.sh to disconnect, btmgmt power off, and clean state files on disable so adapter_stop() never busy-loops on dual-bearer links. - Add single-shot BlueZ ObjectManager state caching (bt_state.tsv, dump-state, CTRL_READY_FILE, EPHEMERAL_DEV_PROPS filter) in bananarchy-bt-obex and consume it in networks.so instead of per-device bluetoothctl refresh storms. - Extend Bluetooth host tests and check-rebuild.sh, update docs, and rebuild/pin a1120 (cocojamboo) images and release archives for nokia-argon, nokia-beatles, nokia-coconut, and nokia-sparkler.
This commit is contained in:
1 parent
1e1fe7c317
commit
1e7077e314
15 files changed
+924
-282
No files matched your search
@@ -74,11 +74,13 @@ def main():
|
||||
if token not in wrapper:
|
||||
raise SystemExit("bluetoothctl wrapper is missing %s" % token)
|
||||
for token in ("script -q -c", "menu scan", "transport auto",
|
||||
"duplicate-data on", "scan on", "devices", "scan off",
|
||||
"duplicate-data off", "scan on", "devices", "scan off",
|
||||
"quit", "BANANARCHY_BT_SCAN_SECONDS",
|
||||
"bananarchy-bt-le-enable.sh"):
|
||||
if token not in helper:
|
||||
raise SystemExit("live scan helper is missing %s" % token)
|
||||
if "duplicate-data on" in helper:
|
||||
raise SystemExit("live scan helper must keep duplicate-data off to avoid bluetoothd flood")
|
||||
for token in ("usr/local/bin/bluetoothctl", "usr/bin/bananarchy-bt-scan.sh",
|
||||
"usr/bin/bananarchy-bt-le-enable.sh",
|
||||
"etc/doas.d/60-bananarchy-bluetooth.conf"):
|
||||
|
||||
Reference in new issue
Block a user