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
@@ -193,7 +193,35 @@ def test_discoverability_and_power():
|
||||
require("discoverable-timeout 0" not in net_src and
|
||||
"discoverable-timeout 60" in net_src,
|
||||
"networks_plugin.cpp must use 60s discoverable timeout")
|
||||
print("[ok] Bounded 60s discoverability and hidden-by-default battery safeguard")
|
||||
|
||||
confd_bt = BASE / "overlay/rootfs/etc/conf.d/bluetooth"
|
||||
require(confd_bt.is_file(), "missing overlay/rootfs/etc/conf.d/bluetooth")
|
||||
confd_src = read(confd_bt)
|
||||
for tok in (
|
||||
"supervisor=supervise-daemon",
|
||||
"--noplugin=hfp,bap,bass,mcp,vcp,micp,csip,ccp,tmap,gmap,asha,midi,neard",
|
||||
'retry="TERM/3/KILL/1"',
|
||||
):
|
||||
require(tok in confd_src, f"etc/conf.d/bluetooth missing {tok}")
|
||||
|
||||
rec_lines = [ln for ln in main_src.splitlines() if ln.startswith("ReconnectUUIDs=")]
|
||||
require(len(rec_lines) == 1, "main.conf must define ReconnectUUIDs")
|
||||
rec_line = rec_lines[0]
|
||||
for forbidden in ("0000111f-", "00001112-", "0000110a-"):
|
||||
require(forbidden not in rec_line,
|
||||
f"main.conf ReconnectUUIDs must exclude gateway UUID {forbidden}")
|
||||
for keep in ("0000110b-", "00001108-", "0000111e-", "00001124-", "00001812-"):
|
||||
require(keep in rec_line, f"main.conf ReconnectUUIDs missing {keep}")
|
||||
|
||||
for tok in (
|
||||
"bluetoothctl disconnect",
|
||||
"btmgmt -i hci0 power off",
|
||||
"kill -KILL",
|
||||
"/run/bananarchy/bt-obex/ctrl_ready",
|
||||
"/run/bananarchy/bt-obex/bt_state.tsv",
|
||||
):
|
||||
require(tok in toggle_src, f"sxmo_bluetoothtoggle.sh missing clean stop step {tok}")
|
||||
print("[ok] Bounded 60s discoverability, BlueZ --noplugin guard, and clean power-off")
|
||||
|
||||
|
||||
def test_sco_audio_call_and_haptics():
|
||||
|
||||
Reference in new issue
Block a user