Bug 473182

Summary: Bluetooth audio devices don't get removed from the audio output list after having gotten disconnected until plasmashell is restarted
Product: [Plasma] plasma-pa Reporter: Andreas Skarmark-Jakobsen <a.skarmark>
Component: appletAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: isma.af, jessica, me, miranda, nate, nowrep, plasma-bugs, zoitrok
Priority: NOR    
Version: 5.27.7   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: a screenshot showing the disconnected ear buds on one side with the audio output list on the other filled with 4 outputs for one device

Description Andreas Skarmark-Jakobsen 2023-08-08 22:50:12 UTC
Created attachment 160847 [details]
a screenshot showing the disconnected ear buds on one side with the audio output list on the other filled with 4 outputs for one device

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Connect bluetooth audio device
2. disconnect bluetooth audio device

OBSERVED RESULT
multiple listed audio device entries for one Bluetooth device that makes changing the volume up and/or down with the function keys impossible even with the right device selected in the volume output menu

EXPECTED RESULT
that the audio device gets removed from the output list when the bluetooth device gets disconnected

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Endeavor OS [6.4.8-arch1-1 (64-bit)]
(available in About System)
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Comment 1 Martin 2023-08-09 08:04:55 UTC
I'm running the exact same versions as the original post (EndeavourOS, kernel 6.4.8-arch-1-1, KDE Plasma 5.27.7, KDE frameworks 5.108.0, QT 5.15.10 on X11).

Seems this is reproducible with any audio device. I'm using HDMI audio out and I'm getting a new audio device in the audio widget every time my screen is reconnected to the computer.
Comment 2 Martin 2023-08-09 13:29:10 UTC
(In reply to Martin from comment #1)
Most likely a duplicate of 473177
Comment 3 Nate Graham 2023-08-09 20:04:18 UTC
You can also recover by restarting plasmashell with `plasmashell --replace` in a terminal window, right?
Comment 4 Ismael Asensio 2023-08-09 20:20:29 UTC

*** This bug has been marked as a duplicate of bug 473093 ***