omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Bluetooth panel shows turned off while a device is connected

Open AnoopLamba opened this issue 1 month ago • 5 comments

Summary

The Bluetooth quick-settings panel reports Bluetooth as “TURNED OFF” while it shows my headset as connected. The panel toggle also does not let me reliably turn Bluetooth on or off.

What happened

Last night I was using Bluetooth headphones and left the laptop as it was. The headphones later powered off. Today I turned the headphones back on and opened Bluetooth from the bottom status bar/navbar. The panel showed “TURNED OFF” even though it listed the headphones as connected. I have seen this issue before.

Steps to reproduce

  1. Use Bluetooth headphones with the laptop.
  2. Leave the laptop as-is while the headphones power off.
  3. Turn the headphones back on.
  4. Open Bluetooth using its option in the bottom status bar/navbar.

Actual behavior

The panel says “TURNED OFF” while listing my Rockerz 335 headphones as connected. I am unable to turn Bluetooth on or off from the control. The attached screenshot shows the panel state.

Expected behavior

The panel should show the actual Bluetooth power state and allow Bluetooth to be toggled. If the headphones have disconnected, the panel should not show them as connected.

System details

  • Omarchy 4.0.4-1
  • Headphones: Rockerz 335

At the time I checked, bluetoothctl show reported the controller as powered on and rfkill showed no Bluetooth block.

AnoopLamba avatar Oct 17 '26 09:10 AnoopLamba

Image

AnoopLamba avatar Oct 17 '26 09:10 AnoopLamba

Thanks for the clear report. This looks like #7573, but one fact from your machine would settle it.

What was checked: the panel's "TURNED OFF" and its switch both come from one value, the power state Quickshell (the toolkit the bar is built on) holds for its default Bluetooth adapter (shell/plugins/panels/bluetooth/Panel.qml:25, :80, :719). The device list is read separately and covers every adapter, so a connected headset still shows up. When the panel thinks Bluetooth is off, the switch sends "turn on" (Panel.qml:638). bin/omarchy-bluetooth-power treats that as already done once any controller reports powered, so the switch does nothing.

Two things can make that value wrong while bluetoothctl show says powered:

  • Quickshell's cached state goes stale after the machine sleeps. This is #7573. Logs there from several machines show BlueZ removing and re-adding the adapter on resume. Quickshell records it as still powering up and never reads it again. omarchy restart shell fixes it, and the real fix is in Quickshell (quickshell-mirror/quickshell#1156, still open). Nothing on quattro has changed this since 4.0.4.
  • Two Bluetooth controllers (a built-in one and a USB dongle, say). The panel shows the first one Quickshell found, and it can be off while your headset is on the other one.

Your report fits both. It doesn't say whether the laptop suspended overnight or how many controllers it has. Next time it happens, before restarting anything, could you post the output of:

bluetoothctl list
busctl --system get-property org.bluez /org/bluez/hci0 org.bluez.Adapter1 Powered

Please also say whether audio was actually playing through the headphones, and whether omarchy restart shell puts the panel right. If only one controller is listed and the restart fixes it, this is #7573 and can be closed in favour of it.

Nothing was reproduced: the review machines have no Bluetooth controller to suspend. Claude Opus 5.5 diagnosed it. Codex Medium and Muse Spark 1.3 (high) each checked the code paths above and found them as described. Neither would call it the same bug as #7573 without the answers above, and their independence is not guaranteed. Muse Spark also suggested that the headset row could be the stale part instead. That would need the adapter to be off, which bluetoothctl show ruled out on a machine with one controller. Codex Medium also classified this one separately as a bug, and agreed. Next step: your answers above, then the maintainer decides whether to close this in favour of #7573.

omarchybot avatar Oct 23 '26 01:10 omarchybot

On my system, bluetoothctl list shows one controller: 50:5B:C2:D9:0A:18 (omarchy, default). The adapter is hci1 here, and busctl --system get-property org.bluez /org/bluez/hci1 org.bluez.Adapter1 Powered returns b true (hci0 does not exist).

The panel says “Turned Off” while listing my Rockerz 335 as connected; bluetoothctl info also reports Connected: yes. I have not checked whether audio was actually playing, and I have not run omarchy restart shell, so I cannot say whether that fixes the panel. My system journal does show a suspend/resume.

AnoopLamba avatar Oct 23 '26 05:10 AnoopLamba

Thanks, that answers the main question. On a machine with one controller, an adapter at hci1 with no hci0 means a controller was registered again after boot, and together with the suspend in your journal that is the pattern in #7573: BlueZ removes the adapter on resume and adds it back. Quickshell's current source (src/bluetooth/bluez.cpp) then drops the old adapter and makes the new one the panel's default. If that new adapter's first reported state is "off, powering up", the cached value never changes, and the panel shows "Turned Off" while busctl says Powered: true. The name changing from hci0 to hci1 doesn't matter, and the upstream fix (quickshell-mirror/quickshell#1156, still open) describes a reproduction where the index changed too. Nothing in Omarchy's panel assumes hci0, so there is nothing to fix on this side.

What is not established: that your machine got that "powering up" state. Only a Quickshell debug log from a resume would show it. If you see it again, it would still help to know whether omarchy restart shell puts the panel right, because that is the workaround for #7573 until the Quickshell fix ships.

Claude Opus 5.5 checked your answers against Quickshell's source. Codex Medium reviewed the same and agreed. It added the upstream index-change reproduction, and said a resume log from your machine would be needed to confirm it. Its independence is not guaranteed. A separate duplicate check, also by Codex Medium, would not close this as #7573 on the evidence so far. Next step: the maintainer decides whether to close this in favour of #7573.

omarchybot avatar Oct 23 '26 05:10 omarchybot

Thanks for the explanation. I have not run omarchy restart shell, so I cannot confirm whether it fixes the panel. I also do not have a Quickshell debug log from the resume to confirm the “powering up” state. The panel showing “Turned Off” while the headset is listed as connected is the issue I reported.

AnoopLamba avatar Oct 23 '26 05:10 AnoopLamba