Joel Ebel wrote:
> Most of the time it's up to you to store the setting.  I haven't seen
> any distributions that automatically save the alsa settings on shutdown,
> but I don't use many different distributions, so some may exist.
> Usually, you would run alsaconf after setting up the machine to set up
> your conf.modules/modules.conf/modprobe.conf/modprobe.d or whatever the
> module file du jour is for your sound card.  alsaconf also sets some
> reasonable defaults for mixer settings and stores the result in
> /etc/asound.state.  Or in some cases, /var/lib/alsa/asound.state.  Most
> distributions have a startup script that check to see if asound.state
> exists, and if it does, restore those settings.

I have the following in my modprobe.conf:

install snd-card-0 /sbin/modprobe --ignore-install snd-card-0 ;
/usr/sbin/alsactl restore
remove snd-card-0 /usr/sbin/alsactl store ; /sbin/modprobe -r
--ignore-remove
install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 &&
/usr/sbin/alsactl restore
remove snd-intel8x0 /usr/sbin/alsactl store && /sbin/modprobe -r
--ignore-remove snd-intel8x0

This restores the alsa state when modules are loaded and saves it when
they are unloaded.

--[Lance]


-- 
 Celebrate The Circle   http://www.celebratethecircle.org/
 Carolina Spirit Quest  http://www.carolinaspiritquest.org/
 My LiveJournal  http://www.livejournal.com/users/labrown/
 GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 07B9
 CACert.org Assurer
-- 
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc

Reply via email to