I'm running Linux (with pulseaudio 4).
In pavucontrol both outputs are enabled as far as I can see. So you are saying that it is the software disabling the output when the earphones are plugged in?
I haven't had to do anything special with my other hardware though.