How do I set a pulseaudio card profile persistently across rebootsHow can I change the default audio device...
Why do we use polarized capacitors?
How to manage monthly salary
Symmetry in quantum mechanics
When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?
What is the command to reset a PC without deleting any files
What happens when a metallic dragon and a chromatic dragon mate?
How to make payment on the internet without leaving a money trail?
How many letters suffice to construct words with no repetition?
Finding files for which a command fails
Is there a way to make member function NOT callable from constructor?
Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?
What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?
New order #4: World
Why is the design of haulage companies so “special”?
Prime joint compound before latex paint?
Email Account under attack (really) - anything I can do?
What is the meaning of "of trouble" in the following sentence?
Is every set a filtered colimit of finite sets?
Why is my log file so massive? 22gb. I am running log backups
Why doesn't a const reference extend the life of a temporary object passed via a function?
How to deal with fear of taking dependencies
Lied on resume at previous job
How to move the player while also allowing forces to affect it
Is it wise to focus on putting odd beats on left when playing double bass drums?
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;
}
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
add a comment |
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
add a comment |
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
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
sound configuration pulseaudio
edited Oct 20 '11 at 17:09
Daenyth
asked Oct 20 '11 at 15:37
DaenythDaenyth
4082623
4082623
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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!)
I'm not using sink setting (as far as I know). I'm changing profiles by usingpactl 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 onpacmd 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 usingpacmd 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 yourset-card-profile <card-index> <profilename>
to the default.pa
– Takkat
Oct 20 '11 at 18:16
|
show 1 more comment
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
New contributor
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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!)
I'm not using sink setting (as far as I know). I'm changing profiles by usingpactl 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 onpacmd 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 usingpacmd 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 yourset-card-profile <card-index> <profilename>
to the default.pa
– Takkat
Oct 20 '11 at 18:16
|
show 1 more comment
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!)
I'm not using sink setting (as far as I know). I'm changing profiles by usingpactl 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 onpacmd 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 usingpacmd 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 yourset-card-profile <card-index> <profilename>
to the default.pa
– Takkat
Oct 20 '11 at 18:16
|
show 1 more comment
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!)
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!)
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 usingpactl 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 onpacmd 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 usingpacmd 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 yourset-card-profile <card-index> <profilename>
to the default.pa
– Takkat
Oct 20 '11 at 18:16
|
show 1 more comment
I'm not using sink setting (as far as I know). I'm changing profiles by usingpactl 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 onpacmd 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 usingpacmd 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 yourset-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
|
show 1 more comment
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
New contributor
edited 5 hours ago
New contributor
answered 5 hours ago
Vincent VegaVincent Vega
11
11
New contributor
New contributor
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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