-   Linux - Laptop and Netbook (
-   -   Recovery from suspend to RAM only works in X? (

bl0tt0 01-20-2006 09: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:


#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

bl0tt0 04-24-2006 03: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 07:25 PM.