解决办法:
1.rmmod snd_intel8x0
如果出现ERROR: Module snd_intel8x0 is in use,试试把上面面板的声音控制给删了,再试试rmmod snd_intel8x0
如果成功,输入modprobe snd_intel8x0,应该能发声.
(snd_intel8x0改成自己的模块)
2.有时候发现这样很麻烦,而且并不总是成功,所以就想写个服务,开机时自动卸载、加载模块,命名为alsa
[code:1]
#!/bin/bash
#
# alsa: Alsaconfigure
#
# chkconfig: 2345 88 10
# description: Alsaconfigure,so Alsa module can be used while starting the computer!
#
#
start()
{
echo "ALSA is starting."
rmmod snd_intel8x0
modprobe snd_intel8x0
echo "Alsa is started now! It's so good!"
}
stop()
{
echo "ALSA is stoping."
rmmod snd_intel8x0
echo "Alsa is stoped now! It's so good!"
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|condrestart}"
exit 1
esac