Tuesday, August 21, 2007

FC7 Linux Sound Config on Toshiba A75-S231 Notebook

Every time I install a new linux release on my notebook I go for about a month or so with manually rmmoding and modprobing the snd-atiixp driver to get the sound to work until I come up with an automatic way again to make it just work at boot. So I will put it here so I can remember it in the future and make it available to anyone els that can use it.

It seems that at one point in the past I was able to make it work by blacklisting something (in /etc/modprobe.d/blacklist I think), but I haven't been able to remember what that solution was. I did find that after booting I could simply do an "rmmod snd-atiixp ; modprobe snd-atiixp" to make it work, so my previous solution was to create an init script in /etc/init.d/soundcard to remove and reinstall the kernel module.

This time I did it by hacking up /etc/modprobe.conf. Here are the relevant lines from my system... ymmv:

install snd-atiixp /sbin/modprobe --ignore-install snd-atiixp && \\
/sbin/modprobe -r --ignore-remove snd-atiixp && \\
/sbin/modprobe --ignore-install snd-atiixp && \\
/usr/sbin/alsactl restore >/dev/null || :
remove snd-atiixp \\
{ /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; \\
/sbin/modprobe -r --ignore-remove snd-atiixp