[APP] Battery Capacity Calculator - Desire HD Themes and Apps

Here is a small program that I wrote to calculate your battery capacity.
Requirements:
1. You need to have Current Widget installed and a log file with at least one charge and discharge cycle.
2. The log file should have the default name and location (/sdcard/currentwidget.log)
3. ??????? (you tell me if it doesn't work and we'll try to figure it out)
Installation process :
1. Download from here (or the link at the bottom of the post)
2. Install
3. Run
Here is what you should see:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What it means:
"Best Discharge Cycle" is determined as the longest discharge cycle. This is probably not the "best", but it should work for now till I figure out how to describe in java what I think is best for the discharge cycle.
"Start" / "End" are self-explanatory. Basically when the determined "best" cycle starts and ends.
"Calculated Cycle Capacity" is the capacity calculated over the determined cycle. If the cycle is from 100% to 20%, it will calculate the energy used from these 80% of the battery.
"Estimated Full Capacity" is the estimated capacity from 100% to 0% based on the above value
"Best Charge Cycle" is determined on the energy pumped into the battery. if you have fully discharged your battery and then fully charged it, then the program will choose that charge cycle.
"Mean Estimated Capacity" is the mean value of the charge and discharge cycles' estimated capacity.
What you should know:
1. The shorter the Current Widget period, the better. The above values in the screenshot are for 5 min periods and as you can see the discharge cycle is showing way too high values for the capacity of a 5 months old stock battery. Anyway this is entirely up to you.
2. The program will try to guess if you have turned off your phone during normal use (discharge cycle) for more than 30 mins. If it finds a "gap" in the log, it will discard that cycle and try to find a better one. This might be a problem with longer Current Widget periods, because it tends to "miss" a period here and there. So if you have set up the period for 15 mins, the calculator might mistake a missed period for a turn off.
3. The values are inaccurate (as the capacity of the battery is actually variable) but should serve as a general guide to what is the health of your battery. Probably it will be of more use if you have a spare battery claiming to be "high capacity". With this you should be able to measure how it compares to the stock one. Just remember to wipe the log file when you change batteries .
4. If you like the program and find it useful, the "Thanks" button is located at the bottom of the post .

it says' file not found... can't open...

Please reupload the app. I would like to try it

It FCed on MIUI. Anyway around it?

It worked only once. Now it fc when I run it. If I delete the log it runs but of course says file not found.
Sent from my HTC Sensation Z710e using XDA App

looks realy good...
interesting idea..
but i get fc on my desire hd

Tried running this in the android emulator and it behaves the same, FCs when the log is on the root of the SD card and just says file not found when it isnt there. Quiet annoying because it ran one time and was surprisingly accurate when it did. This would be a great tool for us, any way you can look into it?

didn't open

Found this:
https://market.android.com/details?id=ccc71.bmw&hl=en
Seems to also calculate the mAh of a battery if you drain and fully charge the battery.
Giving it a try too.

Battery capacity "calculation" is trivial.
Anyone knows a better app?

The program FCs on my Desire S.
I notice it takes longer to FC the bigger the log file is, and if says there is no file if I delete it, so it is doing something.
CurrentWidget seems to be logging 5 samples per sample time - could you be dividing by zero when you use the gap between samples in a calculation?
I have attached my currentwidget.log file. The CurrentWidget sample rate is 1 minute.

Related

Memory Usage & Battery Drain Help

Evening folks
I've finally pimped up my Kaiser just how I like it and I need to know if the today pluggins etc I'm using are sucking the life out of my battery.
The screen shot below shows that when I'm running ActiveSync (direct push), PocketCM & SMS/MMS the memory usage is showing as 61%. Is this high?? I've no idea.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Ive included 2 screen shots from Task Mananger to show the usage.
And finally the battery details
I'm running:
S2U2 (animated gif)
PocketCM
Ultimate Launch
SPB Weather
HTC Home
Calendar+
Batti 2.2 (NEW!)
Always running are
ActiveSync (direct push)
SMS
PocketCM
Can anyone let me know if this is normal or if running all of this is going to mean I need to buy a spare battery! I'm clueless.
Cheers
Re: your question of battery usage:
Well - you do not indicate what your usage currently is - with normal usage what is your battery percent available at the end of YOUR day?
What ROM and RADIO are you running?
Have you made any changes recently that made a change in your battery usage?
Are you unhappy with your current battery usage?
I am sure that you know this - but MEMORY usage and battery usage/drain have nothing to do with each other.
Bill
Drain is about 7 hours which is a lot less than before I changed things.
ROM - duttys WM6.1 WWE
Radio - 1.64.08.21
The changes I made were to go from box standard to changing everything....
I had no idea that memory usage had no impact on battery drain? - I just assumed that the more stuff I was running the more drain on the battery.... ? The more stuff I run, the higher the memory usage - that was my thinking....
My question really is are the battery details 'normal' and are the task manager screen shots showing something that is going to zap the battery unless I get rid of it?
I have no idea.......
brandall said:
Drain is about 7 hours which is a lot less than before I changed things...snip..
I have no idea.......
Click to expand...
Click to collapse
OK - first of all there are a lot more people here a lot more qualified to talk about this but here are my thoughts since no one else is chiming in...
1. you can search for a program that shows your actual battery usage - it will show you in milliwatts (I think) so you can see what programs are having an effect on your usage
2. but - there are some easy things that you can do -
a. download Kaiser Tweak and turn off the internet when you are not using it - you can tell the internet that it should disconnect one miinute after you stop using it and to connect only when you need it.
b. you can turn off the GPS so that it is not running all the time - it will definitely eat your battery.
c. make sure that you have your screen set to as dim as you can stand it/as is convenient and that it turns off regularly - I personally manually turn mine off when I am putting it back on my belt.
d. while having a lot of programs on your phone does not eat battery having a number of programs running might - so I would stop programs that you do not need to be running when you are done using them (close out of the programs before you put it back on your belt)
3. my experience on this phone tells me that it take 24-48 hours on a new ROM before your battery usage information is reasonably accurate - till then it has no idea what is going on and can be much better than it really is or much worse than reality.
I hope that this helps you some,
Bill
I'm not sure about which apps you are using that may be causing battery drain....but what helped my battery life drastically was finding a CommManager that allows you to turn off 3g. It may prove to be even more beneficial for you since you are using direct push....you won't believe the difference it makes.
Search for "3g comm manager" if you're interested. There are several of them out there. I'm using one from Schap's, but I know Dutty and a few others have created some good ones too.
......I've also tried doing step 2a in the post above, but actually found that I used far less battery just keeping my connection connected on Edge than when I had it disconnecting every minute on 3g (my email was checking every 15 minutes....and it seemed that going through the connection process draws quite a bit of power in itself....so for direct push, it may be counter-productive).
Thanks for your replies - I have advanced config so I'll have a play with that. I think the Battery Status pluggin has the usage, so I'll install that.
I can disable 3g in the comm manager, but that then seems to stop HSDPA kicking in when I use the internet.
However, going into comm manager before opening the internet is hardly going to take up years of my life......
Could be a nice tweak to add in the future though - 3g off until internet explorer starts.....
Cheers

Sudden battery life reduction LA4

Ialways had remarkable battery life witg my note..i updated to LA4 2.5 weeks before and it improved my battery life. But for the last two days, battery life is terrible.pls gve ne yr inputs.attaxhed is sxreenshot..my usage is always consistent
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my GT-N7000 using XDA App
Sometimes I get this issue, and I can tell within the first 3% of my phone's battery dropping. The first thing I do is a battery pull, that fixes it.
if that doesn't work it must be a setting or an application.
EDIT: from your usage, it seems that your phone isn't going to sleep. Try an app called Badass Battery Monitor from the market. It will show what apps are using your battery life. link here: Badass battery monitor
Try deleting some recently installed apps.
Sent from my GT-N7000 using XDA App
I had the same problem. First couple of days I got way more than a day and after that it got like my two year old Droid; It sucked.
Turned out that K9 was a battery hog and drained the battery for about 30 percent. Threw it out (though you can also do some adjustments to it) and got my old battery life back. Have a look at the stats to see what is taking up your battery and try to find a solution.
There's something preventing your phone from going to deep sleep. Take a look at 'Awake' and 'Screen On' lines at the bottom of your screenshot:
The right hand side of those two lines are as it should be - the phone is awake when the screen is on.
But the left hand side is wrong - your phone is awake with no screen on (meaning no user activity). Could be a rogue app running in the background and consuming battery juice. Why don't you investigate what you have installed in the past couple of weeks and see if some app is misbehaving.
Also, your WiFi is constantly on (look at the continuous fat line at the bottom). You'd do well to switch it off when not needed, or set WiFi sleeping policy in Settings/Wireless and Network/Wi-Fi Settings/(hit Menu button once inside)Advanced/Wi-Fi sleep policy.
Hope this helps.
I had exact same problem. I tested by removing recently installed apps until I found the culprit. Turned out to be Google+ in my case. Once removed battery was back to normal.
Some more tips on prolonging your battery life:
1. Flash and test different kernels in case of battery drain. Some are easier on your battery than the others.
2. Use Titanium Backup to freeze or uninstall crapware. This list is a useful guide as to what can/can't be removed from your system: https://spreadsheets.google.com/spr...SENVeXlqUm5vV0E&single=true&gid=0&output=html
3. Set Brightness to low value, disable autobrightness
4. Disable or scale down vibration and haptic feedback
5. Don't let your accounts sync automatically
6. Set screen timeout to 15 seconds
7. Disable fast dormancy (dial *#9900# and do it from there)
8. Don't keep your WiFi/Packet Data on all the time
9. Disable location services via wireless networks - are you travelling that fast that you need those?
10. GPS is heavy on the battery, therefore use it sparingly
Folks I followed some of these tips and this its the battery life I an getting on checkrom v5. Better than my old captivate....
Sent from my Samsung Galaxy Note using Tapatalk
Thanks all
Sent from my GT-N7000 using XDA App
Nice info.thx!
Hi chasmodo,
thank you very much for this helpful google-list.
chasmodo said:
3. Set Brightness to low value, disable autobrightness
Click to expand...
Click to collapse
I can't see a good reason for disabling autobrightness... in my opinion this option saves more power (in the long run indeed!) than its backgroundprocess will cost.
OFFTOPIC: Your avatar... this is german bass legend Eberhard Weber, correct?
Best regards
[bs]
BrainSex said:
OFFTOPIC: Your avatar... this is german bass legend Eberhard Weber, correct?
Click to expand...
Click to collapse
Of course.

Battery life in offline mode

hello, as anyone tryed how is the battery life on a full charge - on airplane mode?
can we get near a week of usage watch/chrono etc?
thank you
Bluetooth consumes but a fraction of the neergy the watch needs - most of it is needed for display, memory, processor... I don't think you'll see a much improved life in offline mode - maybe just because you won't be getting notifications, but that would still save just a small amount of energy the watch usually needs.
I tested at night with screen Off and airplane mode. It drain 9% in 8hours.
And that is about the same drop I have leaving the watch overnight: connected just the "Always On" on off. As Zvieratko says, very little impact, only the screen is relevant to fast or slow battery consumption.
The battery life sounds disappointing on the LG G Watch R. I really like the watch and want to get it but I want to be able to stretch the battery life to a week so I only need to recharge it once a week.
Right now I'm using Samsung Gear Fit in offline mode, Display Activation on manual, monitoring my steps, only connecting via BT to my Note 4 before bed each night to sync. With its puny 210mAh (vs Watch R's 410mAh) I am able to make it last 7-8days. With BT on all the time, maybe 4 days.
In airplane mode with the display off I get about 1% usage every hour, so I guess it will last about 4 days on a single charge, however I see no point in this mode. I want to be able to look at it at any time so display is always on, and I want to see my notifications, so it's never in airplane mode. It lasts between 1.5 and 2 days like this.
Since I take it off before I go bed anyway I don't see a problem. The charging cradle is nice, it's not like I need to plug a lead into it. Now that would annoy me.
Of course it could be a problem if you are camping - sorry, can't tell you the time, my watch only lasts a day on a full charge.
speckles said:
Of course it could be a problem if you are camping - sorry, can't tell you the time, my watch only lasts a day on a full charge.
Click to expand...
Click to collapse
But now we have a lot of USB (tiny) power bank we can charge several time your watch, so you can have it on your bag
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
dersie said:
But now we have a lot of USB (tiny) power bank we can charge several time your watch, so you can have it on your bag
Click to expand...
Click to collapse
Or considering my watch only has a 400mA battery, it could quite possibly recharge of a solar cell stuck to my back pack

Device is awake more time, than it tells me in BBS (wakelock problem)

Hi,
I have problem with my Xperia Z3+ (E6553, firmware version 32.2.A.0.305 rooted). I use it everyday, and I don't use it a lot (about 1-2h SOT), but still my wakelocks are very high, and I can't target them. After a day of use, my battery is about 10-30 %, and this is below expectations. I have WIFI, NFC turned off for most of the time, the bluetooth module is active to connect with Smartwatch (Sony SW2), and transmission is always on.
I also use Amplify and Greenify.
According to BetterBatteryStats, in Kernel Wakelocks, I have 45 min of PowerManagerService.WakeLocks (which is sum of all partial wakelocks):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
, but in Partial Wakelocks its about 15 mins. Also I'm aware, that some of the partial wakelocks are triggered at the same time:
also I include screenshot of Alarms - there are lots of it, but it doesn't show duration:
, and process:
So, my question is: what is consuming the power, what's with "lost" wakelock time, and how to measure it?
I also send screenshot from WakeLock Detector:
and system battery usage:
Please help, because I have 3000 mAh battery in smartphone, I do nearly nothing on it, and my battery is depleted after less than day.
Tbh I don't really see a problem here. I might be wrong, but 5%/hr drain with bt and sync always on and light usage seems completely normal to me.
Only thing I can suggest is to disable amplify for a few days and see if you blocked something you weren't supposed to, but i'm skeptical that you'll find anything wrong. That bt is triggering alarm more than every minute...can you post cpu states bbs page?
Rudjgaard said:
Tbh I don't really see a problem here. I might be wrong, but 5%/hr drain with bt and sync always on and light usage seems completely normal to me.
Only thing I can suggest is to disable amplify for a few days and see if you blocked something you weren't supposed to, but i'm skeptical that you'll find anything wrong. That bt is triggering alarm more than every minute...can you post cpu states bbs page?
Click to expand...
Click to collapse
Well I disabled Amplify and we'll see what it changes.
BT is triggering alarm very often probably because of Smartwatch, but I can't target any specific app for SW2 that could do it.
Also I wonder, what's with other Kernel Wakeloks such as qpnp_fg_memaccess, netmgr_wl, or event1 to event6?
I'm sending today's screenshots from BBS including processor stats:
Are you new to this phone? Are you comparing it to what you had before?
In my experience 4.5% /hr drain with 90min screen on time doesn't really seem like it has anything wrong. After 12hrs (a full day) you have half battery left and that's not bad based on what i'm used to...
Phone was on for 2hrs with screen off but thats probably due to bt and smartwatch sync..I have trouble finding anything wrong here :/ maybe somebody else will have better insight
Rudjgaard said:
Are you new to this phone? Are you comparing it to what you had before?
In my experience 4.5% /hr drain with 90min screen on time doesn't really seem like it has anything wrong. After 12hrs (a full day) you have half battery left and that's not bad based on what i'm used to...
Phone was on for 2hrs with screen off but thats probably due to bt and smartwatch sync..I have trouble finding anything wrong here :/ maybe somebody else will have better insight
Click to expand...
Click to collapse
Well I tried to turn off smartwatch, and "awake on screen off" dropped down to 10%... (from about 20%). So I think it's smartwatch related. Also bluetooth alarm dropped off to 4/h instead of 1 per min. I don't believe, that smartwatch synchronization is consuming so much power (if so, there would be already several threads about it), and I suspect one of smartwatch apps. But how to check which app exectly is draining power? It doesn't show on BBS nor WakeLock Detector. Is there some other app that can track it?
I'm sending list of smartwatch apps installed - maybe one of them looks to you suspicious?:

How To Guide Configs control file for Battery Charge Limit (MIUI 12-Android 11)

Sorry for my bad english
Yeah after read this thread
[APP][ROOT][4.0+]Battery Charge Limit v1.1.1
Please read the following before installing the app: This app requires a rooted mobile (Android 4.0 or later) Before uninstalling the app, disable limit in the app (if forgotten, reboot after uninstalling) Usage instructions and app...
forum.xda-developers.com
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I've checked and found out control file on my phone Mi11ultra's control file for battery charge limit worked. Battery Charge Limit on Android 11 not work like before we known
First, your device require root permission to run Battery Charge Limit, then go to setting
Turn on "Configurable CTRL File Data" and touch "Configure Control Data" then touch "Understand" and type like below:
/sys/class/qcom-battery/input_suspend
0
1
then touch "UPDATE CONTROL FILE DATA" and done, battery charge limit worked
You guys can watch video below for sure: From original control file not work then after re-config control file and work perfectly.
P/s: From 84% to 85% i made app for auto charge limit itself and you guys can go to end of video for result.
Good health for battery charge overnight
diorlee90 said:
Sorry for my bad english
Yeah after read this thread
[APP][ROOT][4.0+]Battery Charge Limit v1.1.1
Please read the following before installing the app: This app requires a rooted mobile (Android 4.0 or later) Before uninstalling the app, disable limit in the app (if forgotten, reboot after uninstalling) Usage instructions and app...
forum.xda-developers.com
View attachment 5341107
I've checked and found out control file on my phone Mi11ultra's control file for battery charge limit worked. Battery Charge Limit on Android 11 not work like before we known
First, your device require root permission to run Battery Charge Limit, then go to setting View attachment 5341117
Turn on "Configurable CTRL File Data" and touch "Configure Control Data" then touch "Understand" and type like below:
/sys/class/qcom-battery/input_suspend
0
1
then touch "UPDATE CONTROL FILE DATA" and done, battery charge limit worked
You guys can watch video below for sure: From original control file not work then after re-config control file and work perfectly.
P/s: From 84% to 85% i made app for auto charge limit itself and you guys can go to end of video for result.
Good health for battery charge overnight
Click to expand...
Click to collapse
Totally unnecessary on a phone that charges this fast but good job anyway.
speedtripler said:
Totally unnecessary on a phone that charges this fast but good job anyway.
Click to expand...
Click to collapse
I actually think it's very useful if you wanna preserve your battery health a bit more. When I charge the phone it's difficult to unplug it right on 80% unless you're constantly checking the phone since it charges that fast. I usually get distracted and boom, 100% charge. With this app the phone can automatically stop charging at a certain percentage.
Kluxe Nobody said:
I actually think it's very useful if you wanna preserve your battery health a bit more. When I charge the phone it's difficult to unplug it right on 80% unless you're constantly checking the phone since it charges that fast. I usually get distracted and boom, 100% charge. With this app the phone can automatically stop charging at a certain percentage.
Click to expand...
Click to collapse
A phone is a disposable item and batteries are cheap....
I don't have the time to try and keep the charge level between 30 and 80%
New battery will probably cost $10-20 by the time you need one on Alibaba
is it still working? Do you have any problem? Do you recommend?
I have tried but it is not working my phone. Xiaomi Mi note 10 lite android 11 miui 12.5.2
speedtripler said:
A phone is a disposable item and batteries are cheap....
I don't have the time to try and keep the charge level between 30 and 80%
New battery will probably cost $10-20 by the time you need one on Alibaba
Click to expand...
Click to collapse
i believe the same mate.after about 2 years maybe i dont even have this phone or if i still have it is really no problem to give even 30$ for full original battery
I need for Xiaomi Note 10 Pro.
Any Config files?
Please help me
Aung Win Htut said:
I need for Xiaomi Note 10 Pro.
Any Config files?
Please help me
Click to expand...
Click to collapse
Hello Mr Win. It should be the same for all Xiaomi devices.
Finally, now its working on my Xiaomi Redmi Note 11 Pro 5G. Thank you so much
How can we fix the default settings when we uninstall the app.
Hi
I use the entry ....but fir me dont Work
My device Xiaomi Mi 11 Ultra

Categories

Resources