January 08, 2005
Miracle - suspend to ram ( S3 ) works on my Linux vaio ! For Windows and Mac users - it seems like a trivial thing, but for users of many laptops running linux, suspend to ram is not easy. It just works on a lot of hardware - especially if the apm or acpi implementation is close to standards, I had a lot of good experience with dell and thinkpads. But on my sony TR1A - it never recovered from sleep, so I had to hibernate, which is much slower.

http://usefulinc.com/edd/notes/UbuntuOnSonyVaioTRSeries provided the base instruction - but recovering the video didn't work with what he sugested, it seems to work with xfree but not with xorg server. Eventually I found a combination that works for my Suse 9.2 + linux2.6.10. It seems switching few times from the x screen and console is getting the screen to a good state.
The code to recover from sleep for my laptop seems to have appeared in 2.6.9.

# stop network and pcmcia
ifdown eth0
ifdown eth1
rmmod ipw2100
rmmod e100
/etc/init.d/pcmcia stop

#  without this - Xorg will crash
chvt 1

echo mem >/sys/power/state
chvt 1
/opt/bin/video_post
sleep 1
# seem to help - not sure how
chvt 2
chvt 1
sleep 1
chvt 7
chvt 1
chvt 7

Posted by costin at January 08, 2005 11:13 PM
Comments
Disabled due to spam. Click on the link to post a comment, it'll be sent in email ( and thus usual mail spam filters and blacklist applied ). It may be made accessible later on, but code needs to be written for that. Comments