miércoles, 14 de febrero de 2007

halt LG-LW20

Hi, this is my first post here...
Keep this easy. Mini HowTo about poweroff + ubuntu Edgy + LG LW20

Trouble: when i press shutdown, the system is halted but dont poweroff the notebook. the module snd_hda_intel isn`t unloaded correctly.

Solution: create a script that force module unload before halt signal.

joe@mobile:~$ nano -w /etc/init.d/kill_lame_snd


#!/bin/sh
case "$1" in
start)
# No-op
;;
restart|reload|force-reload)
echo "Error: argument '$1' not supported" >&2
exit 3
;;
stop|"")
rmmod -f snd_hda_intel
rmmod -f snd_hda_codec
;;
*)
echo "Usage: kill_lame_snd [start|stop]" >&2
exit 3
;;
esac


then do chmod +x /etc/init.d/kill_lame_snd and update-rc.d kill_lame_snd start 80 0 6 .

enjoy halting !!!

EOF

No hay comentarios: