[5.2.0.22][Jolla Phone 2026] Paired Bluetooth headsets cannot reconnect: adapter is non-connectable (Connectable=false) after every Bluetooth power-on

REPRODUCIBILITY: 100 %
OS VERSION: 5.2.0.22 (Finlayson)
HARDWARE: Jolla Phone 2026 (JP2601), bluez5-5.87+git3-1.17.1.jolla
UI LANGUAGE: French
REGRESSION: Probably. The same symptom was reported for the Xperia 10 III in No bluetooth auto connect on Xperia 10 III, tagged fixed in 4.4.0.68.

DESCRIPTION:

A paired and trusted Bluetooth headset never reconnects to the phone by itself. Two cases:

  1. Bluetooth on, headset switched off and on again: the headset says “power on”, then nothing happens. Android phones reconnect the same headset within seconds.
  2. Bluetooth switched off and on in the phone UI while the headset stays on: the headset says “disconnected” and is never reconnected.

In both cases, a manual connect from Settings > Bluetooth works at once, which shows the pairing is still valid on both sides.

Root cause (verified on the device)

After every Bluetooth power-on, the adapter is non-connectable, while visibility is off as by default:

busctl get-property org.bluez /org/bluez/hci1 org.bluez.Adapter1 Connectable   → b false
busctl get-property org.bluez /org/bluez/hci1 org.bluez.Adapter1 Discoverable  → b false

This is upstream BlueZ behaviour. With kernel connection control (KERNEL_CONN_CONTROL), src/adapter.c in 5.87 clears the connectable setting at power-on and relies on the kernel accept list to keep accepting connections from bonded devices.

The bonded headset is in that list (/sys/kernel/debug/bluetooth/hci1/device_list shows 88:05:e7:20:6b:b7 (type 0)). But on the Jolla Phone 2026, with the virtual hci1 controller, no incoming connection ever reaches bluetoothd. With bluetoothd debug logging enabled (SIGUSR2), there is not a single incoming connection event when the headset is powered on.

Setting the adapter connectable by hand fixes case 1 immediately: the headset reconnects by itself in about 14 s, with no action on the phone.

busctl set-property org.bluez /org/bluez/hci1 org.bluez.Adapter1 Connectable b true

Visibility stays off (Discoverable=false), so the phone is still hidden from scans.

Case 2 is a separate gap: neither BlueZ nor the Sailfish UI reconnects known audio devices when Bluetooth is switched back on. The headset has given up while the phone was off. Android does this reconnect itself.

PRECONDITIONS:

  • Headset paired and trusted (here a generic “V618” neckband headset, A2DP + HFP).
  • Bluetooth visibility off (default).

STEPS TO REPRODUCE:

Case 1:

  1. Bluetooth on, headset connected.
  2. Switch the headset off.
  3. Switch the headset on again.

Case 2:

  1. Bluetooth on, headset connected and left on.
  2. Switch Bluetooth off in the top menu or Settings.
  3. Switch Bluetooth on again.

EXPECTED RESULT:

The headset reconnects automatically within a few seconds, as on Android.

ACTUAL RESULT:

The headset is never reconnected; a manual connect is needed every time. Adapter1.Connectable is false.

MODIFICATIONS:

  • A few Patchmanager patches and OpenRepos/Chum apps, none related to Bluetooth.
  • The workaround described below, installed after the analysis.

ADDITIONAL INFORMATION:

Workaround: a small systemd service running as root. On every Bluetooth power-on (Adapter1 Powered → true), on bluetoothd restart and at boot, it does two things:

  • sets Connectable=true, and sets it again if it drops back to false;
  • calls Device1.Connect() on paired and trusted audio devices (A2DP/HFP/HSP UUIDs), with a few retries.

Results with the workaround:

  • headset switched off and on: it reconnects by itself in about 14 s;
  • Bluetooth switched off and on: the headset reconnects in about 4–11 s.

I can share the script if useful.

Suggested fixes:

  • keep the adapter connectable while bonded BR/EDR devices exist, or find out why the kernel accept-list path does not accept incoming connections on this hardware;
  • add an Android-like reconnect of known audio devices when Bluetooth is switched on.

Note: this analysis was done with the help of Claude (an AI assistant) under my supervision. Every finding above was checked on my own device, and all decisions and testing were mine.

I’ve got the same öriblem: Devices once paired cannot be onnected ro anymore.

I had the same problem on 5.2.0.22 with Sennheiser MOMENTUM 4 and can confirm your diagnosis. With btmon running, the headphones sent no connection request at all after being switched on. With Connectable set to true, their own connection request arrived and A2DP and HFP came up in about 15 seconds.

I fixed it with a small user service made with Claude’s help. It keeps Connectable on and connects paired headsets when Bluetooth is turned on. One thing to watch out for: a paired computer also offers A2DP, so filtering by UUIDs alone also connects the computer. I check that the device icon is audio-* as well.

Still, this really should be fixed in Sailfish OS.

I also encounter this with AirPods Pro but I need to unpair (forget) them to get them to pair again manually.

@Cahoots — your AirPods symptom (having to forget and re-pair) matches what I describe below; please check whether “Send incoming pairing requests to AppSupport” is enabled on your phone.

Update: second and more serious cause found — with “Send incoming pairing requests to AppSupport” enabled, the headset’s own reconnection is handed to the Android stack, which destroys the pairing

Since the first post, the headset lost its pairing three times (25/11, night of 28→29/11, and this morning). Each time it had to be removed and paired again. I traced it this morning, and it is not a headset problem: the same headset never loses its pairing with Android phones. The cause is on the phone side, in the AppSupport Bluetooth bridge.

Short version

  • Setting: Settings > Bluetooth > Send incoming pairing requests to AppSupport (PairTargetAppSupport=true in /etc/appsupport-bridge-bt.conf, enabled on my device).
  • When the headset is switched on, it calls the phone by itself, which is the normal way a bonded headset reconnects.
  • appsupport-bridge-bt forwarded that incoming connection to the Android Bluetooth stack instead of BlueZ, although the headset is paired with Sailfish (BlueZ) only.
  • Android does not know the headset and has no link key, so authentication fails with HCI_ERR_KEY_MISSING.
  • After that failure the headset deletes its link key. From then on, every connection attempt from BlueZ fails with br-connection-key-missing until the device is removed and paired again.
  • With the setting switched off, the same power-on is handed to BlueZ, the headset reconnects by itself in 11 s and keeps its key.

Setup

Item Value
Phone Jolla Phone 2026 (JP2601), Sailfish OS 5.2.0.22
BlueZ bluez5-5.87+git3-1.17.1.jolla, controller hci1
Bridge appsupport-bridge-bt-0.9.8-1.6.1.jolla
AppSupport running, com.android.bluetooth active
Headset generic “V618” neckband (model ZL014), BR/EDR only, A2DP + HFP + AVRCP, address 88:05:E7:20:6B:B7
Headset pairing Sailfish only: present in /var/lib/bluetooth/<adapter>/88:05:E7:20:6B:B7/, absent from Android’s bt_config.conf
Workaround from the first post installed (adapter forced Connectable=true, reconnect of trusted audio devices on Bluetooth power-on)

Behavioural analysis, step by step

1. The headset loses its pairing; the phone keeps it

This morning at 10:58 I checked the state before the test, with the headset switched off:

Adapter1.Powered      = true
Adapter1.Connectable  = true      (forced by the workaround)
Device1.Paired        = true
Device1.Trusted       = true
Device1.Connected     = false
link key in /var/lib/bluetooth/…/88:05:E7:20:6B:B7/info : present, unchanged since the pairing of 00:47

The headset was switched on at about 10:59. It announced “power on” but never connected. At 11:00:14 I asked BlueZ to connect:

busctl call org.bluez /org/bluez/hci1/dev_88_05_E7_20_6B_B7 org.bluez.Device1 Connect
→ br-connection-key-missing

bluetoothd (debug logging on):

11:00:14 src/adapter.c:bonding_attempt_complete() hci1 bdaddr 88:05:E7:20:6B:B7 type 0 status 0xe
11:00:14 src/device.c:device_bonding_failed() status 14
11:00:14 src/profile.c:record_cb() Unable to get hfp_ag SDP record: Input/output error
11:00:14 src/adapter.c:dev_disconnected() Device 88:05:E7:20:6B:B7 disconnected, reason 2

The phone still had its link key, but the headset refused it: the headset had forgotten the pairing. The same thing happened on 25/11 and on the night of 28→29/11 (bonding status 0x0e at 00:45).

2. No other device paired with the headset in between

To rule out the usual cause (the headset keeps only a few pairings and overwrites the oldest), I checked every device that could have paired with it: my Linux laptop, the Android side of the phone (/home/.appsupport/instance/defaultuser/data/misc/bluedroid/bt_config.conf) and the TV. None of them knows 88:05:E7:20:6B:B7. The headset has also never had this problem with Android phones. So the pairing is destroyed by something that happens on the Jolla.

3. What actually happened at 10:59: the Android stack received the headset

The AppSupport logcat (lxc-attach --lxcpath=/tmp/appsupport -n defaultuser -- /system/bin/logcat -d -b all) shows that the headset’s connection at power-on was handled by Android, not BlueZ:

10:59:00.336 I/droid.bluetooth: classic_impl.h:674 on_role_change: Role change for xx:xx:xx:xx:6b:b7 with no matching connection (new role: CENTRAL(0x00))
10:59:00.352 I/bt_bta_dm:       bta_dm_act.cc:723 bta_dm_acl_up: Acl connected peer:xx:xx:xx:xx:6b:b7 transport:BT_TRANSPORT_BR_EDR handle:50
10:59:00.353 W/BluetoothRemoteDevices: aclStateChangeCallback: device is NULL, address=XX:XX:XX:XX:6B:B7, newState=0
10:59:00.366 I/droid.bluetooth: remote_name_request.cc:118 actually_start_remote_name_request: Starting remote name request to xx:xx:xx:xx:6b:b7
10:59:00.395 I/smp:             smp_l2c.cc:281 smp_br_connect_callback: BDA:xx:xx:xx:xx:6b:b7 pairing_bda:00:00:00:00:00:00, connected:false
10:59:00.597 W/bt_btm_sec:      btm_sec.cc:3910 btm_sec_disconnected: Got uncommon disconnection reason:HCI_ERR_KEY_MISSING handle:0x0032
10:59:00.597 I/bluetooth-a2dp:  btif_av.cc:863 btif_av_find_peer: Unable to find the peer xx:xx:xx:xx:6b:b7

Meanwhile on the Sailfish side, the journal shows only one bridge line and no connection at all in bluetoothd:

10:59:00.404 appsupport-bridge-bt: unexpected remote name request complete; sending to BlueZ

My reading of the sequence, in under 300 ms:

  1. The headset pages the phone (incoming HCI Connection Request).
  2. The bridge forwards the request to AppSupport. Android accepts the ACL link and takes the central role (bta_dm_acl_up).
  3. Android has no record of the device (device is NULL).
  4. The headset starts authentication with the key it still holds. The controller asks the host for the link key, and Android has none, so it replies negatively.
  5. The link drops with HCI_ERR_KEY_MISSING (HCI 0x06, PIN or Key Missing).
  6. The headset concludes that the phone has dropped the pairing and deletes its own key. Many headsets do this; I cannot see inside the headset, but the result is certain: from 11:00 on it refuses the key BlueZ still holds.

This also explains why the bonded headset never reached bluetoothd in the first post’s “case 1”: it was not only the Connectable=false problem. At least sometimes, the call was going to the wrong stack.

4. Same test with the setting off: the headset reaches BlueZ and keeps its key

After pairing again (11:04, new key), I switched the setting off. The method is the same D-Bus call the Settings switch uses, and it persists to the config file:

busctl call com.jolla.appsupport.bridge_bt /com/jolla/appsupport/bridge_bt \
     com.jolla.appsupport.bridge_bt changePairTargetToAppSupport b false
isAppSupportThePairTarget → false ;  /etc/appsupport-bridge-bt.conf → PairTargetAppSupport=false

Then I switched the headset off (11:14:56) and on again:

11:15:02.851 appsupport-bridge-bt: unexpected connection completed event, falling back to bdaddrs
11:15:02.910 bluetoothd: src/adapter.c:connected_callback() hci1 device 88:05:E7:20:6B:B7 connected eir_len 11
11:15:02.982 bluetoothd: profiles/audio/a2dp.c:confirm_cb() AVDTP: incoming connect from 88:05:E7:20:6B:B7
11:15:03.065 bluetoothd: src/profile.c:ext_confirm() incoming connect from 88:05:E7:20:6B:B7
11:15:03.066 bluetoothd: src/profile.c:ext_auth() 88:05:E7:20:6B:B7 authorized to connect to hfp_ag
11:15:03.071 bluetoothd: hfp_ag state changed: connecting -> connected
11:15:03.454 bluetoothd: a2dp-sink state changed: disconnected -> connected

The headset itself made the connection (all the incoming connect lines), BlueZ handled it, HFP, A2DP and AVRCP came up in about 1 s, and the link key was unchanged afterwards. Nothing appeared in the Android logcat for this address.

5. Timeline

Time (29/11) Setting Event Result
00:47 on headset paired again from Sailfish key stored on both sides
01:25 on headset off/on, adapter forced connectable reconnected by itself in 14 s through BlueZ (first post)
10:58 on checks: paired, trusted, connectable, key present —
10:59:00 on headset switched on, call forwarded to Android HCI_ERR_KEY_MISSING, headset deletes its key
11:00:14 on Connect() from BlueZ br-connection-key-missing
11:04 on removed and paired again new key
11:13 off changePairTargetToAppSupport false persisted
11:15:02 off headset off/on call handled by BlueZ, reconnected in 11 s, key kept

At 01:25 the setting was on and the call still reached BlueZ. So with the setting on, where the call goes seems to depend on the bridge’s internal state, and the failure is intermittent rather than systematic. A likely explanation is that the bridge still had the device in a short-lived “recent BlueZ connection” list after the 00:47 pairing and the 01:09 connect, but I have not proven this. That intermittency would explain why the pairing survives for hours or a day and then suddenly disappears.

6. What the bridge does with an incoming connection

This part comes from the bridge’s own log messages and its D-Bus interface, plus a quick look at the binary’s strings and call flow. Take it as a strong hint, not a source-code reading.

For an incoming HCI Connection Request (event 0x04), the bridge appears to choose in this order:

  1. the address belongs to a connection BlueZ itself started → BlueZ;
  2. the address belongs to a pairing an Android app started (createBond, “bond routing”) → AppSupport;
  3. otherwise, “unexpected connection request; falling back to bonds”: the bridge looks up a list of addresses, and also queries org.bluez (GetManagedObjects on /org/bluez/hci1), but the final target is the pair target, which is AppSupport when the setting is on.

So a device bonded only with BlueZ that reconnects on its own (headsets, car kits, speakers, keyboards) falls into case 3 and is sent to Android whenever the setting is on. In that case, being known to BlueZ does not seem to change the result.

There may be a related detail. The bridge rebuilds the address as a string with QString::number(byte, 16) plus toLower(), which gives 88:5:e7:20:6b:b7 (lowercase, no leading zero). It then compares that string case-sensitively with a QStringList. If that list holds addresses in the usual 88:05:E7:… form, the lookup can never match. I have not confirmed this.

7. What is and is not affected

  • Pairing started on the phone (Sailfish Settings): fine. BlueZ starts it and the result is routed to BlueZ.
  • Pairing started by an Android app (createBond): handled by case 2, routed to AppSupport. Switching the setting off does not affect it.
  • A device bonded with Sailfish that reconnects by itself: routed to Android when the setting is on. The device gets the wrong stack, fails authentication and, depending on its firmware, deletes its pairing. My headset does.
  • With the setting off, only a device that asks on its own to pair with an Android app (rare) would now go to Sailfish.

Expected behaviour

An incoming connection from a device bonded with BlueZ should always go to BlueZ, whatever the pair-target setting. The pair target should only decide where connections from unknown devices go, which is what its description says: “incoming pairing requests”. The bridge should not need to copy pairings into Android. It only needs to route each address to the stack that holds its link key.

Suggested fix

  • In the connection-request path, check BlueZ’s bonded devices (Device1.Paired/Bonded, or /var/lib/bluetooth) before falling back to the pair target, and route bonded BlueZ devices to BlueZ.
  • Possibly also: when Android answers a Link Key Request negatively for an address that BlueZ has bonded, the bridge could intercept it instead of letting it reach the remote device. That negative answer is what makes the headset delete its key.
  • Check the address formatting/comparison above.

Workaround for users

Switch off Settings > Bluetooth > Send incoming pairing requests to AppSupport. Since then (11:13), the headset reconnects by itself and has kept its pairing. I will report back after a few days of normal use, including overnight power-offs.

Summary of the two issues in this topic

  1. (first post) After Bluetooth power-on the adapter is Connectable=false, so bonded devices cannot call in at all. Worked around by forcing Connectable=true.
  2. (this post) When they can call in and the AppSupport pair target is on, the bridge may hand them to Android. Android fails authentication and the device deletes its pairing. Worked around by switching the pair target off.

AI disclosure: prepared interactively with Claude Code (Anthropic’s AI coding assistant). Every action was requested, reviewed and approved by me; nothing was decided or published autonomously. All logs above come from my own device and were checked by me.

@jmpx448 — thanks for bt-reconnect. It does the same thing as the workaround from my first post (keep Connectable on, reconnect trusted audio devices when Bluetooth comes back, skip computers), and it already ships as an RPM.

So I won’t publish my own package, to keep one tool and avoid splitting the effort. Instead I’ve opened a pull request on yours: bt-reconnect: connect one device at a time; note on the AppSupport pairing setting by bigbob-fun · Pull Request #1 · jmpx448/sailfishos-patches · GitHub

  • Connect one device at a time. The controller pages only one device at a time, so connecting all paired audio devices in parallel let an out-of-range car kit make the headset’s first try fail. The devices are now tried in turn, one try per device per round.
  • Only one reconnect round at a time. “Bluetooth on” and the adapter appearing could both start a round.
  • README note on “Send incoming pairing requests to AppSupport”: if a headset keeps forgetting its pairing (see #5), switch that setting off. The service can’t fix that part.

Tested on my Jolla Phone 2026 (5.2.0.22) with a headset and an out-of-range car kit: the headset is back about 6 s after Bluetooth is switched on. Until the PR is merged, the current bt-reconnect release already covers the main problem.

AI disclosure: prepared interactively with Claude Code (Anthropic’s AI coding assistant). Every action was requested, reviewed and approved by me; nothing was decided or published autonomously.

Thanks, that’s a great PR. I merged it and released it as 1.1.0:

I tested it on my Jolla Phone 2026 with MOMENTUM 4 and a second paired headset out of range. After Bluetooth on, the MOMENTUM connected on the first try in about 5 seconds. After switching the headphones off and on, they connected right away.

The AppSupport note is useful too. That setting was on in my phone as well, which may explain why I had to reset my headphones last week.

Hopefully Jolla fixes the root cause in Sailfish OS, so this tool won’t be needed.

TBH, I did not read whole -LLM?- thread.

But what I expect is, that the (optional) AAS BT package is installed?
It is not mentioned in OP explicitly.
Similar things happened on my device, but after uninstalling this pacjage all is fine (except need for restarting obexd sometimes).

Could you all just try to deinstall (uninstall) this package, reboot and test again?

Nevertheless the findings here are helpful and may lead @jolla to fixing this.

@peterleinchen Yes, it is installed: appsupport-bridge-bt-0.9.8-1.6.1.jolla (listed in the setup table of #5; no other package requires it). Uninstalling it would very likely remove the pairing-loss problem too, since that bridge is what hands the headset’s reconnection to the Android stack.

I’d rather not remove it, though, because Android apps then lose Bluetooth entirely. Switching off Settings > Bluetooth > Send incoming pairing requests to AppSupport is enough here: since then the headset reconnects by itself and keeps its pairing, and Android apps keep Bluetooth (pairings they start themselves still go to Android).

Note that the bridge does not explain the first issue in this topic: Connectable=false after every Bluetooth power-on comes from BlueZ itself, so that part needs a fix (or the bt-reconnect workaround) with or without the bridge. I can test without the package if it helps Jolla narrow it down.

AI disclosure: prepared interactively with Claude Code (Anthropic’s AI coding assistant). Every action was requested, reviewed and approved by me; nothing was decided or published autonomously.

@jmpx448 — a follow-up to my PR: I introduced a bug in 1.1.0, and here is the fix: bt-reconnect: wait for a running round instead of skipping (fix for 1.1.0) by bigbob-fun · Pull Request #2 · jmpx448/sailfishos-patches · GitHub

What goes wrong in 1.1.0

The lock that keeps a single reconnect round at a time made a second round give up when another one was running. The running round keeps the device list it built at its start, though, and that list can be out of date:

  1. Right after the service starts (phone boot or login), the start-up round builds its list. A headset that is still connected is left out, so the list may hold only a device that is out of range (a car kit).
  2. If Bluetooth is turned off and on while that round is still paging the car kit (about 25 s), the “Bluetooth on” round finds the lock taken and quietly stops.
  3. Nobody tries the headset: it stays disconnected until you connect it by hand.

On my phone, right after installing the 1.1.0 RPM, the log showed only "Toyota Karine" did not connect and nothing at all for the headset; a manual connect worked at once.

With the fix (1.1.1)

A round that finds the lock taken now waits for the running one to end, then runs with a fresh list. In the same scenario the headset was connected on the first try ("V618" connected (try 1)), 45 s after Bluetooth on, because it waited for the car kit round to finish. Without an overlap nothing changes (headset back in about 15 s).

This only matters when Bluetooth is toggled during a running round, mostly shortly after boot. Sorry for the extra round-trip.

AI disclosure: prepared interactively with Claude Code (Anthropic’s AI coding assistant). Every action was requested, reviewed and approved by me; nothing was decided or published autonomously.

Thanks for #2, it fixed the lost round. While testing 1.1.1, I found a few more problems and fixed them in 1.1.2:

  • On my phone, one Bluetooth switch-on gives five events (hci0 and hci1 appearing, Powered twice), and each queued a round of its own. With a second headset out of range, my MOMENTUM came back only after almost two minutes. Now at most one round waits, and it starts with a fresh device list.
  • A connect to a device out of range blocked for about 70 s, even with busctl’s 30 s timeout. It is now cancelled after 25 s, or at once when a newer round is needed.
  • BlueZ shows hci0 for a moment while Bluetooth is turned on, and the script could switch to it. It now uses the adapter that has the paired devices.

Same test as yours: the headset is back about 7 s after Bluetooth on.

@jmpx448 — one more finding while testing 1.1.2, and a PR for it: bt-reconnect: keep Connectable on from a root system service (user service gets AuthFailed) by bigbob-fun · Pull Request #4 · jmpx448/sailfishos-patches · GitHub

The Connectable part cannot work from a user service on this phone. bluetoothd lets only root and the privileged group change adapter properties (/etc/bluetooth/jolla.conf: DBusAuthorizedGroups=root,privileged). From the user session:

$ busctl set-property org.bluez /org/bluez/hci1 org.bluez.Adapter1 Connectable b true
Error org.freedesktop.DBus.Error.AuthFailed

So bt-reconnect never actually turned Connectable on. It only looked fine as long as something running as root had already set it (on my phone, my earlier root service, or me by hand). When turning Bluetooth on removes and recreates the adapters (hci0 for a moment, then hci1, roughly once every 3 to 5 toggles here), hci1 comes back non-connectable, and headsets can no longer reconnect by themselves. That is the original problem of this topic again.

What the PR does (1.2.0)

  • A tiny root system service bt-connectable, started with bluetooth.service, keeps Connectable=true on every powered adapter: at start, on Bluetooth on, when an adapter appears, and when it drops back. Discoverable is left alone.
  • The user service bt-reconnect keeps doing the reconnects. It no longer tries to change Connectable, and it waits for the adapter that has the paired devices instead of picking the transient hci0.
  • The README says why root is needed.

Test (8 Bluetooth toggles through the top-menu path, a video playing on the headset, car kit paired but out of range): hci1 connectable 8/8, headset back with A2DP 8/8, including at least 2 adapter recreations. The full table of everything I tested is in the PR.

If you are affected now: until it is merged, running busctl set-property org.bluez /org/bluez/hci1 org.bluez.Adapter1 Connectable b true as root (devel-su) after Bluetooth comes back lets a headset that is switched on reconnect by itself again.

Side effects of toggling Bluetooth on this phone, unrelated to bt-reconnect: after an adapter recreation, PulseAudio can lose its A2DP endpoint (“connected but no sound”) until it is restarted (systemctl --user restart pulseaudio), and a playing video can stay frozen until it is reopened.

AI disclosure: prepared interactively with Claude Code (Anthropic’s AI coding assistant). Every action was requested, reviewed and approved by me; nothing was decided or published autonomously.

For readers who don’t follow GitHub: here is the full table of what I tested on my phone today. PR #4 (root system service bt-connectable, version 1.2.0) has just been merged by @jmpx448; the 1.2.0 RPM is not released yet.

Phone: Jolla Phone 2026, Sailfish OS 5.2.0.22. Headset: V618 (A2DP + HFP). A car kit is also paired, out of range.

:white_check_mark: passed · :cross_mark: failed · :wavy_dash: partial / intermittent · :white_large_square: not tested yet · – not applicable

Scenario AppSupport pair target ON (my root service v3) pair target OFF (my v3) my v4 my v5 1.1.0 PR #1 PR #2 1.1.2 fix() all adapters (user) no service PR #4 (1.2.0)
Headset switched on → reconnects by itself :cross_mark: key lost :white_check_mark: 11 s :white_check_mark: :white_large_square: :white_large_square: :white_large_square: :white_large_square: :white_large_square: :white_large_square: – :white_large_square:
Headset keeps its link key :cross_mark: 3 losses :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
Bluetooth off/on in the phone → headset back – – :cross_mark: D-Bus toggle, ghost ACL :white_check_mark: 6 s :wavy_dash: 2nd try 11 s / 15 s :white_check_mark: 6 s :white_large_square: :wavy_dash: 4/5 :wavy_dash: 6/10 – :white_check_mark: 8/8
Toggle during the start-up round – – – :white_large_square: :cross_mark: never tried :cross_mark: (lock) :white_check_mark: 45 s :white_check_mark: 23 s :white_large_square: – :white_check_mark: 1st toggle, 5 s after start
Adapters recreated (hci0 then hci1) → headset back – – – :white_large_square: :white_large_square: :white_large_square: :white_large_square: :cross_mark: not tried (picked hci0) :wavy_dash: :white_large_square: 0 of 3 toggles :white_check_mark: ≥2 handled
hci1 stays Connectable=true – :white_check_mark: root :white_check_mark: root :white_check_mark: root :wavy_dash: inherited :wavy_dash: inherited :wavy_dash: inherited :cross_mark: AuthFailed :cross_mark: 3/10 false :cross_mark: false on 3rd :white_check_mark: 8/8
No ghost link (0x0405 status 0x0b) – – :cross_mark: D-Bus toggle :white_check_mark: :white_check_mark: :white_check_mark: :white_large_square: :white_check_mark: :white_large_square: – :white_large_square:
A2DP up after reconnect – :white_check_mark: :white_check_mark: :white_check_mark: :white_large_square: :white_large_square: :white_large_square: :wavy_dash: lost after recreation :white_large_square: – :white_check_mark: 8/8
Out-of-range device doesn’t block the headset – – :cross_mark: parallel :white_check_mark: :cross_mark: 1st try lost :white_check_mark: :white_check_mark: :white_check_mark: :white_large_square: – :white_check_mark: car kit paired, 8/8
Paired computer skipped (audio-*) – – :white_large_square: :white_large_square: :white_large_square: :white_large_square: :white_large_square: :white_large_square: :white_large_square: – :white_large_square:
Full phone reboot – – – :white_large_square: – – – :white_large_square: :white_large_square: – :white_large_square:
Several days (overnight power-offs) – – – – – – – :white_large_square: – – :white_large_square:

Columns: “my v3/v4/v5” are the root Python service I used before switching to bt-reconnect (v3 = Connectable + reconnect, v4 = audio-* filter, v5 = one device at a time, most recent first). “PR #1” and “PR #2” are my earlier PRs to bt-reconnect, tested from a copy of the script run as defaultuser. All toggles go through connman (top menu switch path) unless marked “D-Bus toggle” (Adapter1.Powered set directly, which leaves a ghost ACL on this phone).

Side effects of the toggles, outside bt-reconnect: after an adapter recreation, PulseAudio lost its A2DP endpoint (a2dp-sink profile connect failed: Protocol not available, “connected but no sound”) until restarted (systemctl --user restart pulseaudio). A playing stream stayed muted (pactl set-sink-input-mute <n> 0), and a Gallery video stayed frozen until it was closed and opened again.

Still to test with 1.2.0: headset switched off and on, a paired computer being skipped, a full reboot, and several days of normal use.

AI disclosure: prepared interactively with Claude Code (Anthropic’s AI coding assistant). Every action was requested, reviewed and approved by me; nothing was decided or published autonomously.

So, my assumptions…

On another side, I heavily track bugs and fix them on my computer running “Ubuntu 22.04 LTS Unity flavor”.

Linux on desktop computers has suffered for years from a Bluetooth stack that doesn’t behave as it should.

I have tackled the things I had been trying to fix for many years, with the help of “Claude AI” (as always, every choice supervised by me…).

It ended up as something very useful (IMHO). Here is the full behaviour:

Setup

Laptop: Ubuntu 22.04 LTS (Unity flavour), BlueZ 5.72, PipeWire 1.4.11, WirePlumber 0.5.13. Headset: Poly Voyager Focus UC.

Like the Jolla, this laptop started with PulseAudio, the default sound server of Ubuntu 22.04 Unity. I switched it to PipeWire/WirePlumber on 12/11/2026, partly because the headset volume wheel kept failing under PulseAudio. Everything below was built on PipeWire/WirePlumber. PulseAudio is still installed but disabled.

The problem

A Bluetooth headset has two profiles that exclude each other:

Profile Audio Headset microphone
A2DP Hi-fi stereo not available
HFP Telephone quality, mono active

The goal: always listen in A2DP, switch to HFP only during a real call, and have everything else (players, outputs, microphones) follow automatically.

A “call” is detected when a calling app uses the microphone: Teams, Slack, Signal, Discord, Zoom, Telegram, Element, or a browser (WhatsApp Web, Meet…).

Calls with audio or video playing

# Situation Profile Output / input Playback Tested
1 Call starts, headset on A2DP → HFP previous output and input remembered → headset (Handsfree + headset mic) players that were playing are paused :white_check_mark: Teams, Slack
2 Call starts, headset off — internal speakers + internal mic paused :white_check_mark:
3 Call ends → back to A2DP after 2 s previous output and input restored the players paused by the call resume 1.5 s after the return to A2DP (in a real Teams call, a movie resumed about 8 s after hang-up) :white_check_mark:
4 Play button pressed during the call (the headset also sends PAUSE/PLAY by itself when switching) — — ignored during the call + 4 s, so the automatic pause is not undone :white_check_mark:
5 Handsfree chosen by hand, no call HFP headset playback continues :white_check_mark:
6 A sound starts at the exact moment of the call HFP delayed by 1.5 s (works around a BlueZ < 5.80 bug that drops A2DP) — — :white_check_mark: 3/3

Outside calls

# Event Result
7 Headset connects becomes the default output, in A2DP; the internal mic stays the input
8 Headset taken off the head (wear sensor) pause, if something is playing and the sound goes to the headset
9 Headset put back on resume, only if the pause came from taking it off
10 Headset switched off pause, only if the sound was in the headset
11 Play/pause, next, previous buttons sent to the active player (MPRIS)
12 Next/previous held ±10 s every 300 ms while held

Players handled: those speaking MPRIS (mpv with mpv-mpris, Celluloid, Rhythmbox, VLC, browsers). A sound without MPRIS is never paused.

Extras during a call: automatic call recording (my voice left, the other side right), and sending an audio file into the call.

How it is built on the laptop

  • A WirePlumber linking rule: the microphone of a calling app is routed to the headset, so WirePlumber’s autoswitch moves the headset to HFP. Other apps keep the internal mic.
  • An override of WirePlumber’s autoswitch: back to A2DP only if the autoswitch itself chose HFP.
  • A small user service (bash, pw-dump/pactl/playerctl) for pause/resume, remembered outputs and inputs, buttons, and the wear sensor. The sensor events come from the headset’s proprietary AT+XEVENT DON/DOFF HFP commands.
  • Bugs found and fixed on the way: the Unity Sound panel (crashes with Bluetooth headsets, merge requests sent upstream), PipeWire issue #5445 (upstream fix backported), the BlueZ A2DP drop above (worked around).

My next challenge: the same on the Jolla

There is a big difference: the Jolla uses PulseAudio and the Sailfish audio policy (ohm / pulseaudio-policy-enforcement), not PipeWire/WirePlumber. On my phone: pulseaudio 17.0, ohmd 1.3.2, pulseaudio-policy-enforcement 14.2.50, no PipeWire. In other words, the phone is where my laptop was before the switch, plus the Sailfish policy layer on top. So none of the laptop pieces can be reused as they are; the building blocks will be different.

Questions for those who know the Sailfish audio stack:

  1. What does Sailfish already do by itself today? For example, does a GSM call pause the media players, and do they resume afterwards?
  2. Where is the right place for such rules: ohm policy rules, a PulseAudio module, or a small service watching PulseAudio and MPRIS?
  3. Calls made in Android apps through AppSupport (Teams, Slack, WhatsApp): how do their audio streams appear on the Sailfish side, and can they trigger the switch to HFP?
  4. Does anyone already handle the headset buttons or a wear sensor on Sailfish?

I will test what the phone does by default first, then report here in another dedicated Topic…

AI disclosure: prepared with Claude Code (Anthropic’s AI coding assistant) under my supervision. Every finding above was checked on my own devices; all decisions and publications are mine.

Well it wasn’t more then temporary. I still got the same problem with X10III.

@eson thanks, that is useful: so it is not specific to the Jolla Phone 2026. I could only test on my phone, so here are three quick checks to see whether your Xperia 10 III has the same causes.

1. Is the adapter connectable? As root (devel-su), right after switching Bluetooth on:

busctl get-property org.bluez /org/bluez/hci0 org.bluez.Adapter1 Connectable

(use busctl tree org.bluez if your adapter is not hci0). If it says b false, a headset that is switched on cannot reconnect by itself. Setting it by hand should make it reconnect within a few seconds:

busctl set-property org.bluez /org/bluez/hci0 org.bluez.Adapter1 Connectable b true

2. Does the headset lose its pairing? If you use Android App Support and a headset paired in Sailfish sometimes needs to be paired again from scratch, check the Android App Support setting that sends pairings to Android (see my post #5 above). On my phone, it routed the headset to the Android side, which did not have the key, and the headset deleted its own key.

3. Ready-made fix: @jmpx448’s sfos-bt-reconnect 1.2.0 does both parts: a small root service keeps the adapter connectable, and a user service reconnects known audio devices when Bluetooth is switched on. I have only tested it on the Jolla Phone 2026, so feedback from an Xperia 10 III would be very welcome.

Could you tell us your Sailfish OS version, and the output of check 1?

AI disclosure: prepared interactively with Claude Code (Anthropic’s AI coding assistant). Every action was requested, reviewed and approved by me; nothing was decided or published autonomously.