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:
Luxferre committed 2026-11-18 06:34:13 +02:00
1 parent 1e1fe7c317
commit 1e7077e314
15 files changed
+924 -282

No files matched your search

@@ -25,8 +25,6 @@ on() {
if [ -s /etc/bananarchy/bt_mac ] && [ -x /usr/bin/bananarchy-engmenu-ctl ]; then
/usr/bin/bananarchy-engmenu-ctl apply-boot >/dev/null 2>&1 || true
fi
/usr/bin/bananarchy-bt-le-enable.sh >/dev/null 2>&1 || true
timeout 2 /usr/bin/btmgmt -i hci0 class 2 3 >/dev/null 2>&1 || true
timeout 2 bluetoothctl power on >/dev/null 2>&1 || true
/usr/bin/bananarchy-bt-le-enable.sh >/dev/null 2>&1 || true
timeout 2 /usr/bin/btmgmt -i hci0 class 2 3 >/dev/null 2>&1 || true
@@ -63,6 +61,8 @@ on() {
off() {
/usr/bin/bananarchy-bt-obex stop >/dev/null 2>&1 || true
timeout 2 bluetoothctl disconnect >/dev/null 2>&1 || true
timeout 2 /usr/bin/btmgmt -i hci0 power off >/dev/null 2>&1 || true
if [ -d /run/systemd/system ]; then
systemctl stop bluetooth
systemctl disable bluetooth
@@ -70,7 +70,12 @@ off() {
rc-service bluetooth stop
rc-update del bluetooth
fi
btpid="$(pidof -s bluetoothd 2>/dev/null || true)"
if [ -n "$btpid" ]; then
kill -KILL $(pidof bluetoothd) 2>/dev/null || true
fi
rfkill block bluetooth
rm -f /run/bananarchy/bt-obex/ctrl_ready /run/bananarchy/bt-obex/bt_state.tsv 2>/dev/null || true
}
case "${1:-toggle}" in