Notice: A non well formed numeric value encountered in /sites/ on line 96 Notice: A non well formed numeric value encountered in /sites/ on line 96 Notice: A non well formed numeric value encountered in /sites/ on line 96 Deprecated: Function create_function() is deprecated in /sites/ on line 104 Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /sites/ on line 845 Deprecated: Function create_function() is deprecated in /sites/ on line 111 FS#6860 : prepared correct sansa e200 battery status handling



FS#6860 - prepared correct sansa e200 battery status handling

Attached to Project: Rockbox
Opened by Matthias Wientapper (mattzz) - Monday, 19 March 2007, 20:56 GMT
Last edited by Marc Guay (Marc_Guay) - Monday, 31 March 2008, 19:23 GMT
Task Type Patches
Category Battery/Charging
Status Closed
Assigned To No-one
Operating System Sansa e200
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No


- prepared a first version of correct battery status handling
- improved battery status accuracy
- this is a first shot, more measurements have to be done
This task depends upon

Closed by  Marc Guay (Marc_Guay)
Monday, 31 March 2008, 19:23 GMT
Reason for closing:  Out of Date
Additional comments about closing:  Power consumption improvements have made this obsolete.
Comment by Matthias Wientapper (mattzz) - Wednesday, 21 March 2007, 23:35 GMT
- corrected shutdown voltage to 3,3V
- warning level 3,4V
- discharging curve linear between 3,3V and 4,2V
Comment by Barry Wardell (barrywardell) - Friday, 23 March 2007, 10:59 GMT
sansa-battery_2.diff committed to SVN. I'll leave the task open for now as mattz wanted to improve on the linear discharge curve between 3.3V and 4.2V.
Comment by Matthias Wientapper (mattzz) - Tuesday, 03 April 2007, 19:31 GMT
Added first complete discharge curve (had to patch batter_bench) on
Comment by Dagni McPhee (donutman25) - Tuesday, 10 April 2007, 04:34 GMT
my battery_bench file
Comment by powers (kpowers11) - Thursday, 12 April 2007, 02:13 GMT
Here is my battery_bench file. It ran from just about full charge to low battery shutdown.
Comment by Matthias Wientapper (mattzz) - Saturday, 14 April 2007, 10:50 GMT
Please make sure that you use a patched battery_bench plugin - otherwise the battery_bench.txt will not be completely written.
(Refer to for the information about the one line that has to be patched)
Comment by Alex (testdasi) - Sunday, 06 May 2007, 21:01 GMT
Recalibrate the voltage based on the latest batter_bench on the wiki page.
Comment by Michael Hahn (disorganizer) - Wednesday, 20 June 2007, 09:29 GMT
maybe a new idea to this:
instead of patching rockbox with new battery "profiles", wouldnt it be better to patch rockbox to use a profile which we can put into a normal textfile?
as far as i understand the textfile only needs to hold a conversion table from Voltage to % and runtime left. The rockbox battery indication then needs to look into this file to get the correct readings.
this way everyone could use a battery profile which fits his/her needs.

if we could then update the battery-benchmark plugin to write exactly this textfile for the individual sansa we use, every user can use the plugin to create a battery profile matching his/her exact use of the sansa (as i believe the differen usages, graphics, games, settings influence the possible runtime of a battery).

Comment by Michael Sevakis (MikeS) - Wednesday, 20 June 2007, 10:40 GMT
In general that might be helpful with the use of custom, non-OEM replacement batteries as well without having to have a custom build. Other profile information besides a conversion table should probably be included for charging purposes.
Comment by Eddy (bascule) - Thursday, 01 November 2007, 08:47 GMT
Does battery_bench still require to be patched? I can't see a bug report or patch sitting in Flyspray and without it working properly, there is much less chance of an average user running it and adding to the base of knowledge...

EDIT - yes it does need to be patched.

I've raised a proper Flyspray bug report for this specific battery_bench plugin error here:
Comment by William Rowell (rowell) - Tuesday, 06 November 2007, 18:07 GMT
My battery_bench.txt from a full charge to an automatic shutdown.