Created attachment 50176 [details] [review] add use_internal_devices boolean argument Currently module-switch-on-connect doesn't switch to internal devices. The attached patch adds a boolean module argument use_internal_devices to also consider internal devices when switching sources/sinks. I find this useful in my use case, as I usually use a bluetooth headset and have my internal card on profile "off". I set up a shortcut that switches the profile of my internal card, but then I have to manually switch the stream to the new sink/source.
Could you describe why you need to set your internal card to the off profile? It would be good to understand how you're using PA better and see if there's a better general solution.
(In reply to comment #1) > Could you describe why you need to set your internal card to the off profile? > It would be good to understand how you're using PA better and see if there's a > better general solution. I mainly use several Bluetooth headsets, switching between them when e.g. the battery runs low. I use the internal card only rarely and then only for a short amount of time. So basically I want all streams to go through my headset, but sometimes I want to switch all streams to my internal card, and when I'm done with it, back to my headset. Maybe there's a better way, but the easiest I found was to just set my int. card to off when I'm not using it and use a short script to toggle between the off profile and an active profile and let switch-on-connect move the streams.
This is probably more a bug in KMix, as I'm now using veromix which automatically switches the volume controls to the new default audio device, so I don't have to turn my internal card off to control my bluetooth device anymore.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.