LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-20-2006, 09:19 PM   #1
bl0tt0
Member
 
Registered: Aug 2005
Location: The Glorious People's Republic of Austin
Posts: 178

Rep: Reputation: 62
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:
Code:
#!/bin/bash

#change to console 1 
FGCONSOLE=`fgconsole`
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
sync
/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
chvt $FGCONSOLE

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

Original Poster
Rep: Reputation: 62
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?
 
  


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
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

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

All times are GMT -5. The time now is 05:42 AM.

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