Ok, I've tried trippinnik's solution, but so far no success. I suppose I need to modify the hook somehow, could someone help me with it? I posted some questions below.
For reference, here is trippinnik's code:
Code:
#!/bin/bash
case "$1" in
** resume|thaw)
******modprobe -l 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 $?
My questions:
(1) Does the order of 'resume|thaw' vs 'suspend|hibernate' matter? Should suspend come first?
(2) What is the command modprobe -l snd_intel8x0 supposed to so? (In my understanding, modprobe -l lists modules, so perhaps the '-l' shouldn't be there?)
(3) What does the last line 'exit $_?' do? Is it necessary? The example hook at
http://en.opensuse.org/Pm-utils doesn't contain that line ...
(4) Under Yast2 > Sound, my driver is listed as 'snd-intel8x0' (a hypthen instead of the underbar). Which one is correct? (I tried the hook of course with the changed name, but it didn't work either, so I'm at a loss ... )