Created attachment 156429 [details] How its supposed to look like SUMMARY *** since the update to KDE Plasma 5.27, i had i to redo my panel on my second screen. here i noticed that the audio applet form the tray doesnt follow the checkmark for showing virtual devices, unlike my primary screen one *** STEPS TO REPRODUCE 1. Set up panel with Tray on 2nd Screen 2. Open Audio Applet 3. Check the Setting "Show Virtual Devices" OBSERVED RESULT It doesn't show virtual devices EXPECTED RESULT It shows virtual devices, like on my primary screen SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: up-to-date Arch linux with KDE Plasma 5.27 (available in About System) KDE Plasma Version: 5.27.0 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 ADDITIONAL INFORMATION
Created attachment 156430 [details] How it actually looks like on my 2nd screen
Chiming in with some testing I've done. This seems to affect any new plasma-pa widget instance added after updating to 5.27.0, and is not related to which screen the widget is on. Checking "Show virtual devices" has has no effect and the setting does not persist through a restart. I'm not sure if this is a 5.27 regression or if it just surfaced in 5.27 as a side effect of the multi-monitor changes causing people to recreate desktop widgets on non-primary screens.
Reproduced this on Arch Linux plasma 5.27.1
I noticed it when I created a brand new user on my machine. Virtual devices are not shown, regardless of the "Show virtual devices" checkbox state. Also, this checkbox state does not persist upon logoff/login: it always starts unchecked. I looked into the commit history, and commit 586fb5c315d12a02f2a3e2a524a5b6bf39ba2b52 seems to be the one to blame, apparently it was migrating the applet settings into KCM, but looks like something slipped. This commit was released into 5.27, so yes, this is a 5.27 regression. I reverted into using the old KMix, a downgrade in looks, but works for me while this doesn't get fixed.
Reproduced on KDE Plasma 5.27.2 on Arch linux. The screen doesn't matter, it happens on my main screen. I audio settings, i have all the devices, and JACK sink virtual device. In the applet, if i click the checkmark for "show virtual devices", nothing happens, doesn't show any virtual device. Furthermore, sometimes after resuming from sleep, all the devices were gone from the applet except HDMI, but were available in the settings and worked normally. The applet just didn't see them. Lastly, every reset, the "show virtual devices" gets unchecked automatically.
Had this same issue the past days after having a new Arch Linux installation. What I realized was that any new plasma-pa widget wouldn't show the virtual devices whatsoever, but the one from a latte panel I had imported from the previous Arch system worked. Afer going through the config files (~/.config/plasma-org.kde.plasma.desktop-appletsrc & ~/.config/latte/Plasma.layout.latte) of both new and old panels, I figured out that the issue was with the widget not writing the "showVirtualDevices=true" flag to the file. After having it there and rebooting, the widget showed the virtual devices as expected.
(In reply to almaplatass from comment #6) > Had this same issue the past days after having a new Arch Linux > installation. What I realized was that any new plasma-pa widget wouldn't > show the virtual devices whatsoever, but the one from a latte panel I had > imported from the previous Arch system worked. > Afer going through the config files > (~/.config/plasma-org.kde.plasma.desktop-appletsrc & > ~/.config/latte/Plasma.layout.latte) of both new and old panels, I figured > out that the issue was with the widget not writing the > "showVirtualDevices=true" flag to the file. After having it there and > rebooting, the widget showed the virtual devices as expected. I don't even have "showVirtualDevices" at all in the "plasma-org.kde.plasma.desktop-appletsrc" file. Under what line is it supposed to be? I want to try to add it and see if it fixes it.
(In reply to Gordan Vrbanec from comment #7) > I don't even have "showVirtualDevices" at all in the > "plasma-org.kde.plasma.desktop-appletsrc" file. > Under what line is it supposed to be? I want to try to add it and see if it > fixes it. Search for "plugin=org.kde.plasma.volume", then add the line under [Configuration][General]. Mine looks like this: >[Containments][10][Applets][18] >immutability=1 >plugin=org.kde.plasma.volume > >[Containments][10][Applets][18][Configuration] >PreloadWeight=80 > >[Containments][10][Applets][18][Configuration][General] >migrated=true >showVirtualDevices=true
(In reply to almaplatass from comment #8) > (In reply to Gordan Vrbanec from comment #7) > > I don't even have "showVirtualDevices" at all in the > > "plasma-org.kde.plasma.desktop-appletsrc" file. > > Under what line is it supposed to be? I want to try to add it and see if it > > fixes it. > > Search for "plugin=org.kde.plasma.volume", then add the line under > [Configuration][General]. Mine looks like this: > > >[Containments][10][Applets][18] > >immutability=1 > >plugin=org.kde.plasma.volume > > > >[Containments][10][Applets][18][Configuration] > >PreloadWeight=80 > > > >[Containments][10][Applets][18][Configuration][General] > >migrated=true > >showVirtualDevices=true Yup! That worked! :) Seems that this line is either missing or set to "false" in the configuration for some reason. Or that GUI checkmark is supposed to write that line but doesn't. I restarted, and upon booting up, the virtual device was there, and i didn't even have to enable it, it was already checked. Well, i guess we know what the problem is now.
Just an update - the workaround no longer works for me, the audio applet just won't show the virtual devices.
Seems like the issue is at the UI layer and toggling the "Show virtual devices" checkbox simply isn't calling the right method to properly trigger the settings change. Every time I toggle the setting I get this error message in journalctl: > plasmashell[200793]: QMetaObject::invokeMethod: No such method QQuickItem_QML_717::actionTriggered(QVariant) @Gordan Vrbanec Workaround still seems to work for me. I had to restart plasmashell after the config change and now I see my HRTF 7.1 surround sink.
Git commit 5430caf2483203de5f3047408582bec953aa8946 by Fushan Wen. Committed on 18/03/2023 at 08:33. Pushed by fusionfuture into branch 'master'. applet: add missing function for "Show virtual devices" menu item FIXED-IN: 5.27.4 M +4 -0 applet/contents/ui/main.qml https://invent.kde.org/plasma/plasma-pa/commit/5430caf2483203de5f3047408582bec953aa8946
Git commit 1e4d0d567a72d444dff1f90bb9c1712212d6e07e by Fushan Wen. Committed on 18/03/2023 at 08:34. Pushed by fusionfuture into branch 'Plasma/5.27'. applet: add missing function for "Show virtual devices" menu item FIXED-IN: 5.27.4 (cherry picked from commit 5430caf2483203de5f3047408582bec953aa8946) M +4 -0 applet/contents/ui/main.qml https://invent.kde.org/plasma/plasma-pa/commit/1e4d0d567a72d444dff1f90bb9c1712212d6e07e