Friday, June 17, 2011

ubuntu 10.04 LTS USB3 hibernate/suspend failure

In Ubuntu 10.04 LTS, if USB3 module is activated, a system will not go into hibernation or suspend mode. At this moment, the best way to fix the problem is manually load/unload USB3 module for hibernation.
Create file /etc/pm/sleep.d/01fix_usb3

This file was created by Adamo Ferro on May 18th 20010

#!/bin/sh
# May, 18 2010, Adamo Ferro
# Fix USB3 suspend and hibernate problems

case $1 in
hibernate)
modprobe -r xhci
;;
suspend)
modprobe -r xhci
;;
thaw)
modprobe xhci
;;
resume)
modprobe xhci
;;
*) echo "USB3 fix script: wrong argument!"
;;
esac

Then put executable rights on the file.

sudo chmod +x /etc/pm/sleep.d/01fix_usb3


No comments: