Author Topic: Hibernate For The Z?  (Read 8616 times)

rolf

  • Full Member
  • ***
  • Posts: 105
    • View Profile
    • http://home.arcor.de/leggewie/
Hibernate For The Z?
« on: October 17, 2006, 07:34:39 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

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Hibernate For The Z?
« Reply #1 on: October 18, 2006, 05:21:44 am »
See this page for a comparison of the 3 methods: http://www.suspend2.net/features

Is 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

rolf

  • Full Member
  • ***
  • Posts: 105
    • View Profile
    • http://home.arcor.de/leggewie/
Hibernate For The Z?
« Reply #2 on: October 18, 2006, 05:41:31 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/features

Thank 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

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Hibernate For The Z?
« Reply #3 on: October 18, 2006, 06:43:50 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#final24release


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

rolf

  • Full Member
  • ***
  • Posts: 105
    • View Profile
    • http://home.arcor.de/leggewie/
Hibernate For The Z?
« Reply #4 on: October 18, 2006, 06:59:44 am »
Thank you again, lardman.  So this is just an issue of recompiling the kernel?  Fair enough.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Hibernate For The Z?
« Reply #5 on: October 18, 2006, 07:43:32 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Hibernate For The Z?
« Reply #6 on: October 18, 2006, 08:35:43 am »
I might be wrong here but I thought the hibernate stuff required the APIC functionality on the MB ?
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Hibernate For The Z?
« Reply #7 on: October 18, 2006, 10:30:30 am »
Quote
I might be wrong here but I thought the hibernate stuff required the APIC functionality on the MB ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=144271\"][{POST_SNAPBACK}][/a][/div]

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.
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

rolf

  • Full Member
  • ***
  • Posts: 105
    • View Profile
    • http://home.arcor.de/leggewie/
Hibernate For The Z?
« Reply #8 on: January 01, 2007, 11:40:58 am »
Quote
Suspend-to-disk requires only some help from the bootloader and kernel on ARM.
What kind of help would that be exactly?

svs57

  • Full Member
  • ***
  • Posts: 108
    • View Profile
    • http://
Hibernate For The Z?
« Reply #9 on: May 17, 2007, 03:27:14 am »
Look here:
http://tree.celinuxforum.org/CelfPubWiki/SuspendToDiskForARM
Arm patches for 2.6.14
I didn't try because I use 2.6.21 kernel.