Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
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).


  Search this Thread
Old 01-20-2006, 09:19 PM   #1
Registered: Aug 2005
Location: The Glorious People's Republic of Austin
Posts: 156

Rep: Reputation: 26
Recovery from suspend to RAM only works in X?

I have a Thinkpad t42p that I'm trying to get configured to run Slackware. I am currently working on getting the ibm-acpi driver to control lid and button events. I have worked out a script to get the laptop to suspend to RAM, but it seems to only completely recover if I am in X. When I put the machine to sleep in the console, I get a blank screen upon recovery. It seems like the backlight isn't turning on. Does anyone have any experience with this kind of problem.

I am running a framebuffer console as well as the most recent ATI driver.

My suspend script goes:

#change to console 1 
chvt 6

#save video stats
cat /proc/bus/pci/00/02.0 > /tmp/video_state

#if launched through a lid event and lid is open, do nothing
echo "$1" | grep "button/lid" && grep -q open /proc/acpi/button/lid/LID/state && exit 0

#sync filesystem and clock
/sbin/hwclock --systohc

echo "mem" > /sys/power/state

#readjust the clock (it might be off after suspend)
/sbin/hwclock --adjust
/sbin/hwclock --hctosys

cat /tmp/video_state > /proc/bus/pci/00/02.0

#change back to X

#clean up behind us
rm /tmp/video_state
Thank you for any input
Old 04-24-2006, 03:40 PM   #2
Registered: Aug 2005
Location: The Glorious People's Republic of Austin
Posts: 156

Original Poster
Rep: Reputation: 26
It's been a while now, and I'm still trying to work out a way to fix this. Can anyone at all help me out with this?


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
Another suspend-to-RAM problem coldsalmon Linux - Laptop and Netbook 16 08-14-2006 09:57 PM
Compter hang in the middle of recovery from suspend to disk. simjii SUSE / openSUSE 1 12-14-2005 06:06 AM
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 > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 09:24 AM.

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