[APP 2.1+] Battery Monitor Widget 3.0

Status
Not open for further replies.

3c

Senior Member
Jul 19, 2005
2,729
1,856
193
www.3c71.com
Dear users,

Considering all 3C apps are now based on the same source code, they all behave the same way, and will exhibit the same issues. Any queries will also likely applies to all apps.

To make my life easier while continuing to provide support here (and start with a clean slate), I decided to close all my app threads and open a fresh new thread here.

With your continuous help and support, the past 4 years have been a great adventure and experience. Let's take a fresh start and continue this amazing adventure.

Thank you all!






The most complete tool to manage your battery: Shows historical data (%, mA, mW, mV and temperature), calculates estimated run-times and battery aging, helps calibrate battery, and improves your battery run-time.

NB:
◊ Please check app status tab for monitoring status and mA/mAh data source
◊ The app displays the % remaining, voltage and temperature data reported by Android OS
◊ Android 4.4 (KitKat): Battery statistics require a rooted device
◊ Requires INTERNET permission to download external notification icons

► Pro version has all features unlocked and no ads
◊ Wide (2x1) and graphic (2x1, 3x1, 4x1) widgets
◊ Export data to System Tuner Pro
◊ Update battery capacity based on measured data
◊ Keep information of unlimited number of batteries (2 in free)
◊ Add history markers manually or automatically on boot, ROM/kernel/battery changes
► Pro version has all features unlocked and no ads

► Display all information using great looking graphics, fully scrollable and zoomable.

► Use additional packages to show great looking icons in notification bar

► Display historical graphics or battery data on your home screen using widgets of various sizes!

► Triggers alarm based on any battery data

► Manually resets battery statistics on rooted phone

► Calculate remaining time while unplugged or charging (AC/USB/Wireless)

► Calculate actual battery capacity (mAh)

► Support multiple batteries

► Support Motorola Defy/Atrix 1% reporting

► Online help accessible from app

► Export data to System Tuner Pro to analyze which process is responsible for battery drain!


◊ Lowest battery consumption on the market: https://plus.google.com/b/106924681...768&sqsi=65194c1a-d82a-4ba6-b2a6-4207a7dcba36


Issues with current mA or capacity mAh?

Please mention this in a support request from app settings, help and support so we can provide the appropriate option to use in 'mA retrieval method' of battery / monitoring settings and add out-of-the-box support for your device. All necessary information is provided in the request's attachments.
 

Attachments

Last edited by a moderator:

3c

Senior Member
Jul 19, 2005
2,729
1,856
193
www.3c71.com
Battery Consumption

Here is some screenshots to show how much CPU (battery) the app is consuming!

cpu_freq: shows CPU frequency over time, mostly 245MHz, and as everything will be slower this obviously increase CPU times

It also shows BMW used 10.94 seconds on a 6 hours time-frame, eg 0.05% overall consumption... @245Mhz!

charging: compares charging (actually full battery) and non-charging time, obviously BMW consumes more when phone is fully charged and plugged, something to improve :)

Confirms the 0.05% overall consumption (1.22% * 4.15%)

sleep_mode: phone sleeping, screen off... 0.018% consumption! though the 2 peaks are strange, not sure I switched on the phone or not... Recording phone state will be very usefull :)
 

Attachments

Last edited:

3c

Senior Member
Jul 19, 2005
2,729
1,856
193
www.3c71.com
It does not read the current on a Samsung Fascinate.
Is it only for Motorola?
As far as I know it works for all HTC and Motorola, but it seems most Samsung phones don't get current data at all when based on stock ROM.

My wife has a Samsung S and it gets only estimated values, you're getting the same?

If you get a steady 0mA, there might be hopes, as it means the app found a file that should contain the data but it's either empty or not populated with expected data.

If so let me know and if you have some time to investigate we might find a solution.
 

worwig

Senior Member
Jan 19, 2008
334
18
0
As far as I know it works for all HTC and Motorola, but it seems most Samsung phones don't get current data at all when based on stock ROM.

My wife has a Samsung S and it gets only estimated values, you're getting the same?

If you get a steady 0mA, there might be hopes, as it means the app found a file that should contain the data but it's either empty or not populated with expected data.

If so let me know and if you have some time to investigate we might find a solution.
It is always 0. But I found out later in the day it does go to about 162ma when plugged in. Then back to 0 when un plugged.

Let me know how I can help.
 

grooltor

Senior Member
Mar 18, 2010
324
112
73
43
Bologna
Hi dude.
Yesterday I bought BMW Pro from the Market. I really liked the free version, so I decided you deserved some bucks

However, I have a problem with graph widgets: they "die" after a while!
Let me explain this better: I use 2 graph widgets (one for available% and one for mA), but they stop updating after some time. In addition, when I click on them (therefore going to the main app), I don't have "Widget Preferences" under settings anymore for that specific widget!
I use even a third widget, the "standard" one, but this fortunately keeps on updating and giving me access to "Widget Preferences" in settings.
My device is HTC Desire, running a Desire Z (G2) ROM port, therefore using latest 2.2.1 Sense UI (1.72 WWE base, just for info). I really don't think it's ROM or device related, however.
Maybe you could look into this to find where's the problem?
Thanks in advance.
 

dsMA

Senior Member
Jun 4, 2010
427
6
0
Sacramento
This looks and sounds like a really cool battery widget. The only thing missing seems to be an estimation of how much time is remaining on the battery. Izkata (from this forum) creator of Battery Diviner has developed some algorithms used in monitoring and thus estimating how much time is left on your battery. Here is a link to his thread:
http://forum.xda-developers.com/showthread.php?p=9490211#post9490211

It would be awesome if the two of you could get together and produce a combined app that utilized your graphics and low cpu overhead with his algorithms.
 

3c

Senior Member
Jul 19, 2005
2,729
1,856
193
www.3c71.com
On Motorola Defy I only get estimated mA. Does this mean this phone is not supported ?
Getting only estimates means no known system files have been found by the app... So your phone is not supported (hopefully yet) Please read post #2 for a way to help get your phone supported if possible

It is always 0. But I found out later in the day it does go to about 162ma when plugged in. Then back to 0 when un plugged.
Let me know how I can help.
Do you get anything but 162mA during charge (on AC and USB) ?

When 0 is reported that usually means the app found a known file to report the mA, but there might be other kown file present in your phone that would contain the actual data... Every manufacturer seem to use different battery driver reporting data in different files!

Please use post #2 to start investigating and looking at those systems files content.

Hi dude.
Yesterday I bought BMW Pro from the Market. I really liked the free version, so I decided you deserved some bucks

However, I have a problem with graph widgets: they "die" after a while!
This will be solved in an upcoming update later this evening, as the code as changed quite a lot to improve memory/cpu usage, it actually broke the update flow of the graphic widgets.

Thanks for your support!

This looks and sounds like a really cool battery widget. The only thing missing seems to be an estimation of how much time is remaining on the battery. Izkata (from this forum) creator of Battery Diviner has developed some algorithms used in monitoring and thus estimating how much time is left on your battery. Here is a link to his thread:
http://forum.xda-developers.com/showthread.php?p=9490211#post9490211

It would be awesome if the two of you could get together and produce a combined app that utilized your graphics and low cpu overhead with his algorithms.
Will indeed be a great idea...

Though I'd like to improve some areas first but those are quite toughs:
- better mA estimates for phone without data
- investigating phones without mA data
- further lowering cpu overhead :)
 
Last edited:
  • Like
Reactions: ckck543

dsMA

Senior Member
Jun 4, 2010
427
6
0
Sacramento
I am happy to hear that you thought my idea of a combined app was a good one.

Just after I posted my previous comment in your thread I went over to his and made a very similar posting. His response to me was that he would prefer to keep the apps separate so that each of you can concentrate on what you know how to do best, but came up with this very interesting alternative idea that I am very support of:

Originally Posted by Izkata

EDIT: There might be a way for ccounotte's app and mine to "talk" to each other, probably through intents, so we can each do what we do best, without creating a collaborated app. For example, the Battery Monitor Widget can request current prediction information, which the Battery Diviner would calculate and return, then ccounotte can display it to the user.​


Again let me say that this idea sounds really awesome. idk if you have pmed him but I would highly encourage you to do so so.
 
  • Like
Reactions: docland

Try4Ce

Senior Member
Jul 29, 2010
1,843
460
0
NRW
Sorry, didnt download yet. But is it possible to hide the background graphics? It looks awesome, but wouldnt fit into my homescreen style... Yeah, im a little picky about that ;-)
 

3c

Senior Member
Jul 19, 2005
2,729
1,856
193
www.3c71.com
Sorry, didnt download yet. But is it possible to hide the background graphics? It looks awesome, but wouldnt fit into my homescreen style... Yeah, im a little picky about that ;-)
I'm working on it, a 'no background option' leaving everything else (icon+values+indicator) in place... to fit the custom ROM style from MDJ :)

Should be available soon!
 

joeuser

Senior Member
Apr 9, 2007
60
11
0
samsung galaxy gt i9000

samsung galaxy with darkys rom 9.0 only shows estimation of current. and the values are pretty useless since the reported voltage seems to fluctuate a lot (ie goes up depending on device usage even when no charger is connected).

any chance to find the real current for this device somewhere?

> adb ls /sys/class/power_supply/battery
000041ed 00000000 4d3d757a .
000041ed 00000000 4d3d757a ..
000081a4 00001000 4d3d757a uevent
0000a1ff 00000000 4d3d757a subsystem
0000a1ff 00000000 4d3d757a device
000041ed 00000000 4d3d757a power
00008124 00001000 4d3d757a type
00008124 00001000 4d3d757a status
00008124 00001000 4d3d757a health
00008124 00001000 4d3d757a present
00008124 00001000 4d3d757a technology
00008124 00001000 4d3d757a capacity
000081b6 00001000 4d3d757a batt_vol
000081b6 00001000 4d3d757a batt_vol_adc
000081b6 00001000 4d3d757a batt_vol_adc_cal
000081b6 00001000 4d3d757a batt_temp
000081b6 00001000 4d3d757a batt_temp_adc
000081b6 00001000 4d3d757a batt_temp_adc_cal
000081b6 00001000 4d3d757a batt_vol_adc_aver
000081b6 00001000 4d3d757a batt_test_mode
000081b6 00001000 4d3d757a batt_vol_aver
000081b6 00001000 4d3d757a batt_temp_aver
000081b6 00001000 4d3d757a batt_temp_adc_aver
000081b6 00001000 4d3d757a batt_v_f_adc
000081b6 00001000 4d3d757a charging_source
000081b6 00001000 4d3d757a vibrator
000081b6 00001000 4d3d757a camera
000081b6 00001000 4d3d532b mp3
000081b6 00001000 4d3d757a video
000081b6 00001000 4d3d757a talk_gsm
000081b6 00001000 4d3d7009 talk_wcdma
000081b6 00001000 4d3d366d data_call
000081b6 00001000 4d3d757a device_state
000081b6 00001000 4d3d757a batt_compensation
000081b6 00001000 4d3d757a is_booting
000081b6 00001000 4d3d757a fg_soc
000081b6 00001000 4d3d757a reset_soc
000081b6 00001000 4d3d757a charging_mode_booting
000081b6 00001000 4d3d757a batt_temp_check
000081b6 00001000 4d3d757a batt_full_check
 

3c

Senior Member
Jul 19, 2005
2,729
1,856
193
www.3c71.com
samsung galaxy with darkys rom 9.0 only shows estimation of current. and the values are pretty useless since the reported voltage seems to fluctuate a lot (ie goes up depending on device usage even when no charger is connected).

any chance to find the real current for this device somewhere?
Estimation will be much improved in the next version. For a real value unfortunately your phone/kernel doesn't provide the data at this point.

I'm starting to suspect Samsung battery not to have the info in the first place!?

Do you have a way to install a customer kernel such as CyanongenMod, this one has full support for all battery details!
 

ibap

Member
Nov 28, 2008
12
0
0
Charge/Discharge rate

When I was running Windows Mobile, I had an app that would display both charge and discharge rates at the same time. The utility of this is that when you've plugged into a really bad USB port from a power standpoint, you can see it right away, rather than waiting and finding out your phone is not keeping up with the discharge rate, and you'll never get your battery charged, or maybe you would if you turned off the screen.

Perhaps the information is there (I've only had your app for a few hours) but I'm not sure where to find this, or which pieces of data to compare. I can see that the prediction of time to full charge might serve nearly the same purpose, but I'd like to have this data if it is available and I'm just not seeing it.
 

3c

Senior Member
Jul 19, 2005
2,729
1,856
193
www.3c71.com
I can see that the prediction of time to full charge might serve nearly the same purpose, but I'd like to have this data if it is available and I'm just not seeing it.
I suppose you're looking for the mA charge/discharge data? If so, it is displayed on the main screen (top-right corner) and in the widget (default on top of the central icon).

Sorry, didnt download yet. But is it possible to hide the background graphics? It looks awesome, but wouldnt fit into my homescreen style... Yeah, im a little picky about that ;-)
The latest version has an option to hide the background almost completely (only the right scale border is there). Is that what you were looking for?
 

dertester123

Senior Member
Oct 11, 2008
960
202
0
REALLY Love this app. Using it for so long now. I love the new estimate feature.

Like in my market comment, it would be great to add the running processes to the logfile. Would be very helpfull to find apps that cause heavy drain.
 

JanHimpIII

Member
Jan 18, 2011
37
7
0
Motorola Defy: Capacity in 1% steps

This app is really great. Very usefull to check change on battery usage after changes in apps SetVsel etc.

But on Motorola Defy the capacity is only shown in 10% steps (and 5% below 20%) in /sys/class/power_supply/battery/capacity

The value in 1% steps is availlable too:
/sys/class/power_supply/battery/charge_counter

(Found the information here: http://forum.xda-developers.com/showthread.php?t=927297)
some icons make allready use of the second value like MotoCharge or CircleBatteryWidget.

It would be very nice to have the capacity in 1% steps in the charts.

Thanks again for the really good work!
 
Last edited:

3c

Senior Member
Jul 19, 2005
2,729
1,856
193
www.3c71.com
Like in my market comment, it would be great to add the running processes to the logfile. Would be very helpfull to find apps that cause heavy drain.
What about using PMW? I plan to load battery history in it and display task usage along battery data! Will that be satisfying?

But on Motorola Defy the capacity is only shown in 10% steps (and 5% below 20%) in /sys/class/power_supply/battery/capacity

The value in 1% steps is availlable too:
/sys/class/power_supply/battery/charge_counter
Received so many requests, I suppose I will add it in an upcoming update :)
 
Status
Not open for further replies.