Kernel with current metering enabled

52 views
Skip to first unread message

ffxx68

unread,
Feb 10, 2014, 8:42:21 AM2/10/14
to renesas-...@googlegroups.com
While working on spare time on debugging HDMI (not working yet!), as a side effect I found out that we could enable current metering at kernel level, making possible the use of apps like this one for example:

 https://play.google.com/store/apps/details?id=com.manor.currentwidget

The new sysfs file reporting instant current drain from/to battery is:

 /sys/class/power_supply/battery/batt_current

The new kernel built is stored on my usual DropBox folder:

 https://www.dropbox.com/sh/02unpn660or2inl/BKHSjMWQxz/beta

You could re-install the complete firmware from scratch, as usual, or just push the kernel image on the device attached with adb:

 > adb shell mkdir /tmp
 > adb push uImage4 /tmp/uImage4
 > adb shell dd if=/tmp/uImage4 of=/dev/block/mmcblk0p2

I noticed a 500-700 mA consumption during usage, down to about 170 mA while on stand-by. Charging doesn't change current sign (haven't investigated about that...) but set it at about 850 mA.

ffxx68

unread,
Feb 10, 2014, 9:00:11 AM2/10/14
to renesas-...@googlegroups.com
Actually, current values are correctly set to proper sign as I unplug USB (which charges up the device).
You can enable logging in CurrentWidget app, to see that during standby it goes to about -80 mA, while on usage it's beyond -500 mA.

marshel

unread,
Feb 11, 2014, 12:25:03 PM2/11/14
to renesas-...@googlegroups.com
nice to know! Good Work!
Reply all
Reply to author
Forward
0 new messages