Skip to content

fix: toggle kernel rfkill for bluetooth in set_bluetooth_radio_enabled#418

Merged
cachebag merged 2 commits into
masterfrom
fix/rfkill
May 14, 2026
Merged

fix: toggle kernel rfkill for bluetooth in set_bluetooth_radio_enabled#418
cachebag merged 2 commits into
masterfrom
fix/rfkill

Conversation

@cachebag
Copy link
Copy Markdown
Collaborator

  • Toggle kernel rfkill (rfkill block/unblock bluetooth) before toggling BlueZ adapter Powered properties in set_bluetooth_radio_enabled
  • Ensures Bluetooth soft-block state is visible to components that read rfkill to determine airplane-mode status (e.g. cosmic-settings-airplane-mode-subscription)
  • Adds process feature to workspace tokio dependency

Context

When set_airplane_mode was used in cosmic-applet-network (PR pop-os/cosmic-applets#1392), the airplane toggle would visually bounce back. Root cause: the applet's subscription determines airplane mode by checking rfkill list bluetooth for a soft block, but nmrs only toggled BlueZ D-Bus Powered — which doesn't update kernel rfkill state. This meant the subscription would immediately read BT as "not blocked" and flip the toggle back.

Related to issue seen in pop-os/cosmic-applets#1392 (comment)

@cachebag cachebag self-assigned this May 14, 2026
@cachebag cachebag added bug Something isn't working nmrs Changes to nmrs labels May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working nmrs Changes to nmrs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant