Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
pgwipeout
Old
(Last edited by pgwipeout; 20th August 2010 at 03:38 AM.) Reason: Update
#1  
Member - OP
Thanks Meter 1
Posts: 35
Join Date: May 2010
Location: Norfolk
Lightbulb [IDEA] Power Draw Widget

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.
The Following User Says Thank You to pgwipeout For This Useful Post: [ Click to Expand ]
 
d0ugie
Old
#2  
d0ugie's Avatar
Senior Member
Thanks Meter 11
Posts: 532
Join Date: Jan 2007
Location: New York
Quote:
Originally Posted by pgwipeout View Post
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.
Gotta bump this while noting I'd pay for such a widget.
see at&t get its ass kicked right here
get battery facts from batteryboss.org
 
dogiedogie
Old
(Last edited by dogiedogie; 12th July 2010 at 01:00 AM.)
#3  
Senior Member
Thanks Meter 0
Posts: 310
Join Date: Mar 2010
+1 for payage

EDIT: Or, even better, a graphical history widget like SeePU++
 
pgwipeout
Old
#4  
Member - OP
Thanks Meter 1
Posts: 35
Join Date: May 2010
Location: Norfolk
I have never done programming before, but this might be enough for me to look into and see if I can learn enough to put something together.
 
rm9
Old
#5  
Senior Member
Thanks Meter 19
Posts: 145
Join Date: Feb 2010
What are the units for current_now ?
 
pgwipeout
Old
#6  
Member - OP
Thanks Meter 1
Posts: 35
Join Date: May 2010
Location: Norfolk
Quote:
Originally Posted by rm9 View Post
What are the units for current_now ?
Microamps, Probably would be best for the widget to display in Milliamps.
 
rm9
Old
#7  
Senior Member
Thanks Meter 19
Posts: 145
Join Date: Feb 2010
Quote:
Originally Posted by pgwipeout View Post
Microamps, Probably would be best for the widget to display in Milliamps.
But I get a negative number when I cat the file.
 
Daneshm90
Old
#8  
Daneshm90's Avatar
Recognized Developer
Thanks Meter 551
Posts: 3,305
Join Date: Jun 2009
Quote:
Originally Posted by rm9 View Post
But I get a negative number when I cat the file.
Is it while ur charging ur phone ?
Scripts : Recovery Customizer Link Apk Manager Link Auto Deodexer Link Backup Manager Link Update.zip Modifier/Creator Link
 
pgwipeout
Old
#9  
Member - OP
Thanks Meter 1
Posts: 35
Join Date: May 2010
Location: Norfolk
Quote:
Originally Posted by Daneshm90 View Post
Is it while ur charging ur phone ?
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.
 
rm9
Old
#10  
Senior Member
Thanks Meter 19
Posts: 145
Join Date: Feb 2010
Quote:
Originally Posted by Daneshm90 View Post
Is it while ur charging ur phone ?
no.

Checked on Nexus One.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...