SUMMARY *** Prior to a recent update, commenting out "load-module module-switch-on-port-available" and "load-module module-switch-on-connect" would stop the computer from automatically switching to a (nonexistent) "microphone" or a never-used "HDMI Audio" whenever the line out was unplugged. Now it's back to switching automatically. *** STEPS TO REPRODUCE 1. Comment out the relevant lines in /etc/pulse/default.pa 2. Have headphones plugged in and "analog stereo output" as profile 3. Unplug headphones OBSERVED RESULT Profile changes to "microphone." Upon re-plugging headphones, the "analog stereo duplex"profile is loaded. EXPECTED RESULT The output should list nothing when the headphones are uplugged. When re-plugged, "analog stereo output" should be automatically selected profile. SOFTWARE/OS VERSIONS Operating System: Kubuntu 22.04 KDE Plasma Version: 5.24.4 KDE Frameworks Version: 5.93.0 Qt Version: 5.15.3 Kernel Version: 5.15.0-27-generic (64-bit) ADDITIONAL INFORMATION This is something that comes up fairly often on internet fora. It would be very helpful to have a GUI option to manually and permanently disable an audio output and set defaults. E.g. if I am never going to use anything *but* HDMI, I'd set that as default and turn the other profiles off. Or if my headphones *don't have* a microphone, I would set "analog stereo output" as default. As always, thank you for your time! On many devices, the options that are defaulted to are not desirable by users, or are non-existent.
oops, that last line wasn't supposed to be there, sry. : )
Port switching happens server-side, you'll want to report this type of bug upstream to pulseaudio.