LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Recovery from suspend to RAM only works in X? (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/recovery-from-suspend-to-ram-only-works-in-x-406003/)

bl0tt0 01-20-2006 10:19 PM

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

bl0tt0 04-24-2006 04:40 PM

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?


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