Bug 454816

Summary: Diabling bluetooth causes long lag in plasmashell/system settings
Product: [Plasma] plasmashell Reporter: Natalie Clarius <natalie_clarius>
Component: Bluetooth in generalAssignee: David Rosca <nowrep>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kdedev, lemmyg, nate, plasma-bugs, popov895
Priority: NOR    
Version: 6.2.4   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Natalie Clarius 2022-06-03 23:35:57 UTC
SUMMARY
***
Disabling bluetooth causes a long (11 seconds) delay during which other elements of the plasmashell/system settings are unresponsive.
***

STEPS TO REPRODUCE
1. Have bluetooth enabled
2. Disable bluetooth via system tray applet or system settings

OBSERVED RESULT
On my machine it takes about 11 seconds for the bluetooth status to change to disabled; during this time, the rest of plasmashell, i.e. the bluetooth applet itself but also other applets and e.g. the task manager (when disabling via the system tray applet) or, respectively, the system setting window (when disabling via system settings) are unresponsive. Other windows are still responsive.

EXPECTED RESULT
Bluetooth shuts down, but desktop shell/system settings remains usable.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Kernel Version: 5.17.9-arch1-1 (64-bit)

ADDITIONAL INFORMATION
Not sure if this is the fault of KDE or a more low-level component, and if this is an actual bug that can be fixed. 
It's okay if it takes a while to shut bluetooth down in the background, but when the entire plasmashell freezes for more than 10 seconds that's bad.
Comment 1 galder 2022-06-04 07:47:04 UTC
Hello,
I could not reproduce the issue.
Tested current master in Kubuntu 21.10.
It maybe related to your setup.

Operating System: Kubuntu 21.10
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-46-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-7700HQ CPU @ 2.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1060/PCIe/SSE2
Comment 2 Natalie Clarius 2022-06-06 17:54:23 UTC
Is there any more information I can provide to help narrow it down?
Comment 3 galder 2022-06-06 18:36:20 UTC
looping Nate,
maybe he knows how to debug this issue.

Sorry I'm just volunteer reproducing issues.

Do you know if you had this issue in previous versions? was it working fine before?
Comment 4 Nate Graham 2022-06-07 15:43:50 UTC
I'm not familiar enough with the Bluetooth stack to help debug this, sorry.
Comment 5 galder 2022-06-07 16:20:51 UTC
if this is a common issue, more user will create tickets and finally that could attrack developers attention.

For now we need to wait.
Comment 6 galder 2022-06-07 20:22:36 UTC
I have (In reply to Natalie Clarius from comment #2)
> Is there any more information I can provide to help narrow it down?

When you disable enable the Bluetooth, do you have any Bluetooth device connected?

Also was it working fine before?
Comment 7 Natalie Clarius 2022-06-14 15:37:53 UTC
(In reply to galder from comment #6)

> When you disable enable the Bluetooth, do you have any Bluetooth device
> connected?

I just tried it out a couple times and it seems to occur only when no device was connected. 

> Also was it working fine before?

I'm not sure. I can't recall having noticed it to such an extent for a long time, but then again I haven't used bluetooth all that often. I can't provide a more specific time point, sorry.
Comment 8 popov895 2022-07-04 07:49:35 UTC
Same here and this happens to me when no Bluetooth device is connected. I assume that the hangs occur when trying to disable Bluetooth during a scan, but this is just my guess.

SOFTWARE/OS VERSIONS

Operating System: openSUSE Tumbleweed 20220702
KDE Plasma Version: 5.25.2
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5
Kernel Version: 5.18.6-1-default (64-bit)
Graphics Platform: X11
Comment 9 Natalie Clarius 2022-07-05 16:24:50 UTC
I just noticed it also happening when a device is connected.
Comment 10 TraceyC 2024-12-18 20:54:29 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with either Plasma 5.27.11 (the current LTS version) or Plasma 6.2.4 (the latest released version)?

If you can still reproduce the bug, please change the Status to "CONFIRMED". Thanks.
Comment 11 Bug Janitor Service 2025-01-02 03:47:25 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 12 Bug Janitor Service 2025-01-17 03:48:02 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.