LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   asus ul80j suspend to ram fix (http://www.linuxquestions.org/questions/slackware-14/asus-ul80j-suspend-to-ram-fix-871958/)

slac-in-the-box 03-30-2011 12:43 PM

asus ul80j suspend to ram fix
 
Well... I've been searching LQ and google for a fix to get suspend to ram working on my asus ul80j (I had already added the resume=/dev/sda2 (my swap partiton) to lilo, but machine wasn't suspending properly (hd still whirring) and would not resume at all...

The fix for the asus a52 and asus k52 documented at this thread worked on my asus ul80j as well!!!

All I had to do was save the following code as /etc/pm/sleep.d/20_custom_ehci_hcd :

Code:

#!/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

Of course, I also had to chmod +x on the file.

May it help someone else as well :)

Bruce Hill 03-30-2011 01:00 PM

And you're now off the Zero Reply list...

willysr 03-30-2011 05:44 PM

does it work on asus ul80vt as well??

slac-in-the-box 03-30-2011 07:13 PM

Quote:

does it work on asus ul80vt as well??
I don't have the ul80vt to test it on... sounds like you do though :)

If it doesn't work, just hold power key till it shuts down, reboot, and delete the script from /etc/pm/sleep.d
and you won't be any worse for the wear... be sure that you have the resume=(insert path or UUID of swap partiton here) in the append line of lilo and to rerun lilo before trying though.


All times are GMT -5. The time now is 09:27 PM.