Bug 413967 - Exiting Aeroplane Mode unconditionally re-enables Bluetooth
Summary: Exiting Aeroplane Mode unconditionally re-enables Bluetooth
Status: RESOLVED NOT A BUG
Alias: None
Product: plasma-nm
Classification: Plasma
Component: applet (show other bugs)
Version: 5.17.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-09 09:56 UTC by Unknown
Modified: 2019-11-29 11:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.17.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2019-11-09 09:56:57 UTC
SUMMARY
Aeroplane mode setting in the applet does not respect the status of Wi-Fi and Bluetooth when re-enabling the setting.

STEPS TO REPRODUCE
1. Enable Wi-Fi and disable Bluetooth
2. Enable Aeroplane mode
3. Disable aeroplane mode

OBSERVED RESULT
Wi-Fi and Bluetooth both enable.

EXPECTED RESULT
Wi-Fi should be enabled and Bluetooth disabled.
Should be the enable/disable status from before enabling aeroplane mode.

SOFTWARE/OS VERSIONS
Windows: n/a
macOS: n/a
Linux/KDE Plasma: 5.3.8-arch1-1
KDE Plasma Version: 5.17.2
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2019-11-12 21:23:18 UTC
This has irritated me for years. Your bug report inspired me to look into fixing it. It wasn't too hard, and I've submitted a patch: https://phabricator.kde.org/D25279
Comment 2 Nate Graham 2019-11-18 16:17:48 UTC
I tried to fix this but in the process discovered that it was already fixed lol!
Comment 3 Unknown 2019-11-19 09:21:17 UTC
Haha, thanks anyway!
Comment 4 Unknown 2019-11-21 06:48:18 UTC
I swear I sent this already, but apparently not...

The linked commit (https://phabricator.kde.org/R116:7dd740aa963057c255fbbe83366504bbe48a240e) appears to have been committed for Plasma 5.16.
I'm currently running Plasma 5.17 (so it should have been this version and in the one before) and I still see this issue.

I believe it mustn't have been fixed then?
Comment 5 Nate Graham 2019-11-21 15:11:05 UTC
So you're using Plasma 5.17.2 and Bluetooth turns on when you disable airplane mode, but Bluetooth was turned off when you enabled that mode?

If so, I guess it's a bug rather than an un-implemented feature. The code definitely has support for this and it works for me.
Comment 6 Unknown 2019-11-22 08:37:02 UTC
Yes.
Seems to be a bug then.
Is there anything I can do to help find a solution?
Comment 7 Nate Graham 2019-11-22 14:24:09 UTC
Try to nail down when it does and doesn't work, and provide more information. For example, do you have multiple Bluetooth adapters, or just one? What hardware are you using? Etc.
Comment 8 Unknown 2019-11-22 23:44:49 UTC
I only have one Bluetooth adapter, an integrated Wi-Fi/Bluetooth one (Intel AC 7265).

Turning Airplane mode on/off via the button in the "Networks" panel does not turn the Bluetooth adapter back on. It seems to only occur pressing the aeroplane mode key (for me, Fn + F12).

I probably should have tried doing this manually first :P
I can't find the shortcut listed for the aeroplane mode key - any hints?
Comment 9 Jan Grulich 2019-11-29 11:50:20 UTC
(In reply to Mathew from comment #8)
> I only have one Bluetooth adapter, an integrated Wi-Fi/Bluetooth one (Intel
> AC 7265).
> 
> Turning Airplane mode on/off via the button in the "Networks" panel does not
> turn the Bluetooth adapter back on. It seems to only occur pressing the
> aeroplane mode key (for me, Fn + F12).

Ok, that is not actually in our hands so whathever this key combination invokes, it's not the same what will be called when you turn on/off airplane mode in the applet

> I probably should have tried doing this manually first :P
> I can't find the shortcut listed for the aeroplane mode key - any hints?

It's not a KDE Plasma shortcut, you won't find this configurable.