You are not logged in.

#1 2013-12-30 21:27:26

RobotGymnast
Member
Registered: 2013-06-10
Posts: 24

alsa-mixer does not restore previous levels

Every time I start my computer, alsa-mixer has the headphone and speaker areas both muted and set to 0 volume, rather than restoring the state when I shut down. How can I get it to restore my previous levels?

Thanks!

Edit: Turns out this occurs when I remove headphones between shutdown and reboot.

Last edited by RobotGymnast (2014-01-01 16:34:00)

Offline

#2 2013-12-30 21:38:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: alsa-mixer does not restore previous levels

What's the output of 'systemctl status alsa-state alsa-restore alsa-store'?

Offline

#3 2013-12-30 21:39:43

Jellicent
Member
From: Berlin
Registered: 2013-09-13
Posts: 189

Re: alsa-mixer does not restore previous levels

https://wiki.archlinux.org/index.php/Alsa

Mute after reboot
After reboot, sound setting by alsamixer can not restore. Maybe you can restore by command : sudo alsactl restore. Please check the Auto-Mute toggle status in alsamixer : set Enabled to Disabled.

Also, start up your favourite search engine and search for something like "saving alsamixer settings". Works wonders.

Offline

#4 2013-12-31 17:06:33

RobotGymnast
Member
Registered: 2013-06-10
Posts: 24

Re: alsa-mixer does not restore previous levels

karol wrote:

What's the output of 'systemctl status alsa-state alsa-restore alsa-store'?

alsa-state.service - Manage Sound Card State (restore and store)
   Loaded: loaded (/usr/lib/systemd/system/alsa-state.service; static)
   Active: inactive (dead)
           start condition failed at Tue 2013-12-31 06:58:38 EST; 3min 6s ago
           ConditionPathExists=/etc/alsa/state-daemon.conf was not met


alsa-restore.service - Restore Sound Card State
   Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static)
   Active: inactive (dead) since Tue 2013-12-31 06:58:38 EST; 3min 6s ago
  Process: 300 ExecStart=/usr/bin/alsactl restore (code=exited, status=0/SUCCESS)
 Main PID: 300 (code=exited, status=0/SUCCESS)


alsa-store.service - Store Sound Card State
   Loaded: loaded (/usr/lib/systemd/system/alsa-store.service; static)
   Active: inactive (dead)
Jellicent wrote:

https://wiki.archlinux.org/index.php/Alsa

Mute after reboot
After reboot, sound setting by alsamixer can not restore. Maybe you can restore by command : sudo alsactl restore. Please check the Auto-Mute toggle status in alsamixer : set Enabled to Disabled.

Thanks! I assumed Auto-Mute referred to automatically muting headphones/speakers when headphones are plugged in or removed, but disabling Auto-Mute has fixed the reboot issue and hasn't affected headphone behavior!
I still occasionally get the same behavior (both headphones and speakers muted at 0), but I'm not sure what the precipitating factor is anymore.. I'll post back if I can narrow it down.

Offline

#5 2014-01-01 16:31:01

RobotGymnast
Member
Registered: 2013-06-10
Posts: 24

Re: alsa-mixer does not restore previous levels

So I've found the issue:

When the computer is shut down with headphones inserted, but started up without them, the levels stay at 100/unmuted for headphones, and 0/muted for speakers. Once startx is run, both are set to 0/muted.
Is this an ALSA bug, or is there some option that needs tweaking for correct behavior?

Thanks!

Offline

#6 2014-01-03 09:37:54

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: alsa-mixer does not restore previous levels

I believe I am having the same issue.  Am using XFCE here with pulse-audio, alsa, and xfce4-mixer (alsa mixer).  None of the alsa mixer settings are saved through a reboot.  I tried adding the auto-mute option and set it to disabled, but it is re-enabled on reboot.  The Master Volume and Headphone Volume are always re-set to 0 upon reboot.  Although I have a headphone jack, I am not using any headphones.

Oddly, before I deleted the files in ~/.pulse to try to fix this, the Master Volume was always set to maximum, but the Speaker Volume was at 0.  Now it's just the opposite.  Note that the files in ~/.pulse were recreated by the system after I deleted them - evidently with different values.

Last edited by David Batson (2014-01-03 09:38:30)

Offline

Board footer

Powered by FluxBB