Skip to content

Instantly share code, notes, and snippets.

@BBavouzet
Last active March 22, 2020 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BBavouzet/d5bd280733ff100926a3815d15c93b06 to your computer and use it in GitHub Desktop.
Save BBavouzet/d5bd280733ff100926a3815d15c93b06 to your computer and use it in GitHub Desktop.
Set default input device sound in Ubuntu and make it persistent.

I have multiple output device sound and it's allways my headphone by default.

  1. First: List the audio output devices using

pactl list short sources

  1. Second: To set a default output device run the command

pactl set-default-sink <'output_device_name'> Where output_device_name is until .monitor Then, comment this line load-module module-switch-on-connect in the file /etc/pulse/default.pa to be # load-module module-switch-on-connect in order to make the changes persistent.

Source: https://askubuntu.com/questions/1038490/how-do-you-set-a-default-audio-output-device-in-ubuntu-18-04

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