Re: Hack for Sound question

David Schleef (ds@stm.lbl.gov)
Tue, 21 Jul 1998 20:16:00 -0700 (PDT)


>
> Not to take away from the important kernel hacking, but I have a tiny
> question of opinion to ask. I wanted to tweak the sb_mixer code around a
> bit to automaticly save and restore mixer levels whenever the mixer is
> accessed. It just irks me to have to reset it each time I reboot my
> computer. ;)
>
> I was wondering where the best place to store the mixer
> settings "permanently" would be.
>
> A standard file? say in /var or /tmp?
> Or would the /dev/nvram be a safe place to store these settings? And how
> much space is available in /dev/nvram?
>
> Thanks!
>
>
> -Sir Woody Hackswell balint@udayton.edu woody@woodynet.siscom.net
> (The ArchFool) http://woodynet.siscom.net/woody
>
> The three principal virtues of a programmer are
> Laziness, Impatience, and Hubris.
>

You shouldn't need to tweak anything. Just write a script that gets
executed at startup/shutdown by init that restores/saves the mixer
state to some /etc or (better) /var file. Look what /etc/rc.d/init.d/random
does to save/restore the random number generator state. (valid possibly
only for Red Hat.)

dave...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html