Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 684104 - media-sound/pulseaudio automatically switches device to HDMI when waking up monitor
Summary: media-sound/pulseaudio automatically switches device to HDMI when waking up m...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
Depends on:
Reported: 2019-04-22 11:11 UTC by Franz Trischberger
Modified: 2019-07-16 20:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

Package list (packages,8.55 KB, text/plain)
2019-04-22 11:11 UTC, Franz Trischberger
screenshot (pulseaudio_hdmi_lsmod.jpg,50.51 KB, image/jpeg)
2019-05-02 12:08 UTC, Franz Trischberger

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2019-04-22 11:11:56 UTC
Created attachment 573800 [details]
Package list

My monitor is connected via HDMI. I configured "Analog Stereo Duplex" to be my default audio device. I play some music and everything works fine. Then the monitor goes into powersave mode. Waking it up will cause pulseaudio to switch to HDMI killing the lovely music I am currently listening to.
This caused me quite some headache. In the end I removed snd_hda_codec_hdmi and finally pulseaudio behaves OK. Of course it won't let me use HDMI anymore as audio device...

The issue here: I had enabled this module since ages (AFAIK since I use that PC which is years), I also use pulseaudio since years. But this issue popped up just after the last update which didn't include the linux kernel. pulseaudio went from 12.2 to 12.2-r1. Downgrading to 12.2 didn't help. I am running kde plasma and got an update to plasma-pa, there is a new patch to move from GConf to gsettings, which seems to be the only thing that really changed, probably it messed up my config.

I really have no clue which package really caused the issue, so I will attach the list with recent upgrades.
Comment 1 Mart Raudsepp gentoo-dev 2019-04-22 11:29:45 UTC
I don't experience such problems, albeit it does sometimes switch me to some IEC thing when I unplug external sound card headset or something. No switching to HDMI at least. CCing plasma maintainers in case they know about the gconf/gsettings aspects, etc.
Comment 2 Franz Trischberger 2019-05-02 12:08:02 UTC
Created attachment 574928 [details]

Pulseaudio did it again. Last Update was on April 24th. No pulseaudio affected, still running the same kernel.
The Screenshot shows the plasma-pa-interface with the output channel and the output of lsmod. As you can see the HDMI module isn't even loaded. I have no idea why pulseaudio still switches channels.