View Single Post
Posts: 1,101 | Thanked: 1,185 times | Joined on Aug 2008 @ Spain
#673
Originally Posted by auouymous View Post
Its the same one ASUI uses and I've seen it a lot. The transition to orange at 2.0 is a bit low because I rarely see yellow. Although the orange and yellow are hard to distinguish from each other, I'll either change the 2.0 to halfway between 0.8 and 14.0 or remove orange.
Ok. May be red should be a bit further and orange middle point (see below why)
ASUI only tracks last hour and last X hours and it passes the last hour rate to the applet. Last minute tracking is not possible unless you are bleeding 0.1% or more per minute. The applet rate only updates when battery capacity changes.

I can probably add a 60 second timer in the applet that resets when it receives a drain update otherwise it will request a 'decaying' update from ASUI. That way the applet's rate will decrease with time when no BME updates are being sent, just like ASUI does when the battery widget is visible.
If you take [%battery remaining]/[Active hours left] instead, you'll have an instantaneous discharge rate more useful for the applet. Notice that when the device is in use the discharge rate is never lower than 10%/h and the maximum discharge rate I've observed is 50%/h. The transition points could be gray<15.4%, yellow 15.4%-<22%, orange 22%-28.5%, red >=28.5% (points relate to 6.5, 4.5, 3.5 active hours). That's simpler than any decaying timer.