User: Password:
|
|
Subscribe / Log in / New account

One sane unification case

One sane unification case

Posted Jul 20, 2007 11:54 UTC (Fri) by farnz (subscriber, #17727)
In reply to: Yet another approach to software suspend by intgr
Parent article: Yet another approach to software suspend

There is one interesting unification setup (which can be implemented later, once we've got S2RAM and hibernation working well): hibernate, then (without damaging the hibernate state, so that we can resume again if needed), resume into S2RAM. If we restart running from S2RAM, great, we've just had a nice fast resume. If we lose power, so that we can't resume from S2RAM, ah well, time to restore from hibernate.

It's a limited use case, but one that some people could benefit from; I can think of the following times when I'd want it:

  1. When leaving my desktop alone for an extended period; if power is stable, I want a fast resume. If power goes on me, it'd be nice to still get a resume.
  2. When my server's UPS tells it that it's low on battery and lacking mains input. If the outage lasts only another 10 minutes, resuming from S2RAM (via USB signalling or similar) is quicker than coming back from hibernate.
  3. When I'm closing my laptop at the end of the day to travel home; if I've got enough battery to hold me in S2RAM, I'd like the fast resume when I'm next working. If I don't, I'd still prefer resume from disk to rebooting.

As you can see, all of these are unusual use cases, and S2RAM is just an optimization; I'd cope with having to do hibernate for every case.


(Log in to post comments)

One sane unification case

Posted Jul 20, 2007 15:00 UTC (Fri) by jond (subscriber, #37669) [Link]

"hibernate, then (without damaging the hibernate state, so that we can resume again if needed), resume into S2RAM."

I guess you mean "suspend into S2RAM" there -- there's a user-space tool "s2both" that does this at the moment, using the existing disk and RAM suspension techniques.

Linux is behind there too.

Posted Jul 20, 2007 20:05 UTC (Fri) by khim (subscriber, #9252) [Link]

What you've described is standard modus of operandi for both Mac OS and Vista... Quite useful approach, yes...


Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds