rolf
Oct 17 2006, 03:34 AM
Hi,
I was wondering if it was possible to program something similar to the hibernate command for Linux computers. hibernate saves the state of RAM and stores it on the swap partition AFAIK. In any case, when the computer is awoken from this hibernate state it boots up, recognizes the hibernate file being present and restores the session.
This makes it possible for example to hibernate a laptop, switch the battery and turn it back on without loosing any work (even stuff that is not saved). Shouldn't it be possible to have something similar for the Z?
Hibernate is just a bash script on the desktop. Despite looking at it I was unable to find out exactly what command it is that invokes the hibernation and if that command is already present for the Z.
Regards
Rolf
lardman
Oct 18 2006, 01:21 AM
See this page for a comparison of the 3 methods:
http://www.suspend2.net/featuresIs this really very useful as the battery life of a Zaurus is fairly reasonable? I could see that perhaps it could be used to automatically save state if you forget to charge the battery.
Nevertheless, it's an interesting thought/project.
Si
rolf
Oct 18 2006, 01:41 AM
> Is this really very useful as the battery life of a Zaurus is fairly reasonable?
Not for the collie. Which is why I was asking.
>
http://www.suspend2.net/featuresThank you for the link. Alas, it only talks about 2.6 which again creates problems for the collie.
There was somebody from China on IRC yesterday that was interested in this. Let's see how this develops.
lardman
Oct 18 2006, 02:43 AM
Well I assume there were solutions/patches available for the 2.4.x kernels, try some googling. For example there's this:
http://www.suspend2.net/oldnews#final24releaseSi
rolf
Oct 18 2006, 02:59 AM
Thank you again, lardman. So this is just an issue of recompiling the kernel? Fair enough.
lardman
Oct 18 2006, 03:43 AM
QUOTE
just
I don't think ARM was on the list of supported processor types, therefore it'll be more a case of patching the kernel, which may be more difficult. I don't know how the suspend stuff hooks in so I can't comment on how difficult it'd be.
Si
Meanie
Oct 18 2006, 04:35 AM
I might be wrong here but I thought the hibernate stuff required the APIC functionality on the MB ?
koen
Oct 18 2006, 06:30 AM
QUOTE(Meanie @ Oct 18 2006, 12:35 PM)
I might be wrong here but I thought the hibernate stuff required the APIC functionality on the MB ?
You're forgetting that x86 is an ugly architecture that wasn't designed for power-efficiency. Suspend-to-disk requires only some help from the bootloader and kernel on ARM.
rolf
Jan 1 2007, 08:40 AM
QUOTE(koen @ Oct 18 2006, 04:30 PM)
Suspend-to-disk requires only some help from the bootloader and kernel on ARM.
What kind of help would that be exactly?
svs57
May 16 2007, 11:27 PM
Look here:
http://tree.celinuxforum.org/CelfPubWiki/SuspendToDiskForARMArm patches for 2.6.14
I didn't try because I use 2.6.21 kernel.