Bug 453156

Summary: default.pa no longer respects "switch-on-connect" and "switch-on-port-available"
Product: [Unmaintained] plasma-pa Reporter: tim <imagesfromobjects>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: nowrep, sitter
Priority: NOR    
Version First Reported In: 5.24.4   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description tim 2022-04-28 17:38:53 UTC
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.
Comment 1 tim 2022-04-28 17:40:23 UTC
oops, that last line wasn't supposed to be there, sry.

: )
Comment 2 Harald Sitter 2024-10-02 11:02:24 UTC
Port switching happens server-side, you'll want to report this type of bug upstream to pulseaudio.