[TriLUG] Re: Two unrelated questions: ALSA and fortune
Joel Ebel
jbebel at ncsu.edu
Tue Jan 18 16:02:22 EST 2005
Yep. I saw that on a Fedora box I looked at. It made me angry. But
that's ok. Fedora isn't the sort of distro suited to what I want to be
doing anyway. So perhaps it's good for most people who actually choose
to use Fedora.
Joel
Lance A. Brown wrote:
> 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]
>
>
More information about the TriLUG
mailing list