Bug 420238 - Bluetooth toggle overrides airplane mode
Summary: Bluetooth toggle overrides airplane mode
Status: RESOLVED INTENTIONAL
Alias: None
Product: Bluedevil
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 5.18.4
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-18 11:05 UTC by Alexandre CATTEAU
Modified: 2023-12-20 20:20 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Network applet with airplane mode enabled and Bluetooth enabled (21.21 KB, image/png)
2020-04-18 11:05 UTC, Alexandre CATTEAU
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre CATTEAU 2020-04-18 11:05:25 UTC
Created attachment 127636 [details]
Network applet with airplane mode enabled and Bluetooth enabled

SUMMARY
When airplane mode is enabled, Bluetooth can still be enabled via its own applet.


STEPS TO REPRODUCE
1. Have a Bluetooth adapter and a Wi-Fi (or modem) adapter
2. Enable airplane mode
3. Try to enable Bluetooth

OBSERVED RESULT
Bluetooth is enabled while airplane mode is still active


EXPECTED RESULT
Bluetooth should not enable (and checkbox not be clickable)


SOFTWARE/OS VERSIONS
Arch Linux
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69
Qt Version: 5.14.2

ADDITIONAL INFORMATION
It may be related to bug #399993 and the related commit.
Comment 1 Shubham Arora 2023-12-18 09:50:36 UTC
I think this bug can be closed. It is a expected behaviour for Bluetooth to remain available when in airplane mode. In current behavior on toggling airplane mode Bluetooth is disabled  which user can override. Android behaves similarly as well. On android the Bluetooth is not disabled at all when enabling airplane mode  if any device is connected. Maybe we should emulate this behavior.

Maybe if you can add more info for what reason this functionality is required.
Comment 2 Alexandre CATTEAU 2023-12-18 17:39:02 UTC
Coming back to this issue today, I believe my point was on consistency: You should not be able to disable Airplane mode by toggling something it forbids (like Wi-Fi). If we consider that Bluetooth should not be forbidden by Airplane mode, fine by me. But then I would support de-correlating those entirely and not reproduce the Android behavior mentioned above.

So I suggest removing Bluetooth disablement when enabling Airplane mode.
Comment 3 Shubham Arora 2023-12-19 05:33:19 UTC
I verified this with Wifi  as well, on android wifi is allowed to be enabled in Airplane mode. I believe originally airplane mode was made mainly for cellular services (i don't have the hardware to test this).

On Android :

Enable Airplane mode -> Wifi is disabled even if devices are connected.
Enable Wifi in airplane mode -> Wifi can be enabled, airplane mode still remains enabled.