Bluetooth panel LE scan blocks reconnect of dual-channel BLE mice
System details
Intel Core i5-6400, Intel HD Graphics 530, Intel Wireless 8265 Bluetooth (hci0, btusb, BT 4.2). Omarchy 4.0.2-1, Hyprland 0.56.2, linux 7.1.9-arch1-2, bluez 5.87-2, quickshell 0.3.1-1.
What's wrong?
The Bluetooth panel's LE discovery scan prevents already-paired BLE HID devices from reconnecting. Dual-channel BLE mice come back from the other host advertising, stay paired/bonded/trusted, and never connect until the scan is gone.
This is not a dropped bond. It looks like "pairing died" because the mouse LED blinks and a click on the device in the panel does not attach it.
Repro
- Pair a dual-channel BLE mouse (here: EM01 NL, HOG / HID-over-GATT, USB id
25A7:FAA0, address type random). Leave a BLE keyboard paired as well (here: Split65-3); it is a control because it never drops. - Open the Omarchy Bluetooth panel and leave it open.
- Switch the mouse to its other host, confirm it works there, then switch back to this machine.
- Mouse LED blinks. Panel still shows the device as paired. It does not auto-reconnect.
- Close the panel (or otherwise get
Adapter.Discoveringto false) and switch again: the mouse reconnects on its own.
What we saw with the panel/scan up
bluetoothctl connect (and presumably the panel click) failed with:
Failed to connect: org.bluez.Error.Failed le-connection-abort-by-local
At the same time:
org.bluez.Adapter1.DiscoveringwastrueStopDiscoveryfrom another client returnedNo discovery startedwhile Discovering stayed true- omarchy-shell logged
quickshell.bluetooth.adapter: Failed to stop discovery ... "No discovery started" - Device1: Paired/Bonded/Trusted yes, Connected no, RSSI present (the mouse was advertising)
Adapter power-cycle cleared the stuck scan; both HID devices came back. Repeating the channel switch with the panel closed auto-reconnected.
Why this is Omarchy
shell/plugins/panels/bluetooth/Panel.qml starts an unfiltered LE scan for the whole time the panel is open (discoveryRetry sets adapter.discovering = true every second while opened). The comments there already note that leaking this session starves A2DP on the same controller. The same scan aborts LE connects, which is what a dual-channel BLE mouse needs when it returns.
discoveryStop gives up after 3 failed attempts (owesDiscoveryStop = false), so Discovering can stay true after close. That matches the stuck scan we hit.
BlueZ default Policy ReconnectUUIDs is audio-only, so HOG mice already depend on the host connecting when they advertise. The panel scan makes that connect fail.
Expected
Opening the Bluetooth panel to look at a paired mouse must not block that mouse from reconnecting. Discovery should stop on close, and a bonded HID device that is advertising should be allowed to connect even if the panel is open (pause/filter the scan, or stop it around Connect).
Workaround
Keep the Bluetooth panel closed when switching the mouse between hosts. If it is already blinking, close the panel first.
Relevant journal snippets (full omarchy-debug is 1.7MB of unrelated UFW noise, not attached):
omarchy-shell: WARN quickshell.bluetooth.adapter: Failed to stop discovery on adapter ...: "No discovery started"
bluetoothctl connect: org.bluez.Error.Failed le-connection-abort-by-local
kernel: hid-generic 0005:25A7:FAA0: input,hidraw1: BLUETOOTH HID v5.08 Mouse [EM01 NL]
Hit the same end state on different hardware, but the discovery session turned out to be owned by a third-party BlueZ client rather than the panel. I think that's worth recording here, because the signature you documented is identical either way.
System: Omarchy 4.0.3-1, quickshell 0.3.1-1, bluez 5.87-2, Hyprland 0.56.2-2, linux 7.2.3.arch1-3,
Framework 16. Adapter: Intel 8087:0032 (AX210), firmware intel/ibt-0041-0041.sfi 202-5.26.
Device: Logitech MX Master 3S (HOG / HID-over-GATT, random address).
Same signature as yours:
Adapter1.Discoveringstayedtruefor ~3h with the panel closed.StopDiscoveryfrom a fresh client →No discovery started, while Discovering stayed true.- quickshell logged the same thing, in bursts of exactly three —
discoveryStophitting its cap:omarchy-shell: WARN quickshell.bluetooth.adapter: Failed to stop discovery on adapter BluetoothAdapter(..., path="/org/bluez/hci0"): "No discovery started" - Mouse Paired/Bonded/Trusted yes, Connected no, RSSI −45 (advertising the whole time), no auto-reconnect.
- Adapter power cycle cleared it; the mouse reconnected immediately.
- BR/EDR was unaffected throughout: an A2DP soundbar stayed connected and streaming for the full 3 hours.
Only the LE link was blocked, which matches your note about
ReconnectUUIDsbeing audio-only.
Where mine differs: the panel did not own the scan. Restarting quickshell (omarchy restart shell,
PID 1530 → 176649) did not clear it. The owner was Chrome, which started a FIDO caBLE discovery and
leaked the session when its D-Bus call timed out:
12:03:39 chrome: bluetooth_adapter_bluez.cc:1963 /org/bluez/hci0: Failed to start discovery:
org.freedesktop.DBus.Error.NoReply: Did not receive a reply...
12:03:39 chrome: bluetooth_adapter_bluez.cc:125 Unrecognized DBus error org.freedesktop.DBus.Error.NoReply
12:03:39 chrome: FIDO: v2_discovery.cc:457 Failed to start caBLE discovery
Chromium treated the call as failed and never issued a StopDiscovery; bluetoothd had registered the
session regardless. It stayed up for as long as that Chrome process lived. Chrome had been launched by
xdg-open for a Dropbox account-link page, so an ordinary WebAuthn/passkey prompt is enough to trigger it.
Why this matters for this issue: "No discovery started" in quickshell's log does not distinguish
"our session leaked" from "someone else holds a session and we never had one". Both produce exactly
the state described above. So a fix that only tightens the panel's own start/stop bookkeeping won't cover
this case — the panel still burns its three attempts against a foreign session, permanently sets
owesDiscoveryStop = false, and the user is left with a dead LE mouse and no indication why.
Two things that would have helped here:
- Don't abandon permanently at the cap. Re-arming on the next panel open would at least let a subsequent
visit recover, instead of the state persisting until reboot or a manual
rfkillcycle. - A foreign discovery session that is blocking LE reconnects is currently invisible unless you go digging through D-Bus. Surfacing it in the panel would turn a three-hour mystery into an obvious one.
Not #10142: my journal has no 0x200c timeout, no Resetting usb device, and no
start background scanning failed: -110, so this isn't that failure mode.
I also checked the panel's normal path on this machine and it behaves correctly: open/close stops discovery within ~2s, and five rapid open/close cycles did not leak a session. The leak here was never the panel's.
Datapoint from another machine, same end state as this issue and as the MX Anywhere 3S report on #7008.
System
| Host | ASUS X99-E WS/USB 3.1, Intel Core i7-5930K |
| Omarchy | 4.0.3-1 |
| Hyprland | 0.56.2-2 |
| quickshell | 0.3.1-1 |
| BlueZ | 5.87-2 |
| Running kernel | 7.1.9-arch1-2 (boot 2026-09-08 07:58; linux package is 7.2.3.arch1-3, not rebooted onto it) |
| Adapter | Intel AX200 USB 8087:0029, hci0, firmware intel/ibt-20-1-3.sfi rev 0.3 build 193 week 33 2024 |
| Controller | 44:AF:28:F5:50:8B |
| Device | Logitech MX Anywhere 3S, HOG / HID-over-GATT, PID 046d:b037, random address DD:92:1D:04:06:C1, HID++ 4.5 |
| Battery | 55% (not a dead mouse) |
Keyboard on this box is a Keychron V6 Max on 2.4 GHz Keychron Link, not BLE. That HID never drops. This is not a full Bluetooth outage — only the MX BLE mouse.
Stock BlueZ config: /etc/bluetooth/input.conf still has #IdleTimeout=0 / #UserspaceHID=true commented; ReconnectUUIDs in main.conf is still the commented audio-only default. No local /etc/bluetooth overrides.
What happens
The mouse pairs, bonds, trusts, and works. Then it drops and will not come back through the normal panel flow.
While down:
Device1: Paired/Bonded/Trusted yes, Connected noAdapter1.Discoveringtrue with the Bluetooth panel closed (no bluetooth panel window)StopDiscoveryfrom a fresh client:No discovery started, while Discovering stayed true- Hyprland mice list loses
logitech-mx-anywhere-3s(only Keychron Link + a virtual device remain) /proc/bus/input/deviceshas noLogitech MX Anywhere 3S
Unlike some reports here, RSSI was often absent while down (mouse asleep / not advertising). After an adapter power-cycle, omarchy bluetooth device connect DD:92:1D:04:06:C1 succeeds immediately if the mouse is awake. If it is still asleep, connect times out even with Discovering: false until a physical click / short Easy-Switch press.
omarchy bluetooth power off then on is what clears the stuck scan. Direct StopDiscovery does not.
Same signature as this issue
busctl call org.bluez /org/bluez/hci0 org.bluez.Adapter1 StopDiscovery
# Call failed: No discovery started
# Discovering stays true
bluetoothd also logged this at each of the two power-cycle recoveries today:
bluetoothd: Wrong size of start discovery return parameters
One earlier reconnect this boot also hit HOG ATT errors (then HID++ came back two seconds later):
Sep 08 13:13:13 bluetoothd: profiles/input/hog-lib.c:set_report_cb() Error setting Report value: Request attribute has encountered an unlikely error
Sep 08 13:13:13 bluetoothd: profiles/battery/battery.c:batt_io_ccc_written_cb() Battery Level: notifications not enabled Request attribute has encountered an unlikely error
Sep 08 13:13:13 bluetoothd: profiles/input/hog-lib.c:ccc_read_cb() Error reading CCC value: Request attribute has encountered an unlikely error
Panel vs foreign discovery session
This looks closer to @erikvanzijst's comment than to an open-panel scan:
- Bluetooth panel was not open.
- No
omarchy-shell/quickshell.bluetooth.adapter: Failed to stop discoverylines in the journal for this boot. - Chromium was running (Omarchy Chromium, YouTube app,
--remote-debugging-port=9222). I did not catch abluetooth_adapter_bluez/ FIDO caBLE line this boot, so I cannot prove Chromium owned the session — only that a foreign client is plausible and the panel was not the owner.
How often it drops (this boot, HID++ reconnects)
logitech-hidpp-device 0005:046D:B037 HID++ 4.5 device connected:
Sep 08 07:59:01 (boot)
Sep 08 13:13:15
Sep 08 17:03:10
Sep 09 07:30:38
Sep 09 09:31:44
Sep 09 13:00:27
Sep 09 18:29:12
Sep 09 19:01:09 (~32 min)
Sep 09 19:41:18 (~40 min)
Sep 09 20:34:28 (~53 min)
Sep 09 21:56:23 (~82 min)
Sep 10 07:07:28 (overnight dead until adapter power-cycle)
Sep 10 08:04:52 (~57 min; second power-cycle today)
Sep 10 08:09:30
So it is not only resume/channel-switch. On an idle-ish desktop it falls off every ~30–80 minutes, then stays down until something power-cycles the adapter. Overnight it did not auto-recover.
Workaround that recovered it
omarchy bluetooth power off
sleep 2
omarchy bluetooth power on
omarchy bluetooth device connect DD:92:1D:04:06:C1
Happy to capture btmon on the next drop if that would help. Related: #7008 (MX series, including Anywhere 3S), #10142 / #10176 (panel discovery retry), #8614 (panel inquiry starving connects).
I've been unable to reproduce since bluetooth stack reset as @lukejmorrison noted above. Neither Claude nor Grok can come up with a code change that needs to be made.
Same end state on a PCIe Intel controller, plus why nothing but an adapter power cycle can clear it
System: Dell XPS, Core Ultra X7 358H. Omarchy 4.0.3-1, bluez 5.87-2, quickshell 0.3.1-1, Hyprland 0.56.2-2, linux 7.2.3-arch1-3. Adapter: Intel 8086:e476 (Core Ultra Series 3 CNVi Bluetooth), driver btintel_pcie — PCIe-attached, not btusb — firmware intel/ibt-00a0-01a1-pci.sfi 2026.26. Device: Logitech MX Master 4 for Mac, 046d:b042, HOG, HID++ 4.5, random address, battery 45%.
Every adapter reported in this thread so far (8265, AX200 8087:0029, AX210 8087:0032) is on btusb. This one is on btintel_pcie, so the transport is not the variable.
End state reproduced exactly
-
Adapter1.Discoveringstucktruewith the panel closed. -
StopDiscoveryfrom a fresh client, nobluetoothctlprocess alive:busctl call org.bluez /org/bluez/hci0 org.bluez.Adapter1 StopDiscovery # Call failed: No discovery started ← Discovering stays truebluetoothctl scan offrenders the same failure asFailed to stop discovery: org.bluez.Error.Failed; it is one error,btd_error_failed()names it and carries the text. -
Device1: Paired/Bonded/Trusted yes, Connected no, no RSSI (mouse asleep, not advertising — same as @lukejmorrison).
-
Only
bluetoothctl power offthenoncleared it. DirectStopDiscoverynever did. -
After the power cycle the mouse connected the moment it was physically woken.
Not #10142's mode here: no start background scanning failed: -110, no 0x200c, no Resetting usb device, no Wrong size of start discovery return parameters.
Why no client can clear it — this is BlueZ 5.87, not the panel
src/adapter.c, stop_discovery_complete():
client = discovery_complete(adapter, status);
if (client)
discovery_remove(client); /* client leaves discovery_list */
if (status != MGMT_STATUS_SUCCESS)
return; /* ...and `discovering` is never cleared */
adapter->discovery_type = 0x00;
adapter->discovery_enable = 0x00;
adapter->filtered_discovery = false;
adapter->no_scan_restart_delay = false;
adapter->discovering = false;
g_dbus_emit_property_changed(dbus_conn, adapter->path,
ADAPTER_INTERFACE, "Discovering");
When MGMT_OP_STOP_DISCOVERY completes non-success, bluetoothd removes the client from discovery_list and then returns before clearing adapter->discovering. Discovering is now stuck true with no client owning it. The D-Bus handler then looks the sender up in that list:
list = g_slist_find_custom(adapter->discovery_list, sender, compare_sender);
if (!list)
return btd_error_failed(msg, "No discovery started");
so every later StopDiscovery, from any client, is rejected with exactly that string. The only code that resets the flag is adapter_stop() — adapter power-down/removal — which is why power off/on is the sole recovery, and why restarting quickshell changes nothing (@erikvanzijst's finding).
Two consequences:
"No discovery started"here does not distinguish "no held session / foreign client" from "a permanently wedged session". Both appear in this thread and are distinguishable only by whether the flag ever clears.- Re-arming on the next panel open — the suggestion above, and what #10176 does for the retry — will not recover this state, because the session is already gone from BlueZ's list; only the property is stuck. This needs the BlueZ leak fixed, or Omarchy to detect
Discovering == truewith no client and reset the adapter.
One caveat for this machine: the mouse was asleep and not advertising throughout, so I could not demonstrate the scan itself aborting the LE connect here — it did connect later while a scan was up. What I can state is that the identical stuck state occurred and was equally unrecoverable. Relatedly, dev_connect() returns org.bluez.Error.InProgress only when dev->connect is already pending or dev->bonding is set, so InProgress on connect is an overlapping attempt rather than evidence of the scan; a scan-induced failure surfaces later as org.bluez.Error.Failed with the errno text.
Same root cause, different device class — corroborating with a paired-keyboard Easy-Switch case rather than a mouse.
System: Omarchy on Arch, Hyprland, bluez 5.87-2, linux 7.1.9-arch1-2.
Device: Logitech MX Keys S (multi-host Bluetooth, not the Bolt/Unifying receiver). Switching the keyboard's physical Easy-Switch channel away and back to this host stopped reconnecting.
Confirmed identical signature:
bluetoothctl show→Discovering: yes, stuck.bluetoothctl scan offfails outright:Failed to stop discovery: org.bluez.Error.Failed.bluetoothctl connect <addr>against the still-bonded/trusted keyboard hangs/fails with no successful reconnect.pkexec systemctl restart bluetooth.serviceclears the stuck discovery immediately and the keyboard reconnects on the nextconnectwith no re-pairing needed.
This matches the reported cause exactly: discoveryStop in shell/plugins/panels/bluetooth/Panel.qml gives up after 3 failed StopDiscovery attempts and leaves owesDiscoveryStop = false with the adapter still discovering, so nothing ever clears it afterward.
Workaround in the meantime: rather than restart the service by hand each time, I set up a small watchdog — checks every 2 minutes whether Discovering: yes has persisted for 3+ minutes and bluetoothctl scan off still fails (to avoid touching a real in-progress scan), and if so runs systemctl restart bluetooth.service via a polkit rule scoped to just that one unit (no password prompt needed). Restarting the service is a full recovery every time — no re-pairing required, since the bond itself is intact and it's purely the stuck discovery flag blocking the connect.
Corroborating this failure mode with another controller chipset and device class, plus an additional user-facing symptom caused by this bug.
System Details
- OS: Omarchy 4.0.2-1, Hyprland, uwsm
- BlueZ: 5.87-2
- Adapter: MediaTek MT7922 (
0e8d:223c),hci0 - Device: Logitech POP Mouse (
046d:b030, Bluetooth LE)
Observed Behavior
- Opening and closing the Omarchy Bluetooth panel left the adapter stuck in
Discovering: yes. - As documented above,
omarchy-shelllogged:
After 3 failed retries,WARN quickshell.bluetooth.adapter: Failed to stop discovery on adapter BluetoothAdapter(...): "No discovery started"discoveryStopinPanel.qmlgave up, leaving the radio in active inquiry. - When the mouse awoke from idle sleep or was toggled, auto-reconnection failed. Attempting a manual connect via
bluetoothctl connect <MAC>produced:Failed to connect: org.bluez.Error.Failed le-connection-abort-by-local - As confirmed by earlier comments, power-cycling the controller (
bluetoothctl power off && sleep 1 && bluetoothctl power on) immediately cleared the stuck discovery state, after which the mouse reconnected on the first click without re-pairing.
Secondary Symptom: "Ghost" Duplicate Devices
On modern Logitech BLE peripherals (POP Mouse, Pebble 2, Lift, MX Master 3S), entering pairing mode triggers the mouse firmware to regenerate a new BLE Static Random Address (e.g. ...:0B → ...:0C).
Because users hit this stuck-discovery state and cannot reconnect via the UI, they put the mouse into pairing mode to recover. BlueZ tracks devices strictly by MAC address, so each recovery cycle leaves an orphaned duplicate device in the Bluetooth list for the exact same physical channel/slot.
Filed by Gemini 3.8 Flash via Antigravity CLI.
Same end state on a MediaTek MT7925, with both holders described above seen on one machine five days apart, and a case where a controller power cycle was not enough.
System: Omarchy 4.0.4-1, bluez 5.87-2, quickshell 0.3.1-1, linux 7.2.3-arch1-3, AMD Ryzen AI 7 350. Adapter: MediaTek MT7925 0e8d:0717, btusb/btmtk, LL privacy on. Devices: Logitech MX Master 4 (046d:b042, HOG, static random) and a Lofree Flow84 keyboard (05ac:024f, HOG, static random). Both stayed Paired/Bonded/Trusted throughout. No suspend was involved in either episode; the second one happened overnight on an awake machine.
Episode 1, panel. Discovering stuck true with the panel closed, the three-burst Failed to stop discovery ... "No discovery started" in the omarchy-shell log, bluetoothctl connect failing with le-connection-abort-by-local for both devices. bluetoothctl power off then on did not recover them here. Only a driver reload did, and the controller needed a second firmware download attempt on the way back:
kernel: Bluetooth: hci0: Execution of wmt command timed out
kernel: Bluetooth: hci0: Failed to send wmt patch dwnld (-110)
kernel: Bluetooth: hci0: Device setup in 1684433 usecs
The mouse connected within one second of the controller coming up. A btmon capture taken just before the reload, with the scan running, had 217 extended advertising reports from neighbours in 40 seconds and none from either bonded device, so the kernel never issued an LE create connection at all. On this controller the scan does not just abort the connect, it hides the bonded devices from the host.
Episode 2, Chromium. Same signature, no omarchy-shell discovery lines, omarchy-restart-shell changed nothing. I restarted bluetoothd with busctl monitor --match interface=org.bluez.Adapter1 running as root. Chromium re-created the session 0.44 s after the restart:
Sender=:1.81 (chromium) Member=StopDiscovery
Sender=:1.81 (chromium) Member=SetDiscoveryFilter Transport=le
Sender=:1.81 (chromium) Member=StartDiscovery
Chromium's Preferences had no site with Bluetooth permission, which fits @erikvanzijst's passkey/caBLE dialog rather than a web page. Quitting Chromium cleared Discovering immediately. The mouse connected the same second, and the keyboard connected within seconds of being unplugged from USB. No re-pairing either time.
Two things from this for the fix discussion. A foreign LE-only session blocks bonded HOG reconnects on MediaTek as completely as the panel's own scan, so a panel-side fix that pauses its own scan will not cover it. And the busctl monitor line above is a cheap way to name the holder when the "No discovery started" string is all you have.
Reviewed against quattro (be7c7bf37), BlueZ 5.87 src/adapter.c and Linux 7.1 net/bluetooth/hci_sync.c. Nothing was reproduced: the workers are VMs without a Bluetooth controller, so this is a diagnosis from source and from the captures in this thread.
The stuck Discovering: true is a BlueZ state no client can clear, and the panel's three-attempt cap is not what causes it. In stop_discovery_complete() (adapter.c:2162-2167), when the controller's stop fails BlueZ removes the requesting client from discovery_list and returns before clearing adapter->discovering. From then on StopDiscovery from any sender, the panel included, is rejected with "No discovery started" before any command reaches the controller (adapter.c:2902-2905), and only adapter_stop() (power off, bluetoothd restart, driver reload) resets it. Retrying more often, or re-arming on the next panel open, would hit the same rejection. BlueZ master still has this code unchanged.
"No discovery started" in the omarchy-shell log does not mean the panel leaked a session. It means the sender holding that call has no session. The panel adopts any running discovery when it opens (Panel.qml:414, which reads the global Discovering property), so with a session held by Chromium's caBLE discovery or librepods (#11380) it issues three stops that BlueZ rejects, producing the same three warnings. Those stops are harmless but make the foreign-owner case look like the panel's.
Why the bonded device does not come back. While any discovery is active the kernel does not run the passive background scan that bonded LE devices reconnect through (hci_sync.c:3198-3200, "If discovery is active don't interfere with it"), and BlueZ skips its own passive scanning too (adapter.c:1570-1581). The panel keeps an unfiltered discovery session up for as long as it is open (discoveryRetry, Panel.qml:509-518), which is the same condition. That accounts for the device not reconnecting on its own. It does not fully account for an explicit connect aborting with le-connection-abort-by-local: the kernel pauses scanning before an LE create-connection (hci_sync.c:6653-6662), so the abort itself would need a btmon capture to pin down. @moskovich's capture showing no advertising reports from either bonded device during the scan fits the first part.
What would change it is a decision, not a contained fix, so no pull request was opened: pausing or filtering the panel's scan while bonded HID devices are disconnected, detecting Discovering: true that no stop can clear and recovering the adapter, surfacing a foreign discovery holder in the panel, or reporting the stop_discovery_complete() path to BlueZ upstream. Related: #10142 and its fix #10176 bound the start retry, a different failure; #13085 makes omarchy-restart-bluetooth actually restart bluetoothd, which is the manual recovery for this state.
Checked by Claude Opus 5.5 and, as a second opinion, Codex at medium effort. Codex agreed the cap is not the cause and that the BlueZ path above leaves the state unrecoverable; it added the panel's adoption of foreign sessions and the point that the explicit-connect abort is not established by source alone. This waits on the maintainer.
Lots of useful captures in-thread. @stevepresley you mentioned you couldn't reproduce after a Bluetooth stack reset — are you still seeing this on current Omarchy, or is it gone for you? That would help decide whether to keep hunting an Omarchy-side scan policy change vs treating it as a BlueZ/controller class.
Still occurs on Omarchy 4.0.4-1. btmon shows why the open panel blocks the reconnect: the discovery scan uses a private address, so the controller drops directed advertising.
This answers the question from @jandrusk. It also gives the missing capture that @omarchybot asked for.
System
| Omarchy | 4.0.4-1 (quattro has the same discoveryRetry code) |
| Kernel | 7.2.5-3-omarchy |
| BlueZ | 5.87-2.1, stock main.conf, no -E |
| Adapter | Intel AX211 (CNVi), hci0, LL privacy off |
| Device | Logitech MX Master 3, HOG, static random address |
In my case, Discovering was not stuck. StopDiscovery worked each time. The panel scan alone is sufficient to cause the problem.
What the user saw
The mouse disconnected. The user opened the Bluetooth panel and used its switch to turn Bluetooth off and on. The mouse did not reconnect. It reconnected only after bluetoothctl power off and power on. That sequence also stops the discovery.
Mechanism
The mouse reconnects with ADV_DIRECT_IND. The target address of this PDU is the public identity address of the host.
During discovery, the kernel does an active scan from a private address. In hci_active_scan_sync() (net/bluetooth/hci_sync.c), the comment says: "All active scans will be done with either a resolvable private address (when privacy feature has been enabled) or non-resolvable private address." The function also pauses address resolution.
The capture shows this change each time discovery starts:
< LE Set Random Address Address: xx:xx:xx:xx:xx:xx (Non-Resolvable)
< LE Set Extended Scan Parameters
Own address type: Random (0x01)
Filter policy: Accept all advertisement (0x00)
Type: Active (0x01)
The background scan between discovery cycles uses this setting:
< LE Set Extended Scan Parameters
Own address type: Public (0x00)
Filter policy: Ignore not in accept list (0x01)
Type: Passive (0x00)
The target address of the directed PDU does not agree with the scanner address. Thus the controller does not report the PDU, and the kernel does not start LE Create Connection. This agrees with the capture from @moskovich: neighbour reports were present, but there were no reports from the bonded devices.
Results
Each run starts with the mouse connected. Each run uses omarchy-bluetooth-power off, 3 to 4 s of wait, and then omarchy-bluetooth-power on.
| Run | Condition | Result |
|---|---|---|
| 1 | No discovery | ADV_DIRECT_IND 0.26 s after power-on. Connected. |
| 2 | bluetoothctl scan on held |
Not connected for 61 s. Connected 5 s after the scan stopped. |
| 3 | Same as run 2, user moved the mouse all the time | Not connected for 35 s. First ADV_DIRECT_IND 6 s after the scan stopped. Connected 4 ms later. |
| 4 | Stock panel open (omarchy-shell omarchy.bluetooth open), switch used through toggleBluetooth |
Not connected for 30 s while the panel was open. |
A note on the analysis from @omarchybot: the background scan does run between discovery cycles. In my captures, BlueZ restarts discovery with gaps of approximately 5 s. The kernel does a public passive scan in these gaps. In run 3, there were two such gaps. The mouse did not send directed advertising in them, so these gaps do not give a dependable path to reconnect.
Also, after approximately 30 s of failed attempts, the mouse stops advertising. Then it needs a click. Thus, a long scan can cause a disconnected state that continues after the scan stops.
Possible change
I tested a local clone (omarchy plugin clone omarchy.bluetooth) that limits the panel scan to the first 15 s after each open. Discovered devices stay in the list after the scan stops. Reopening the panel starts a new scan. The change is small:
- A
scanWindowtimer (15 s) setsscanWindowOpen.onOpenedChangedstarts the timer. discoveryRetryanddiscoveryStopusescanWanted(opened && scanWindowOpen) in place ofopened.openSibling()usesscanWantedtoo.- The
discoveredsection is visible whileadapter.discovering || opened.
With this clone, discovery stopped 16 s after open while the panel stayed open. The capture then shows the public passive scan.
Other possible changes: scan only when the user asks for it, or pause the scan while a bonded HOG device is disconnected. Each option has a cost for the pairing flow, so the decision is for the maintainer.
The captures contain addresses of nearby devices. Thus I did not attach them. I can supply filtered excerpts.
Reviewed again against quattro (c582e1d7f), after @johnpippett's capture. Nothing was reproduced here: the workers are VMs without a Bluetooth controller.
The capture's mechanism holds in source, and it shows the panel's open scan is enough by itself, without a stuck session. Discovery's active scan asks for a private own address with accept-all filtering (hci_active_scan_sync(), hci_sync.c:6298-6303). The passive background scan does the opposite on purpose: its comment says it avoids a non-resolvable address "so that peer devices using direct advertising with our address will be correctly reported by the controller" (hci_sync.c:3198-3204). Core 5.4 Vol 6 Part B §4.3.3 has the scanner report an ADV_DIRECT_IND only when its TargetA matches the scanner's own address, or is an RPA it resolves. A mouse reconnecting with directed advertising to the host's public address is therefore invisible while discovery runs, and nothing issues LE Create Connection. This matches @moskovich's capture with no reports from either bonded device.
This corrects our earlier comment in two places. The passive scan does run in the gaps between BlueZ's discovery cycles, as the capture shows; it is just not a dependable path, because the mouse need not advertise in them and gives up after about 30 seconds. And a leaked or wedged Discovering session is a second way to reach the same state, not a precondition: discoveryRetry (Panel.qml:505-518) still keeps discovery requested for as long as the panel is open. The explicit connect failing with le-connection-abort-by-local is still not explained by source.
It still occurs on 4.0.4-1 per @johnpippett, which answers @jandrusk's question for at least one machine.
No pull request was opened, because each fix chooses how pairing works: limiting the scan to a window after open (the tested clone; it misses a device put into pairing mode later), scanning only on request (an extra step to pair), or pausing the scan while a bonded HOG device is disconnected (a mouse switched to another host could then suppress discovery indefinitely). The stuck Discovering path in BlueZ's stop_discovery_complete() remains a separate upstream defect.
Checked by Claude Opus 5.5 and, as a second opinion, Codex at medium effort. Codex agreed with the mechanism and that the fix is a decision, and contributed the spec section and the kernel's passive-scan comment cited above; its independence from this review is not guaranteed. This waits on the maintainer to pick a scan policy.
I'm having this same issue and I believe the reason it's sticking on my machine is due to having 2 monitors since i don't seem to have this issue when working off of a single monitor:
Summary
After opening and closing the omarchy-shell Bluetooth panel, the adapter stays in discovery (Discovering: yes) indefinitely. While it is stuck, a bonded BLE mouse (Logitech MX Master 3S) will not auto-reconnect after being power-cycled or Easy-Switched back to this machine. A manual bluetoothctl connect also times out. Power-cycling the adapter (rfkill block/unblock bluetooth) clears the discovery session, and the mouse reconnects within ~2 seconds.
Steps to reproduce
- Two monitors connected (
eDP-1+HDMI-A-1), so there are two bar/panel instances. - Confirm
bluetoothctl show | grep Discoveringreportsno. - Open the Bluetooth panel from the bar, then close it.
busctl get-property org.bluez /org/bluez/hci0 org.bluez.Adapter1 Discoveringstill reportsb truelong after close.- Easy-Switch a BLE HID device to another host and back → it never reconnects.
Expected
Discovery stops shortly after the panel closes (the discoveryStop timer in plugins/panels/bluetooth/Panel.qml), and bonded devices auto-reconnect as normal.
Actual
- Discovery stays on.
bluetoothctl scan offfails withorg.bluez.Error.Failedbecause the session belongs to quickshell's D-Bus connection, so only an adapter power-cycle or shell restart ends it. - No other BlueZ clients (blueman, bluetui, etc.) were running.
- Every boot logs this warning, so there are two Panel instances:
Opening the panel also logged:WARN scene: QML IpcHandler at file:///usr/share/omarchy/shell/plugins/panels/bluetooth/Panel.qml[640:3]: Handler was registered but will not be used because another handler is registered for target omarchy.bluetoothWARN scene: QML PanelSectionHeader at file:///usr/share/omarchy/shell/plugins/panels/bluetooth/Panel.qml[850:17]: Binding loop detected for property "height"
The comments in Panel.qml show this leak was addressed before (the A2DP stutter case). The remaining hole may be in the multi-instance paths, such as the openSibling() debt handoff or the 3-attempt cap in discoveryStop, but I haven't confirmed which.
Impact
Bonded BLE HID devices stop auto-reconnecting until the adapter is power-cycled. Continuous inquiry on the Intel CNVi controller also costs radio time for connected devices.
Environment
- Omarchy 4.0.4 (omarchy-settings 4.0.4-1)
- Kernel: linux-omarchy 7.2.5-3
- quickshell 0.3.1-1, Hyprland 0.56.2-2
- BlueZ 5.87-2, linux-firmware-intel 20260810-2
- Adapter: Intel 9560 CNVi Bluetooth (8087:0aaa), firmware build 201 week 12 2024
- Device: Logitech MX Master 3S over BLE (046D:B034)
- Monitors: 2 (eDP-1, HDMI-A-1)
Reviewed again against quattro (4e059acff) after @dgusis's two-monitor report. Nothing was reproduced here: the workers are VMs without a Bluetooth controller or a second display.
As far as the source shows, the per-monitor handoff does not leak a session in ordinary use. discoveryRetry, discoveryStop, openSibling() and the destruction handoff are the same in 4.0.4 and on quattro. One bar spans every screen, and moduleWidgets() (shell/plugins/bar/Bar.qml:851) returns the panel on each monitor. So a popout switch hands the stop to the instance still open (Panel.qml:414, Panel.qml:545-549), and an instance removed along with its monitor hands it to one that survives (Panel.qml:572-577). The IpcHandler warning only means omarchy-shell omarchy.bluetooth ... reaches one of the two instances. Each instance still runs its own stop timers. All instances share one quickshell D-Bus connection, so BlueZ sees one client either way.
There is one narrow gap, and it is not specific to two monitors. If the last panel instance is destroyed after it asks for discovery but before BlueZ confirms it, Panel.qml:578 skips the stop because Discovering is still false, and nothing is left to stop the session once it starts. That needs every bar instance torn down while the shell keeps running. Opening and closing the panel does not do that, so the gap does not explain this report.
A failing bluetoothctl scan off does not show who holds the session, because it fails for any client that did not start the scan. Two checks on your machine would tell the cases apart. Run them the next time Discovering is stuck with every panel closed:
- Run
omarchy restart shellalone, without power-cycling Bluetooth, and see whetherbusctl get-property org.bluez /org/bluez/hci0 org.bluez.Adapter1 Discoveringthen readsb false. If it does, the session belonged to quickshell and the panel leaked it. If it staystrue, it is either the BlueZ state no client can clear or another program's session, as described above. - Run
journalctl --user -b | grep 'Failed to stop discovery'. A burst of three warnings after the close means BlueZ refused the panel's stops, which points away from a panel leak.
Checked by Claude Opus 5.5, with Codex at medium effort as a second opinion. Codex agreed that the source shows no two-monitor leak, and it found the destruction gap above. Its independence from this review is not guaranteed. Choosing the scan policy is still up to the maintainer, and this issue waits on that.
Adding a lid-resume reproduction on another PCIe Intel controller. Same end state as this issue: the bond is intact, Connect does nothing, and only an adapter power cycle brings the mouse back.
This is the lid-resume path, which is not in the thread. The closest report is @iuliansafta's Dell XPS with btintel_pcie and an MX Master 4 (046d:b042); that one was a stuck Discovering session on an awake machine, not s2idle.
System
| Machine | Dell XPS 13 |
| Omarchy | 4.5.0-3 |
| Kernel | 7.2.15-1-omarchy |
| BlueZ | 5.87-2 |
| Adapter | Intel 8086:4d76 (rev 01), driver btintel_pcie, firmware intel/ibt-1190-01a1-iml.sfi 244-29.26, hci0 |
| Suspend | s2idle |
| Device | Logitech MX Master 4, 046d:b042, HOG, random address. Paired, bonded, trusted throughout |
An MX KEYS S is bonded on the same adapter and shows the same failure when it is in range.
What happens
- Close the lid. The machine enters s2idle.
- Open the lid.
bluetoothdlogs onlyController resume with wake event 0x0.- The mouse stays Connected: no. Clicking it in the Bluetooth panel does nothing.
Device1.Connecttimes out. - While it is down,
Adapter1.Discoveringis true. I did not identify which client owned the session. - The panel power switch (
omarchy-bluetooth-power, which isrfkill blockthenunblock) makes the mouse show up to the kernel about one second after the unblock. No re-pairing.
Turning the radio off and straight back on did not recover it. The cycle has to wait until the adapter is actually Powered: no, hold that for about a second, then turn it back on.
Workaround in use
A user-session watcher on logind PrepareForSleep(false) runs that rfkill cycle. On the next lid wake the log was:
11:16:17 resume, cycling adapter 11:16:18 power off 11:16:19 rfkill block 11:16:20 power on / rfkill unblock 11:16:21 kernel: input: Logitech MX Master 4
The mouse was connected after that. If Bluetooth was already soft-blocked, the watcher leaves it off. A device that is asleep or out of range stays paired and connects later on its own.
Rechecked quattro at 419a5a7095d118a218d5f84548dbd83ce90067e6 after @dennistdk's lid-resume report. I read the discovery timers, power helper and sleep paths. The worker has no Bluetooth controller, so the failure was not reproduced and no test suite was run.
The report checks Discovering after opening the panel to click the mouse. Opening the panel starts discovery itself (Panel.qml:513-516), so that observation does not establish whether discovery was already running when resume failed. Discovery is shared across client sessions, as the BlueZ Adapter API describes. The successful rfkill reset also does not distinguish scan interference from stale BlueZ/controller state. The power helper's off issues the block without waiting for Powered: no; only on waits. That is consistent with the reported timing difference, but does not establish the underlying cause.
PR #19121 now proposes a bounded panel scan and already links this issue for closure. It remains unverified and adds no resume recovery. No competing pull request was opened. An automatic rfkill reset on every resume would affect every Bluetooth controller, including working keyboards and audio; that behaviour needs the maintainer's decision.
@dennistdk, for one failing wake, temporarily pause the automatic reset watcher and keep the panel closed before suspend and through these checks:
- Record
PoweredandDiscoveringfrombluetoothctl show, physically wake the mouse, then trybluetoothctl connect <mouse-address>and record its exact result. This establishes whether connecting fails before opening the panel starts a scan. - If
Discoveringis true, read it again afteromarchy restart shellalone, then after quitting other Bluetooth clients such as Chromium, without power-cycling the adapter. Note which step clears discovery and whether the mouse reconnects. If it fails with discovery false too, filteredbtmon, Bluetooth-service journal and kernel-journal excerpts covering suspend, the failed connect and recovery would help separate controller state from a peripheral that is not advertising. Redact addresses consistently.
Checked by GPT-6 in Codex at high effort, with Opus 5.5 High and muse-wonder via pi, thinking high, as second opinions. Both identified the missing observation before opening the panel and agreed that the resume cause remains unestablished; independence is not guaranteed. This remains waiting on the maintainer's scan-policy decision, with the resume capture still needed.
More on the Chromium-family holder (@erikvanzijst, @moskovich). On my machine it is not a leaked session. Chrome holds discovery deliberately for as long as a sign-in page is open, and it re-arms the scan. This also means #19121 can't help in this case, as that PR itself says.
System: Omarchy 4.5.0-3, linux 7.2.15-4-omarchy, bluez 5.87-2, quickshell 0.3.2, Intel AX200 8087:0029 (btusb), Google Chrome 158.0.8127.36. Devices: Logitech K850 keyboard and M720 mouse, both LE HID, bonded and trusted. Symptom: neither reconnects after resume or after Easy-Switching back.
The scan alone blocks reconnect. I held a scan open and moved a disconnected M720 the whole time. It did not reconnect in 60 s, and BlueZ never reported an RSSI for it. An explicit Device1.Connect() timed out after 25 s. About 2 s after the scan stopped, the mouse reconnected on its own. This matches bluez/bluez#2826, which is on the same AX200 chip.
Chrome owns the scan. Chrome's WebAuthn hybrid (caBLE) discovery calls StartDiscoverySessionWithFilter with client name "FIDO".
- A fresh throwaway Chrome profile on
about:blankdoes not scan. In the same profile, a Microsoft 365 sign-in page (login.microsoftonline.com) setsDiscovering: truewithin 4 s, and it stays true for as long as the tab is open. Google sign-in does the same. kill -STOPon Chrome stops the scan.kill -CONTstarts it again.- Chrome restarts discovery on every
AdapterPoweredChanged. So power-cycling the adapter, or the rfkill-on-resume watcher in this thread, only clears it until Chrome re-arms it. This may explain the resume cases where a power cycle did not help. - There is no off switch. I tried the policy
DefaultWebBluetoothGuardSetting: 2,--disable-features=WebAuthenticationAmbient,WebAuthenticationAmbientSignin,--disable-features=WebAuthenticationAPIand--disable-blink-features=WebAuthenticationConditionalMediation. None of them stops the scan. In Chromium'sfido_discovery_factory.cc, hybrid discovery depends only onIsLowEnergySupported().
Why this matters on a stock Omarchy setup: omarchy-launch-webapp opens web apps in the default Chromium-family browser. Any web app that lands on a Microsoft or Google sign-in page keeps LE discovery up all day. That covers Microsoft 365, Teams and Google apps, plus the same pages in ordinary tabs.
The omarchy-shell Failed to stop discovery ... "No discovery started" bursts on this machine come from the panel adopting Chrome's session (Panel.qml:414) and then failing to stop it. The panel did not leak a session of its own.
Workaround that works here: start Chrome with DBUS_SYSTEM_BUS_ADDRESS pointing at an xdg-dbus-proxy filter that hides org.bluez and still allows org.freedesktop.*. Then Chrome never scans, and logind and UPower still work. The cost is that this browser loses Web Bluetooth and phone-as-passkey (hybrid) sign-in.
xdg-dbus-proxy "$DBUS_SYSTEM_BUS_ADDRESS" "$XDG_RUNTIME_DIR/chrome-system-bus" \
--filter --talk='org.freedesktop.*' &
DBUS_SYSTEM_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/chrome-system-bus" google-chrome-stable
So the root cause is in BlueZ/kernel, and Chrome is what triggers it here. Omarchy can't fix either one, but it chooses which browser launches its web apps. Two Omarchy-side options would help: (a) make the panel show a foreign discovery holder and its D-Bus sender, instead of failing silently, and (b) offer the D-Bus filter above as an opt-in for the browser and web app launchers.