You are not logged in.

#1 2010-11-09 11:06:19

wisp558
Member
Registered: 2010-06-10
Posts: 17

ehci_hcd modules prevent suspend in Asus A52J

I'm having a hell of a time getting my computer to suspend properly.

The ubuntu forums led me to the following script...

http://ubuntuforums.org/showthread.php?t=1460790

#!/bin/sh
# File: "/etc/pm/sleep.d/20_custom-ehci_hcd".
case "${1}" in
        hibernate|suspend)
              # Unbind ehci_hcd for first device 0000:00:1a.0:
               echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
              # Unbind ehci_hcd for second device 0000:00:1d.0:
               echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
        ;;
        resume|thaw)
              # Bind ehci_hcd for first device 0000:00:1a.0:
              echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
              # Bind ehci_hcd for second device 0000:00:1d.0:
              echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
        ;;
esac

Unfortunately I still fail to susend, even with this. The problem is that the file isn't being run properly. Running the unbinds/rebinds manually as root will cause susend to work quickly and flawlessly, but if I try to automate it, it breaks. Anyone have any tips?

Offline

#2 2010-11-09 17:10:22

samoturk
Member
From: Ljubljana, Slovenia
Registered: 2007-02-12
Posts: 86

Re: ehci_hcd modules prevent suspend in Asus A52J

Did you make it executable?

Also have a look at: https://wiki.archlinux.org/index.php/ASUS_N53JN#Suspend

Offline

Board footer

Powered by FluxBB