#!/bin/bash # This is a workaround to avoid a hangup when restarting the sound # after a resume case "$1" in suspend|standby) # Remove the sound modules before suspending /sbin/rmmod -r i810_audio ;; esac