2

Was-Working: In Ubuntu 19.10, I was able to switch between my USB headphones and HDMI/DisplayPort based sound output whenever I wanted, and each would work depending on the setting in System Settings -> Sound.

Problem: Since the upgrade to 20.04, while my USB Headphones are plugged in, ALL sound goes through them, even if I select HDMI/DisplayPort as my output device in System Settings -> Sound.

Work-around: If I simply unplug my USB headphones, I can get sound working through DisplayPort as normal. However I don't want to always unplug my headphones.

The way everything is hooked up is, my monitor is connected via DisplayPort to my Nvidia GTX 1070 card, and I have audio speakers (3.5mm jack) hooked to my monitor. If my audio device is set to DisplayPort output it should play through my speakers, as it was doing fine in 19.04.

Nvidia Driver Version: 440.100.

1 Answers1

2

I was able to solve this by simply following these steps: Analog and digital audio output at the same time which I'll repeat here:

Specifically add the following to your /etc/pulse/default.pa :

### Load analog device
load-module module-alsa-sink device=hw:0,0
load-module module-combine-sink sink_name=combined
set-default-sink combined

Furthermore, I went ahead and commented out these lines in the same file mentioned above:

### Should be after module-*-restore but before module-*-detect
#load-module module-switch-on-port-available

and

#.ifexists module-switch-on-connect.so
#load-module module-switch-on-connect
#.endif

Which should also prevent auto switching.

Finally I ran:

pulseaudio -k

To have it pick up the changes. After doing this, I was able to select my DisplayPort/HDMI output and have the sound come out of it properly.