Repository navigation
Conversation
Once omarchy-bluetooth-power blocks the radio, BlueZ drops the controller from D-Bus and defaultAdapter becomes null. Treat that as off, keep the bar control visible, and turn the radio back on through the helper. Co-authored-by: AnPod <AnPod@users.noreply.github.com>
6a8c1ad to
1206e84
Compare
|
Thanks for tracking this down. The diagnosis in #13523 is right: once the radio is blocked, the adapter can be null and the early return in The problem is #13204 does the same recovery but only keeps the widget when rfkill reports a blocked Bluetooth switch. That covers the null-adapter case, including a machine that boots with the block already restored by systemd-rfkill, and still hides the widget when there is no hardware. #12585 takes a similar approach with a bit more machinery. The root cause, the type-wide What was checked: I read the diff against Next step: the choice between these competing fixes is the maintainer's. |
|
Thank you for this, @AnPod. #13204 got there first with a fix for the same problem, so this is closed in favour of it, and the credit stays with the first fix. If it does not cover your case, please say so there. Closed at the maintainer's request. The review comment above has the details; it was done by Claude Opus 5.5 with Codex Medium as a second opinion, whose agreement is not independent. |
Summary
Fixes omacom/omarchy#13523: after turning Bluetooth off via the bar,
omarchy-bluetooth-powerrfkill-blocks the radio, BlueZ drops the controller from D-Bus, andBluetooth.defaultAdapterbecomesnull. The panel'sif (!adapter) returnthen made turn-on a silent no-op.Changes
toggleBluetooth()callsomarchy-bluetooth-power onTest plan
./test/shell.d/bluetooth-test.shUpstream
#13523