How to set a default output and switch to a connected device as it gets connected?
Hi,
When i have a setup where i have:
- Speaker (via jack)
- Headphone (via jack)
the default behavior is to switch audio output to the headphone as soon as it gets connected. I believe "module-switch-on-connect" is doing that.
Now my setup differs slightly. I have:
- Speakers (via bluetooth)
- Headphone (via jack and possible via bluetooth)
Now if i plug in my headphones (jack) the audio keeps coming from the (bluetooth) speakers. Now i have to manually switch the audio to the headphones (jack).
I'd like to do two things.
- I'd like to be able to "set" a preference. The speakers should be the default.
- If anything gets connected (bluetooth or jack) it should switch to that output.
Searching for this is quite tricky as you'd find mostly the initial case (where both devices are connected via jack) with module-switch-on-connect being the solution there.
For completeness, here's my list of loaded modules:
module-device-restore
module-stream-restore
module-card-restore
module-augment-properties
module-switch-on-port-available
module-switch-on-connect
module-udev-detect
module-alsa-card
module-alsa-card
module-bluetooth-policy
module-bluetooth-discover
module-bluez5-discover
module-native-protocol-unix
module-native-protocol-tcp
module-gsettings
module-default-device-restore
module-rescue-streams
module-always-sink
module-intended-roles
module-suspend-on-idle
module-console-kit
module-systemd-login
module-position-event-sounds
module-role-cork
module-filter-heuristics
module-filter-apply
module-x11-publish
module-x11-xsmp
module-bluez5-device
Best regards, Mark