You are not logged in.

#1 2021-09-13 20:56:45

ema261989
Member
Registered: 2021-09-13
Posts: 4

[SOLVED] Audio doesn't work only if HDMI is plugged in at startup

Hello community,
When I boot my laptop, if the HDMI cable of my external monitor is already plugged in, the audio from the laptop speakers doesn't work. My external monitor has no speakers. If I boot my laptop without the HDMI cable, the audio works and continues to work even if I plug the HDMI cable in later.
I have alsa and pulseaudio. I've already checked that Master and Speakers channels are not muted. In pulseaudio the volume bar moves when I play something from youtube.

This is the result of aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC295 Analog [ALC295 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 12: HDMI 6 [HDMI 6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

lspci | grep Audio

00:1f.3 Audio device: Intel Corporation Ice Lake-LP Smart Sound Technology Audio Controller (rev 30)

cat /proc/asound/card0/codec* | grep Codec

Codec: Realtek ALC295
Codec: Intel Icelake HDMI

Thank you in advance for your help!

Last edited by ema261989 (2021-09-14 12:20:34)

Offline

#2 2021-09-14 00:45:57

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,306

Re: [SOLVED] Audio doesn't work only if HDMI is plugged in at startup

Likely because a port switch happens based on the availability of the HDMI device. Either comment/remove load-module switch-on-port-available from your /etc/pulse/default.pa or configure your analog profile to be sticky: https://www.freedesktop.org/wiki/Softwa … ettosticky

Should that not suffice post

pacmd list-cards
pacmd list-sinks

during this not working situation.

Offline

#3 2021-09-14 12:18:33

ema261989
Member
Registered: 2021-09-13
Posts: 4

Re: [SOLVED] Audio doesn't work only if HDMI is plugged in at startup

Thank you very much, it seems to be working now!

Offline

Board footer

Powered by FluxBB