My speakers use a digital input, but my headphones use an analog input. I have them both plugged in, and when I want to use the headphones I just turn off the speakers and switch on the headphones. I know that simultaneous output on digital and analog is supported by the hardware, because it worked fine in Windows XP. But on Ubuntu, I seem to only get one at a time, depending on which setting is selected in the combo box located at System -> Preferences -> Sound -> Hardware
.
How can I get simultaneous analog and digital output without having to switch the profile every time? I'm on Ubuntu 11.04 and it's an HDA Intel chip.
We have the optional application paprefs that allows to install a virtual output device to pulseaudio. This enables simultaneous output to all attached sound cards/devices:
The additionally created audio output device for simultaneous output may be selected in the "Output" tab from pulseaudio sound preferences menu:
From the command line we can also load the device for simultaneous output without having to run paprefs by
Put this line (without pacmd) in your
/etc/pulse/default.pa
to load this device at startup.The accepted answer doesn't work anymore, at least from ubuntu 16.04 LTS (maybe even more, but I am not sure). What works is the following (tested in ubuntu 17.10): https://wiki.archlinux.org/index.php/PulseAudio/Examples
Specifically add the following to your
/etc/pulse/default.pa