Skip to content

Instantly share code, notes, and snippets.

@ataka
Created May 31, 2009 02:11
Show Gist options
  • Save ataka/120717 to your computer and use it in GitHub Desktop.
Save ataka/120717 to your computer and use it in GitHub Desktop.
Suspend with modprobe sound module
#!/bin/sh
#
# Copied from http://pulpdust.org/item/688
#
# Kill pulseaudio and GNOME volume control applet before reload snd module.
# You can kill puleaudio as followed:
# $ pulseaudio -k
#
pm=pm-suspend
snd=snd_hda_intel
date
sync && $pm && modprobe -r $snd && modprobe $snd
date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment