[ltp] 770 sound fix
Charles E Taylor IV
linux-thinkpad@linux-thinkpad.org
Mon, 9 Dec 2002 14:15:09 -0500
On Mon, 9 Dec 2002 11:57:44 -0700 (MST)
"M. Leo Cooper" <thegrendel@theriver.com> wrote:
> Just add the following lines to the end of /etc/rc.d/rc.local
>
> # Reinitialize sound card.
> rmmod cs4232
> modprobe cs4232
IBM's workaround is to use a script to run a fake "service" that you can
restart after a resume (by editing your apmd script). You can
activate the script using "chkconfig". You'll probably have to do this on
suspend/resume too. I've had to on three different models of Thinkpad.
My apmd script reinitializes the sound card and mwave modem on my 700X.
Neither reliably survive suspend/resume.
------------------------------------------------
$ cat /etc/init.d/cs4232
#!/bin/bash
# chkconfig: 345 84 16
# description: Starts/stops the CS4232 driver at boot time and shutdown
HOME=/etc
case "$1" in
start)
echo "Starting CS4232 driver"
/sbin/rmmod cs4232
/sbin/modprobe cs4232
;;
stop)
echo "Stopping CS4232 driver"
/sbin/rmmod cs4232
;;
restart)
$0 stop
$0 start
;;
status)
echo "Status (NO-OP)"
;;
*)
echo "Usage:cs4232 {start|stop|status|restart}"
exit 1
esac
exit 0
-----------------------------------------------
--
--------------------------------------------------------------------
* Charles Taylor <tomalek@mindspring.com>
* Chemistry teacher, Linux enthusiast!
--------------------------------------------------------------------
* College Chemistry website: http://home.mindspring.com/~charletiv/
--------------------------------------------------------------------