yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] rahlquist:
Any thought of adding nook/CM7 support? It stashes its current use in /sys/class/power_supply/max17042-0/current_now

Whats odd though is the values dont make sense to me, usually in the 6 digit range and it also displays negative when using the nook without the charging/usb cable hooked up. I cant find any information online about the driver for the max17042 other than it was created by a person at samsung, no docs on how to interpret the meanings or anything.
[Android Apps and Games] 3c:
Support for this file is ready, can you check the attached APK?

6 digits is ok and means it's reported as micro-Amps instead of milli-Amps.

When not plugged, values should be negative, meaning battery is discharging...

Just one question though: what is nook? do you get different data with CM7?
[Android Apps and Games] rahlquist:
Thank you will check it tonight when I get home (device is at home).

The nook is http://www.barnesandnoble.com/nookcolor/index.asp and also being worked on here http://xdaforums.com/forumdisplay.php?f=860

I'm still not sure about the current reading being micro amperes. The readings dont seem to align directly, for example on a mostly white screen with the brightness up full it says its discharge rate is -758125. While charging from its 1.9A included charger it will read 651250 which again doesn't seem to match its 1.9A available charge rate.

I wish someone would come up with more information on its built in battery Gauge chip the max17042.

I will let you know this evening if everything is working properly! Thanks for including us!
[Android Apps and Games] 3c:
Great, keep me posted on your testings!

The readings you have seems reasonable from what I've experienced with various phones... discharging at 758mA is around the max I get on a HD2... charge rate seems a little low at 651mA, still 758 + 651 = 1.4A, close enough to the 1.9A?
[Android Apps and Games] notwen:
I love your work and have purchased the Pro version. I was curious if there is any way to have the widgets drop down when you choose to hide the widget label? Perhaps place the label within the widget itself, alongside the battery percentage and expand the widget to use the place currently being held for the label(whether the label is hidden or not)? Just a thought. =]

Thanks again for such a quality app.
[Android Apps and Games] MKairys:
Always good to know :)

Okay, I plugged in USB for ten minutes and here's what I see, collecting the BAT0 lines:

W/09:38:54.402 BAT0 - 100=>73 since 8h55m
W/09:41:38.192 BAT0 - 73=>74 since 2m
W/09:44:38.187 BAT0 - 74=>75 since
W/09:47:42.222 BAT0 - 75=>76 since
W/09:50:24.147 BAT0 - 76=>77 since
W/09:52:50.277 BAT0 - 77=>78 since 2m
W/09:55:20.382 BAT0 - 78=>79 since 2m
W/09:57:54.367 BAT0 - 79=>80 since
W/10:01:18.177 BAT0 - 80=>81 since

That doesn't look good!

No, the estimates are very bad :) Here is what I saw before and after unplugging at 80%

Before	After
unplug	unplug
Global Estimation	7m	-1m
using all-time average	7m	-1m
using average since...	n/a	n/a
using battery...	1h25m	n/a

Average Times
Ac full-charge	18m	18m
USB full-charge	38m	38m
Discharge	-1m	-1m
[Android Apps and Games] yonef:
Hi there.

I have one question about battery monitor widget's graph.

Is there any setting that will "averageing" the current graph? Let me explain: for example when phone is off current graph keeps at 5mA straight line. When I switch the screen on and start using the phone graph still shows 5mA for several minutes and then slowly rizes. Same thing when I'm using the phone and current graph is going around ~200mA and when I switch the screen off the graph starts to descend slowly to 5mA but it takes. What I mean is, when I switch the sceen off the phone power draw should drop straight to 5mA while battery monitor widget still report some high reading because (I recon) it averages the readings with the previos readings to make a nice smooth graph instead of very rough graph with big spikes and dorps.

The thing is that, this way I cannot see how much power drowing my phone at a particular moment.

I have set the pulling interval to be 10 seconds and graph updates on 10s. but it still averages the readings.

Is there any setting I'm missing ?

Thanks :)

P.S. Still great app, great idea. Good job!
[Android Apps and Games] 3c:
Indeed, that's not ok at all... No wonder you're getting wrong estimates! Are you on a custom ROM?

The only time those message are listed is when either the phone is connected or shutdown! So it would seem that your battery driver keeps reporting its being connected/disconnected every 3 minutes or so!

The 'since ' means it's less than one minute... Such value after resetting estimates will definitely results in a few minutes charging time!

Could you attach the whole app log? The problem will be more obvious...
[Android Apps and Games] 3c:
Hello,

You should not set to update every 10 seconds, it usually does not help in any ways except on few ROMs where value is updated more frequently. On most ROM it's updated every minute.

It's even a worse idea if you keep a long history time-frame, eg 7 days @ 10 seconds = 60480 records to load and 3Mbytes of text history... the main reason you might get application freezes or out of memory... Something I'm working on in the next update: limiting history loading to 2880 records with an unlock option!. This is one of the complaint I see in Android Market comments!

Not sure what phone you have but what you describe seems that you're reading estimated values... The slow change works good when charging, but not when discharging.

I'll put a note on improving estimates in my TODO list.

As explained in app description, not all phones are supported. Actually some manufacturers have removed the information from the phone/kernel! There is not much I can do about it, unfortunately.

On those phones, you will see 'Estimated: xxx mA' in the top-right corner of the main screen.
[Android Apps and Games] 3c:
Yes it's possible, but before I can do it, need to change graphics to 9-patch version... Please be patient.
[Android Apps and Games] rahlquist:
What you are saying does make sense to me. I hadn't thought of it that way. At full screen brightness your app is showing about 743ma draw. With the screen off it shows 40ma draw. Plugged into my 1amp charger for my phone and the screen at full brightness its still draining at a rate of 293ma. With its own hig current adapter at full brightness its charging at 843ma with the screen on, and 1327ma with the screen off. Awesome work.

When will this change be incorporated in the pro version so I may purchase to show my appreciation?
[Android Apps and Games] warpaper:
no widget and can't open history

After flashed to CM nightly #35, found no widget available and can't open history (FC).

I try wipe its data from　Titanium backup or uninstall and reinstall, but no help.

Any idea? :confused:
[Android Apps and Games] 3c:
Everything is ready and published on Market :)

Hello and sorry for the inconveniences.

Concerning the missing widget, you need to reinstall the app, it's an issue with Android where an installation is occasionally 'corrupted'!

For the FC opening history, note that the history file is not deleted on uninstall, nor on data wipe! Could you please attach your history file so I can test/investigate/improve the fix I already published?

In the last published update, the app loads a auto-calculated size from history to avoid freezes and out-of-memory, though it can be unlocked from settings.

Also, you may work-around the issue by changing settings and reduce history length or deleting/renaming your history file starting from scratch as a last resort while I figure out what's going on (need your history file though).
[Android Apps and Games] westito:
Hi!

I found two issue: When i'm using "Lowest CPU frequency when screen off" tweak, and got an incoming call, the frequency won't be set to normal, neither after unlock screen. I have to set the frequency manually.

Issue 2: Sometimes the frequency went back to normal 1Ghz, instead of the setted 1,2 Ghz.

I'm using Desire HD and the latest MIUI.

(Sorry for bad English).
[Android Apps and Games] 3c:
Wrong thread :) but no problem... I've just published an update that should improve the situation (not yet perfect though). Can you please check and let me know?

Thanks for the feedback anyway as I'll start testing this specific scenario asap!
[Android Apps and Games] yonef:
First of all, thanks for the quck response.

My phone is Motorola Defy, and I can clearly see "estimated xxx mA" so I presume motorola has cut off this feature off the kernel.

...an improved "estimates" will be very nice :)

Thanks again for the briliant app!
[Android Apps and Games] Gongadin:
A couple things I've noticed in the new update:

1.) I have an 1800 extended battery, when I change the battery capacity from 1300 to 1800 (or 1300000 to 1800000) it doesn't save. If I go out of the program and go back in, its back to 1300, yes widget is running.

2.) The text in portrait is pushed off to the side (unplugged, current, etc) looks like because of the line "Technology:Li-ion1xxxxxx/1300000" is just too much text for that line

3.) When I click on the "view usage" the line item for battery graph is twice as tall as all the other items.

I love the estimates button on the main screen now too.

Overall this is the best graph/battery app I've used, and I think I've tried them all

Droid Incredible running Warm Z twopointtwo
[Android Apps and Games] Gunthermic:
Been using this great program and just purchased it.

1. In purchased copy still gettign ads popping up?

2. Did i mis-understand but isn't there more than one widget?

3. How can we get more than 1-10,20,30,40 for the task Bar for mA? First what phone will run down to 10 or less? maybe something 1-80 or 1-100, then by 10.. the lower numbers are far more inportant. for us trying get the most out of our battery.

4. Also on the Market the screen shot shows many differnet sizes widgets??

Would love to donate even more than the purchase...
[Android Apps and Games] MKairys:
Heavens, no :) Stock Verizon Fascinate.

I plugged it into AC at 90% to see if the results were the same as USB. They were.

W/10:59:01.206 BAT0 - 99=>98 since
W/10:55:59.581 BAT0 - 100=>99 since
W/10:54:59.011 BAT0 - 98=>99 since
W/10:49:21.352 BAT0 - 97=>98 since
W/10:45:07.642 BAT0 - 96=>97 since
W/10:41:21.502 BAT0 - 95=>96 since 3m
W/10:37:19.527 BAT0 - 94=>95 since
W/10:34:07.422 BAT0 - 93=>94 since
W/10:30:47.347 BAT0 - 92=>93 since
W/10:28:23.372 BAT0 - 91=>92 since 2m
W/10:25:43.332 BAT0 - 90=>91 since

App logs attached. Is there hope? ;)
[Android Apps and Games] stuntdouble:
Love this program on my smartphone, but in Honeycomb on my asus eee pad transformer it shows the milli-amp figure as 0mA and doesnt show the capacity of the battery. Would be great if this was supported in future. Thanks.
[Android Apps and Games] 3c:
Glad you like it :)

The first 2 have been noted and will be fixed today.

Not sure about #3 though!? You mean the button becomes bigger?

No ads on purchased version... Make sure you don't start the free copy in which you'll get add, best is to uninstall the free app.

You get 1x1 and 2x1 information widget and 2x1, 3x1 and 4x1 widgets. If you don't see them, either the app is not installed or you have a corrupted installation. Please reinstall.

To get detailed mA will require a 2Mbyte package, and me creating something like 400 to 2000 small icons! when i have free time, but todo lists are extensive :)

This summer a graphist will make new packages, should be great! :)

In the last update you should definitely get the battery capacity in the main screen, even if not provided by phone (value set in monitoring settings), something like 1021 / 1230 mA for example.

As for the 0mA, it seems the data file is there but only contains 0, to check if this phone can be supported (or actually if manufacturer didn't remove the data), check the content of the files in /sys/class/power_supply/battery... You might find a current_now always containing 0 and a full_bat containing actual full capacity.

After looking at your logs, there is hope, I should be able to figure out a way to cope with that weird behavior... Stay tuned :)
[Android Apps and Games] Gunthermic:
With all these bigger and bigger phones we get now, a 2mb file is nothing. LOL. I look forward to seeing more detail mA's.. would be a huge boost.

I noticed the unplugged runs off screen as well, when look at the graph.

Also if you use the HTC or Google clear, the text could be hard to read.

Possible to allow us to change color of the text? Or a option to put a small grey box around it like it does when you have the battery label?
[Android Apps and Games] 3c:
Yes 2Mb is nothing though I still remember the complaints and bad comments about size/moving to SD (widgets can't/shouldn't be moved to SD)... But will definitely be a great improvement :)

I suppose you're referring to the widget text which can be hard to read? I noticed that issue with the half transparent too sometimes! I like the idea of having a text background there... will keep that in mind, thanks! :)
[Android Apps and Games] Gongadin:
Its a very minor thing, and doesn't affect operation at all, but just thought it was weird.
[Android Apps and Games] 3c:
Ah! This screen is a system screen, and I suppose the height is due to the name being a little too long :)

Sorry can't help on this one.
[Android Apps and Games] Gongadin:
No problem. Thought is was probably a Sense thing or system thing anyway, but just curious. The good thing is that it hardly ever shows up in that list anyway, which I'm assuming is a tribute to how little battery consumption it uses :D

Thanks!
[Android Apps and Games] Gunthermic:
Perfect on the text background. Exactly what I was talking about!!!

Will awaiting the more graphics then..

Program is awesome! I love it.. Great piece of work
[Android Apps and Games] brc64:
I have a silly question about the the mAh override. I also have an extended battery, and I notice that the stock battery meter doesn't really recognize it (it will say I have 100% charge when I'm really not yet at 100%). When this part is fixed, does that mean this widget will give me a more accurate percentage than the stock meter? I'm guessing that only your widget will benefit from this override?
[Android Apps and Games] stuntdouble:
Thanks for the reply. I tried putting in the manual battery mA figure before (I think the battery is 8300mA but not 100% sure on it). And it stayed 0mA onscreen for 2hrs, then suddenly it started reporting a figure which was a bit strange as I had it set to update every 60seconds. I checked the folder you suggested and inside there wasnt a current_now file, but there is a voltage_now file. The current it shows while the screen is on in the program history window ... is 32mA. I can't believe this is correct as it's a 10.1" screen.
[Android Apps and Games] warpaper:
Hi ccounotte,

Thanks for your response and I just updated the latest version and done the following:

Clear History

Enable Unlock history time-frame and set max 7 days.

There is no FC when i click history anymore (of course there is no history anymore), will see again in few days time. :D
[Android Apps and Games] 3c:
Indeed without history, no FC... Was it a freeze or a crash? When it happen do you get a dialog where you can send a report to dev?

What refresh rate do you use? default 5 min, or 1 min or even lower?
[Android Apps and Games] Cambienta:
Hello!

I love this application, but I was wondering if I could make two requests concerning the larger battery widget in the pro version:

On the smaller widget, there is the option to remove the little 'battery' picture from the widget entirely, but there is no such option on the larger one. Might this be added eventually?

Additionally, might it be possible, on the larger widget, where there are five slots for information, to have the option to leave certain spots blank, as so to have only, say, three or four types of information showing?

Thanks!
[Android Apps and Games] samadeus:
Could you make this application can be installed in Samsung Galaxy Ace? Thanks.
[Android Apps and Games] phoenixus:
I just installed this, and it looks pretty sweet. I do have a question though:

When I open up the application it shows the following:

Techno:Li-ion 960/1200 mAh

Why are these numbers different and is that normal?
[Android Apps and Games] 3c:
All this is indeed possible :) Just one question though, having less information will leave the remaining space blank without resizing, is that ok? Resizing will be very complex and requires too many layouts!

It should install fine on most device!? what happens when you try to install it on your Galaxy Ace?

Yes, this is normal, the 960 is the remaining capacity, 1200 is the total capacity.

Note that 1200 is the default on phones not reporting the total battery capacity, so you might want to check your actual battery capacity and override that value in monitoring settings.
[Android Apps and Games] phoenixus:
How would I go about this? I was rooted and running a custom rom (this is droid 2) but I returned to stock in anticipation for the next OTA. I have noticied that since I SBF'd, my phone charges to 90% and then stops (it never reaches 100 unless the phone is in my car or in the multimedia dock). How can I fix this?
[Android Apps and Games] Cambienta:
Oh, yes! That's exactly what I was thinking, actually! :D
[Android Apps and Games] 3c:
If your phone is rooted, use the wipe battery stat option in the app (menu + statistics button), that will clear the system battery history and should you get back to normal.

Another good lead is to look for 'Battery Calibration' app on Market, it does help calibrate the battery. There are many threads about battery calibration on XDA that will greatly help you.

Usually it requires running full charge/discharge cycles (make sure the charge mA is at 0 when charging, because even when it's at 100% it can take up-to one hour to fully charge!)
[Android Apps and Games] lampz:
I am Having FC...

and it is really slow when trying to scroll the history ..
[Android Apps and Games] jubilleum:
Where can i find the bigger widgets, not just the 1x1?

(Yeah i know i am a noob :D)
[Android Apps and Games] phoenixus:
What if I am not rooted? Is there another way I can do this?
[Android Apps and Games] 3c:
You won't be able to clear battery stats without root, except if you have ClockWorkMod or something similar to boot from.

The other option is to do a factory reset, though you will loose all data/settings/etc as if you just purchased the phone.

To actually calibrate the battery you may try to use the phone until it switches off by itself, then restart it unplugged a few times (it will not boot completely), then plug it and charge it to full, hopefully battery should reach 100%

In any case, you should search battery calibration on XDA, there are many threads talking about it and some experts that will help you do that. There are many ways to recalibrate your battery.
[Android Apps and Games] MKairys:
Staying tuned!

Looking forward with great anticipation :)

Now I have another issue, perhaps (hopefully) related: on the main screen I see numerous periods of what should show as high usage but in fact mA amd mW usage show flat zero. Screenshot and battery history attached.

Thanks for all ytour good work and for one (or two) of the best system apps in the market!
[Android Apps and Games] gpz1100:
Is the battery capacity (mah) computer by taking available charge left (percentage) * supplied total battery capacity (whatever the rating is), or is it based on something else?
[Android Apps and Games] 3c:
As you said, percentage * total capacity (either provided by phone or manually entered).
[Android Apps and Games] 3c:
It seems not only there is a connection event repeating itself without reason (should be easy to work around), but it seems when unplugged the mA data is not reported anymore by the kernel!

Could you have a look at /sys/class/power_supply/battery and the content of the files during charge, you should find a file providing the mA data, probably one of those:

- batt_chg_current

- charger_current

- current_now

- batt_current

I can make changes so that you get estimates during discharge as I did for some other models. I will also need the exact model number you can find in settings / about phone / phone identity...

Was this behavior different in the past?

Can you check if there are ROM updates for your phone, maybe it will work better too?
[Android Apps and Games] gpz1100:
Thanks for the reply. I just don't know how accurate this is. If you figure a 1500 mah battery, that means it can supply 1500 mA's for a whole hours or 62.5 mA's for 24 hours. Of course our device usage is anything but linear, and calculating this even semi accurately would likely involve a complex formula based on previous usage, cpu load, battery voltage level, full battery charge voltage, etc.

Btw, i've since had to reinstall your app, and it appears the service is now being properly killed when exiting. Same version, same settings as before, just uninstalled, then reinstalled. Go figure:confused:
[Android Apps and Games] phoenixus:
I would like t hold off on rooting until I get the new OTA...would just fully discharging the battery and then charging it full do the trick? Does the phone need to be off while it charges?
[Android Apps and Games] Tinalv:
Lol....:p， I am using this widget now. Like it
[Android Apps and Games] 3c:
It really depends... Usually a full cycle do the trick well, phone being off while charging might help, but as it's very unconvenient you might start a first attempt with phone on. I noticed (on my tests) that discharging completely until phone goes off is more important, even try to start the phone a few times without yet plugging it helps fully discharge the battery.

Note that on my phone now, for months it charges to 100% fine but when reaching between 80-90% it jumps directly to 100% and it's rooted and I tried many calibration scheme detailed over XDA forums, but none worked! I even changed battery and got the same results!?

So now I keep an eye on the average discharge estimates... It's at 20 hours while I use the phone extensively for testing my apps. I get 30+ hours in normal use... which is very good for an old HD2!
[Android Apps and Games] MKairys:
I see batt_chg_current and batt_chg_current_aver. While connected to USB the first contained 167 and the second 168. When disconnected they both contained 0.

Here's what I've got:

Hardware version: i500.4

Model number: SCH-I5OO

Firmware version: 2.1-update1

Baseband version: S:i500.04 V.EA28

Kernel version: 2.6.29

Build number: SCH-I500.EA28

I'm not entierly sure but I think I would have noticed...

How could you be so cruel :) The Fascinate is the only Galaxy S phone left on the planet that has not received its update to Froyo... but I check regularly :)
[Android Apps and Games] Dynde87:
This is so useful - but I'm ironically a little worried about the battery consumption :/