PulseAudio looses default sink when resuming after a system suspend
My default sink is a GP104 High Definition Audio Controller Digital Stereo which is basically the HDMI out on my Nvidia graphics card. Everything works well until I suspend, and resume after said suspend. When that happens, I lose my sink, and only the sink representing my onboard graphics card persists. Thus, no more audio.
Steps to reproduce:
- issue a
systemctl suspend
pactl list sinks
- verify that the sink representing my HDMI out is gone
If I kill pulseaudio, with pulseaudio -k
, the sink returns, however, the device is now no longer the default device, and thus, I need to issue pactl set-default-sink 0
. For now, as a workaround, I've popped this into a systemd service, that runs when I resume after the suspend target.
However, this is clearly a bug, so I thought I'd report it.