Bug 453156 - default.pa no longer respects "switch-on-connect" and "switch-on-port-available"
Summary: default.pa no longer respects "switch-on-connect" and "switch-on-port-available"
Status: RESOLVED UPSTREAM
Alias: None
Product: plasma-pa
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.24.4
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-28 17:38 UTC by tim
Modified: 2024-10-02 11:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.