Using Xubuntu 18.04, I have a headset that I connect, with its own microphone input. Every time I connect it, I then have to launch
pavucontrol, click to the "Input Devices" tab, then select the "Headset Microphone" (instead of "Internal Microphone") in the "Port" drop down menu.
Whenever I disconnect the headset, the "Port" gets switched back to "Internal Microphone", so I have to repeat the process the next time I connect the headset.
Is there a way to do this automatically, or with minimal effort on my part?
I searched online and saw the advice to ensure the PulseAudio
module-switch-on-connect is loaded, but I checked
pactl list short modules and it appears to be already loaded.