LWN.net Logo

Major suspend changes

Major suspend changes

Posted Jun 30, 2006 15:32 UTC (Fri) by tetromino (subscriber, #33846)
In reply to: Major suspend changes by sbishop
Parent article: Major suspend changes

Suspend-to-RAM simply puts your hardware in a low-power state, using ACPI or whatever mechanism ppc machines use. It's fairly fast, but the machine will continue using (a little) power when suspended. The major downside is that in Linux, it's horrendously unreliable: there is a very good chance of your machine unsuspending to an unresponsive state, and since modern machines typically lack a serial port (for attaching a serial console), your only choice then is to reboot and lose data.

Suspend-to-disk writes your memory to your disc (typically, in a compressed form to your swap partition), then powers down. When you boot the machine back up, you pass the kernel a parameter where to look for the suspend image; if it finds it, early in the boot process it will load the image back into memory. This is slower than suspend-to-ram, but doesn't use any power when suspended, and most importantly, WORKS. I.e. Suspend2, when properly configured, reliably works on pretty much any hardware I throw at it. Suspend-to-ram doesn't. Hopefully, Linus's patch will change the situation.


(Log in to post comments)

Major suspend changes

Posted Jul 4, 2006 19:56 UTC (Tue) by vegge (subscriber, #6926) [Link]

Yes, working suspend-to-ram would be wonderful!

Suspend-to-ram is the reason I got an iBook, running OS X. Close the lid and it goes to sleep, open the lid and it wakes up. I've never had a failure, and the sleep mode uses very little power (the battery will last for days in sleep mode).

OS X has other drawbacks, however...

Major suspend changes

Posted Jul 6, 2006 6:12 UTC (Thu) by pimlott (guest, #1535) [Link]

The major downside is that in Linux, it's horrendously unreliable
I kept hearing this, so I never bothered with suspend to RAM. One day, I idly tried it on my Thinkpad X40--and to my amazement, it worked perfectly! And it's never failed, making it much more reliable than APM suspend. I wish I could say why this is, but I sure am happy about it.

Major suspend changes

Posted Jul 6, 2006 18:20 UTC (Thu) by hazelsct (guest, #3659) [Link]

You are very fortunate. Try as I may, I have never had it work on my Fujitsu Lifebook. I really hope the new code will work, but when will it be merged? 2.6.19?

Major suspend changes

Posted Jul 7, 2006 23:15 UTC (Fri) by NCunningham (guest, #6457) [Link]

It will be in 2.6.18.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds