Bug 433895 - Switching off bluetooth doesn't send the disconnect signal to connected devices
Summary: Switching off bluetooth doesn't send the disconnect signal to connected devices
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Bluetooth in general (show other bugs)
Version: 6.2.4
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-03 08:48 UTC by Mohammed Sameer
Modified: 2024-12-17 21:19 UTC (History)
3 users (show)

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


Attachments
bluetooth speakers (62.66 KB, image/jpeg)
2021-03-04 06:44 UTC, Mohammed Sameer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mohammed Sameer 2021-03-03 08:48:34 UTC
SUMMARY
Switching off bluetooth doesn't disconnect the bluetooth speakers, but when I enable bluetooth again, then the speakers are disconnected.

STEPS TO REPRODUCE
1. connect to bluetooth speakers
2. turn off bluetooth
3. 

OBSERVED RESULT
The bluetooth device is not disconnected.

EXPECTED RESULT
The bluetooth device is disconnected

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.2
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.4.0-66-generic
OS Type: 64-bit
Graphics Platform: X11
Processors: 4 × Intel® Core™ i3-5010U CPU @ 2.10GHz
Memory: 3.8 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 5500

ADDITIONAL INFORMATION
When I disconnect manually without turning off bluetooth, then the device is disconnected.
Also after switching off bluetooth, the device(speakers) is not disconnected, but when I shutdown the computer, then the bluetooth speakers are disconnected.
Comment 1 Nate Graham 2021-03-03 18:30:03 UTC
That's weird. I cannot reproduce with my Bluetooth speaker, and in fact the report makes no sense as currently phrased: if Bluetooth is turned off, the speaker cannot possibly be still playing audio. How are you turning off Bluetooth? Perhaps it's secretly not actually getting turned off. It might be mis-representing its status.
Comment 2 Mohammed Sameer 2021-03-04 06:36:44 UTC
Hi, I am turning off bluetooth using Bluetooth option in system tray(Show hidden icons).
My bluetooth speakers beep once and stop blinking "bt" words when a device is connected, when a device is disconnected the device will beep once and start blinking "bt" words.
Yes, the bluetooth speakers doesn't play audio when the bluetooth is turned off.
But still it doesn't disconnect or free the bluetooth device, as I can see the beep sound is not given and the "bt" words doesn't start blinking after I turn off the bluetooth.
What I am saying is that when I turn off bluetooth the system is disabling the bluetooth but not giving any info to the bluetooth speakers, that "it is disconnected", so bluetooth speakers remain in "connected" state. Because of this I cannot connect other bluetooth devices like my Android phone, to connect to them I have to turn off the bluetooth speakers and turn them on again.

When I turn off bluetooth in Windows 10 & Android OS, the connected bluetooth speakers are immediately disconnected, i.e the speakers gave one beep sound and "bt" words started blinking.
I get this issue only on Linux(KDE neon), I didn't tried to reproduce this issue in other distros.
Comment 3 Mohammed Sameer 2021-03-04 06:44:41 UTC
Created attachment 136359 [details]
bluetooth speakers

As you can see the image, in bluetooth mode the "bt" words instead of "AU", start blinking when the bluetooth speakers are not connected to any device.
Comment 4 Nate Graham 2021-03-04 14:29:46 UTC
I see, thanks. Can confirm now.