0

When I switch my output device to speakers, everything works as expected. Until I reboot the machine. Then I have to go back into settings and select my speaker output again because Ubuntu reverts to using my headphones for output.

While I use the headset infrequently, I leave it plugged in all the time. Unplugging the headset is a bit of a chore due to the design on my PC.

How can I force pulseaudio to always use speaker output except for when I explicitly select the headphones for audio output? Right now it's the other way around.

3 Answers3

1

Pulseaudio is configurable. To find out, which sources you have you could issue:

pactl list short sinks

Then you might get something like:

alsa_output.pci-0000_00_1b.0.analog-stereo  module-alsa-card.c  s16le 2ch 44100Hz   SUSPENDED s16le 2ch 44100Hz SUSPENDED

To set a certain output as default (your choice from the list above):

pacmd set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo

To persist it put that line into /etc/pulse/default.pato have it across reboots

kanehekili
  • 7,426
0

After trying various searches, I was able to solve my issue following steps outlined in this post.

After identifying the correct device using pacmd list-sinks, I added the command pacmd set-default-sink "SINKNAME" to Startup Applications.

Since I wanted to explicitly set the headset as the output device only when I was using it, this solution worked for my issue.

Edit: This solution is not perfect as the output device will revert back to headphones if pulseaudio is restarted. But it beats having to change the device every time I reboot the system.

0

List your devices by name

pacmd list-sinks | grep name:

Set default output device in the config file:

echo "set-default-sink alsa_output.pci-000_00_05.0.analog-stereo" >> /etc/pulse/default.pa

Replace <alsa_output.pci-000_00_05.0.analog-stereo> with your device of choice from above device listings

Reboot system.

ThunderBird
  • 1,963
  • 13
  • 22
  • 31