« Xlink Kai on WRT54G | Main | Automating the Thinkpad »

ALSA sound on my Thinkpad 600

I wanted to archive the procedure that I had to take to get my ALSA driver working correctly with libranet on my TP600. The problem seems to be that the module needs to be loaded after X initializes. To do this, there is a script that I found and added to my rcS.d. This solved everything.

I first added the snd-cs4236 module to my /etc/modules using vi.
Second, I made the below script and placed it in /erc/init.d/
I then made links in all rc.X start runlevels.(rc2.d rc3.d rc4.d rc5.d rcS.d)
Make sure to update-rc.d cs4236 defaults

Reboot and things should be working.

:::This needs to be altered just a little bit. There was a syntax error which has been solved now:::

# !/bin/bash

# chkconfig: 345 84 16

# description: Starts/stops the CS4236 driver at boot time and shutdown

HOME=/etc

case "$1" in
start)
echo "Starting CS4236 driver"
rmmod snd-cs4236
modprobe snd-cs4236
;;
stop)
echo "Stopping CS4236 driver"
rmmod snd-cs4236
;;
restart)
$0 stop
$0 start
;;
status)
echo "Status (NO-OP)"
;;
*)
echo "Usage: snd-cs4236 {start|stop|status|restart}"
exit 1
esac

exit 0

:::I am going to have to play with the alsamixer settings to get them to reload on every reboot, which they are not doing now:::

TrackBack

TrackBack URL for this entry:
http://www.wifi-secured.com/cgi-bin/mt/mt-tb.cgi/8

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on June 21, 2005 2:07 PM.

The previous post in this blog was Xlink Kai on WRT54G.

The next post in this blog is Automating the Thinkpad.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.