How do I set a pulseaudio card profile persistently across rebootsHow can I change the default audio device from command line?Default sound device switches after rebootWhich sound profile will allow me to simultaneously hear and record system audio + microphone input?How to make pavucontrol changes permanent?Pulseaudio card-profile for Focusrite Scarlett 18i8PulseAudio & ALSA - Set ports as separate output devicesUbuntu 15.10 Can't change output source from HDMI to wireless Blutooth Headsetchange soundcard profile with pactl instead pavucontrolDefault Bluetooth audio mode set to HSP/HFP instead of A2DP 17.04Can not change profile of sound card in Ubuntu 16.04Ubuntu 18.04 No audio on ALC1220IEC958 (S/PDIF) not working

What is it called when oen voice type sings a 'solo?'

Where to refill my bottle in India?

What is GPS' 19 year rollover and does it present a cybersecurity issue?

Why do UK politicians seemingly ignore opinion polls on Brexit?

Prime joint compound before latex paint?

Landlord wants to switch my lease to a "Land contract" to "get back at the city"

If a centaur druid Wild Shapes into a Giant Elk, do their Charge features stack?

How could a lack of term limits lead to a "dictatorship?"

Pristine Bit Checking

What is the command to reset a PC without deleting any files

I see my dog run

How is it possible for user's password to be changed after storage was encrypted? (on OS X, Android)

A poker game description that does not feel gimmicky

extract characters between two commas?

Lied on resume at previous job

How can I add custom success page

What do the Banks children have against barley water?

Why is my log file so massive? 22gb. I am running log backups

Symmetry in quantum mechanics

Can the Produce Flame cantrip be used to grapple, or as an unarmed strike, in the right circumstances?

"My colleague's body is amazing"

Are white and non-white police officers equally likely to kill black suspects?

Is there a way to make member function NOT callable from constructor?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine



How do I set a pulseaudio card profile persistently across reboots


How can I change the default audio device from command line?Default sound device switches after rebootWhich sound profile will allow me to simultaneously hear and record system audio + microphone input?How to make pavucontrol changes permanent?Pulseaudio card-profile for Focusrite Scarlett 18i8PulseAudio & ALSA - Set ports as separate output devicesUbuntu 15.10 Can't change output source from HDMI to wireless Blutooth Headsetchange soundcard profile with pactl instead pavucontrolDefault Bluetooth audio mode set to HSP/HFP instead of A2DP 17.04Can not change profile of sound card in Ubuntu 16.04Ubuntu 18.04 No audio on ALC1220IEC958 (S/PDIF) not working






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








8















I'm trying to set up pulseaudio's card profiles, and I've gotten profile switching to work using pactl set-card-profile, but so far when the machine reboots, the audio profile reverts back to the default of output:analog-stereo instead of remaining on HDMI. How can I set the profile in a way that persists across reboots?










share|improve this question






























    8















    I'm trying to set up pulseaudio's card profiles, and I've gotten profile switching to work using pactl set-card-profile, but so far when the machine reboots, the audio profile reverts back to the default of output:analog-stereo instead of remaining on HDMI. How can I set the profile in a way that persists across reboots?










    share|improve this question


























      8












      8








      8


      0






      I'm trying to set up pulseaudio's card profiles, and I've gotten profile switching to work using pactl set-card-profile, but so far when the machine reboots, the audio profile reverts back to the default of output:analog-stereo instead of remaining on HDMI. How can I set the profile in a way that persists across reboots?










      share|improve this question
















      I'm trying to set up pulseaudio's card profiles, and I've gotten profile switching to work using pactl set-card-profile, but so far when the machine reboots, the audio profile reverts back to the default of output:analog-stereo instead of remaining on HDMI. How can I set the profile in a way that persists across reboots?







      sound configuration pulseaudio






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 20 '11 at 17:09







      Daenyth

















      asked Oct 20 '11 at 15:37









      DaenythDaenyth

      4082623




      4082623




















          2 Answers
          2






          active

          oldest

          votes


















          4














          To make default settings for the pulseaudio daemon we can edit /etc/pulse/default.pa (as root) to give a default source or sink in the last section by uncommenting the corresponding lines and give in the name of our output sink and input source:



          ### Make some devices default
          set-default-sink <name_of_sink>
          set-default-source <name_of_source>


          In case your sound card needs a specific profile we can also add the follwing line:



          set-card-profile <cardindex> <profilename>


          Please make a backup of this file before editing to be able to restore the default setting.



          In case you are unsure what name your sink has you can issue the following command in a terminal to list all sinks presently active:



          pacmd list-sinks


          To test if the sink is correct we can issue



          pacmd set-default-sink <nameofsink>


          in a terminal before we change the default.pa. Open Audio Settings to see the effect (but this will not actually change the sink with default settings - see this answer!)






          share|improve this answer

























          • I'm not using sink setting (as far as I know). I'm changing profiles by using pactl set-card-profile. Is this still done the same way? How do I find out what sinks get put in the config file?

            – Daenyth
            Oct 20 '11 at 17:09












          • Usually there will be an audio sink for the HDMI port listed on pacmd list-sinks (e.g. <alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1> this may be different on your hardware!) that you can use for your default.pa.

            – Takkat
            Oct 20 '11 at 17:52











          • Another note: you should test your command using pacmd set-default-sink <nameofsink> in a terminal to see if it does what you want.

            – Takkat
            Oct 20 '11 at 18:02











          • In all cases that I've seen so far, I only ever have one sink in the list-sinks output. What details the sink states change based on what card profile I have enabled. If I try to use set-default-sink, I get "Sink <name> does not exist"

            – Daenyth
            Oct 20 '11 at 18:07






          • 1





            In this case you can add your set-card-profile <card-index> <profilename> to the default.pa

            – Takkat
            Oct 20 '11 at 18:16


















          0














          It does not work for hotplugged cards.



          If you set card profile in default.pa this way the card must be present for pulseaudio to start. It fails starting otherwise.



          It is actually answered in question 765233






          share|improve this answer










          New contributor




          Vincent Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















            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',
            autoActivateHeartbeat: false,
            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%2f69820%2fhow-do-i-set-a-pulseaudio-card-profile-persistently-across-reboots%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









            4














            To make default settings for the pulseaudio daemon we can edit /etc/pulse/default.pa (as root) to give a default source or sink in the last section by uncommenting the corresponding lines and give in the name of our output sink and input source:



            ### Make some devices default
            set-default-sink <name_of_sink>
            set-default-source <name_of_source>


            In case your sound card needs a specific profile we can also add the follwing line:



            set-card-profile <cardindex> <profilename>


            Please make a backup of this file before editing to be able to restore the default setting.



            In case you are unsure what name your sink has you can issue the following command in a terminal to list all sinks presently active:



            pacmd list-sinks


            To test if the sink is correct we can issue



            pacmd set-default-sink <nameofsink>


            in a terminal before we change the default.pa. Open Audio Settings to see the effect (but this will not actually change the sink with default settings - see this answer!)






            share|improve this answer

























            • I'm not using sink setting (as far as I know). I'm changing profiles by using pactl set-card-profile. Is this still done the same way? How do I find out what sinks get put in the config file?

              – Daenyth
              Oct 20 '11 at 17:09












            • Usually there will be an audio sink for the HDMI port listed on pacmd list-sinks (e.g. <alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1> this may be different on your hardware!) that you can use for your default.pa.

              – Takkat
              Oct 20 '11 at 17:52











            • Another note: you should test your command using pacmd set-default-sink <nameofsink> in a terminal to see if it does what you want.

              – Takkat
              Oct 20 '11 at 18:02











            • In all cases that I've seen so far, I only ever have one sink in the list-sinks output. What details the sink states change based on what card profile I have enabled. If I try to use set-default-sink, I get "Sink <name> does not exist"

              – Daenyth
              Oct 20 '11 at 18:07






            • 1





              In this case you can add your set-card-profile <card-index> <profilename> to the default.pa

              – Takkat
              Oct 20 '11 at 18:16















            4














            To make default settings for the pulseaudio daemon we can edit /etc/pulse/default.pa (as root) to give a default source or sink in the last section by uncommenting the corresponding lines and give in the name of our output sink and input source:



            ### Make some devices default
            set-default-sink <name_of_sink>
            set-default-source <name_of_source>


            In case your sound card needs a specific profile we can also add the follwing line:



            set-card-profile <cardindex> <profilename>


            Please make a backup of this file before editing to be able to restore the default setting.



            In case you are unsure what name your sink has you can issue the following command in a terminal to list all sinks presently active:



            pacmd list-sinks


            To test if the sink is correct we can issue



            pacmd set-default-sink <nameofsink>


            in a terminal before we change the default.pa. Open Audio Settings to see the effect (but this will not actually change the sink with default settings - see this answer!)






            share|improve this answer

























            • I'm not using sink setting (as far as I know). I'm changing profiles by using pactl set-card-profile. Is this still done the same way? How do I find out what sinks get put in the config file?

              – Daenyth
              Oct 20 '11 at 17:09












            • Usually there will be an audio sink for the HDMI port listed on pacmd list-sinks (e.g. <alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1> this may be different on your hardware!) that you can use for your default.pa.

              – Takkat
              Oct 20 '11 at 17:52











            • Another note: you should test your command using pacmd set-default-sink <nameofsink> in a terminal to see if it does what you want.

              – Takkat
              Oct 20 '11 at 18:02











            • In all cases that I've seen so far, I only ever have one sink in the list-sinks output. What details the sink states change based on what card profile I have enabled. If I try to use set-default-sink, I get "Sink <name> does not exist"

              – Daenyth
              Oct 20 '11 at 18:07






            • 1





              In this case you can add your set-card-profile <card-index> <profilename> to the default.pa

              – Takkat
              Oct 20 '11 at 18:16













            4












            4








            4







            To make default settings for the pulseaudio daemon we can edit /etc/pulse/default.pa (as root) to give a default source or sink in the last section by uncommenting the corresponding lines and give in the name of our output sink and input source:



            ### Make some devices default
            set-default-sink <name_of_sink>
            set-default-source <name_of_source>


            In case your sound card needs a specific profile we can also add the follwing line:



            set-card-profile <cardindex> <profilename>


            Please make a backup of this file before editing to be able to restore the default setting.



            In case you are unsure what name your sink has you can issue the following command in a terminal to list all sinks presently active:



            pacmd list-sinks


            To test if the sink is correct we can issue



            pacmd set-default-sink <nameofsink>


            in a terminal before we change the default.pa. Open Audio Settings to see the effect (but this will not actually change the sink with default settings - see this answer!)






            share|improve this answer















            To make default settings for the pulseaudio daemon we can edit /etc/pulse/default.pa (as root) to give a default source or sink in the last section by uncommenting the corresponding lines and give in the name of our output sink and input source:



            ### Make some devices default
            set-default-sink <name_of_sink>
            set-default-source <name_of_source>


            In case your sound card needs a specific profile we can also add the follwing line:



            set-card-profile <cardindex> <profilename>


            Please make a backup of this file before editing to be able to restore the default setting.



            In case you are unsure what name your sink has you can issue the following command in a terminal to list all sinks presently active:



            pacmd list-sinks


            To test if the sink is correct we can issue



            pacmd set-default-sink <nameofsink>


            in a terminal before we change the default.pa. Open Audio Settings to see the effect (but this will not actually change the sink with default settings - see this answer!)







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 13 '17 at 12:24









            Community

            1




            1










            answered Oct 20 '11 at 16:26









            TakkatTakkat

            109k37253379




            109k37253379












            • I'm not using sink setting (as far as I know). I'm changing profiles by using pactl set-card-profile. Is this still done the same way? How do I find out what sinks get put in the config file?

              – Daenyth
              Oct 20 '11 at 17:09












            • Usually there will be an audio sink for the HDMI port listed on pacmd list-sinks (e.g. <alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1> this may be different on your hardware!) that you can use for your default.pa.

              – Takkat
              Oct 20 '11 at 17:52











            • Another note: you should test your command using pacmd set-default-sink <nameofsink> in a terminal to see if it does what you want.

              – Takkat
              Oct 20 '11 at 18:02











            • In all cases that I've seen so far, I only ever have one sink in the list-sinks output. What details the sink states change based on what card profile I have enabled. If I try to use set-default-sink, I get "Sink <name> does not exist"

              – Daenyth
              Oct 20 '11 at 18:07






            • 1





              In this case you can add your set-card-profile <card-index> <profilename> to the default.pa

              – Takkat
              Oct 20 '11 at 18:16

















            • I'm not using sink setting (as far as I know). I'm changing profiles by using pactl set-card-profile. Is this still done the same way? How do I find out what sinks get put in the config file?

              – Daenyth
              Oct 20 '11 at 17:09












            • Usually there will be an audio sink for the HDMI port listed on pacmd list-sinks (e.g. <alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1> this may be different on your hardware!) that you can use for your default.pa.

              – Takkat
              Oct 20 '11 at 17:52











            • Another note: you should test your command using pacmd set-default-sink <nameofsink> in a terminal to see if it does what you want.

              – Takkat
              Oct 20 '11 at 18:02











            • In all cases that I've seen so far, I only ever have one sink in the list-sinks output. What details the sink states change based on what card profile I have enabled. If I try to use set-default-sink, I get "Sink <name> does not exist"

              – Daenyth
              Oct 20 '11 at 18:07






            • 1





              In this case you can add your set-card-profile <card-index> <profilename> to the default.pa

              – Takkat
              Oct 20 '11 at 18:16
















            I'm not using sink setting (as far as I know). I'm changing profiles by using pactl set-card-profile. Is this still done the same way? How do I find out what sinks get put in the config file?

            – Daenyth
            Oct 20 '11 at 17:09






            I'm not using sink setting (as far as I know). I'm changing profiles by using pactl set-card-profile. Is this still done the same way? How do I find out what sinks get put in the config file?

            – Daenyth
            Oct 20 '11 at 17:09














            Usually there will be an audio sink for the HDMI port listed on pacmd list-sinks (e.g. <alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1> this may be different on your hardware!) that you can use for your default.pa.

            – Takkat
            Oct 20 '11 at 17:52





            Usually there will be an audio sink for the HDMI port listed on pacmd list-sinks (e.g. <alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1> this may be different on your hardware!) that you can use for your default.pa.

            – Takkat
            Oct 20 '11 at 17:52













            Another note: you should test your command using pacmd set-default-sink <nameofsink> in a terminal to see if it does what you want.

            – Takkat
            Oct 20 '11 at 18:02





            Another note: you should test your command using pacmd set-default-sink <nameofsink> in a terminal to see if it does what you want.

            – Takkat
            Oct 20 '11 at 18:02













            In all cases that I've seen so far, I only ever have one sink in the list-sinks output. What details the sink states change based on what card profile I have enabled. If I try to use set-default-sink, I get "Sink <name> does not exist"

            – Daenyth
            Oct 20 '11 at 18:07





            In all cases that I've seen so far, I only ever have one sink in the list-sinks output. What details the sink states change based on what card profile I have enabled. If I try to use set-default-sink, I get "Sink <name> does not exist"

            – Daenyth
            Oct 20 '11 at 18:07




            1




            1





            In this case you can add your set-card-profile <card-index> <profilename> to the default.pa

            – Takkat
            Oct 20 '11 at 18:16





            In this case you can add your set-card-profile <card-index> <profilename> to the default.pa

            – Takkat
            Oct 20 '11 at 18:16













            0














            It does not work for hotplugged cards.



            If you set card profile in default.pa this way the card must be present for pulseaudio to start. It fails starting otherwise.



            It is actually answered in question 765233






            share|improve this answer










            New contributor




            Vincent Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.
























              0














              It does not work for hotplugged cards.



              If you set card profile in default.pa this way the card must be present for pulseaudio to start. It fails starting otherwise.



              It is actually answered in question 765233






              share|improve this answer










              New contributor




              Vincent Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.






















                0












                0








                0







                It does not work for hotplugged cards.



                If you set card profile in default.pa this way the card must be present for pulseaudio to start. It fails starting otherwise.



                It is actually answered in question 765233






                share|improve this answer










                New contributor




                Vincent Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                It does not work for hotplugged cards.



                If you set card profile in default.pa this way the card must be present for pulseaudio to start. It fails starting otherwise.



                It is actually answered in question 765233







                share|improve this answer










                New contributor




                Vincent Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer








                edited 6 hours ago





















                New contributor




                Vincent Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 6 hours ago









                Vincent VegaVincent Vega

                11




                11




                New contributor




                Vincent Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                Vincent Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                Vincent Vega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f69820%2fhow-do-i-set-a-pulseaudio-card-profile-persistently-across-reboots%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

                    Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                    Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                    Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org