View Single Post
  #7 (permalink)  
Old 02-Jun-2008, 04:45
Dean
Guest
 
Posts: n/a
Default

I helped trippinnik with this script. The basic framework is based on scripts located in '/usr/lib/pm-utils/sleep.d' for suse 10.3.

Should look like:

#!/bin/bash

case "$1" in
resume|thaw)
modprobe snd_intel8x0
/etc/init.d/alsasound start
kmixctrl -r
;;
suspend|hibernate)
kmixctrl -s
killall kmix
/etc/init.d/alsasound unload
modprobe -r snd_intel8x0
;;
esac

exit $?

The 'modprobe -l snd_intel8x0' line should be 'modprobe snd_intel8x0'. The '_' character gets parsed as '-', so that is ok.