Bug 461111 - The Bluetooth widget keeps on spinning even if Bluetooth is disabled
Summary: The Bluetooth widget keeps on spinning even if Bluetooth is disabled
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Bluetooth widget (other bugs)
Version First Reported In: 6.2.4
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-28 12:24 UTC by Riccardo Robecchi
Modified: 2024-12-17 21:08 UTC (History)
2 users (show)

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


Attachments
Screenshot (6.64 KB, image/png)
2022-10-28 12:24 UTC, Riccardo Robecchi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Riccardo Robecchi 2022-10-28 12:24:13 UTC
Created attachment 153261 [details]
Screenshot

SUMMARY
Under circumstances that seem to include a failed connection, the Bluetooth widget starts spinning to show that it's trying to connect to a device but then never stops, even if the user disables the Bluetooth connection altogether.

STEPS TO REPRODUCE
1. Try to connect to a device

OBSERVED RESULT
The Bluetooth widget shows a spinning circle that never stops spinning.

EXPECTED RESULT
The Bluetooth widget shows a spinning circle that stops spinning when the connection is established or fails.

SOFTWARE/OS VERSIONS
Linux: KDE Neon (20.04)
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-10-28 20:04:52 UTC
I tried connecting to a device that's turned off and could not reproduce the issue. Could you describe in detail how you make this happen?
Comment 2 Riccardo Robecchi 2022-10-29 08:12:50 UTC
Yes, connecting to a device that turns off doesn't do it. It is difficult to reproduce, but it has happened to me multiple times. It seems like the key is for the Bluetooth device you're trying to connect to not to set up the connection properly for whatever reason. On the last occurrence, I tried to connect a pair of Sony WH-1000XM5 to my computer and the connection was set up, but improperly: the headphones appeared as "connected", but then they didn't turn up among the audio devices. I had to disconnect and re-connect them in order for them to work as expected, but the Bluetooth widget kept on showing the spinning circle even after the connection was set up properly.
Comment 3 ratijas 2022-11-02 12:49:26 UTC
Hi, I have a pair of WH-1000XM4 (that's 4 at the end, unlike your 5th model), but I experienced similar problem while trying to connect to headphones when they have already connected to my smartphone. The laptop/Plasma couldn't take over the connection, but it still showed up in applet as "Connected" for a bit, before glitching out and returning to normal Disconnected state.

Unlikely to have anything to do with Plasma, which is merely a messenger in the grand scheme of drivers and whatever Bluetooth management services.
Comment 4 Riccardo Robecchi 2022-11-21 18:48:10 UTC
It has just happened again, this time with a pair of Tin HiFi Tin Buds 3 which immediately and successfully connected to my computer. I have two panels, one for each screen, and the spinning only occurs on the widget which I used to connect to the device. Given this, I would say that the problem lies within the Plasma widget - also because restarting it fixes the issue and because the Bluetooth KCM module works as intended.
Comment 5 Riccardo Robecchi 2023-05-17 17:10:49 UTC
It has just happened again, but this time the device was properly connected and I was simply disconnecting from it. The animation started spinning, the device correctly disconnected and I immediately turned off Bluetooth, but the widget keeps on spinning. It has to be noted that I have two screens, with a panel each having its own Bluetooth widget, and it only does this on the widget where I disconnected the device and turned off Bluetooth.
Comment 6 ratijas 2023-05-18 06:46:27 UTC
I seems that bluetooth infrastructure of Plasma is not fully synchronized with the backend. Sometimes state is wrong, other times devices are missing and so on. For example, on my new Steam Deck I paired bluetooth keyboard while in Steam OS mode; then switched to the desktop, and keyboard kept working, but the applet didn't list it. Then, at some later point, I paired a Nintendo Switch Pro Controller to the Deck, and after few rounds of turning on/off and switching between desktop and Steam OS mode, it lost connectivity, but was still in the applet & KCM, and required removing it from KCM and also rebooting to pair again. Maybe an underlying bluetooth stack bug too, idk.