Specifications
Chapter 12. Plugins 142
to disk anyway. This is done so that the data are not biased by excessive additional
disk accesses. The file is written to the root directory of your player and is called
battery_bench.txt. The plugin will continue to log info until:
• Another plugin is loaded.
• The player is shut down.
• The battery is empty.
Benchmarks can be resumed if you accidentally load a plugin, or turn off your player,
so long as the log file battery_bench.txt is not deleted.
Information explained
At the top of the battery_bench.txt file is various information on how to use the
plugin, followed by the data themselves.
Time This column reports the total time of operation of the player. It is not the time
that you started the plug-in. If you have your player on for 5 minutes and then
start the plugin, it will start measuring from 5 minutes.
Seconds The same as Time, except measured in seconds.
Level The percent level of the battery estimated by Rockbox, and not the actual battery
level. The actual battery level can be seen from the Voltage column
Time Left This shows the time remaining until the battery is empty, again as estimated
by Rockbox.
Voltage The battery voltage in mV at the moment the measurement was taken.
C This stands for Charger. An “A” in that column shows if the power adapter was
attached to the unit at the time of the measurement.
U USB powered. Only for targets that support this. A “U” will indicate if the unit was
using the USB port for power at the time of the measurement.
Usage
The log file can be used to tell you how long the battery lasted (with some limitations, see
below), but it is most useful for graphing discharge curves in order to improve Rockbox’s
estimation of battery level and time remaining. The battery log (battery_bench.txt)
is in CSV format (comma separated variables) and thus can be easily imported into a
spreadsheet or similar program.
The Rockbox manual (version rUnversioned directory-150516) Iaudio X5