Linux Ubuntu ALSA issues; after reboot sound is turned off
I'm using Ubuntu with Xfce, ALSA, pavucontrol
, …
After I reboot the system my sound always goes off.
And my speakers in alsamixer
are listed as Headphones (which I have to always increase the volume after boot so it works).
What can I be doing wrong that the sound isn't saved?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
$ uname -r
4.16.12
$ alsactl -version
alsactl version 1.1.3
alsamixer
controls the sound OK, Master and Speaker are the same but Headphones also controls the volume.
$ pavucontrol
Package: pavucontrol
Version: 3.0-4
linux ubuntu audio speakers alsa
add a comment |
I'm using Ubuntu with Xfce, ALSA, pavucontrol
, …
After I reboot the system my sound always goes off.
And my speakers in alsamixer
are listed as Headphones (which I have to always increase the volume after boot so it works).
What can I be doing wrong that the sound isn't saved?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
$ uname -r
4.16.12
$ alsactl -version
alsactl version 1.1.3
alsamixer
controls the sound OK, Master and Speaker are the same but Headphones also controls the volume.
$ pavucontrol
Package: pavucontrol
Version: 3.0-4
linux ubuntu audio speakers alsa
1
Let us continue this discussion in chat.
– Chai T. Rex
Aug 31 '18 at 22:20
In output devices I only have those two, in configuration I have many options. several are related to hdmi , one is duplex stereo analog witch is selected. another is output analog stereo More info on pulse audio and alsa here askubuntu.com/questions/426983/…
– Fernando André
Aug 31 '18 at 22:23
We used the link found by Chris askubuntu.com/questions/50067/howto-save-alsamixer-settings/… , the third answer with a sleep option as sugested in the comments for the autostart alsaactl --file xxx restore
– Fernando André
Aug 31 '18 at 22:56
add a comment |
I'm using Ubuntu with Xfce, ALSA, pavucontrol
, …
After I reboot the system my sound always goes off.
And my speakers in alsamixer
are listed as Headphones (which I have to always increase the volume after boot so it works).
What can I be doing wrong that the sound isn't saved?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
$ uname -r
4.16.12
$ alsactl -version
alsactl version 1.1.3
alsamixer
controls the sound OK, Master and Speaker are the same but Headphones also controls the volume.
$ pavucontrol
Package: pavucontrol
Version: 3.0-4
linux ubuntu audio speakers alsa
I'm using Ubuntu with Xfce, ALSA, pavucontrol
, …
After I reboot the system my sound always goes off.
And my speakers in alsamixer
are listed as Headphones (which I have to always increase the volume after boot so it works).
What can I be doing wrong that the sound isn't saved?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
$ uname -r
4.16.12
$ alsactl -version
alsactl version 1.1.3
alsamixer
controls the sound OK, Master and Speaker are the same but Headphones also controls the volume.
$ pavucontrol
Package: pavucontrol
Version: 3.0-4
linux ubuntu audio speakers alsa
linux ubuntu audio speakers alsa
edited Aug 31 '18 at 21:33
Kamil Maciorowski
28.4k156186
28.4k156186
asked Aug 31 '18 at 21:29
Fernando AndréFernando André
1335
1335
1
Let us continue this discussion in chat.
– Chai T. Rex
Aug 31 '18 at 22:20
In output devices I only have those two, in configuration I have many options. several are related to hdmi , one is duplex stereo analog witch is selected. another is output analog stereo More info on pulse audio and alsa here askubuntu.com/questions/426983/…
– Fernando André
Aug 31 '18 at 22:23
We used the link found by Chris askubuntu.com/questions/50067/howto-save-alsamixer-settings/… , the third answer with a sleep option as sugested in the comments for the autostart alsaactl --file xxx restore
– Fernando André
Aug 31 '18 at 22:56
add a comment |
1
Let us continue this discussion in chat.
– Chai T. Rex
Aug 31 '18 at 22:20
In output devices I only have those two, in configuration I have many options. several are related to hdmi , one is duplex stereo analog witch is selected. another is output analog stereo More info on pulse audio and alsa here askubuntu.com/questions/426983/…
– Fernando André
Aug 31 '18 at 22:23
We used the link found by Chris askubuntu.com/questions/50067/howto-save-alsamixer-settings/… , the third answer with a sleep option as sugested in the comments for the autostart alsaactl --file xxx restore
– Fernando André
Aug 31 '18 at 22:56
1
1
Let us continue this discussion in chat.
– Chai T. Rex
Aug 31 '18 at 22:20
Let us continue this discussion in chat.
– Chai T. Rex
Aug 31 '18 at 22:20
In output devices I only have those two, in configuration I have many options. several are related to hdmi , one is duplex stereo analog witch is selected. another is output analog stereo More info on pulse audio and alsa here askubuntu.com/questions/426983/…
– Fernando André
Aug 31 '18 at 22:23
In output devices I only have those two, in configuration I have many options. several are related to hdmi , one is duplex stereo analog witch is selected. another is output analog stereo More info on pulse audio and alsa here askubuntu.com/questions/426983/…
– Fernando André
Aug 31 '18 at 22:23
We used the link found by Chris askubuntu.com/questions/50067/howto-save-alsamixer-settings/… , the third answer with a sleep option as sugested in the comments for the autostart alsaactl --file xxx restore
– Fernando André
Aug 31 '18 at 22:56
We used the link found by Chris askubuntu.com/questions/50067/howto-save-alsamixer-settings/… , the third answer with a sleep option as sugested in the comments for the autostart alsaactl --file xxx restore
– Fernando André
Aug 31 '18 at 22:56
add a comment |
2 Answers
2
active
oldest
votes
For some reason the pavucontrol does not work well with alsa.
To solve this issue the only way it seems to work is to follow
the third answer at
https://askubuntu.com/questions/50067/howto-save-alsamixer-settings/606115#606115
some modifications are required following the comments
like adding a sleep to the Exec
So to have the settings save after reboot
you need to create a configuration stored file
alsactl --file ~/.config/autostart/asound.state store
and then restore that configuration in a autostart boot script
[Desktop Entry]
Type=Application
Terminal=false
Name=alsarestore
Exec=bash -c "sleep 5 && alsactl --file ~/.config/asound.state restore"
in ~/.config/autostart/alsarestore.desktop
Please note there is no fixed order of answers, any user can choose from three options. The answer you link to is third according to votes now, these votes can change in the future. So the term "third answer" is ill-defined and shouldn't be used.
– Kamil Maciorowski
Aug 31 '18 at 23:48
add a comment |
The setup where this solution worked:
- Ubuntu 18.04 (GNOME), not xfce
- gnome alsa mixer, not pavucontrol
- realtek alc1220 on the X470 AORUS GAMING 7 WIFI rev1.0
However, the core problem was the same:
- Speakers from the back panel were detected as a headphones line.
- After a reboot or relog, the line was muted and had zero level in the gnome alsa mixer.
Solution
Almost 9 years old answer on ubuntu forums helped. Citing it:
I managed to get it to work as expected by replacing the line
load-module module-device-restore
in
/etc/pulse/default.pa
with
#load-module module-device-restore
Partial solution (just to beware)
Before finding out the solution I tried another approach.
I changed the respective block of /usr/share/pulseaudio/alsa-mixer/paths/analog-output-lineout.conf
to
[Element Speaker]
switch = on
volume = ignore
Unfortunately, it only unchecks the "mute" checkbox, leaving the line level on the zero mark. So, don't use it.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f1354257%2flinux-ubuntu-alsa-issues-after-reboot-sound-is-turned-off%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
For some reason the pavucontrol does not work well with alsa.
To solve this issue the only way it seems to work is to follow
the third answer at
https://askubuntu.com/questions/50067/howto-save-alsamixer-settings/606115#606115
some modifications are required following the comments
like adding a sleep to the Exec
So to have the settings save after reboot
you need to create a configuration stored file
alsactl --file ~/.config/autostart/asound.state store
and then restore that configuration in a autostart boot script
[Desktop Entry]
Type=Application
Terminal=false
Name=alsarestore
Exec=bash -c "sleep 5 && alsactl --file ~/.config/asound.state restore"
in ~/.config/autostart/alsarestore.desktop
Please note there is no fixed order of answers, any user can choose from three options. The answer you link to is third according to votes now, these votes can change in the future. So the term "third answer" is ill-defined and shouldn't be used.
– Kamil Maciorowski
Aug 31 '18 at 23:48
add a comment |
For some reason the pavucontrol does not work well with alsa.
To solve this issue the only way it seems to work is to follow
the third answer at
https://askubuntu.com/questions/50067/howto-save-alsamixer-settings/606115#606115
some modifications are required following the comments
like adding a sleep to the Exec
So to have the settings save after reboot
you need to create a configuration stored file
alsactl --file ~/.config/autostart/asound.state store
and then restore that configuration in a autostart boot script
[Desktop Entry]
Type=Application
Terminal=false
Name=alsarestore
Exec=bash -c "sleep 5 && alsactl --file ~/.config/asound.state restore"
in ~/.config/autostart/alsarestore.desktop
Please note there is no fixed order of answers, any user can choose from three options. The answer you link to is third according to votes now, these votes can change in the future. So the term "third answer" is ill-defined and shouldn't be used.
– Kamil Maciorowski
Aug 31 '18 at 23:48
add a comment |
For some reason the pavucontrol does not work well with alsa.
To solve this issue the only way it seems to work is to follow
the third answer at
https://askubuntu.com/questions/50067/howto-save-alsamixer-settings/606115#606115
some modifications are required following the comments
like adding a sleep to the Exec
So to have the settings save after reboot
you need to create a configuration stored file
alsactl --file ~/.config/autostart/asound.state store
and then restore that configuration in a autostart boot script
[Desktop Entry]
Type=Application
Terminal=false
Name=alsarestore
Exec=bash -c "sleep 5 && alsactl --file ~/.config/asound.state restore"
in ~/.config/autostart/alsarestore.desktop
For some reason the pavucontrol does not work well with alsa.
To solve this issue the only way it seems to work is to follow
the third answer at
https://askubuntu.com/questions/50067/howto-save-alsamixer-settings/606115#606115
some modifications are required following the comments
like adding a sleep to the Exec
So to have the settings save after reboot
you need to create a configuration stored file
alsactl --file ~/.config/autostart/asound.state store
and then restore that configuration in a autostart boot script
[Desktop Entry]
Type=Application
Terminal=false
Name=alsarestore
Exec=bash -c "sleep 5 && alsactl --file ~/.config/asound.state restore"
in ~/.config/autostart/alsarestore.desktop
answered Aug 31 '18 at 23:36
Fernando AndréFernando André
1335
1335
Please note there is no fixed order of answers, any user can choose from three options. The answer you link to is third according to votes now, these votes can change in the future. So the term "third answer" is ill-defined and shouldn't be used.
– Kamil Maciorowski
Aug 31 '18 at 23:48
add a comment |
Please note there is no fixed order of answers, any user can choose from three options. The answer you link to is third according to votes now, these votes can change in the future. So the term "third answer" is ill-defined and shouldn't be used.
– Kamil Maciorowski
Aug 31 '18 at 23:48
Please note there is no fixed order of answers, any user can choose from three options. The answer you link to is third according to votes now, these votes can change in the future. So the term "third answer" is ill-defined and shouldn't be used.
– Kamil Maciorowski
Aug 31 '18 at 23:48
Please note there is no fixed order of answers, any user can choose from three options. The answer you link to is third according to votes now, these votes can change in the future. So the term "third answer" is ill-defined and shouldn't be used.
– Kamil Maciorowski
Aug 31 '18 at 23:48
add a comment |
The setup where this solution worked:
- Ubuntu 18.04 (GNOME), not xfce
- gnome alsa mixer, not pavucontrol
- realtek alc1220 on the X470 AORUS GAMING 7 WIFI rev1.0
However, the core problem was the same:
- Speakers from the back panel were detected as a headphones line.
- After a reboot or relog, the line was muted and had zero level in the gnome alsa mixer.
Solution
Almost 9 years old answer on ubuntu forums helped. Citing it:
I managed to get it to work as expected by replacing the line
load-module module-device-restore
in
/etc/pulse/default.pa
with
#load-module module-device-restore
Partial solution (just to beware)
Before finding out the solution I tried another approach.
I changed the respective block of /usr/share/pulseaudio/alsa-mixer/paths/analog-output-lineout.conf
to
[Element Speaker]
switch = on
volume = ignore
Unfortunately, it only unchecks the "mute" checkbox, leaving the line level on the zero mark. So, don't use it.
add a comment |
The setup where this solution worked:
- Ubuntu 18.04 (GNOME), not xfce
- gnome alsa mixer, not pavucontrol
- realtek alc1220 on the X470 AORUS GAMING 7 WIFI rev1.0
However, the core problem was the same:
- Speakers from the back panel were detected as a headphones line.
- After a reboot or relog, the line was muted and had zero level in the gnome alsa mixer.
Solution
Almost 9 years old answer on ubuntu forums helped. Citing it:
I managed to get it to work as expected by replacing the line
load-module module-device-restore
in
/etc/pulse/default.pa
with
#load-module module-device-restore
Partial solution (just to beware)
Before finding out the solution I tried another approach.
I changed the respective block of /usr/share/pulseaudio/alsa-mixer/paths/analog-output-lineout.conf
to
[Element Speaker]
switch = on
volume = ignore
Unfortunately, it only unchecks the "mute" checkbox, leaving the line level on the zero mark. So, don't use it.
add a comment |
The setup where this solution worked:
- Ubuntu 18.04 (GNOME), not xfce
- gnome alsa mixer, not pavucontrol
- realtek alc1220 on the X470 AORUS GAMING 7 WIFI rev1.0
However, the core problem was the same:
- Speakers from the back panel were detected as a headphones line.
- After a reboot or relog, the line was muted and had zero level in the gnome alsa mixer.
Solution
Almost 9 years old answer on ubuntu forums helped. Citing it:
I managed to get it to work as expected by replacing the line
load-module module-device-restore
in
/etc/pulse/default.pa
with
#load-module module-device-restore
Partial solution (just to beware)
Before finding out the solution I tried another approach.
I changed the respective block of /usr/share/pulseaudio/alsa-mixer/paths/analog-output-lineout.conf
to
[Element Speaker]
switch = on
volume = ignore
Unfortunately, it only unchecks the "mute" checkbox, leaving the line level on the zero mark. So, don't use it.
The setup where this solution worked:
- Ubuntu 18.04 (GNOME), not xfce
- gnome alsa mixer, not pavucontrol
- realtek alc1220 on the X470 AORUS GAMING 7 WIFI rev1.0
However, the core problem was the same:
- Speakers from the back panel were detected as a headphones line.
- After a reboot or relog, the line was muted and had zero level in the gnome alsa mixer.
Solution
Almost 9 years old answer on ubuntu forums helped. Citing it:
I managed to get it to work as expected by replacing the line
load-module module-device-restore
in
/etc/pulse/default.pa
with
#load-module module-device-restore
Partial solution (just to beware)
Before finding out the solution I tried another approach.
I changed the respective block of /usr/share/pulseaudio/alsa-mixer/paths/analog-output-lineout.conf
to
[Element Speaker]
switch = on
volume = ignore
Unfortunately, it only unchecks the "mute" checkbox, leaving the line level on the zero mark. So, don't use it.
answered Jan 27 at 16:32
Denis UntevskiyDenis Untevskiy
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1354257%2flinux-ubuntu-alsa-issues-after-reboot-sound-is-turned-off%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
1
Let us continue this discussion in chat.
– Chai T. Rex
Aug 31 '18 at 22:20
In output devices I only have those two, in configuration I have many options. several are related to hdmi , one is duplex stereo analog witch is selected. another is output analog stereo More info on pulse audio and alsa here askubuntu.com/questions/426983/…
– Fernando André
Aug 31 '18 at 22:23
We used the link found by Chris askubuntu.com/questions/50067/howto-save-alsamixer-settings/… , the third answer with a sleep option as sugested in the comments for the autostart alsaactl --file xxx restore
– Fernando André
Aug 31 '18 at 22:56