View Single Post
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#15
Originally Posted by BrentDC View Post
My C/C++ skills are very weak, but maybe I can modify the source and add some sort of algorithm to more accurately predict battery level. Or maybe not
If you come up with a good algorithm, I am sure someone will be able to implement it in whatever language.

To find such an algorithm I suggest log values from full battery to empty on a few usage profiles:

- low power draw: standby, not connected

- medium power draw: low CPU usage, screen on low brightness.

- high power draw: play a movie that takes 100% cpu in a loop over WiFi with maximum brightness and GPS on.

Try to find an algorithm that fits all those logs.


Just a small note: /tmp will not survive a reboot, it is on tmpfs.
 

The Following User Says Thank You to Matan For This Useful Post: