I'm running a fresh install of Ubuntu 18.04. I have three audio outputs on my computer: a USB headset, S/PDIF through motherboard, and line out through motherboard. They are listed in that order in the Gnome sound settings pane.
I prefer line out to be used by default, so I've selected it in the output tab, and it works fine after selecting it.
Here's the problem: I would expect that if I restart the computer, line out would continue to be the default output device, but the actual behavior is different. Ubuntu partially forgets this preference upon restart.
Sound does play via line out after a restart, but if I try to adjust the volume via media keys, it adjusts by headset volume instead of line out. Furthermore, if I open the sound settings, I see that my USB headset is selected rather than line out. Clicking on line out again fixes everything until the next time I restart.
Does anyone know what's going on here?