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;
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 6 hours ago
New contributor
answered 6 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