Hi!

> The advantage to using s2both is that if the battery runs out while
> suspended to ram, the system can still resume from disk (after power is
> restored). The disadvantage is that it's slower, and most of the time
> the disk image is never used.
> 
> This implementation of USuspendMethodAuto takes two integer arguments:
> The first is a threshold (in terms of battery charge percentage) below
> which s2disk will be used, on the theory that a laptop with a low
> battery shouldn't waste any energy on suspending to ram. The second is a
> threshold above which s2ram only is used, since it's faster and it's
> less likely that a full battery will run out while suspended. In
> between, s2both is used as a hedge.
> 
> hal is used to determine battery percentage. This may need
> bulletproofing for non-hal systems.

Okay, why not. If you resend the patch, and noone dislikes it, I can
apply it..

...but that non-hal bulletproofing would be nice :-).
                                                                Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel

Reply via email to