My ubuntu desktop does not play any sound through speakers, connected to sound card.
It always plays through HDMI monitor, like it is the only sound playing device connected.
I have these settings, and it still plays through HDMI monitor.
When I plug my headphones – the system sees it in the 'output device', but sound still goes through HDMI.
When I remove HDMI monitor (it is my secondary monitor), then the sound works fine.
UPD
cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xdf220000 irq 126
1 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xdf080000 irq 17
Can you help?
Best Answer
try if
pavucontrol
lets you select a specific outputif you don't mind having both outputs enabled: https://wiki.archlinux.org/index.php/PulseAudio/Examples#Simultaneous_HDMI_and_analog_output ( found via https://unix.stackexchange.com/questions/143865/how-to-enable-both-built-in-audio-output-and-hdmi-audio-output-with-pulseaudio )
in alsamixer there might be a element named
output
orswitch output
or similar , enabling you to change output by muting/unmuting it ( also HDMI might be called something with LINE)if you have more than one card , or a card that exports multiple output ports: https://unix.stackexchange.com/questions/62818/how-can-i-switch-between-different-audio-output-hardware-using-the-shell
if you have one card providing more than one output and it might be a routing problem: https://wiki.gentoo.org/wiki/ALSA#APlay_SPDIF.2FHDMI_output_has_incorrect_speaker_channels
if you are unlucky your card might be auto-switching , exporting only ONE sound card to the system ( e.g. IGP cards on mini PC's) then it WILL always cut line for HDMI
Workaround: get some audio extractor , example: https://www.reichelt.de/4khdmi-audio-extractor-n-vext3470at-p266927.html