On Thursday 10 June 2004 3:54 pm, Mike Frysinger wrote:
On Thursday 10 June 2004 02:53 pm, Martin, Eric wrote:
does anybody know of a hibernate mode in linux (suspend to disk)? If there is, where? If there isn't, how hard is that to code?
my ppc laptop has suppport via the hardware in 2.6 ... there's also 'Software Suspend' and 'Suspend-to-Disk' support in 2.6 for all x86 machines ... -mike
Note that my laptop is running a 2.6 kernel and that the hibernate mode works pretty well, actually! When the user invokes the hibernate mode (suspend to disk) the software writes its info into the swap file, and then the machine powers off. When the machine is later powered on and starts to boot, a parameter is passed to the kernel which tells it to look at the swap file. If the swap file has valid "hibernate info" in it, the machine will resume that state, otherwise it will perform a normal boot sequence. I'm pretty sure I'm using ACPI, which is (I believe) a more recent standard than APM. Check to see what your hardware supports. Later, Andy -- Andy Stewart, Founder Worcester Linux Users' Group Worcester, MA USA http://www.wlug.org