Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save terotil/39394320ede1cf4cf3a0 to your computer and use it in GitHub Desktop.
Save terotil/39394320ede1cf4cf3a0 to your computer and use it in GitHub Desktop.
Pulseaudio select new device when plugged

Source: Anonymous comment to blog post Switching default PulseAudio device when USB microphone is plugged in

PulseAudio has built-in support for defaulting. Just add

# automatically switch to newly-connected devices
load-module module-switch-on-connect

to /etc/pulse/default.pa right after these lines

### Should be after module-*-restore but before module-*-detect
load-module module-switch-on-port-available

Then restart server pulseaudio -k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment