Bug 512425

Summary: Cannot switch audio for "plasmashell" away from default output when it's playing audio from "Advanced Radio Player" widget
Product: [Plasma] plasmashell Reporter: Sebastian Turzański <dpbasti>
Component: Audio Volume widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: aart.st, fisiu82, isma.af, nate
Priority: HI    
Version First Reported In: 6.5.2   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Use current default audio device

Description Sebastian Turzański 2025-11-21 09:34:12 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY

When i I watch video/listen to audio in firefox I can use the volume widget to switch output between speaker and bluetooth speaker.

KDE sound  notifications can be redirected to bluetooth too.


When I use https://store.kde.org/p/2136933 Radio Player widget its sound screen is listed in volume widget as "plasmashell - plasmashell" and I cannot redirect it's output to Bluetooth speaker.
There's no journald entries while switching within the "devices" tab of volume widget.
Switching makes no effect and the stream keeps playing on the sound card build-in speaker.
This used to work before update in 6.5.0 i assume.

When i try to force the plasma-shell program in the "programs" tab of volume widget It still plays on build-in speaker but at least produces errors in journal

mod.protocol-pulse: client 0x5604d885def0 []: ERROR command:67 (MOVE_SINK_INPUT) tag:1400 error:3 (wrong  argument)

mod.protocol-pulse: [] timeout on stream 0x5604d8d70840 channel:6



See video attached




STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed-Slowroll 20251106
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.7-1.0.12.sr20251001-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × Intel® Core™ i7-10875H CPU @ 2.30GHz
Memory: 16 GiB of RAM (15.2 GiB usable)
Graphics Processor 1: Intel® UHD Graphics
Graphics Processor 2: NVIDIA GeForce RTX 2060 with Max-Q Design
Manufacturer: Dell Inc.
Product Name: XPS 17 9700
ADDITIONAL INFORMATION
Comment 1 Sebastian Turzański 2025-11-21 09:36:30 UTC
screen capture https://youtu.be/1kk2oTwVQo0
Comment 2 aart.st 2025-12-02 08:41:06 UTC
happens to me, as well. Logs:
Dec 02 09:37:40 legion plasmashell[1063]: No sample format supported found for device "bluez_output.00_02_5B_01_0C_CA.1"
Dec 02 09:37:41 legion pipewire-pulse[1070]: mod.protocol-pulse: client 0x5626a66ce980 []: ERROR command:67 (MOVE_SINK_INPUT) tag:62 error:3 (Zły argument)
Dec 02 09:37:42 legion plasmashell[1063]: qrc:/qt/qml/plasma/applet/org/kde/plasma/volume/main.qml:635:17: QML PlasmoidHeading: Binding loop detected for property "leftInset":
                                          qrc:/qt/qml/org/kde/plasma/extras/PlasmoidHeading.qml:34:5
Dec 02 09:37:42 legion plasmashell[1063]: qrc:/qt/qml/plasma/applet/org/kde/plasma/volume/main.qml:292:17: QML PlasmoidHeading: Binding loop detected for property "leftInset":
                                          qrc:/qt/qml/org/kde/plasma/extras/PlasmoidHeading.qml:34:5
Dec 02 09:37:43 legion plasmashell[1063]: No sample format supported found for device "bluez_output.00_02_5B_01_0C_CA.1"
Comment 3 Nate Graham 2025-12-11 17:20:48 UTC
Please write specific steps to reproduce that mension specifically which UI elements you're interacting with to make the problem appear.
Comment 4 Sebastian Turzański 2025-12-11 19:57:40 UTC
To reproduce you need at least 2 audio outputs first would be regular sound card speaker, secondary could be Bluetooth speaker or HDMI output

1. install https://store.kde.org/p/2136933 radio player and play any radio on the default primary output (sound card speaker)

2. while the radio is playing use the plasma sound mixer "devices" tab to try to switch to secondary sound output and see it fail

3 (optional) , you can try to use the plasma mixer's "programs" tab to redirect the radio output to secondary device , and see it fail
Comment 5 Sebastian Turzański 2025-12-11 19:59:52 UTC
(In reply to Nate Graham from comment #3)
> Please write specific steps to reproduce that mension specifically which UI
> elements you're interacting with to make the problem appear.

see this https://youtu.be/1kk2oTwVQo0
Comment 6 Nate Graham 2025-12-12 20:02:53 UTC
Can reproduce. All methods of moving the audio for the plasmashell process (where the widget is playing audio) fail. Curious!
Comment 7 Sebastian Turzański 2025-12-12 21:47:48 UTC
(In reply to Nate Graham from comment #6)
> Can reproduce. All methods of moving the audio for the plasmashell process
> (where the widget is playing audio) fail. Curious!

it was working until summer this year I'm guessing
Comment 8 Mariusz 2025-12-20 20:03:52 UTC
Created attachment 187825 [details]
Use current default audio device

I noticed a synchronization issue: when switching devices (e.g., plugging in headphones), the plasmoid continues playing through the previous device until the Plasma shell is restarted.

To fix this, I’ve attached a small patch for main.qml. Since the source code isn't currently in a version control system, I’ve emailed the author the patch and suggested moving the project to Git to make future contributions easier.
Comment 9 Mariusz 2025-12-20 20:07:50 UTC
(In reply to Sebastian Turzański from comment #5)
> (In reply to Nate Graham from comment #3)
> > Please write specific steps to reproduce that mension specifically which UI
> > elements you're interacting with to make the problem appear.
> 
> see this https://youtu.be/1kk2oTwVQo0

If you can't wait for the plasmoid update, which fix this issue you can updated this plasmoid on your own. Just edit file `$HOME/.local/share/plasma/plasmoids/org.kde.plasma.advancedradio/contents/ui/main.qml` and add missing content from attached patch.