Bug 479867

Summary: Bluetooth device list is shown in the applet on startup even if Bluetooth is disabled
Product: [Plasma] plasmashell Reporter: Ilya Bizyaev <bizyaev>
Component: Bluetooth widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: agurenko, nate, nowrep, popov895, postix
Priority: NOR Keywords: qt6
Version First Reported In: 6.2.4   
Target Milestone: 1.0   
Platform: Compiled Sources   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=469119
https://bugs.kde.org/show_bug.cgi?id=496865
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of the issue
Even if bluetooth is "disabled", the applet still shows the action to add a device

Description Ilya Bizyaev 2024-01-15 21:08:03 UTC
SUMMARY

When I log in to the Plasma session, Bluetooth is disabled (even though I've configured it to always be enabled on login through System Settings, but that's for another bug report). In the applet, Bluetooth is shown to be off, but my saved devices are still listed. Clicking “Connect” on any of them creates a push notification saying that “The device is not ready”.

Then I flip the switch to “on” and connect to the devices normally.

Disabling Bluetooth again does make the placeholder screen appear, so the issue only occurs after session startup.

OBSERVED RESULT
A list of my paired devices is shown in the Bluetooth applet when I log into the session, even though Bluetooth is disabled.

EXPECTED RESULT
The placeholder screen is disabled instead of the device list whenever Bluetooth is off.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240111
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1
Kernel Version: 6.6.10-1-default (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 Ilya Bizyaev 2024-01-15 21:21:47 UTC
Created attachment 164932 [details]
Screenshot of the issue
Comment 2 Nate Graham 2024-01-18 22:47:41 UTC
When this happens, is Bluetooth in fact disabled? Or is the switch showing the incorrect state, and Bluetooth is actually enabled?
Comment 3 Ilya Bizyaev 2024-01-19 21:21:44 UTC
It is disabled, according to bluetoothctl > "show"
(because of https://bugs.kde.org/show_bug.cgi?id=479868)
Comment 4 popov895 2024-03-09 15:49:07 UTC
Created attachment 166802 [details]
Even if bluetooth is "disabled", the applet still shows the action to add a device

Might be related. Actually, the switch in the header of the applet doesn't disable bluetooth. Here's the output of rfkill after "disabling" bluetooth using this switch:

> $ sudo rfkill list
> 1: tpacpi_bluetooth_sw: Bluetooth
>         Soft blocked: no
>         Hard blocked: no
> 2: hci0: Bluetooth
>         Soft blocked: no
>         Hard blocked: no

It's Neon User Edition, Plasma 6.0.0.
Comment 5 Nate Graham 2025-04-16 19:57:38 UTC
This is all very strange. Is anyone able to reproduce it with newer versions of Plasma, bluez, and the kernel?
Comment 6 Bug Janitor Service 2025-05-01 03:47:33 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2025-05-16 03:46:57 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.