Mark,
Set state the way you want it then do alsactl store to save it. On reboot do alsactl
restore and it will reset. The easiest way to do this is to add something to your
rc.local script (wherever that is depending on distribution). On RH the best thing to do
is add a file to /etc/rc.d/init.d that uses chkconfig (look at some of the other files in
there). On start/boot it should do alsactl restore. On stop/halt it should do alsactl
store. If you set it up like some of the other scripts in /etc/rc.d/init.d you should be
able to turn it on by entering chkconfig FILENAME on.
Jan
-----Original Message-----
From: "linux-audio-user-bounces(a)music.columbia.edu"
<linux-audio-user-bounces(a)music.columbia.edu> on behalf of "Mark
Constable" <markc(a)renta.net>
Sent: Tue, 30 Dec 2003 21:39:21 +1000
To: "A list for linux audio users" <linux-audio-user(a)music.columbia.edu>
Subject: [linux-audio-user] Using alsactl to preserve volume state
On the Wiki there is this advice and the following statement so
would anyone happen to know what the correct way to preserve
state across reboots for 2.6 is ?
# load/unload the volume settings on startup/shutdown
post-install snd-driver-name /usr/sbin/alsactl restore
pre-remove snd-driver-name /usr/sbin/alsactl store
This doesn't seem to work with a 2.6.0-test kernel. modprobe
simply ignores lines with these statements. Update to this
section would be appreciated.
--markc
Show replies by date