opt/alsa-utils
2011-04-16 10:06:08 +02:00
..
.footprint alsa-utils: added alsa rc script and README 2007-04-30 10:50:09 -05:00
.md5sum alsa-utils: updated to 1.0.24.2. 2011-04-16 10:06:08 +02:00
Pkgfile alsa-utils: updated to 1.0.24.2. 2011-04-16 10:06:08 +02:00
rc.alsa alsa-utils: added alsa rc script and README 2007-04-30 10:50:09 -05:00
README alsa-utils: added alsa rc script and README 2007-04-30 10:50:09 -05:00


README for alsa-utils


In order to facilitate saving and restoring of soundcard mixer levels at
shutdown and boot, take these two methods as examples:


***NOTE***
BOTH methods require that you store your mixer levels beforehand, use
'/usr/sbin/alsactl store' first!
**********


Method 1: /etc/modprobe.conf

Add something like the following to /etc/modprobe.conf:

----
# ALSA mixer settings save/restore
install snd-emu10k1 /sbin/modprobe --ignore-install \
	snd-emu10k1 $CMDLINE_OPTS; /usr/sbin/alsactl restore
remove snd-emu10k1 /usr/sbin/alsactl store; /sbin/modprobe -r \
	--ignore-remove snd-emu10k1
----

(As with the other READMEs replace 'snd-emu10k1' with the correct
 soundcard module for your system.)

(On some hardware it seems the kernel module gets loaded but the
 soundcard isn't initialized in time for the modprobe.conf install
 command to succeed. If this is the case for your hardware, try
 method 2 instead.)


Method 2: /etc/rc.d/alsa init script

Add "alsa" to the SERVICES array in /etc/rc.conf.