LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 08-14-2006, 09:51 PM   #16
avheretic
Member
 
Registered: Oct 2005
Distribution: Slackware 11
Posts: 45

Rep: Reputation: 15
It works. Finally !!!!


Well my Suspend to RAM finally works. The real problem lies with the usb modules ehci_hcd and uhci_hcd. I unloaded them in my script and modprobe'd them back when waking up. Also the LCD screen still stayed off, quick fix - used vbetool. Here is my script, hope it helps.

Code:
#!/bin/sh

# switch to virtual terminal 1 to avoid graphics
# corruption in X
chvt 1

#remove modules
rmmod uhci_hcd 
rmmod ehci_hcd

# write all unwritten data (just in case)
sync

# suspend display
vbetool vbestate save > /tmp/db
vbetool dpms suspend

# suspend
echo -n mem > /sys/power/state

# resume display
vbetool vbestate restore < /tmp/db
vbetool dpms on

modprobe ehci_hcd
modprobe uhci_hcd

rm /tmp/db
# switch back to virtual terminal 7 (running X)
chvt 7
The vbetool statements suspend and turn on the screen.
 
  


Reply



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
Another suspend-to-RAM problem coldsalmon Linux - Laptop and Netbook 16 08-14-2006 09:57 PM
RH 5 or 6 RAM Requirements salmanal Red Hat 4 03-21-2006 08:13 PM
Suspend to RAM/HD question Lake-end Linux - Laptop and Netbook 6 07-05-2005 01:10 AM
suspend to ram works at last!!!! jwn7 Linux - Laptop and Netbook 4 03-31-2005 06:42 AM
Suspend to RAM in LInuX enigma82 Linux - Hardware 7 09-29-2004 04:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:51 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
Open Source Consulting | Domain Registration