Is it possible to Hibernate DSL or Linux?


Forum: Other Help Topics
Topic: Is it possible to Hibernate DSL or Linux?
started by: john.martzouco

Posted by john.martzouco on Dec. 22 2007,14:02
Mostly just asking out of curiosity.  Considering that DSL fires up faster than the hibernated Windows machine can, this is a moot question for my desktop, but it would be useful for the laptop when using it on the train.

Would Standby or Hibernate functionality be controlled by my bios/motherboard or can it be governed by the operating system?

Posted by curaga on Dec. 22 2007,17:02
With apm, it would be controlled by your bios and need (usually) a specific hibernate partition.
With acpi, it is done entirely in software. Either might or might not work.

For acpi:
Check /proc/acpi/power, especially the contents of "state". My lappie has the choices standby, mem and disk. Standby is a light suspend-to-ram; power is on, but is consumed very sparingly, ideal for a laptop ;)
Mem is supposed to be a heavier suspend-to-ram; it doesn't work for me.
Disk is most interesting; it saves your RAM into your swap and turns off. And on the next boot, the kernel sees this and continues normally. This requires adding resume=/dev/hda2 (or whatever your swap partition is) to the boot line, and making sure you have more swap than ram.


To trigger one of these states:
Quote
sudo echo -n "standby" > /proc/acpi/power/state

Posted by Juanito on Dec. 22 2007,17:31
I spent a long time trying to get acpi standby to mem or standby to disk to work in both dsl and dsl-n without any sucess - i.e. I couldn't wake the laptop up again. Note that this was with a usb boot, you might have more luck with a hd boot.
Posted by john.martzouco on Dec. 22 2007,18:28
Thanks gents.

Any idea how much different it will be with APM?  ACPI on this laptop turns the insides red hot and then there's a mercy logout by the system sparing me a premature death   :O

As a sidenote, (I'll open a new thread if this gets interesting), can I confgure APM to shut down the laptop when the battery runs down instead of just beeping?  If we forget it on in the other room, I end up having to cycle through the fsck checklist after recovery.

Posted by curaga on Dec. 22 2007,18:34
Depends on your bios..
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.