How do you set a default audio output device in Ubuntu 18.04?











up vote
5
down vote

favorite
2












Every time I boot up I have to switch my audio output device to my "Line Out" headphones because for some reason my microphone defaults as a speaker.



See this screenshot.










share|improve this question




























    up vote
    5
    down vote

    favorite
    2












    Every time I boot up I have to switch my audio output device to my "Line Out" headphones because for some reason my microphone defaults as a speaker.



    See this screenshot.










    share|improve this question


























      up vote
      5
      down vote

      favorite
      2









      up vote
      5
      down vote

      favorite
      2






      2





      Every time I boot up I have to switch my audio output device to my "Line Out" headphones because for some reason my microphone defaults as a speaker.



      See this screenshot.










      share|improve this question















      Every time I boot up I have to switch my audio output device to my "Line Out" headphones because for some reason my microphone defaults as a speaker.



      See this screenshot.







      sound






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 21 at 4:37









      ubashu

      2,28721836




      2,28721836










      asked May 20 at 21:20









      tiddlesticks

      2613




      2613






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          6
          down vote



          accepted










          Here is a well explained tutorial to set a default audio input/output: Link



          First: List the audio output devices using



          pactl list short sinks  


          Example of the output:



          pactl list short sources
          0 alsa_output.pci-0000_02_00.1.hdmi-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
          1 alsa_input.usb-AVerMedia_Technologies__Inc._Live_Gamer_Portable_2_5202050100060-03.analog-stereo module-alsa-card.c
          2 alsa_output.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
          3 alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo module-alsa-card.c s16le 2ch 44100Hz RUNNING


          Second: To set a default output device run the command



          set-default-sink <'output device name'>


          Example: pactl set-default-sink 'alsa_output.pci-0000_00_1f.3.analog-stereo'



          Now, to make this work at every restart, follow this :



          First, open the file /etc/pulse/default.pa using :



          sudo gedit /etc/pulse/default.pa


          Then scroll to the bottom of the file, where two lines starting with set- will be commented out.
          Now, uncomment these lines and replace the words input and output with the number of the sink (for output) / source (for input) that you want to be the default.



          Example:



          ### Make some devices default
          set-default-sink 3
          set-default-source 3


          After doing this, save and exit. Then, delete the ~/.config/pulse directory by running sudo rm -r ~/.config/pulse, and then reboot the system. Once the system reboots, the appropriate devices should now be set as the defaults.






          share|improve this answer























          • Thank you so much, you have made my os much more pleasurable to use!
            – tiddlesticks
            May 21 at 1:44










          • The user owns the home directory, so sudo isn't required when running sudo rm -r ~/.config/pulse
            – BenR
            Aug 24 at 13:21




















          up vote
          2
          down vote













          This can be done with PulseAudio Volume Control if you prefer to use a GUI.



          Once you've opened PulseAudio Volume Control, choose the configuration (the last tab), then select the output and/or input you want to use from the profile dropdown menu.
          It should look similar to this



          PulseAudio Volume Control can also be used to adjust volume levels for each input, output, system sounds and applications that are currently in use.



          Here's a post from Linuxhint with more info on PulseAudio.






          share|improve this answer





















          • Thanks for this solution. I start to regret having upgraded to 18.04.1. PulseAudio Volume Control disappeared too >:(
            – Alfonso Nishikawa
            Oct 2 at 23:56








          • 1




            I should mention, I'm using Ubuntu studio, which has a few differences. although I did notice pulse was missing after the upgrade. 18.04 uses ALSA, but Pulse can be installed. Maybe this (same post from above) will help: linuxhint.com/pulse_audio_sounds_ubuntu
            – starbuck
            Oct 5 at 16:36












          • Yeah, I did that and worked :) Thx :)
            – Alfonso Nishikawa
            Oct 6 at 18:56











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1038490%2fhow-do-you-set-a-default-audio-output-device-in-ubuntu-18-04%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          6
          down vote



          accepted










          Here is a well explained tutorial to set a default audio input/output: Link



          First: List the audio output devices using



          pactl list short sinks  


          Example of the output:



          pactl list short sources
          0 alsa_output.pci-0000_02_00.1.hdmi-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
          1 alsa_input.usb-AVerMedia_Technologies__Inc._Live_Gamer_Portable_2_5202050100060-03.analog-stereo module-alsa-card.c
          2 alsa_output.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
          3 alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo module-alsa-card.c s16le 2ch 44100Hz RUNNING


          Second: To set a default output device run the command



          set-default-sink <'output device name'>


          Example: pactl set-default-sink 'alsa_output.pci-0000_00_1f.3.analog-stereo'



          Now, to make this work at every restart, follow this :



          First, open the file /etc/pulse/default.pa using :



          sudo gedit /etc/pulse/default.pa


          Then scroll to the bottom of the file, where two lines starting with set- will be commented out.
          Now, uncomment these lines and replace the words input and output with the number of the sink (for output) / source (for input) that you want to be the default.



          Example:



          ### Make some devices default
          set-default-sink 3
          set-default-source 3


          After doing this, save and exit. Then, delete the ~/.config/pulse directory by running sudo rm -r ~/.config/pulse, and then reboot the system. Once the system reboots, the appropriate devices should now be set as the defaults.






          share|improve this answer























          • Thank you so much, you have made my os much more pleasurable to use!
            – tiddlesticks
            May 21 at 1:44










          • The user owns the home directory, so sudo isn't required when running sudo rm -r ~/.config/pulse
            – BenR
            Aug 24 at 13:21

















          up vote
          6
          down vote



          accepted










          Here is a well explained tutorial to set a default audio input/output: Link



          First: List the audio output devices using



          pactl list short sinks  


          Example of the output:



          pactl list short sources
          0 alsa_output.pci-0000_02_00.1.hdmi-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
          1 alsa_input.usb-AVerMedia_Technologies__Inc._Live_Gamer_Portable_2_5202050100060-03.analog-stereo module-alsa-card.c
          2 alsa_output.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
          3 alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo module-alsa-card.c s16le 2ch 44100Hz RUNNING


          Second: To set a default output device run the command



          set-default-sink <'output device name'>


          Example: pactl set-default-sink 'alsa_output.pci-0000_00_1f.3.analog-stereo'



          Now, to make this work at every restart, follow this :



          First, open the file /etc/pulse/default.pa using :



          sudo gedit /etc/pulse/default.pa


          Then scroll to the bottom of the file, where two lines starting with set- will be commented out.
          Now, uncomment these lines and replace the words input and output with the number of the sink (for output) / source (for input) that you want to be the default.



          Example:



          ### Make some devices default
          set-default-sink 3
          set-default-source 3


          After doing this, save and exit. Then, delete the ~/.config/pulse directory by running sudo rm -r ~/.config/pulse, and then reboot the system. Once the system reboots, the appropriate devices should now be set as the defaults.






          share|improve this answer























          • Thank you so much, you have made my os much more pleasurable to use!
            – tiddlesticks
            May 21 at 1:44










          • The user owns the home directory, so sudo isn't required when running sudo rm -r ~/.config/pulse
            – BenR
            Aug 24 at 13:21















          up vote
          6
          down vote



          accepted







          up vote
          6
          down vote



          accepted






          Here is a well explained tutorial to set a default audio input/output: Link



          First: List the audio output devices using



          pactl list short sinks  


          Example of the output:



          pactl list short sources
          0 alsa_output.pci-0000_02_00.1.hdmi-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
          1 alsa_input.usb-AVerMedia_Technologies__Inc._Live_Gamer_Portable_2_5202050100060-03.analog-stereo module-alsa-card.c
          2 alsa_output.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
          3 alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo module-alsa-card.c s16le 2ch 44100Hz RUNNING


          Second: To set a default output device run the command



          set-default-sink <'output device name'>


          Example: pactl set-default-sink 'alsa_output.pci-0000_00_1f.3.analog-stereo'



          Now, to make this work at every restart, follow this :



          First, open the file /etc/pulse/default.pa using :



          sudo gedit /etc/pulse/default.pa


          Then scroll to the bottom of the file, where two lines starting with set- will be commented out.
          Now, uncomment these lines and replace the words input and output with the number of the sink (for output) / source (for input) that you want to be the default.



          Example:



          ### Make some devices default
          set-default-sink 3
          set-default-source 3


          After doing this, save and exit. Then, delete the ~/.config/pulse directory by running sudo rm -r ~/.config/pulse, and then reboot the system. Once the system reboots, the appropriate devices should now be set as the defaults.






          share|improve this answer














          Here is a well explained tutorial to set a default audio input/output: Link



          First: List the audio output devices using



          pactl list short sinks  


          Example of the output:



          pactl list short sources
          0 alsa_output.pci-0000_02_00.1.hdmi-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
          1 alsa_input.usb-AVerMedia_Technologies__Inc._Live_Gamer_Portable_2_5202050100060-03.analog-stereo module-alsa-card.c
          2 alsa_output.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
          3 alsa_input.usb-Blue_Microphones_Yeti_Stereo_Microphone_REV8-00.analog-stereo module-alsa-card.c s16le 2ch 44100Hz RUNNING


          Second: To set a default output device run the command



          set-default-sink <'output device name'>


          Example: pactl set-default-sink 'alsa_output.pci-0000_00_1f.3.analog-stereo'



          Now, to make this work at every restart, follow this :



          First, open the file /etc/pulse/default.pa using :



          sudo gedit /etc/pulse/default.pa


          Then scroll to the bottom of the file, where two lines starting with set- will be commented out.
          Now, uncomment these lines and replace the words input and output with the number of the sink (for output) / source (for input) that you want to be the default.



          Example:



          ### Make some devices default
          set-default-sink 3
          set-default-source 3


          After doing this, save and exit. Then, delete the ~/.config/pulse directory by running sudo rm -r ~/.config/pulse, and then reboot the system. Once the system reboots, the appropriate devices should now be set as the defaults.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 23 at 19:15

























          answered May 20 at 21:28









          singrium

          796117




          796117












          • Thank you so much, you have made my os much more pleasurable to use!
            – tiddlesticks
            May 21 at 1:44










          • The user owns the home directory, so sudo isn't required when running sudo rm -r ~/.config/pulse
            – BenR
            Aug 24 at 13:21




















          • Thank you so much, you have made my os much more pleasurable to use!
            – tiddlesticks
            May 21 at 1:44










          • The user owns the home directory, so sudo isn't required when running sudo rm -r ~/.config/pulse
            – BenR
            Aug 24 at 13:21


















          Thank you so much, you have made my os much more pleasurable to use!
          – tiddlesticks
          May 21 at 1:44




          Thank you so much, you have made my os much more pleasurable to use!
          – tiddlesticks
          May 21 at 1:44












          The user owns the home directory, so sudo isn't required when running sudo rm -r ~/.config/pulse
          – BenR
          Aug 24 at 13:21






          The user owns the home directory, so sudo isn't required when running sudo rm -r ~/.config/pulse
          – BenR
          Aug 24 at 13:21














          up vote
          2
          down vote













          This can be done with PulseAudio Volume Control if you prefer to use a GUI.



          Once you've opened PulseAudio Volume Control, choose the configuration (the last tab), then select the output and/or input you want to use from the profile dropdown menu.
          It should look similar to this



          PulseAudio Volume Control can also be used to adjust volume levels for each input, output, system sounds and applications that are currently in use.



          Here's a post from Linuxhint with more info on PulseAudio.






          share|improve this answer





















          • Thanks for this solution. I start to regret having upgraded to 18.04.1. PulseAudio Volume Control disappeared too >:(
            – Alfonso Nishikawa
            Oct 2 at 23:56








          • 1




            I should mention, I'm using Ubuntu studio, which has a few differences. although I did notice pulse was missing after the upgrade. 18.04 uses ALSA, but Pulse can be installed. Maybe this (same post from above) will help: linuxhint.com/pulse_audio_sounds_ubuntu
            – starbuck
            Oct 5 at 16:36












          • Yeah, I did that and worked :) Thx :)
            – Alfonso Nishikawa
            Oct 6 at 18:56















          up vote
          2
          down vote













          This can be done with PulseAudio Volume Control if you prefer to use a GUI.



          Once you've opened PulseAudio Volume Control, choose the configuration (the last tab), then select the output and/or input you want to use from the profile dropdown menu.
          It should look similar to this



          PulseAudio Volume Control can also be used to adjust volume levels for each input, output, system sounds and applications that are currently in use.



          Here's a post from Linuxhint with more info on PulseAudio.






          share|improve this answer





















          • Thanks for this solution. I start to regret having upgraded to 18.04.1. PulseAudio Volume Control disappeared too >:(
            – Alfonso Nishikawa
            Oct 2 at 23:56








          • 1




            I should mention, I'm using Ubuntu studio, which has a few differences. although I did notice pulse was missing after the upgrade. 18.04 uses ALSA, but Pulse can be installed. Maybe this (same post from above) will help: linuxhint.com/pulse_audio_sounds_ubuntu
            – starbuck
            Oct 5 at 16:36












          • Yeah, I did that and worked :) Thx :)
            – Alfonso Nishikawa
            Oct 6 at 18:56













          up vote
          2
          down vote










          up vote
          2
          down vote









          This can be done with PulseAudio Volume Control if you prefer to use a GUI.



          Once you've opened PulseAudio Volume Control, choose the configuration (the last tab), then select the output and/or input you want to use from the profile dropdown menu.
          It should look similar to this



          PulseAudio Volume Control can also be used to adjust volume levels for each input, output, system sounds and applications that are currently in use.



          Here's a post from Linuxhint with more info on PulseAudio.






          share|improve this answer












          This can be done with PulseAudio Volume Control if you prefer to use a GUI.



          Once you've opened PulseAudio Volume Control, choose the configuration (the last tab), then select the output and/or input you want to use from the profile dropdown menu.
          It should look similar to this



          PulseAudio Volume Control can also be used to adjust volume levels for each input, output, system sounds and applications that are currently in use.



          Here's a post from Linuxhint with more info on PulseAudio.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 20 at 6:24









          starbuck

          16317




          16317












          • Thanks for this solution. I start to regret having upgraded to 18.04.1. PulseAudio Volume Control disappeared too >:(
            – Alfonso Nishikawa
            Oct 2 at 23:56








          • 1




            I should mention, I'm using Ubuntu studio, which has a few differences. although I did notice pulse was missing after the upgrade. 18.04 uses ALSA, but Pulse can be installed. Maybe this (same post from above) will help: linuxhint.com/pulse_audio_sounds_ubuntu
            – starbuck
            Oct 5 at 16:36












          • Yeah, I did that and worked :) Thx :)
            – Alfonso Nishikawa
            Oct 6 at 18:56


















          • Thanks for this solution. I start to regret having upgraded to 18.04.1. PulseAudio Volume Control disappeared too >:(
            – Alfonso Nishikawa
            Oct 2 at 23:56








          • 1




            I should mention, I'm using Ubuntu studio, which has a few differences. although I did notice pulse was missing after the upgrade. 18.04 uses ALSA, but Pulse can be installed. Maybe this (same post from above) will help: linuxhint.com/pulse_audio_sounds_ubuntu
            – starbuck
            Oct 5 at 16:36












          • Yeah, I did that and worked :) Thx :)
            – Alfonso Nishikawa
            Oct 6 at 18:56
















          Thanks for this solution. I start to regret having upgraded to 18.04.1. PulseAudio Volume Control disappeared too >:(
          – Alfonso Nishikawa
          Oct 2 at 23:56






          Thanks for this solution. I start to regret having upgraded to 18.04.1. PulseAudio Volume Control disappeared too >:(
          – Alfonso Nishikawa
          Oct 2 at 23:56






          1




          1




          I should mention, I'm using Ubuntu studio, which has a few differences. although I did notice pulse was missing after the upgrade. 18.04 uses ALSA, but Pulse can be installed. Maybe this (same post from above) will help: linuxhint.com/pulse_audio_sounds_ubuntu
          – starbuck
          Oct 5 at 16:36






          I should mention, I'm using Ubuntu studio, which has a few differences. although I did notice pulse was missing after the upgrade. 18.04 uses ALSA, but Pulse can be installed. Maybe this (same post from above) will help: linuxhint.com/pulse_audio_sounds_ubuntu
          – starbuck
          Oct 5 at 16:36














          Yeah, I did that and worked :) Thx :)
          – Alfonso Nishikawa
          Oct 6 at 18:56




          Yeah, I did that and worked :) Thx :)
          – Alfonso Nishikawa
          Oct 6 at 18:56


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1038490%2fhow-do-you-set-a-default-audio-output-device-in-ubuntu-18-04%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How did Captain America manage to do this?

          迪纳利

          南乌拉尔铁路局