When I plug my (HDMI) display into my laptop, the sound output switches to it. I can switch it back, but is there any way to stop this automatic switch?
(I've found many people complaining, but no answers. A script which reversibly disabled HMDI audio would be acceptable.)