My laptop with Ubuntu 20.10 automatically switches to the HDMI output when I plug in my monitor (via a USB C cable connected to a dock station connected to the monitor via a HDMI cable).
And then, a second later, it switches to the USB dock's audio output (which has nothing plugged in), but that's a different bug.
Incidentally, module-switch-on-connect in PulseAudio 14 (and also Ubuntu 20.10's 13.99.2) has a blacklist of sink names that should not be switched to. The default value of this blacklist is a regexp matching "hdmi". The blacklist doesn't appear to work (which is also a different bug).
If it does start to work at some point, you may have to edit /etc/pulse/default.pa and change
My laptop with Ubuntu 20.10 automatically switches to the HDMI output when I plug in my monitor (via a USB C cable connected to a dock station connected to the monitor via a HDMI cable).
And then, a second later, it switches to the USB dock's audio output (which has nothing plugged in), but that's a different bug.
Incidentally, module- switch- on-connect in PulseAudio 14 (and also Ubuntu 20.10's 13.99.2) has a blacklist of sink names that should not be switched to. The default value of this blacklist is a regexp matching "hdmi". The blacklist doesn't appear to work (which is also a different bug). default. pa and change
If it does start to work at some point, you may have to edit /etc/pulse/
load-module module- switch- on-connect
to say
load-module module- switch- on-connect blacklist=""
if you want HDMI outputs to be switched to.