MeasuringPowerConsumption
Installing Ubuntu on the Nexus7 |
This project is no longer maintained. You might be interested in Ubuntu Touch though. |
Please help to improve this page if you have more tools or ideas to add.
Nexus7 Power Measurement
Steve Conklin did an initial investigation on the power consumption on the Nexus7 by watching the I2C bus and doing some disassembly of the unit:
git repo for tools mentioned in the above presentation: git@github.com:sconklin/nexus-tools.git (https://github.com/sconklin/nexus-tools)
Identifying Issues
The same tools used to identify power issues for other architectures (like powertop) work just fine:
- Measuring CPU usage is a good way to detect when your application is drawing too much power, kcachegrind and callgrind (part of Valgrind) are excellent tools.
Statistics
Colin King maintains several tools to gather statistics on power consumption:
Eventstat: calculates the rate of events per second and can dump the data in a .csv $ git clone git://kernel.ubuntu.com/cking/eventstat.git $ cd eventstat; make $ sudo ./eventstat
Hardware Tools
The ARM Energy Probe is a hardware tool that is fairly cheap and can be used to measure power consumption. It uses a GPL software stack and offers command-line and HTML5+websockets interface. Here is an intro video on using the ARM Energy Probe.
At Linaro Connect, Andy Green, from Linaro, gave a very good presentation on power measurement (Slides on PDF)