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.
pacmd
command works. – maxauthority Apr 22 '15 at 16:17pacmd list | grep "active port"
shows five active output ports, which all look likeactive port: <[Out] HDMI3>
though HDMI3 changes in decreasing priority through HDMI2, HDMI1, Headphones, Speaker. I'm trying to make Speaker the highest priority butpacmd set-sink-port 0 Speaker
results inNo sink found by this name or index
. I can't usepacmd set-sink-port 0 [Out] Speaker
because of the space so how can I change the priority? My goal is to have the volume keys on my keyboard control the speaker when it is being used. – JJGabe Dec 10 '22 at 09:56pacmd
and thedefault.pa
config file directives:set-default-sink
andset-card-profile
. This is on a system with two sound cards (HDA NVidia
HDMI on GFX card, &HDA Intel PCH
HDMI on motherboard integrated Inteli915
GFX) where both usesnd_hda_intel
kernel module driver. Symptoms:pulseaudio
fails to set default sink to primary GFX card (Nvidia HDMI), defaulting to onboard SPDIF Intel HDA, ignores both directivesset-default-sink
andset-card-profile
when given full card name (alsa_output.pci-0000_01_00.1.hdmi-stereo-extra3
) – TrinitronX May 12 '23 at 23:20pulseaudio
ignoringset-default-sink
andset-card-profile
were: 1) Reboot & hope it works (sometimes it fixed the issue, only to arise frequently again next time (maybe some strange race condition withgdm3
? ).2) Try using
pacmd set-default-sink
with numeric card ID numbers rather than PCIe-bus full names (e.g.: Find card ID with:pacmd list-sinks | grep -e 'name:' -e 'index:'
... Then set default with:pacmd set-default-sink 0 output:hdmi-stereo-extra3
). When the kernel & cards are in that state,pulseaudio
only responded to numeric ID-based commands. – TrinitronX May 12 '23 at 23:26