#!/bin/sh case "$1" in 'resume') # standby doesn't cause sound problems, so leave it alone if [ "$2" != "standby" ] then rmmod snd_intel8x0 > /dev/null 2>&1 modprobe snd_intel8x0 > /dev/null 2>&1 # omitting the following sleep line causes alsactl to grumble sometimes sleep 1 alsactl restore > /dev/null 2>&1 fi ;; esac