![]() |
2011-02-09
, 13:29
|
Posts: 915 |
Thanked: 3,209 times |
Joined on Jan 2011
@ Germany
|
#2
|
![]() |
2011-02-09
, 14:24
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#3
|
![]() |
2011-02-09
, 14:50
|
Posts: 915 |
Thanked: 3,209 times |
Joined on Jan 2011
@ Germany
|
#4
|
![]() |
2011-02-09
, 16:04
|
|
Posts: 2,142 |
Thanked: 2,054 times |
Joined on Dec 2006
@ Sicily
|
#5
|
![]() |
2011-02-09
, 16:36
|
Posts: 701 |
Thanked: 585 times |
Joined on Sep 2010
@ London, England
|
#6
|
Well, non-linearity could be a problem if you were to estimate the time left to shutdown, but then that would depend on average use as well, so I think it would be too rough to be useful.
Also my battery graph charts don't have the shape you describe, and contrarily seem to decrease linearly from the very top. So a millivolt-based meter might be feasible to estimate charge level imho.
$ ./batterypercent.sh Tue Feb 8 13:06:49 GMT 2011 3.965V - 76.5% battery.charge_level.percentage = 94 (0x5e) (int) ~ $ ./batterypercent.sh Tue Feb 8 15:05:38 GMT 2011 3.971V - 77.1% battery.charge_level.percentage = 77 (0x4d) (int)
The Following User Says Thank You to retsaw For This Useful Post: | ||
![]() |
2011-02-09
, 16:57
|
|
Posts: 1,503 |
Thanked: 2,688 times |
Joined on Oct 2010
@ Denmark
|
#7
|
![]() |
2011-02-09
, 17:12
|
Posts: 310 |
Thanked: 383 times |
Joined on Jan 2010
|
#8
|
![]() |
2011-02-09
, 17:14
|
Posts: 701 |
Thanked: 585 times |
Joined on Sep 2010
@ London, England
|
#9
|
i have made a script based on real discharge graphs
it is based on idle voltage but it works really well
http://talk.maemo.org/showpost.php?p=872446&postcount=3
The Following User Says Thank You to retsaw For This Useful Post: | ||
I searched around but haven't found an answer; does anyone how (in code) battery.reporting.design is calculated?
I'm trying to figure out a way to hardcode it to 2400mah for my Mugen battery. I presume HAL calls some binary which reads it from the kernel.