Bluetooth widget disappears from shell when turned off
Summary
The Bluetooth widget completely disappears from the Omarchy status bar when Bluetooth is turned off via the UI switch. This leaves the user with no way to turn Bluetooth back on using the UI.
Expected Behaviour
When turning off Bluetooth using the status bar toggle, the widget should remain visible but display a "Turned Off" or "Disabled" state. Clicking the toggle again should turn the Bluetooth adapter back on.
Actual Behaviour
When Bluetooth is toggled off, the entire widget vanishes from the shell. The only way to restore Bluetooth functionality is via the terminal (e.g. rfkill unblock bluetooth or omarchy bluetooth power on).
Steps to Reproduce
- Open the Omarchy status bar menus.
- Ensure the Bluetooth widget is visible.
- Click the toggle switch on the Bluetooth widget to turn it off.
- The widget immediately disappears from the bar and cannot be recovered via the UI.
System Details
- OS: Omarchy Linux (Kernel: 7.1.8-arch1-3)
- Omarchy Version: 4.0.0-1
Cause of Bug
When turning off Bluetooth via the Omarchy UI toggle switch, it calls omarchy-bluetooth-power off, which soft blocks the adapter via rfkill. This causes the adapter to completely disappear from the BlueZ daemon, meaning the adapter property becomes null in Quickshell.Bluetooth.
Because the built-in omarchy.bluetooth widget (Panel.qml) has a strict visibility condition tied to the adapter (visible: adapter !== null), the widget hides itself when adapter becomes null.
The code that didn't work properly in Panel.qml:
visible: adapter !== null
// ... (inside toggleBluetooth)
function toggleBluetooth() {
if (!adapter) return
Quickshell.execDetached(["omarchy-bluetooth-power", adapter.enabled ? "off" : "on"])
}
Fix for Bug
The fix involves ensuring the widget stays visible even when the adapter disappears (due to being soft-blocked), and updating the UI text/icons and the toggle logic to handle a null adapter state.
Here are the fixes to apply in Panel.qml:
- Change panel visibility to always true:
visible: true
- Update
toggleBluetooth()to send theonsignal when the adapter is missing:
function toggleBluetooth() {
if (!adapter) {
Quickshell.execDetached(["omarchy-bluetooth-power", "on"])
return
}
Quickshell.execDetached(["omarchy-bluetooth-power", adapter.enabled ? "off" : "on"])
}
- Update the
iconandheroStatusTextto fallback to disabled visuals when!adapter:
readonly property string icon: {
if (!adapter) return ""
if (!adapter.enabled) return ""
// ...
}
(Reporting on behalf of a user using the Antigravity assistant)
Just Let Me Know if I Should Open a PR
I too was also dumbfounded at the behavior of this. I was excited about the option to turn off bluetooth but until I found this post I had no idea how to get it back. These seems like it would be expected behavior.. I suggest since you have a fix, go ahead and put in a PR for it.
Two open PRs already address this: #7048 and #7065. Both keep the widget in the bar and the toggle reachable by probing rfkill list bluetooth when BlueZ exposes no adapter, so "turned off" can be told apart from "no Bluetooth hardware" — hiding the widget is still correct in the latter case.
For anyone hitting this before either lands: omarchy bluetooth power on (or rfkill unblock bluetooth) brings it back.
Additional data point: on hardware with a platform rfkill switch, rfkill unblock bluetooth does not recover the adapter, because the switch removes the radio from the USB bus entirely.
Dell Latitude 7440, Omarchy 4.0.0-1, kernel 7.1.8-arch1-3, Intel AX211 (Raptor Lake CNVi — the Bluetooth side is USB-attached).
Before toggling off, there are two rfkill entries:
1: dell-bluetooth: Bluetooth <- platform switch
8: hci0: Bluetooth <- the adapter itself
Toggling off in the panel calls omarchy-bluetooth-power off -> rfkill block bluetooth, and the kernel log shows the device disappearing before BlueZ can shut it down cleanly (-19 is ENODEV):
kernel: Bluetooth: hci0: sending frame failed (-19)
kernel: Bluetooth: hci0: Opcode 0x0c1a failed: -19
kernel: Bluetooth: hci0: Error when powering off device on rfkill (-19)
kernel: Bluetooth: hci0: HCI reset during shutdown failed
Afterwards the adapter is gone from the kernel, not merely soft-blocked:
$ rfkill list | grep -i blue
1: dell-bluetooth: Bluetooth
Soft blocked: no <- unblocked, yet...
Hard blocked: no
<- the hci0 entry is gone
$ ls /sys/class/bluetooth/ # empty
$ lsusb | grep 8087 # no Intel radio enumerated
$ ls /sys/bus/usb/devices/1-10* # port unpopulated
$ lsmod | grep btusb
btusb ... 0 <- loaded, bound to nothing
So the documented workarounds have nothing to act on. Neither rfkill unblock bluetooth nor omarchy-bluetooth-power on recovers it — the latter exits with omarchy-bluetooth-power: adapter did not come up. Block/unblock cycling the switch does not re-enumerate it either. Only a suspend/resume or reboot brings the radio back.
This matters for both open PRs (#7048, #7065): probing rfkill list bluetooth when BlueZ exposes no adapter will correctly keep the widget visible here, since the dell-bluetooth entry persists — but the toggle still cannot revive the radio, so "on" would silently fail. Two things might be worth considering:
- Have
omarchy-bluetooth-power onreport the distinction, rather than a generic "adapter did not come up" — the radio being off the bus is not the same failure as BlueZ being slow to expose it. - Consider whether
offshould use BlueZPoweredrather than an rfkill block where the rfkill device is aplatformswitch. The persistence argument in thePanel.qmlcomment is sound, but on this class of hardware the cost is that the user cannot turn Bluetooth back on at all without a power cycle.
Happy to test a patch on this machine.
Another platform-switch data point (ThinkPad E16 Gen 1, tpacpi_bluetooth_sw from thinkpad_acpi): rfkill block bluetooth makes the EC cut USB power to the Intel radio within ~3–50 ms, so hci0 is removed from the kernel rather than soft-blocked. Here rfkill unblock bluetooth does re-enumerate it, unlike the Dell above, but the panel has nothing to act on in between.
I've filed the rfkill side separately as a root-cause issue (blocking only the hci* rfkills instead of the whole type keeps the adapter present and still persists via systemd-rfkill): #7936. #7048 / #7065 are still needed for the "no adapter but switch is soft-blocked" display state.
Re-triaged after @DrakeMorrison's ThinkPad data point and the filing of #7936. Nothing here was reproduced: the machine this ran on has no Bluetooth radio and no /dev/rfkill, so every hardware behaviour below is @oren's and @DrakeMorrison's evidence rather than something verified. What was verified is the source, plus the kernel, systemd and util-linux artefacts installed locally.
#7936's diagnosis holds up in source. omarchy-bluetooth-power off runs rfkill block bluetooth (bin/omarchy-bluetooth-power:73, and again in the toggle branch at :77), which is a type-wide block. The kernel's UAPI header spells out why that matters: RFKILL_OP_CHANGE_ALL is "userspace changes all devices (of a type, or all) into a state, also updating the default state used for devices that are hot-plugged later", where RFKILL_OP_CHANGE changes one device (include/uapi/linux/rfkill.h, enum rfkill_operation). So a type-wide block invokes every Bluetooth rfkill's set_block callback, including a platform switch's — which is exactly the mechanism both platform-switch reports describe. Blocking only the hci* indexes reaches the HCI callback and nothing else, so on the generic kernel path it should leave the platform switch untouched and the adapter enumerated.
That makes three distinct populations, and one change does not cover them all.
- Ordinary soft block, only an
hciNrfkill. Adapter stays on D-Bus atPowered: no. Never broken. - Platform switch where
unblockdoes not re-enumerate (@oren,dell-bluetooth). The radio leaves the USB bus and only suspend/resume or a reboot brings it back. #7048/#7065 keep the widget and its toggle visible here, but the toggle cannot work:power_on()has no controller to address. - Platform switch where
unblockdoes re-enumerate (@DrakeMorrison,tpacpi_bluetooth_sw). Here #7048/#7065 are a real fix, because the toggle they restore genuinely recovers the radio.
If #7936's narrower block behaves as its mechanism suggests, 2 and 3 stop happening at all and collapse into 1 — which would make it the root-cause fix and the panel PRs the display layer rather than the fix.
The panel PRs are still needed even then, for a reason worth stating. A machine that has already been turned off under the current code carries a persisted platform-switch block in /var/lib/systemd/rfkill/, which systemd-rfkill restores at every boot. On those machines the radio is gone before the panel ever loads, so the widget still has to survive an absent adapter for on — type-wide in #7936's proposal, and that is what lifts the platform block. The two changes are complementary, not alternatives. Which of #7048 and #7065 to take is not ours to pick: they are competing implementations of the same panel change, and that is a maintainer's call.
Four things #7936's proposal should handle before it lands, from checking it against the source:
- Dropping
CHANGE_ALLdrops the hot-plug default, so a dongle plugged in while Bluetooth is "off" would come up unblocked. Codex added the qualifier that this property is already lost across a reboot, since systemd-rfkill restores individual devices and never re-issues a type-wide change — so the proposal narrows an already-leaky guarantee to within one boot rather than removing a solid one. … | xargs -r -n1 rfkill blockmakesoffa silent success when nohci*rfkill is present at that moment, andbin/omarchy-bluetooth-powersets nopipefail, so a failed listing is swallowed the same way.- systemd-rfkill keys its state file on
ID_PATH(/usr/lib/udev/rules.d/99-systemd.rules:77-78importspath_idfor every rfkill device). Wherepath_idyields nothing, codex's reading of systemd'sdetermine_state_file()is that all Bluetooth rfkills fall back to one shared/var/lib/systemd/rfkill/bluetooth, in which case a savedhci0block could be restored onto the platform switch and trip the EC anyway. That could not be verified from an installed source tree here, so it is the thing to check on real hardware before assuming the narrower block persists cleanly. - State files written by the current code still hold the platform switch blocked. Keeping
ontype-wide is what repairs them, so that half of the proposal is load-bearing rather than incidental.
Two defects nobody has addressed, and all three changes leave them in place. power_on() ends at echo "omarchy-bluetooth-power: adapter did not come up" >&2; return 1 (bin/omarchy-bluetooth-power:62-63), but the panel invokes the helper through Quickshell.execDetached, which the installed type declaration exposes as a void call with no completion signal (/usr/lib/qt6/qml/Quickshell/quickshell-core.qmltypes), and neither PR attaches a handler to a power-on — so that failure cannot reach the user by any path. Separately, nothing in the repo or in either PR reads rfkill's HARD column or tells a platform rfkill from an hci one; both decide "hardware present" from rfkill list bluetooth printing anything at all, so a lone hard-blocked platform switch yields the same visible, permanently inert toggle. Both PRs also parse rfkill list, whose output rfkill(8) documents as deprecated and kept for backward compatibility only; -J or -o with named columns is the stable form.
A correction to our earlier comment here, which offered omarchy bluetooth power on as the way back: on @oren's hardware that does not work and exits 1.
Reviewed twice — by me, and independently by Codex at xhigh reasoning, read-only. Codex agreed that the narrower block should collapse the platform-switch cases into the ordinary one; that agreement is worth less than it looks, since its independence from my own reasoning is not guaranteed. What it contributed on its own: the reboot qualifier in (1), the shared-state-file risk in (3), and that neither panel PR helps #7573 either, because both probe rfkill only when the adapter is absent and keep trusting adapter.enabled when it is present. #7573 is not a duplicate of this issue — adapter present and latched at enabled == false is a different defect that happens to live in the same file.
Waiting on the maintainer: #7048, #7065 and #7936 are three open items on one bug, and the order they land in is a decision rather than a diagnosis.
This issue has been addressed in PR #7065. Here is a summary of the implementation and architecture of the fix:
Background & Root Cause
When Bluetooth is toggled off from Omarchy's UI, omarchy-bluetooth-power off applies an rfkill soft-block so the off state persists across reboots. Because BlueZ removes soft-blocked radios from its controller list, Bluetooth.defaultAdapter becomes null in Quickshell. In the original code:
- The top bar button collapsed because
visible: adapter !== nullandiconreturned"". toggleBluetooth()aborted early viaif (!adapter) return.- The hero header switch was hidden via
visible: !!root.adapter.
How It Is Fixed in #7065
-
Hardware Presence Probing (
rfkill):- When BlueZ exposes an active adapter, hardware presence is definitively confirmed (
hardwarePresent = true). - When
adapterisnull, anrfkill list bluetoothprobe runs to determine if Bluetooth hardware exists on the machine. - Fail-Closed on Non-Bluetooth / VMs: If
rfkillexits non-zero (such as on kernels without/dev/rfkillor virtual machines without radios),hardwarePresentresolves tofalseso phantom widgets are never shown.
- When BlueZ exposes an active adapter, hardware presence is definitively confirmed (
-
Resilient State Machine & Lifecycle Handling:
- Quickshell's
ProcessemitsrunningChangedwithrunning=falseon startup failure (FailedToStart) without emittingonExited. - Probing is governed by a
probePendingflag, an idempotentfinishProbe(exitCode, stdout)method, anonRunningChanged(Qt.callLater) fallback, and aprobeWatchdogtimer to prevent stranded states.
- Quickshell's
-
Zero-Flicker UI & Visual Stability:
onAdapterChangedpreserves the prior knownhardwarePresentstate during in-flight probes rather than prematurely resetting it tofalse.- Root panel visibility is bound to
hardwarePresenceKnown ? hardwarePresent : (adapter !== null). - When turned off, the status bar displays the disabled glyph
, the hero text shows"Turned Off", and the heroToggleSwitchremains visible and interactive.
-
UI Power Recovery:
- When
adapterisnullandhardwarePresentistrue, callingtoggleBluetooth()(via switch, right-click,Bkey, or IPC) callsQuickshell.execDetached(["omarchy-bluetooth-power", "on"])to lift the soft-block and restore the adapter on D-Bus.
- When
-
Test Verification:
- Fully compliant with
test/shell.d/bluetooth-test.shandtest/shell.d/bluetooth-migration-test.sh.
- Fully compliant with
A huge thank you to everyone who supported, tested, explained, and helped resolve this:
- @whughesiii2187 for reporting the issue and detailing the initial reproduction steps.
- @oren and @DrakeMorrison for thorough testing across diverse hardware setups (Dell & ThinkPad) and pinpointing kernel/rfkill differences.
- @omarchybot for the detailed architectural reviews, identifying subtle edge cases (Quickshell's
FailedToStartprocess lifecycle, non-zero exit handling on VMs, and power-off glyph flicker), and helping keep test assertions green.
Really appreciate everyone's insights and collaborative effort in getting this properly fixed in PR #7065!
Re-triaged after @elytraVIII's summary, and the short version is that it is right about the half of this that lives in the panel and does not cover the half that lives in bin/omarchy-bluetooth-power. The writeup is accurate about what #7065 does and the lifecycle work behind it is genuinely careful — this is not a correction of it so much as a boundary around it.
Everything below is source, not reproduction: this machine has no Bluetooth radio and no /dev/rfkill, so the hardware behaviour is @oren's and @DrakeMorrison's evidence. What was checked here is the repo plus the installed kernel modules, BlueZ, systemd, util-linux and Quickshell artefacts.
The defects the summary lists are real and #7065 addresses them. visible: adapter !== null (Panel.qml:500), icon returning "" on !adapter (:58-59), heroStatusText falling back to "No adapter" (:77-78), toggleBluetooth() returning early on !adapter (:635-636), and the hero switch's visible: !!root.adapter (:714). All of them are in the base branch today.
One premise underneath it reads differently against the source. "BlueZ removes soft-blocked radios from its controller list, so Bluetooth.defaultAdapter becomes null" is not what a soft block on the adapter's own hciN rfkill does. BlueZ represents exactly that state on the adapter object: org.bluez.Adapter(5) documents PowerState value off-blocked as "Blocked by rfkill", alongside Powered on the same Adapter1 interface. Quickshell has the matching notion — BluetoothAdapterState includes Blocked (quickshell-bluetooth.qmltypes) — and tracks adapters through InterfacesAdded/InterfacesRemoved, which a Powered change does not trigger. The repo says the same in two places: bin/omarchy-bluetooth-power:71-73 ("the block already drops the adapter to Powered: no") and the comment above toggleBluetooth() in Panel.qml ("Powered still follows the block, so the switch and icon read it as before"). On that hardware the unpatched panel already shows and "Turned Off" and its switch already works.
So the adapter going null — the symptom in this report — is the radio leaving the bus, and that is a different bug in a different file. bin/omarchy-bluetooth-power:73, and :77 in the toggle branch, run rfkill block bluetooth: a block against the whole type, not against the adapter's own rfkill index. The kernel UAPI is explicit about what that changes — RFKILL_OP_CHANGE "changes one device", RFKILL_OP_CHANGE_ALL changes "all devices (of a type, or all) into a state, also updating the default state used for devices that are hot-plugged later" (include/uapi/linux/rfkill.h, enum rfkill_operation). So the block reaches every Bluetooth rfkill's set_block callback, platform switches included; the installed modules confirm both reported machines register one (dell-laptop.ko exports dell-bluetooth and dell_rfkill_set, thinkpad_acpi.ko exports tpacpi_bluetooth_sw and tpacpi_rfk_hook_set_block). That is #7936, and neither #7048 nor #7065 touches that file — both change only shell/plugins/panels/bluetooth/Panel.qml.
@DrakeMorrison's persistence claim holds, and better than we said last time. systemd-rfkill's determine_state_file() reads ID_PATH from the rfkill device itself — not from its parent — and writes /var/lib/systemd/rfkill/<escaped ID_PATH>:<type>, falling back to a bare <type> only when ID_PATH is unset; /usr/lib/udev/rules.d/99-systemd.rules:78 sets IMPORT{builtin}="path_id" on every rfkill device, and path_id derives its value by walking the device's ancestors. State is saved on RFKILL_OP_CHANGE and restored on RFKILL_OP_ADD, with no dependence on the change having been type-wide. So a per-index hci* block persists across a reboot exactly the way the type-wide one does, and the platform switch and the adapter normally land in separate state files. This corrects point 3 of our previous comment here, which read ID_PATH off the parent device and warned that all Bluetooth rfkills might share one /var/lib/systemd/rfkill/bluetooth; that only happens where path_id yields nothing for that rfkill, or where two Bluetooth rfkills genuinely resolve to the same path.
What the narrower block does give up is the CHANGE_ALL hot-plug default: a dongle plugged in while Bluetooth is "off" comes up unblocked. For the same adapter re-enumerating at the same path, systemd-rfkill's restore-on-add reapplies the saved block, so @DrakeMorrison's first caveat is narrower than stated — it bites for new devices rather than for a resume. Worth handling; not an argument against the direction.
What each machine gets if #7065 lands on its own:
- Only an
hciNrfkill, no platform switch. Nothing changes, because nothing was broken — the adapter never disappeared. - Platform switch where
unblockre-enumerates (@DrakeMorrison,tpacpi_bluetooth_sw). Fixed, properly: the widget survives, the toggle is reachable, andomarchy-bluetooth-power ongenuinely brings the radio back. This is a real repair, not a cosmetic one. - Platform switch where
unblockdoes not re-enumerate (@oren,dell-bluetooth). A visible switch attached to a radio that is physically off the USB bus. Strictly better than a vanished widget — the user can see the state and is not left guessing — but flipping it cannot work, andpower_on()'s failure atbin/omarchy-bluetooth-power:62-63has no route to the UI: the panel calls the helper throughQuickshell.execDetached, which the installed type declaration exposes as a void call with no completion signal.
That is the whole of the answer to "does merging #7065 close this": for the ThinkPad-class population yes, for the Dell-class population no, and for the ordinary population there was nothing to close. Whether that means keeping #6956 open or folding the remainder into #7936 is the maintainer's call, not ours — we would only flag that closing on the merge would close it for @oren too.
One thing that would sharpen it, @elytraVIII. The report doesn't say which of those three groups your own machine is in, and it decides whether #7065 closes this for you. rfkill list -o ID,TYPE,DEVICE,SOFT,HARD before and immediately after toggling off would settle it: a dell-*/tpacpi_*-style entry alongside hci0 puts you in the platform-switch group with #7936 as the root cause; hci0 alone surviving the block at SOFT: yes would mean something else is dropping the adapter and we should look again.
Carried forward, unchanged. Nothing in the repo or in either PR reads rfkill's HARD column or tells a platform rfkill from an hci one, so a hard-blocked radio yields the same visible, inert toggle — though on this mechanism reading HARD would not help anyway, since userspace sends a soft block to the platform switch and the driver callback is what removes power; matching ^hci on DEVICE is the distinction that matters. Both PRs also invoke rfkill list, whose output rfkill(8) documents as deprecated and kept for backward compatibility only; they only test it for emptiness, so the exposure is small, but -o with named columns is the stable form. And nothing automated can catch this hardware path: the suite's rfkill mock (test/shell.d/bluetooth-test.sh:171-180) flips a Powered file and never removes a controller or models a platform switch, so a green ./test/shell says nothing either way here. #7573 is still not a duplicate of this one.
Reviewed by two models: Claude Opus 5, and Codex at xhigh reasoning as an independent second opinion (read-only; its independence from the first review is not guaranteed, so where it merely agreed that carries less weight than it looks). Its own contributions, verified here before being repeated: the org.bluez.Adapter(5) off-blocked documentation and Quickshell's Blocked adapter state, which are what refute the BlueZ premise from documentation rather than inference; the two platform driver modules' symbols; that reading HARD would not have identified this mechanism; and that the test mock cannot model controller removal. It reached the same conclusion on the main question — that #7065 is a defensive panel improvement rather than the closing fix.
Here is the rfkill list -o ID,TYPE,DEVICE,SOFT,HARD output from my machine:
ID TYPE DEVICE SOFT HARD
0 bluetooth tpacpi_bluetooth_sw unblocked unblocked
1 bluetooth hci0 unblocked unblocked
2 wlan phy0 unblocked unblocked
This confirms my system is in the ThinkPad ACPI platform-switch group (tpacpi_bluetooth_sw alongside hci0), where the type-wide block removes the controller from the bus, and omarchy-bluetooth-power on successfully re-enumerates it.
PR #7065 has also been updated to address the review feedback (fail-open inconclusive probe handling, probe generation counter for race immunity, and modern rfkill syntax).
@omarchybot Hardware diagnostics posted above for review.
Thanks for the rfkill output, @elytraVIII — it does the job it was asked to do. tpacpi_bluetooth_sw sitting alongside hci0, both of type bluetooth, puts your machine in the ThinkPad-class population: a platform switch that rfkill block bluetooth at bin/omarchy-bluetooth-power:73 (and :77 in the toggle branch) reaches along with the adapter's own rfkill. That is the group @DrakeMorrison measured on a ThinkPad E16 Gen 1, where the EC cuts USB power to the radio and unblock re-enumerates it. So for your machine, #7065 is a real fix rather than a cosmetic one, and the remainder of this issue — the radio being switched off rather than merely blocked — is @oren's Dell case and #7936.
What the widget is actually keyed on, since it decides which defect you hit. On the base branch the bar widget's visibility is visible: adapter !== null (Panel.qml:500) — the adapter object being present, not the adapter being powered. adapter.enabled is only ever read for the glyph (:59-60), the hero text (:78-79) and the switch (:714-715). That distinction is what makes "the widget disappears when I turn Bluetooth off" a hardware symptom rather than a binding mistake: had the block merely dropped Powered to false, the object would have stayed and the unpatched widget would have shown and "Turned Off" without anyone filing anything. The widget vanishing means Bluetooth.defaultAdapter went to null, and on your hardware the platform switch is the thing that can do that.
One honest limit on that. Your capture is a single snapshot with everything unblocked — the "before" half. It establishes that the platform switch exists for the type-wide block to reach, which is the half that places you; it does not show hci0 going away under the block. And a null defaultAdapter is a userspace observation: a bluetoothd failure or a lost D-Bus connection would look the same to the shell. Neither of those is a likely reading of a symptom that follows a deliberate power-off and clears on omarchy-bluetooth-power on, so we are not asking for more data — but "the type-wide block removes the controller from the bus on this machine" is inference from a named platform switch plus a matching measurement on someone else's ThinkPad, not something this output proves. A capture taken immediately after toggling off, with tpacpi_bluetooth_sw blocked and no hci0 row, would close that gap if you happen to take one.
On the updated #7065 (head 4d41b998), since it was announced here. Two things, both about the new probe rather than the direction:
- The generation guard does not guard the paths that carry the race.
finishProbe()rejects ongeneration !== root.probeGeneration, butonExitedand the watchdog both pass the liveroot.probeGenerationat completion time, so that comparison can never be true for either. Only theonRunningChanged/Qt.callLaterpath captures a generation first, and it is the one path that already cannot go stale in the same way. Concretely: probe 1'sexitedarriving after probe 2 has started passes generation 2, findsprobePendingtrue, and is accepted as probe 2's result — stale exit code, stale stdout. Each completion needs an identity captured when that run or that timer started, not read from the counter when it fires. - The probe now fails open, and that has a consequence worth choosing deliberately. On a machine with
/dev/rfkillbut no radio,rfkill -n -o DEVICE list bluetoothexits 0 with empty stdout and the panel correctly concludes no hardware. On a machine with no/dev/rfkillat all it exits 1 with empty stdout andrfkill: cannot open /dev/rfkillon stderr — checked here, in a throwaway mount namespace with/dev/rfkillhidden — which the newelsebranch reads as hardware present. That is a permanently visible, inert Bluetooth widget on VMs, containers and kernels built without rfkill. It is a defensible trade against locking a real user out of their radio; it is the opposite of what the previous head did, so it should be a decision rather than a side effect. Moving to-n -o DEVICEis the right call regardless.
There is now a third panel PR. #8102 (Keep Bluetooth in the bar while the radio is blocked) takes the same shape by a different route: a bin/omarchy-hw-bluetooth helper that reads /sys/class/rfkill/*/type directly instead of parsing rfkill output, with the panel keyed on hasBluetooth. It is also the only one of the three that touches bin/omarchy-bluetooth-power — but for power_on()'s structure and a bt-agent.service start, not for the block. So all three of #7048, #7065 and #8102 leave rfkill block bluetooth type-wide, and none of them changes what happens to the radio. Which of the three lands, and in what order relative to #7936, is the maintainer's call; we are only noting that it is now a three-way choice rather than a two-way one.
A link worth recording, not a claim about this issue. @johnrshirley2-blip has reported a Quickshell SIGSEGV on #6952 reached through this panel — clicking to disconnect a headset, with Repeater { model: root.connectedRows } named. The two panels defend against that crash class differently, and it matters which defence is which. Bluetooth's rows are a primitives-only projection (Model.js:82-99, Panel.qml:139 and :151), so its delegate rows arrive as QVariantMap and take the branch at qqmldmlistaccessordata_p.h:213-216; the unguarded row->value<QObject *>()->metaObject() at :222 is reachable only for a row whose metatype is PointerToQObject, which is what the audio panel's shallow listSnapshot() of live PwNode objects produces. On that mechanism the Bluetooth Repeater cannot be the same defect. What Bluetooth does lack is audio's other defence: connectedRows and scrollRows are plain bindings with no debounce and no open gate, where audio refreshes only while open and behind a 75 ms timer (audio/Panel.qml:310, :332, :341), and the popout's children are instantiated eagerly (Ui/KeyboardPanel.qml:63), so those Repeaters rebuild on every BlueZ device change whether the panel is open or not. As for this issue being a second trigger: turning the radio off does drop every device at once, but the helper runs through execDetached, so BlueZ's removal arrives well after the click that caused it — not the mouse-release stack in that report. Recording the link for whoever picks up #6952; nothing here changes what #6956 is.
Reviewed by two models: Claude Opus 5, and Codex at xhigh reasoning as a second opinion (read-only, and its independence from the first review is not guaranteed, so agreement between them is worth less than a finding either reached alone). Codex contributed the qualification above that a null defaultAdapter does not by itself prove a kernel-level removal, the walk-through of how a stale exited is accepted as a newer probe's result, and the observation that a hardware-presence patch has to fix the blank icon and the null-adapter toggle guard as well as visibility or it leaves a dead widget. Three of its file:line citations were wrong and were corrected against the source before being used here — it placed the rfkill block at :70/:75 and the unblock at :51, where the file has them at :73, :77 and :52.
Can confirm this on a ThinkPad with tpacpi_bluetooth_sw. When Bluetooth is turned off via the shell menu (omarchy-bluetooth-power off), tpacpi_bluetooth_sw is soft-blocked and the kernel removes hci0 completely:
0: tpacpi_bluetooth_sw: Bluetooth
Soft blocked: yes
Hard blocked: no
Because hci0 vanishes, Quickshell's Bluetooth.defaultAdapter becomes null and the widget immediately disappears from the bar with no way to turn it back on from the GUI. Looking forward to seeing one of the PRs addressing this merged!
ThinkPad X1 Carbon Gen 12 (21KCS4S900, tpacpi_bluetooth_sw + Intel AX211 8087:0033 on usb 3-10) hits the same widget-disappears path (visible: adapter !== null / toggleBluetooth() returns on !adapter).
It is not in the “unblock re-enumerates, so a visible toggle is a real fix” ThinkPad group from earlier comments. After omarchy-bluetooth-power off, rfkill/ACPI already showed unblocked/enabled, omarchy bluetooth power on failed with adapter did not come up, and usb 3-10 looped as low-speed error -71 until an xHCI reset of 0000:00:14.0. Details, kernel excerpts, and failed recoveries are on #7936.
A panel PR that only keeps the icon and calls omarchy-bluetooth-power on would not have recovered this radio. Prevention is still the type-wide rfkill block bluetooth in omarchy-bluetooth-power off.