Default sink is reset when plugging in audio device via USB (or rebooting)
Steps to Reproduce
- Have a few different audio sinks, including a usb device (see mine below).
- Set the default sink to an internal device (
pacmd set-default-sink 2
) - Unplug the USB device.
- Confirm the default audio sink is still correct (
pacmd info | grep 'Default sink name'
) - Plug in the USB device.
- Check the default audio sink (
pacmd info | grep 'Default sink name'
)
Expected Result
The default audio sink should be the same as in step 4.
Actual Result
The default audio sink is suddenly a sink from the USB device.
Potentially Related Issues
Additional info
$ pulseaudio --version
pulseaudio 12.2
$ pactl list short sinks
0 alsa_output.pci-0000_01_00.1.hdmi-stereo module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
2 alsa_output.pci-0000_00_1b.0.analog-stereo module-alsa-card.c s16le 2ch 44100Hz RUNNING
4 alsa_output.usb-Samson_Technologies_Samson_Q2U_Microphone-00.iec958-stereo module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
$ uname -r
5.0.9-050009-generic
$ cat /etc/lsb-release
DISTRIB_ID=elementary
DISTRIB_RELEASE=5.0
DISTRIB_CODENAME=juno
DISTRIB_DESCRIPTION="elementary OS 5.0 Juno"
I was pointed here after reporting a bug with my distribution: https://github.com/elementary/switchboard-plug-sound/issues/109