Shown and real sink diverge in Gnome when connecting a dock
If I have music playing on my XPS 9370 (via the built-in speakers) and connect my docking station (a Dell WD15) the real audio sink and the sink which my DE (in this case Gnome) sees diverge. The sink Gnome sees seems selected randomly. In e.g. this case Gnome thinks that the sink is the USB - Headphones of my dock but the music still plays via the the built-in speakers. So also the media-keys adjust the selected sink (Headphones) and not the real one (built-in). If you than manually select a new sink (via the Gnome DE) everything is in sync again. This issue was originally reported in the gnome-shell Gitlab, than moved to the libgnome-volume-control Gitlab in which the maintainer says it's a pulseaudio bug.
All those commands where executed in a case, where real sink and shown sink diverge (real sink --> built-in audio, shown sink --> headphones - USB).
Steps to reproduce
- Have a Dell XPS 9370 and a Dell WD15
- Start Music (e.g. Spotify) on your unconnected laptop
- Connect the dock
- The shown and real sink diverge (~80% of the time, sometimes it stays in sink).
What is the current bug behavior?
The shown and real sink diverge.
What is the expected correct behavior?
The shown and real sink are the same.