[IDEA] Power Draw Widget

pgwipeout

Member
May 26, 2010
44
9
8
Could someone build a widget to loop the "cat sys/class/power_supply/battery/current_now" script every 30 seconds or so and display the results in the widget? This could give you an accurate idea of how much power your phone is using regularly.

UPDATE

rm9 has made a widget off this idea, he has posted it to the market.
 
Last edited:
  • Like
Reactions: NVardan and Caladus

rm9

Senior Member
Feb 3, 2010
150
20
0
It displays total current to/from the battery, - means it is discharging the battery, + means it is charging the battery, so if you have a - while charging it means you are pulling more power then your power supply can provide.
great, thanks.
 

pgwipeout

Member
May 26, 2010
44
9
8
is this the same as when you use OS Monitor, look in messages, and filter dmesg for "batt" or similar? is that what this thread is asking for? if so that would be sweet!:D
Parsing messages from dmesg about the battery would allow the widget to provide A LOT more information about your battery state, sweet!
 

rm9

Senior Member
Feb 3, 2010
150
20
0
The widget is almost finished. Just need to add configuration and some design :)

Sent from my Nexus One using XDA App