[linux-audio-user] auto-restoring alsamixer settings?

Paul Winkler pw_lists at slinkp.com
Sun Mar 18 04:37:24 EDT 2007

On Sat, Mar 17, 2007 at 04:52:03PM -0400, Lee Revell wrote:
> On 3/17/07, Dragan Noveski <perodog at gmx.net> wrote:
> >hi list,
> >yesterday i successfully replaced the debian alsa drivers/libs/etc with
> >the selfcompiled ones, v1.0.14rc3 - and (almost) everything works 
> >wonderful!
> >
> >well, the only thing what does not work as previously is that the
> >alsamixer settings for my onboard device  (intel8x0) are not restored
> >after a reboot - everything muted!
> >if i plug the usb interface, the mixer is not muted, but there are some
> >old settings saved, and if i change the settings, on the next boot they
> >are not restored too.
> >plugin the multiface(cardbus) works wery well, since we use the
> >'hdspmixer' and not the 'alsamixer' for that one.
> Debian stores asound.state in a non-standard location (somwhere under
> /var IIRC).  I think the easiest fix is to replace your self-compiled
> alsactl with Debian's, or hack the startup/shutdown scripts to
> save/restore asound.state where you want it.

I doubt there's anything special about their version of alsactl, they
probably just do what you're suggesting in an init script.
(On gentoo, the relevant script is called /etc/init.d/alsasound.)
On shutdown, you want to do:

  alsactl store

On startup, you want to do:

  alsactl restore


Paul Winkler

More information about the Linux-audio-user mailing list