Bug 450471 - Audio output not changed to HDMI automatically when plugin to TV
Summary: Audio output not changed to HDMI automatically when plugin to TV
Status: RESOLVED UPSTREAM
Alias: None
Product: plasma-pa
Classification: Unmaintained
Component: applet (other bugs)
Version First Reported In: 5.24.1
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-17 15:54 UTC by Włodzimierz Ciesielski
Modified: 2024-10-02 11:31 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Włodzimierz Ciesielski 2022-02-17 15:54:09 UTC
SUMMARY
Audio Profile not changed to "Digital Stereo (HDMI) Output + Analog Stereo Input" automatically when plugin to TV


STEPS TO REPRODUCE
1. Connect HDMI cable to TV

OBSERVED RESULT
Audio goes via laptop speakers (Analog Stereo Duplex) 

EXPECTED RESULT
Audio goes via HDMI

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 21.10
(available in About System)
KDE Plasma Version: 5.24.1 and older
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Pulseaudio Version: 15.0

ADDITIONAL INFORMATION
Changing manually Profile from "Analog Stereo Duplex" to "Digital Stereo (HDMI) Output + Analog Stereo Input" switches audio to HDMI.
After that audio switches automatically from HDMI to laptop speakers and vice versa. But after laptop reboot there no volume at all and Profile is set to "Analog Stereo input". Changing profile back to "Analog Stereo Duplex" enables volume, but issue from title still exists.
Comment 1 Kangarooo 2022-12-17 22:22:01 UTC
Is it fixed?
Can you try again?
Does connecting monitors and then running this in terminal fixes anything?
xrandr -q
Comment 2 Włodzimierz Ciesielski 2023-03-24 20:44:08 UTC
(In reply to Kangarooo from comment #1)
> Is it fixed?
Currently on Ubuntu 22.10 it works correctly
> Can you try again?
Done
> Does connecting monitors and then running this in terminal fixes anything?
> xrandr -q
Its more pulseaudio issue than screen as I see

A lot of time elapsed. Lets close it and if it will reproduced I'll reopen this issue with additional information
Comment 3 Kiril Vladimirov 2023-03-28 10:14:20 UTC
Does it make sense to re-open this or should I file a new one? 

I have the same problem with Plasma 5.27.3 (Wayland) and pipewire on a ThinkPad T490. What I would expect is for audio to automatically switch to "Digital Stereo (HDMI) Output + Analog Stereo Input" as soon as the laptop is connected to another device via HDMI (or usb-c dock in that matter) and switch back to "Analog Stereo Duplex", once disconnected.

Right now it never changes automatically. It's especially annoying after disconnect, as the audio device completely disappears and any application that tries to play sound is stuck, until I manually go to "Configure Audio Devices" and change the empty profile to "Analog Stereo Duplex".
Comment 4 Harald Sitter 2024-10-02 11:31:08 UTC
Sounds like an upstream issue either way.