View Single Post
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#674
Originally Posted by tso View Post
As if ASUI tries to blank the screen but then come right back. The pulse seems to be at maybe 5-10 second intervals.
ASUI's only dim/blank commands are attached to button events.

Originally Posted by tso View Post
/var/lib/alarmd/alarm_queue.xml.
seems to hold two events, one from the sequetary calendar, and one for the hildon update notifier.
Only hildon update notifier here. I'll try installing that calendar app and see what happens.

Originally Posted by maacruz View Post
Ok. May be red should be a bit further and orange middle point (see below why)

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.
That won't work, the active time only has hour precision (even though the one signal sends it as minutes and the other as seconds) and it doesn't update instantaneously.

Decay timer is simple and of course the code already exists in ASUI. When a BME capacity signal arrives it takes the difference between the capacity an ~hour ago and the new capacity, using the timestamps of both events. When the battery widget is visible it refreshes the drain rate every 60 seconds by taking the difference between the capacity/timestamp an ~hour ago and the last capacity event with current time instead of its timestamp. This causes the drain the rate to slightly decrease every minute and is accurate.

When adding the drain rate I experimented with rate for last minute and found it to be a useless value because their isn't enough data (and it was only good for eye candy and not for determining usage patterns). Maximum normal rate should be 14-25%/hr (4-7 hours active time) which means it can only decrease 0.1% every 14-25 seconds. Problem is that BME doesn't send out a signal for each 0.1% change but groups them into larger changes. It would be nice to have the icon represent instantaneous drain rate and quickly change colors as the load changed but it won't work.