Bug 40057 - [PATCH] switch-on-connect: Allow switching to internal devices
Summary: [PATCH] switch-on-connect: Allow switching to internal devices
Status: RESOLVED WORKSFORME
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: modules (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-13 08:30 UTC by Daniel Schaal
Modified: 2012-12-25 09:52 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
add use_internal_devices boolean argument (3.24 KB, patch)
2011-08-13 08:30 UTC, Daniel Schaal
Details | Splinter Review

Description Daniel Schaal 2011-08-13 08:30:13 UTC
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.
Comment 1 Arun Raghavan 2011-10-28 04:42:17 UTC
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.
Comment 2 Daniel Schaal 2011-10-28 07:51:19 UTC
(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.
Comment 3 Daniel Schaal 2012-12-25 09:52:20 UTC
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.