LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-30-2011, 01:43 PM   #1
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-14.1
Posts: 160

Rep: Reputation: 26
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
 
Old 03-30-2011, 02:00 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
And you're now off the Zero Reply list...
 
Old 03-30-2011, 06:44 PM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,624

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
does it work on asus ul80vt as well??
 
Old 03-30-2011, 08:13 PM   #4
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-14.1
Posts: 160

Original Poster
Rep: Reputation: 26
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suspend to RAM yegnal Linux - Hardware 1 05-23-2009 07:21 PM
Plz explain Suspend to Disk and Suspend to Ram pkhera_2001 Linux - Newbie 2 02-18-2008 08:23 AM
suspend to ram and s2ram radiodee1 Debian 3 12-08-2007 05:18 PM
Possible Suspend/HIbernate fix angryfirelord Linux - Hardware 0 07-20-2007 07:46 PM
slackware + suspend-to-ram? janhe Slackware 7 07-05-2007 11:05 AM


All times are GMT -5. The time now is 08:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration