How can I change PulseAudio port priorities?
Solution 1:
First, use the following command to see the list of cards and ports:
pactl list sinks
Then, run:
sudo vim /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf
to modify the priority (that value is multiplied by 100).