Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Is it possible to Hibernate DSL or Linux?< Next Oldest | Next Newest >
john.martzouco Offline





Group: Members
Posts: 253
Joined: Nov. 2007
Posted: Dec. 22 2007,14:02 QUOTE

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?
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Dec. 22 2007,17:02 QUOTE

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


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Dec. 22 2007,17:31 QUOTE

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.
Back to top
Profile PM 
john.martzouco Offline





Group: Members
Posts: 253
Joined: Nov. 2007
Posted: Dec. 22 2007,18:28 QUOTE

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.
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Dec. 22 2007,18:34 QUOTE

Depends on your bios..

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
4 replies since Dec. 22 2007,14:02 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Is it possible to Hibernate DSL or Linux?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code