Sunday 23 May 2010

HP Envy 15 core i7 Linux - Howto resume after suspend

Bug #557072 in linux (Ubuntu): “system does not power off”
The following script works for me (saved as /etc/pm/sleep.d/5_quick-fix-drivers)
NB: The atl1c module is there because otherwise the ethernet controller didn't work after a resume. Remove it from the list if you aren't experiencing that problem.

-----
#!/bin/sh

PATH=/sbin:/usr/sbin:/bin:/usr/bin

MODS="xhci_hcd atl1c"

case "${1}" in
suspend|hibernate)
for m in $MODS
do
modprobe -r $m
done
;;
resume|thaw)
for m in $MODS
do
modprobe $m
done
;;
esac


No comments:

Post a Comment