Pulseaudio does not remember default sink











up vote
1
down vote

favorite
1












I am on Ubuntu Mate 17.10 and sometimes I am using pulseaudio through network. Also I am using an equalizer module for pa. So I have 3 ouput sinks: my notebook sound device, eq sink and remote sink on my net device:



pavucontrol screenshot.



Every time I start pulseaudio (on boot or on pulseaudio -k) my default output sink is my remote device, however I have switched default sink to my notebook device. I tried to add this two lines to /etc/pulse/default.pa:



set-card-profile 1 output:analog-stereo+input:analog-stereo
set-default-sink alsa_output.pci-0000_00_14.2.analog-stereo


that should set up my notebook sound device as default sink, but it changes nothing.



How can I make pulsaudio remember my choice, or, at least, set my notebook device as default output?










share|improve this question
























  • Do you have another default.pa in ~/.pulse or ~/.config/pulse that overrides your system defaults?
    – Takkat
    Nov 28 '17 at 7:33












  • No, I definitely have not.
    – bergentroll
    Nov 28 '17 at 9:55















up vote
1
down vote

favorite
1












I am on Ubuntu Mate 17.10 and sometimes I am using pulseaudio through network. Also I am using an equalizer module for pa. So I have 3 ouput sinks: my notebook sound device, eq sink and remote sink on my net device:



pavucontrol screenshot.



Every time I start pulseaudio (on boot or on pulseaudio -k) my default output sink is my remote device, however I have switched default sink to my notebook device. I tried to add this two lines to /etc/pulse/default.pa:



set-card-profile 1 output:analog-stereo+input:analog-stereo
set-default-sink alsa_output.pci-0000_00_14.2.analog-stereo


that should set up my notebook sound device as default sink, but it changes nothing.



How can I make pulsaudio remember my choice, or, at least, set my notebook device as default output?










share|improve this question
























  • Do you have another default.pa in ~/.pulse or ~/.config/pulse that overrides your system defaults?
    – Takkat
    Nov 28 '17 at 7:33












  • No, I definitely have not.
    – bergentroll
    Nov 28 '17 at 9:55













up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I am on Ubuntu Mate 17.10 and sometimes I am using pulseaudio through network. Also I am using an equalizer module for pa. So I have 3 ouput sinks: my notebook sound device, eq sink and remote sink on my net device:



pavucontrol screenshot.



Every time I start pulseaudio (on boot or on pulseaudio -k) my default output sink is my remote device, however I have switched default sink to my notebook device. I tried to add this two lines to /etc/pulse/default.pa:



set-card-profile 1 output:analog-stereo+input:analog-stereo
set-default-sink alsa_output.pci-0000_00_14.2.analog-stereo


that should set up my notebook sound device as default sink, but it changes nothing.



How can I make pulsaudio remember my choice, or, at least, set my notebook device as default output?










share|improve this question















I am on Ubuntu Mate 17.10 and sometimes I am using pulseaudio through network. Also I am using an equalizer module for pa. So I have 3 ouput sinks: my notebook sound device, eq sink and remote sink on my net device:



pavucontrol screenshot.



Every time I start pulseaudio (on boot or on pulseaudio -k) my default output sink is my remote device, however I have switched default sink to my notebook device. I tried to add this two lines to /etc/pulse/default.pa:



set-card-profile 1 output:analog-stereo+input:analog-stereo
set-default-sink alsa_output.pci-0000_00_14.2.analog-stereo


that should set up my notebook sound device as default sink, but it changes nothing.



How can I make pulsaudio remember my choice, or, at least, set my notebook device as default output?







pulseaudio 17.10






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 28 '17 at 10:49









Takkat

105k35245374




105k35245374










asked Nov 28 '17 at 7:09









bergentroll

61




61












  • Do you have another default.pa in ~/.pulse or ~/.config/pulse that overrides your system defaults?
    – Takkat
    Nov 28 '17 at 7:33












  • No, I definitely have not.
    – bergentroll
    Nov 28 '17 at 9:55


















  • Do you have another default.pa in ~/.pulse or ~/.config/pulse that overrides your system defaults?
    – Takkat
    Nov 28 '17 at 7:33












  • No, I definitely have not.
    – bergentroll
    Nov 28 '17 at 9:55
















Do you have another default.pa in ~/.pulse or ~/.config/pulse that overrides your system defaults?
– Takkat
Nov 28 '17 at 7:33






Do you have another default.pa in ~/.pulse or ~/.config/pulse that overrides your system defaults?
– Takkat
Nov 28 '17 at 7:33














No, I definitely have not.
– bergentroll
Nov 28 '17 at 9:55




No, I definitely have not.
– bergentroll
Nov 28 '17 at 9:55










2 Answers
2






active

oldest

votes

















up vote
1
down vote













Problem



Personally, I have many sources and sinks and since upgrading to Xubuntu LTS 18.04.1, the selected default source and sink happened to be the wrong ones.



One can set the "fallback" output and input device in pavucontrol by means of a darkened check mark —which is not very clear to any user!!! This did not help much as these settings are temporarily of nature and are lost with every reboot.



Listing all available audio interfaces



$ pactl list sinks short
$ pactl list sources short


Test setting PulseAudio defaults



$ pactl set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
$ pactl set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo


Permanently setting the defaults



$ sudo gvim /etc/pulse/default.pa

### Make some devices default
set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo





share|improve this answer



















  • 1




    Thank you! This helped a lot, nothing else worked.... here is a small correction though: sudo gvim /etc/pulse/default.ca -> should be sudo gvim /etc/pulse/default.pa
    – davidhq
    Nov 21 at 17:48


















up vote
0
down vote













To debug this please try with the following steps




  • Remove any custom lines from your default.pa (after a backup of course)


  • Delete the ~/.pulse or ~/.config/pulse directory to get rid of unwanted remnants.



    mv ~/.pulse ~/.pulse.old
    mv ~/.config/pulse ~/.config/pulse.old



  • Copy the default.pa to your HOME ~/.config/pulse to be able to edit it without root privileges.



    cp /etc/pulse/default.pa ~/.config/pulse/



  • Restart the pulseaudio server with



    pulseaudio -k



Before inserting lines into ~/.config/pulse/default.pa test if they work to be able to read errors:





  • List sinks to have their index and names correctly and be able to copy & paste them



    pactl list sinks short



  • Set profile as desired:



    pactl set-card-profile <index|name> output:analog-stereo+input:analog-stereo


    Debug this line if you get an error. Note that a sink index may change if you have volatile sinks, better use a name in this case.




  • Make a sink default



    pactl set-default-sink <sink_name>



Only if all above commands succeeded without an error you can insert the commands into the ~/.config/pulse/default.pa which on the next restart of pulseaudio or after you restarted your session will override system-wide settings. Hopefully your default sink is then loaded by default.






share|improve this answer





















  • I made all you wrote. Now I have only three custom lines in my ~/.config/pulse/default.pa: uncommented "load-module·module-esound-protocol-tcp" and "load-module·module-native-protocol-tcp" on lines 77-78 and after them "load-module·module-equalizer-sink". Also I had need to install paprefs and check "Make discoverable PulseAudio network sound devices available locally", because without of this there is no my network device in sinks. Now pa remember default sink if I check some and make "pulseaudio -k". However on but I still get my network device as default sink in any ways.
    – bergentroll
    Nov 28 '17 at 14:13












  • there is a file in ~/.config/pulse folder with filename ending "-default-sink". File is plain text so can open it to check it has correct name, and edit to change name if needed.
    – nik gnomic
    Dec 10 '17 at 1:42











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%2f980991%2fpulseaudio-does-not-remember-default-sink%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
1
down vote













Problem



Personally, I have many sources and sinks and since upgrading to Xubuntu LTS 18.04.1, the selected default source and sink happened to be the wrong ones.



One can set the "fallback" output and input device in pavucontrol by means of a darkened check mark —which is not very clear to any user!!! This did not help much as these settings are temporarily of nature and are lost with every reboot.



Listing all available audio interfaces



$ pactl list sinks short
$ pactl list sources short


Test setting PulseAudio defaults



$ pactl set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
$ pactl set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo


Permanently setting the defaults



$ sudo gvim /etc/pulse/default.pa

### Make some devices default
set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo





share|improve this answer



















  • 1




    Thank you! This helped a lot, nothing else worked.... here is a small correction though: sudo gvim /etc/pulse/default.ca -> should be sudo gvim /etc/pulse/default.pa
    – davidhq
    Nov 21 at 17:48















up vote
1
down vote













Problem



Personally, I have many sources and sinks and since upgrading to Xubuntu LTS 18.04.1, the selected default source and sink happened to be the wrong ones.



One can set the "fallback" output and input device in pavucontrol by means of a darkened check mark —which is not very clear to any user!!! This did not help much as these settings are temporarily of nature and are lost with every reboot.



Listing all available audio interfaces



$ pactl list sinks short
$ pactl list sources short


Test setting PulseAudio defaults



$ pactl set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
$ pactl set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo


Permanently setting the defaults



$ sudo gvim /etc/pulse/default.pa

### Make some devices default
set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo





share|improve this answer



















  • 1




    Thank you! This helped a lot, nothing else worked.... here is a small correction though: sudo gvim /etc/pulse/default.ca -> should be sudo gvim /etc/pulse/default.pa
    – davidhq
    Nov 21 at 17:48













up vote
1
down vote










up vote
1
down vote









Problem



Personally, I have many sources and sinks and since upgrading to Xubuntu LTS 18.04.1, the selected default source and sink happened to be the wrong ones.



One can set the "fallback" output and input device in pavucontrol by means of a darkened check mark —which is not very clear to any user!!! This did not help much as these settings are temporarily of nature and are lost with every reboot.



Listing all available audio interfaces



$ pactl list sinks short
$ pactl list sources short


Test setting PulseAudio defaults



$ pactl set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
$ pactl set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo


Permanently setting the defaults



$ sudo gvim /etc/pulse/default.pa

### Make some devices default
set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo





share|improve this answer














Problem



Personally, I have many sources and sinks and since upgrading to Xubuntu LTS 18.04.1, the selected default source and sink happened to be the wrong ones.



One can set the "fallback" output and input device in pavucontrol by means of a darkened check mark —which is not very clear to any user!!! This did not help much as these settings are temporarily of nature and are lost with every reboot.



Listing all available audio interfaces



$ pactl list sinks short
$ pactl list sources short


Test setting PulseAudio defaults



$ pactl set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
$ pactl set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo


Permanently setting the defaults



$ sudo gvim /etc/pulse/default.pa

### Make some devices default
set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo






share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 21 at 21:27

























answered Aug 22 at 13:49









Serge Stroobandt

1,9831832




1,9831832








  • 1




    Thank you! This helped a lot, nothing else worked.... here is a small correction though: sudo gvim /etc/pulse/default.ca -> should be sudo gvim /etc/pulse/default.pa
    – davidhq
    Nov 21 at 17:48














  • 1




    Thank you! This helped a lot, nothing else worked.... here is a small correction though: sudo gvim /etc/pulse/default.ca -> should be sudo gvim /etc/pulse/default.pa
    – davidhq
    Nov 21 at 17:48








1




1




Thank you! This helped a lot, nothing else worked.... here is a small correction though: sudo gvim /etc/pulse/default.ca -> should be sudo gvim /etc/pulse/default.pa
– davidhq
Nov 21 at 17:48




Thank you! This helped a lot, nothing else worked.... here is a small correction though: sudo gvim /etc/pulse/default.ca -> should be sudo gvim /etc/pulse/default.pa
– davidhq
Nov 21 at 17:48












up vote
0
down vote













To debug this please try with the following steps




  • Remove any custom lines from your default.pa (after a backup of course)


  • Delete the ~/.pulse or ~/.config/pulse directory to get rid of unwanted remnants.



    mv ~/.pulse ~/.pulse.old
    mv ~/.config/pulse ~/.config/pulse.old



  • Copy the default.pa to your HOME ~/.config/pulse to be able to edit it without root privileges.



    cp /etc/pulse/default.pa ~/.config/pulse/



  • Restart the pulseaudio server with



    pulseaudio -k



Before inserting lines into ~/.config/pulse/default.pa test if they work to be able to read errors:





  • List sinks to have their index and names correctly and be able to copy & paste them



    pactl list sinks short



  • Set profile as desired:



    pactl set-card-profile <index|name> output:analog-stereo+input:analog-stereo


    Debug this line if you get an error. Note that a sink index may change if you have volatile sinks, better use a name in this case.




  • Make a sink default



    pactl set-default-sink <sink_name>



Only if all above commands succeeded without an error you can insert the commands into the ~/.config/pulse/default.pa which on the next restart of pulseaudio or after you restarted your session will override system-wide settings. Hopefully your default sink is then loaded by default.






share|improve this answer





















  • I made all you wrote. Now I have only three custom lines in my ~/.config/pulse/default.pa: uncommented "load-module·module-esound-protocol-tcp" and "load-module·module-native-protocol-tcp" on lines 77-78 and after them "load-module·module-equalizer-sink". Also I had need to install paprefs and check "Make discoverable PulseAudio network sound devices available locally", because without of this there is no my network device in sinks. Now pa remember default sink if I check some and make "pulseaudio -k". However on but I still get my network device as default sink in any ways.
    – bergentroll
    Nov 28 '17 at 14:13












  • there is a file in ~/.config/pulse folder with filename ending "-default-sink". File is plain text so can open it to check it has correct name, and edit to change name if needed.
    – nik gnomic
    Dec 10 '17 at 1:42















up vote
0
down vote













To debug this please try with the following steps




  • Remove any custom lines from your default.pa (after a backup of course)


  • Delete the ~/.pulse or ~/.config/pulse directory to get rid of unwanted remnants.



    mv ~/.pulse ~/.pulse.old
    mv ~/.config/pulse ~/.config/pulse.old



  • Copy the default.pa to your HOME ~/.config/pulse to be able to edit it without root privileges.



    cp /etc/pulse/default.pa ~/.config/pulse/



  • Restart the pulseaudio server with



    pulseaudio -k



Before inserting lines into ~/.config/pulse/default.pa test if they work to be able to read errors:





  • List sinks to have their index and names correctly and be able to copy & paste them



    pactl list sinks short



  • Set profile as desired:



    pactl set-card-profile <index|name> output:analog-stereo+input:analog-stereo


    Debug this line if you get an error. Note that a sink index may change if you have volatile sinks, better use a name in this case.




  • Make a sink default



    pactl set-default-sink <sink_name>



Only if all above commands succeeded without an error you can insert the commands into the ~/.config/pulse/default.pa which on the next restart of pulseaudio or after you restarted your session will override system-wide settings. Hopefully your default sink is then loaded by default.






share|improve this answer





















  • I made all you wrote. Now I have only three custom lines in my ~/.config/pulse/default.pa: uncommented "load-module·module-esound-protocol-tcp" and "load-module·module-native-protocol-tcp" on lines 77-78 and after them "load-module·module-equalizer-sink". Also I had need to install paprefs and check "Make discoverable PulseAudio network sound devices available locally", because without of this there is no my network device in sinks. Now pa remember default sink if I check some and make "pulseaudio -k". However on but I still get my network device as default sink in any ways.
    – bergentroll
    Nov 28 '17 at 14:13












  • there is a file in ~/.config/pulse folder with filename ending "-default-sink". File is plain text so can open it to check it has correct name, and edit to change name if needed.
    – nik gnomic
    Dec 10 '17 at 1:42













up vote
0
down vote










up vote
0
down vote









To debug this please try with the following steps




  • Remove any custom lines from your default.pa (after a backup of course)


  • Delete the ~/.pulse or ~/.config/pulse directory to get rid of unwanted remnants.



    mv ~/.pulse ~/.pulse.old
    mv ~/.config/pulse ~/.config/pulse.old



  • Copy the default.pa to your HOME ~/.config/pulse to be able to edit it without root privileges.



    cp /etc/pulse/default.pa ~/.config/pulse/



  • Restart the pulseaudio server with



    pulseaudio -k



Before inserting lines into ~/.config/pulse/default.pa test if they work to be able to read errors:





  • List sinks to have their index and names correctly and be able to copy & paste them



    pactl list sinks short



  • Set profile as desired:



    pactl set-card-profile <index|name> output:analog-stereo+input:analog-stereo


    Debug this line if you get an error. Note that a sink index may change if you have volatile sinks, better use a name in this case.




  • Make a sink default



    pactl set-default-sink <sink_name>



Only if all above commands succeeded without an error you can insert the commands into the ~/.config/pulse/default.pa which on the next restart of pulseaudio or after you restarted your session will override system-wide settings. Hopefully your default sink is then loaded by default.






share|improve this answer












To debug this please try with the following steps




  • Remove any custom lines from your default.pa (after a backup of course)


  • Delete the ~/.pulse or ~/.config/pulse directory to get rid of unwanted remnants.



    mv ~/.pulse ~/.pulse.old
    mv ~/.config/pulse ~/.config/pulse.old



  • Copy the default.pa to your HOME ~/.config/pulse to be able to edit it without root privileges.



    cp /etc/pulse/default.pa ~/.config/pulse/



  • Restart the pulseaudio server with



    pulseaudio -k



Before inserting lines into ~/.config/pulse/default.pa test if they work to be able to read errors:





  • List sinks to have their index and names correctly and be able to copy & paste them



    pactl list sinks short



  • Set profile as desired:



    pactl set-card-profile <index|name> output:analog-stereo+input:analog-stereo


    Debug this line if you get an error. Note that a sink index may change if you have volatile sinks, better use a name in this case.




  • Make a sink default



    pactl set-default-sink <sink_name>



Only if all above commands succeeded without an error you can insert the commands into the ~/.config/pulse/default.pa which on the next restart of pulseaudio or after you restarted your session will override system-wide settings. Hopefully your default sink is then loaded by default.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 28 '17 at 10:48









Takkat

105k35245374




105k35245374












  • I made all you wrote. Now I have only three custom lines in my ~/.config/pulse/default.pa: uncommented "load-module·module-esound-protocol-tcp" and "load-module·module-native-protocol-tcp" on lines 77-78 and after them "load-module·module-equalizer-sink". Also I had need to install paprefs and check "Make discoverable PulseAudio network sound devices available locally", because without of this there is no my network device in sinks. Now pa remember default sink if I check some and make "pulseaudio -k". However on but I still get my network device as default sink in any ways.
    – bergentroll
    Nov 28 '17 at 14:13












  • there is a file in ~/.config/pulse folder with filename ending "-default-sink". File is plain text so can open it to check it has correct name, and edit to change name if needed.
    – nik gnomic
    Dec 10 '17 at 1:42


















  • I made all you wrote. Now I have only three custom lines in my ~/.config/pulse/default.pa: uncommented "load-module·module-esound-protocol-tcp" and "load-module·module-native-protocol-tcp" on lines 77-78 and after them "load-module·module-equalizer-sink". Also I had need to install paprefs and check "Make discoverable PulseAudio network sound devices available locally", because without of this there is no my network device in sinks. Now pa remember default sink if I check some and make "pulseaudio -k". However on but I still get my network device as default sink in any ways.
    – bergentroll
    Nov 28 '17 at 14:13












  • there is a file in ~/.config/pulse folder with filename ending "-default-sink". File is plain text so can open it to check it has correct name, and edit to change name if needed.
    – nik gnomic
    Dec 10 '17 at 1:42
















I made all you wrote. Now I have only three custom lines in my ~/.config/pulse/default.pa: uncommented "load-module·module-esound-protocol-tcp" and "load-module·module-native-protocol-tcp" on lines 77-78 and after them "load-module·module-equalizer-sink". Also I had need to install paprefs and check "Make discoverable PulseAudio network sound devices available locally", because without of this there is no my network device in sinks. Now pa remember default sink if I check some and make "pulseaudio -k". However on but I still get my network device as default sink in any ways.
– bergentroll
Nov 28 '17 at 14:13






I made all you wrote. Now I have only three custom lines in my ~/.config/pulse/default.pa: uncommented "load-module·module-esound-protocol-tcp" and "load-module·module-native-protocol-tcp" on lines 77-78 and after them "load-module·module-equalizer-sink". Also I had need to install paprefs and check "Make discoverable PulseAudio network sound devices available locally", because without of this there is no my network device in sinks. Now pa remember default sink if I check some and make "pulseaudio -k". However on but I still get my network device as default sink in any ways.
– bergentroll
Nov 28 '17 at 14:13














there is a file in ~/.config/pulse folder with filename ending "-default-sink". File is plain text so can open it to check it has correct name, and edit to change name if needed.
– nik gnomic
Dec 10 '17 at 1:42




there is a file in ~/.config/pulse folder with filename ending "-default-sink". File is plain text so can open it to check it has correct name, and edit to change name if needed.
– nik gnomic
Dec 10 '17 at 1:42


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f980991%2fpulseaudio-does-not-remember-default-sink%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

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

Eduardo VII do Reino Unido