Click to See Complete Forum and Search --> : Supend to Ram/Hibernate?


raid517
07-27-2003, 02:59 PM
Hi, I wondered if it is possible to find a way to use suspend to RAM on a Linux based machine? Currently I am using what may indeed be the world's smallest distribution: Freevix, http://www.freevix.org/ which is something like 25MB in size and which I have installed on a 40x 512MB IDE RAM drive, on a fast base sytem with 120Gig conventional HDD set aside for media storage. The entire purpose of this OS is to run a single application, namely Freevo http://freevo.sourceforge.net/screenshots.html which is a Front end HTPC (Home Theatre PC) enhancement for MPlayer. So as you can imagine, if your primary purpose to build a HTPC system, you don't neccesarily always want to have long boot times, or watch lots of complex or confusing text scroll by while the machine prepares to enter a usable state.

What better therefore than to have the ability to rapidly suspend your entire OS to RAM, and just as quickly bring it out of its state of suspended animatition so that it can be restarted in exactly the same state it was switched off. (Personally I would like to see any uncessary processes automatically killed - like running media players, or web browsers etc, before the system entered a suspended state). But anyhoo, what I wanted to know was is it possible with the Linux kernel to do this? I asked some folks over at freevix about it but they didn't seem very clear on it either.

While this may not be applicable in all conditions, I think for things like PDAs and dedicated media players and other advanced forms of consumer electronics, that a Linux suspend to RAM cabability would be a very useful feature to have indeed.

But before I go off on a hairbrained quest to try to find a kernel that will allow this sort of functionality, I thought I would ask the guys here what your view was? :)

So what do you think? Is it possible or not? Or is it unlikely anytime soon to be a feature that is available in Linux?

All input is welcome.

Q

qubes
07-27-2003, 03:17 PM
It's possable, but not using hardware support--manufactures don't release specs for that type of stuff (bad Intel, bad!).

There is software suspend that saves state to your swap space (active development on sourceforege.net too)

See: http://sourceforge.net/projects/swsusp

You will have to patch your kernel, but hay, you probably already knew that. :)