Bug 494324 - Dummy Output item has invisible device label in KCM
Summary: Dummy Output item has invisible device label in KCM
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_pulseaudio (show other bugs)
Version: 6.2.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-09 04:49 UTC by Justin Zobel
Modified: 2024-10-17 15:58 UTC (History)
3 users (show)

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


Attachments
Screenshot (28.40 KB, image/png)
2024-10-09 04:49 UTC, Justin Zobel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Zobel 2024-10-09 04:49:46 UTC
Created attachment 174557 [details]
Screenshot

Operating System: KDE Linux 68e79935
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.3
Kernel Version: 6.11.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-10210U CPU @ 1.60GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Manufacturer: Dell Inc.
Product Name: Inspiron 7391 2n1
Comment 1 Harald Sitter 2024-10-09 10:20:52 UTC
Output of `pactl list sinks` please.
Comment 2 Justin Zobel 2024-10-10 00:53:40 UTC
[justin@bananabox ~]$ pactl list sinks
Sink #34
        State: SUSPENDED
        Name: auto_null
        Description: Dummy Output
        Driver: PipeWire
        Sample Specification: float32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: yes
        Volume: front-left: 55050 /  84% / -4.54 dB,   front-right: 55050 /  84% / -4.54 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: auto_null.monitor
        Latency: 0 usec, configured 0 usec
        Flags: DECIBEL_VOLUME LATENCY 
        Properties:
                node.name = "auto_null"
                device.description = "Dummy Output"
                audio.rate = "48000"
                audio.channels = "2"
                audio.position = "FL,FR"
                media.class = "Audio/Sink"
                factory.name = "support.null-audio-sink"
                node.virtual = "true"
                monitor.channel-volumes = "true"
                factory.id = "19"
                clock.quantum-limit = "8192"
                client.id = "33"
                node.driver = "true"
                port.group = "stream.0"
                node.loop.name = "data-loop.0"
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "34"
                object.serial = "34"
        Formats:
                pcm
Comment 3 Harald Sitter 2024-10-10 01:06:30 UTC
I am wondering if something broke in a lower level component there. It definitely should show 'Dummy Output' and since the tooltip shows it the text is probably set correctly but not showing up.
Comment 4 Ein420 2024-10-10 17:04:35 UTC
(In reply to Justin Zobel from comment #2)
> [justin@bananabox ~]$ pactl list sinks
> Sink #34
>         State: SUSPENDED
>         Name: auto_null
>         Description: Dummy Output
>         Driver: PipeWire
>         Sample Specification: float32le 2ch 48000Hz
>         Channel Map: front-left,front-right
>         Owner Module: 4294967295
>         Mute: yes
>         Volume: front-left: 55050 /  84% / -4.54 dB,   front-right: 55050 / 
> 84% / -4.54 dB
>                 balance 0.00
>         Base Volume: 65536 / 100% / 0.00 dB
>         Monitor Source: auto_null.monitor
>         Latency: 0 usec, configured 0 usec
>         Flags: DECIBEL_VOLUME LATENCY 
>         Properties:
>                 node.name = "auto_null"
>                 device.description = "Dummy Output"
>                 audio.rate = "48000"
>                 audio.channels = "2"
>                 audio.position = "FL,FR"
>                 media.class = "Audio/Sink"
>                 factory.name = "support.null-audio-sink"
>                 node.virtual = "true"
>                 monitor.channel-volumes = "true"
>                 factory.id = "19"
>                 clock.quantum-limit = "8192"
>                 client.id = "33"
>                 node.driver = "true"
>                 port.group = "stream.0"
>                 node.loop.name = "data-loop.0"
>                 library.name = "audioconvert/libspa-audioconvert"
>                 object.id = "34"
>                 object.serial = "34"
>         Formats:
>                 pcm

I'm having the exact same issue has well, I've tried everything, LSPCI is the only thing currently showing my audio device

Operating System: Arch Linux 
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.8.0
Kernel Version: 6.11.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 4600G with Radeon Graphics
Memory: 16.7 GB of RAM
Graphics Processor: AMD Radeon RX 6600
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C96
System Version: 1.0
Comment 5 Nate Graham 2024-10-10 19:52:26 UTC
I would expect this broke at a level below us, yeah.
Comment 6 Harald Sitter 2024-10-11 11:43:46 UTC
        // Don't ever show the dummy output, that's silly
        const dummyOutputName = "auto_null"
        if (sourceModel.data(idx, sourceModel.KItemModels.KRoleNames.role("Name")) === dummyOutputName) {
            return false;
        }

:D

*sigh*
Comment 7 Harald Sitter 2024-10-11 12:01:50 UTC
I think I found the problem. Dummy output has no ports and we have code that assumes there's a port.
Comment 8 Bug Janitor Service 2024-10-11 12:11:11 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-pa/-/merge_requests/290
Comment 9 Harald Sitter 2024-10-17 15:56:36 UTC
Git commit e6c6546e0c7b1dc36d7f39e59f702483d8fbc744 by Harald Sitter.
Committed on 17/10/2024 at 13:11.
Pushed by sitter into branch 'master'.

fix text display for auto_null device

the device has no port so the currentPort text choice ended in nothing
but a warning. instead fall back to the default button text, the same
source used for the tooltip

M  +7    -1    src/kcm/ui/DeviceListItem.qml

https://invent.kde.org/plasma/plasma-pa/-/commit/e6c6546e0c7b1dc36d7f39e59f702483d8fbc744
Comment 10 Harald Sitter 2024-10-17 15:58:36 UTC
Git commit ce9b240dc6e5efdb9f6b1a24ad4b38b2de87d15c by Harald Sitter.
Committed on 17/10/2024 at 15:56.
Pushed by sitter into branch 'Plasma/6.2'.

fix text display for auto_null device

the device has no port so the currentPort text choice ended in nothing
but a warning. instead fall back to the default button text, the same
source used for the tooltip


(cherry picked from commit e6c6546e0c7b1dc36d7f39e59f702483d8fbc744)

Co-authored-by: Harald Sitter <sitter@kde.org>

M  +7    -1    src/kcm/ui/DeviceListItem.qml

https://invent.kde.org/plasma/plasma-pa/-/commit/ce9b240dc6e5efdb9f6b1a24ad4b38b2de87d15c