Bug 487382 - HDMI: sound output not automatically detected, plugging out breaks sound output
Summary: HDMI: sound output not automatically detected, plugging out breaks sound output
Status: RESOLVED UPSTREAM
Alias: None
Product: plasma-pa
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-22 18:49 UTC by Henning
Modified: 2024-05-22 21:02 UTC (History)
3 users (show)

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


Attachments
Screencast of the issue (1.28 MB, video/webm)
2024-05-22 18:54 UTC, Henning
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henning 2024-05-22 18:49:07 UTC
When plugging in an HDMI cable that should also carry the sound output, it does not detect the sound sink like it did on KDE Plasma 5 afaik.

Then when manually selecting the output from "devices" and "sound" and the dropdown hamburger menu, I can get sound through HDMI.

Then plugging out the HDMI cable, I dont have any sound output anymore and it gives me "no input or output devices found" which is compeltely wrong as my laptop has internal speakers and internal mic.

Instead, when still plugged in and under sound sink output device I select "Analog stereo duplex" (which is my laptop speakers) and then plug the cable out, I get an OSD that it switched to internal audio and works.

Using Fedora 40, using pipewire.

This is pretty broken as:
- the sound devices are not displayed as different devices, but different modes/settings of the same device (I guess)
- when selecting a "mode" of a "device" which is then not available anymore, the sound sink is gone
- only when plugging the device with the selected mode in again, and selecting a different output mode (which is actually a device) then plugging out does not cause this error
- the separation between "internal" and "HDMI" output is completely unfriendly to nontechnical users


Operating System: Fedora Kinoite  Aurora 40
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.8.9-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics

plasma-pa-6.0.4-1.fc40.x86_64

kpipewire-6.0.4-1.fc40.x86_64
pipewire-1.0.6-1.fc40.x86_64
pipewire-jack-audio-connection-kit-1.0.6-1.fc40.x86_64
pipewire-gstreamer-1.0.6-1.fc40.x86_64
pipewire-utils-1.0.6-1.fc40.x86_64
pipewire-pulseaudio-1.0.6-1.fc40.x86_64
pipewire-jack-audio-connection-kit-libs-1.0.6-1.fc40.x86_64
pipewire-alsa-1.0.6-1.fc40.x86_64
Comment 1 Henning 2024-05-22 18:54:13 UTC
Created attachment 169711 [details]
Screencast of the issue

1. situation with no cable plugged in
2. plugging in HDMI cable which also connects to new sound sink
3. (struggling a bit with screen extension, switching to "mirror screen" for recording)
4. now the same device shows more "profiles"
5. choosing a "profile" of the external speaker
6. pulling out the HDMI cable
7. opening the sound applet again, now "no input/output device available"
Comment 2 Nate Graham 2024-05-22 21:02:10 UTC
Negotiation takes place in PipeWire, not in our code. Please report it upstream to them at https://gitlab.freedesktop.org/pipewire/pipewire/-/issues