Skip to content

AirplaneMode: use RFKill#340

Merged
leonardo-lemos merged 4 commits intomasterfrom
danirabbit/airplanemode-rfkill
May 3, 2025
Merged

AirplaneMode: use RFKill#340
leonardo-lemos merged 4 commits intomasterfrom
danirabbit/airplanemode-rfkill

Conversation

@danirabbit
Copy link
Member

@danirabbit danirabbit commented May 3, 2025

This changes Airplane Mode so that it uses RFKill to disable radios, not disable all networking. This means Airplane mode correctly disables wifi and cellular, but not wired networking

Partially fixes #45. The toggle is now correct but the indicator is not

Set state based on rfkill device change

Change to airplane mode

less namespace

Try all rather than any

All hardware OR all software
@danirabbit danirabbit force-pushed the danirabbit/airplanemode-rfkill branch from a477f78 to 6f93af5 Compare May 3, 2025 17:51
@lenemter
Copy link
Member

lenemter commented May 3, 2025

Airplane mode correctly disables wifi and bluetooth

We shouldn't disable Bluetooth, should we? I remember Android used to disable Bluetooth on airplane mode but they removed it because people use wireless headphones/other peripherals and people expect them to keep working even in airplane mode

@danirabbit
Copy link
Member Author

@lenemter okay yeah I can confirm on my iPhone as well that airplane mode only turns off cellular and wireless, it doesn't turn off bluetooth. Updated!

Copy link
Collaborator

@leonardo-lemos leonardo-lemos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected and code looks good.

@leonardo-lemos leonardo-lemos merged commit c798dbd into master May 3, 2025
4 checks passed
@leonardo-lemos leonardo-lemos deleted the danirabbit/airplanemode-rfkill branch May 3, 2025 19:51
@github-project-automation github-project-automation bot moved this from Needs Review to Done in OS 9 May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Show airplane mode icon when airplane mode key is pressed

3 participants