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

From: Paul Winkler <pw_lists@email-addr-hidden>
Date: Sun Mar 18 2007 - 10:37:24 EET

On Sat, Mar 17, 2007 at 04:52:03PM -0400, Lee Revell wrote:
> On 3/17/07, Dragan Noveski <perodog@email-addr-hidden> 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
http://www.slinkp.com
Received on Sun Mar 18 12:15:01 2007

This archive was generated by hypermail 2.1.8 : Sun Mar 18 2007 - 12:15:01 EET