Change default port for PulseAudio (line out, not headphones)
I had the same problem (for at least a year now), and the following seemed to work:
Taken from: https://bbs.archlinux.org/viewtopic.php?id=164868
Use pavucontrol
to change the port to your desired one. Then find the internal name of the port with this command:
$ pacmd list | grep "active port"
active port: <hdmi-output-0>
active port: <analog-output-lineout>
active port: <analog-input-linein>
Using this information about the internal name of the port, we can change it with the command:
pacmd set-sink-port 0 analog-output-lineout
If you (or someone else with the problem) has multiple cards, try changing the 0 to a 1.
If this works, you can put:
set-sink-port 0 analog-output-lineout
in your /etc/pulse/default.pa
file to have it across reboots.
Related videos on Youtube
D.W.
Updated on September 18, 2022Comments
-
D.W. over 1 year
When I boot, PulseAudio defaults to sending output to Headphones. I'd like it to default to sending output to Line Out. How do I do that?
I can manually change where the output is current sent as follows: launch the Pulseaudio Volume Control application, go to the Output Devices tab, and next to Port, select the Line Out option instead of Headphones. However, I have to do this after each time I boot the machine -- after a reboot, Pulseaudio resets itself back to Headphones. That's a bit annoying. How do I make my selection stick and persist across reboots?
Here's a screenshot of how the Volume Control application looks after a reboot, with Headphones selected:
If I click on the chooser next to Port, I get the following two options:
Selecting Line Out makes sound work. (Notice that both Headphones and Line Out are marked as "unplugged", but actually I do have something plugged into the Line Out port.)
Comments: I'm not looking for a way to change the default output device. I have only one sound card.
pacmd list-sinks
shows only one sink. Therefore,pacmd set-default-sink
is not helpful. (This doesn't help either.) Here what I need to set is the "Port", not the output device. If it's relevant, I'm using Fedora 20 and pulseaudio-5.0-25.fc21.x86_64. -
aSystemOverload about 9 yearsWhen I try to set-sink-port etc... I get [No PulseAudio daemon running, or not running as session daemon.], how do I change this?
-
maxauthority about 9 years@aSystemOverload: Which Fedora version? You could also try to to start it manually with pulseaudio --start and see if the
pacmd
command works. -
aSystemOverload about 9 yearsApologies for not specifying, but Debian Jessie. The Pulse Audio 'Volume Control' shown by the original poster is working, does that mean a daemon is running, but maybe but a season daemon?
-
Krateng almost 6 yearsAfter so much time at 2:57 AM you saved my life ...
-
smiddy84 over 5 yearsThanks for the answer. This helped me to configure my headphones as default in Linux Mint 18.3!