04-28-2014, 08:41 AM 
		
	
	
		1) Open a terminal and type in:
2) Paste the following code into the file, save then close it.
3) Make the file executable, in the same terminal type in:
Source: http://thecodecentral.com/2011/01/18/fix...orking-bug
Working on 1.0.6, need confirmation this will work on 1.0.8 please.
	
	
Code:
sudo leafpad /etc/pm/sleep.d/20_custom-ehci_hcd2) Paste the following code into the file, save then close it.
Code:
#!/bin/sh
#inspired by http://art.ubuntuforums.org/showpost.php?p=9744970&postcount=19
#...and http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug    
# tidied by tqzzaa :)
VERSION=1.1
DEV_LIST=/tmp/usb-dev-list
DRIVERS_DIR=/sys/bus/pci/drivers
DRIVERS="ehci xhci" # ehci_hcd, xhci_hcd
HEX="[[:xdigit:]]"
MAX_BIND_ATTEMPTS=2
BIND_WAIT=0.1
unbindDev() {
  echo -n > $DEV_LIST 2>/dev/null
  for driver in $DRIVERS; do
    DDIR=$DRIVERS_DIR/${driver}_hcd
    for dev in `ls $DDIR 2>/dev/null | egrep "^$HEX+:$HEX+:$HEX"`; do
      echo -n "$dev" > $DDIR/unbind
      echo "$driver $dev" >> $DEV_LIST
    done
  done
}
bindDev() {
  if [ -s $DEV_LIST ]; then
    while read driver dev; do
      DDIR=$DRIVERS_DIR/${driver}_hcd
      while [ $((MAX_BIND_ATTEMPTS)) -gt 0 ]; do
          echo -n "$dev" > $DDIR/bind
          if [ ! -L "$DDIR/$dev" ]; then
            sleep $BIND_WAIT
          else
            break
          fi
          MAX_BIND_ATTEMPTS=$((MAX_BIND_ATTEMPTS-1))
      done  
    done < $DEV_LIST
  fi
  rm $DEV_LIST 2>/dev/null
}
case "$1" in
  hibernate|suspend) unbindDev;;
  resume|thaw)       bindDev;;
esac3) Make the file executable, in the same terminal type in:
Code:
sudo chmod 755 /etc/pm/sleep.d/20_custom-ehci_hcdSource: http://thecodecentral.com/2011/01/18/fix...orking-bug
Working on 1.0.6, need confirmation this will work on 1.0.8 please.
Download your free copy of Linux Lite today.
Jerry Bezencon
Linux Lite Creator
"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."
![[Image: X5qGkCg.png]](https://imgur.com/X5qGkCg.png)
![[Image: 0op1GNe.png]](https://i.imgur.com/0op1GNe.png) 
 ![[Image: LgJ2mtP.png]](https://i.imgur.com/LgJ2mtP.png) 
 ![[Image: vLZcFUE.png]](https://imgur.com/vLZcFUE.png) 
 ![[Image: lrUHro3.jpg]](https://i.imgur.com/lrUHro3.jpg) 
	
	
Jerry Bezencon
Linux Lite Creator
"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."
![[Image: X5qGkCg.png]](https://imgur.com/X5qGkCg.png)
![[Image: 0op1GNe.png]](https://i.imgur.com/0op1GNe.png) 
 ![[Image: LgJ2mtP.png]](https://i.imgur.com/LgJ2mtP.png) 
 ![[Image: vLZcFUE.png]](https://imgur.com/vLZcFUE.png) 
 ![[Image: lrUHro3.jpg]](https://i.imgur.com/lrUHro3.jpg) 

 
 

 
