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

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
4
down vote

favorite












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
    4
    down vote

    favorite












    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
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      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.









      share|improve this question













      share|improve this question




      share|improve this question








      edited May 21 at 4:37









      ubashu

      2,23221736




      2,23221736










      asked May 20 at 21:20









      tiddlesticks

      213




      213




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          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
            yesterday











          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: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          5
          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
            yesterday















          up vote
          5
          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
            yesterday













          up vote
          5
          down vote



          accepted







          up vote
          5
          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 May 20 at 21:49

























          answered May 20 at 21:28









          singrium

          614113




          614113











          • 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
            yesterday

















          • 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
            yesterday
















          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
          yesterday





          The user owns the home directory, so sudo isn't required when running sudo rm -r ~/.config/pulse
          – BenR
          yesterday













           

          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













































































          Popular posts from this blog

          pylint3 and pip3 broken

          Missing snmpget and snmpwalk

          How to enroll fingerprints to Ubuntu 17.10 with VFS491