| 1 | |
| 2 | |
| 3 | README for alsa-utils |
| 4 | |
| 5 | |
| 6 | In order to facilitate saving and restoring of soundcard mixer levels at |
| 7 | shutdown and boot, take these two methods as examples: |
| 8 | |
| 9 | |
| 10 | ***NOTE*** |
| 11 | BOTH methods require that you store your mixer levels beforehand, use |
| 12 | '/usr/sbin/alsactl store' first! |
| 13 | ********** |
| 14 | |
| 15 | |
| 16 | Method 1: /etc/modprobe.conf |
| 17 | |
| 18 | Add something like the following to /etc/modprobe.conf: |
| 19 | |
| 20 | ---- |
| 21 | # ALSA mixer settings save/restore |
| 22 | install snd-emu10k1 /sbin/modprobe --ignore-install \ |
| 23 | snd-emu10k1 $CMDLINE_OPTS; /usr/sbin/alsactl restore |
| 24 | remove snd-emu10k1 /usr/sbin/alsactl store; /sbin/modprobe -r \ |
| 25 | --ignore-remove snd-emu10k1 |
| 26 | ---- |
| 27 | |
| 28 | (As with the other READMEs replace 'snd-emu10k1' with the correct |
| 29 | soundcard module for your system.) |
| 30 | |
| 31 | (On some hardware it seems the kernel module gets loaded but the |
| 32 | soundcard isn't initialized in time for the modprobe.conf install |
| 33 | command to succeed. If this is the case for your hardware, try |
| 34 | method 2 instead.) |
| 35 | |
| 36 | |
| 37 | Method 2: /etc/rc.d/alsa init script |
| 38 | |
| 39 | Add "alsa" to the SERVICES array in /etc/rc.conf. |
| 40 | |