[GUIDE][NOT SPAM] Enlarge your battery life : an attempt to fix the battery drain

Search This thread

BorisDeviant

Senior Member
Jun 20, 2008
159
220
Lyon
Having an abnormal battery drain on our phone is really frustrating, and finally prevents us from using it normally. Smartphones have a short battery life in general. Do not expect a two weeks-battery life like your old fashioned monochrome Nokia had… But with finding out what’s eating up your battery, and fixing it, you should be able to use your device for about 35-48 hours with ‘normal’ use. This guide will consider you own a Desire HD (even if some advices may be applicable to many other android phones), with a Rom based –at least- on a 1.72.xxx Rom (this base is known for greatly improving battery life over 1.32.xxx based-Roms).

Note to the admins : maybe not in the right section, but questions about this topic often arise in this section... Feel free to move...

It's a bit long and formal, but I tried to be as precise as I could. ;)


1. Evaluating the battery drain
1.1- Setting up CurrentWidget
1.2- Calibrating the battery
1.3- Monitoring your battery behaviour
2. Finding what is causing the battery drain
3. Fixing the battery drain
3.1- Processes heavy on CPU, GPS, Sensors
3.2- Processes preventing ‘deep sleeping’
3.3- Taskillers
3.4- Radios
4. Battery still draining insanely fast : what to do now ?
5. General tips


1. Evaluating the battery drain

Battery life length is mainly something subjective. You can not compare your battery life to someone else’s, even not with your previous battery cycle. It all comes down to how you use your phone : some activities are known to be real battery hogs (like navigation, watching a movie, recording an HD-clip) and will remain whatever you will do. To eliminate the subjective ‘part’ of our process, we need to measure if you are suffering from an unusual battery drain.​


1.1- Setting up CurrentWidget

First, we need to have a measure tool. CurrentWidget will be perfect. Download it and install it off the market. Add the widget to your desktop, and when prompted to configure the widget, tick ‘log file’, you can leave the ‘Update Interval ‘ at 60 seconds.

attachment.php


You end up with a widget that displays the current current (…) in mA (milliampere). Basically, this is the battery flow, measured each minute. More importantly, CurrentWidget generates the file ‘sdcard\currentwidget.log’ which contains the raw measures, with their matching time. This file can be open with any text editor (and most file explorer like ES Explorer, or Root Explorer).​


1.2- Calibrating the battery

Then, you should fully charge your battery. Not plug it off when the led turns green, but when Current Widget stops reporting a charge (it slowly decreases). You will see that it takes sometimes more than 1 hour after the green led, to fully charge your battery.​


1.3- Monitoring your battery behaviour

To evaluate the behavior of your phone, leave it asleep (but not shutdown) a whole night, or at least 2 consecutive hours. Do this with Bluetooth, GPS, and WiFi OFF, data connection ON. Then open the log file. A typical and normal log should look like that :

2011/02/01 03:48:12,-5mA,55%
2011/02/01 03:53:20,-3mA,55%
2011/02/01 03:57:54,-66mA,55%
2011/02/01 04:07:46,-5mA,55%
2011/02/01 04:08:51,-5mA,55%
2011/02/01 04:18:44,-7mA,55%
2011/02/01 04:23:20,-3mA,55%
2011/02/01 04:33:13,-3mA,55%
2011/02/01 04:38:19,-3mA,54%
2011/02/01 04:48:12,-3mA,54%
2011/02/01 04:53:20,-3mA,54%
2011/02/01 04:58:12,-3mA,53%
2011/02/01 05:08:20,-3mA,53%
2011/02/01 05:18:13,-8mA,53%
2011/02/01 05:28:05,-5mA,53%
2011/02/01 05:37:58,-5mA,53%
2011/02/01 05:48:44,-5mA,53%

You see here that the battery drain flow is continually between 3-8 mA, with only one peek at 66 mA. It results in only 2 % battery lost in 2 hours. When in standby, your phone should lose roughly 1 %-charge per hour.

If you can use your phone to heat your lounge and your log look more like this one :

2011/02/01 03:48:12,-164mA,55%
2011/02/01 03:53:20,-225mA,54%
2011/02/01 03:57:54,-147mA,54%
2011/02/01 04:07:46,-213mA,52%
2011/02/01 04:08:51,-110mA,52%
2011/02/01 04:18:44,-236mA,50%
2011/02/01 04:23:20,-189mA,49%
2011/02/01 04:33:13,-264mA,47%
2011/02/01 04:38:19,-235mA,46%
2011/02/01 04:48:12,-199mA,44%
2011/02/01 04:53:20,-236mA,43%

It’s good news ! There is room for improvement !​


2. Finding what is causing the battery drain

At this point, you know that something is eating up your battery. The key is to find out which setting or application (or combination of both) is causing this.

Open the dialer and press *#*#4636#*#* or download and install ‘Spare Parts’ and go in ‘Battery History’. In the second box set ‘Total since boot’. Then let’s have a look at the first box settings.

CPU usage :

A reasonable repartition should look like that :
attachment.php


If one or more Items are much more CPU-intensive than others, you have identified the culprit (or at least a part of them).

Proceed the same way with GPS and Sensors usage and look for any abnormal intensive processes.

If at this point you have identified one or more processes, go to point 3.1

Finally select ‘Partial Wake Usage’. If your phone suffers from battery drain, it is likely you will have one or more process(es) over represented in this ‘Partial Wake Usage’. It means these applications or settings (if the main culprit is 'Android System') are preventing your phone from going standby, keeping it in a partial wake state, which is obviously less battery-efficient. In this case, directly go to point 3.2​


3. Fixing the battery drain
3.1- Processes heavy on CPU, GPS, Sensors

- If the main processes you identified are 3rd party applications, there is not much to do. Use common sense : for example if the draining culprit is a backup app, try to disable automatic backup, permanent monitoring, or any option that could use your phone even when standby. Each application has its own settings. Ultimately, you should uninstall these apps, and get in touch with the developper to inform him about the issue.

- If the main processes you identified are or is a stock app (ie HTC Sense account, Gmail, etc.) :
. if applicable, you should delete your ‘HTC Sense account’ which is know to be heavy on CPU
. if you identified Gmail, Picasa, or any other Google service, try lowering the synchronization frequency (or disabling it to see if it improves your battery life)
. stock apps can also drain battery when you installed a Rom over a previous one without completely wiping your system. Keep in mind that the results log I presented at the beginning are obtained with synchronization and stock app with their default settings. So on a healthy system, stock apps should not cause battery drain (again, appart from HTC Sense Account which is crap)

At this point, you should repeat point 1 and have a look at your log to see if things have improved. If the answer is ‘No’, go to point 4.​


3.2- Processes preventing ‘deep sleeping’

Some apps or settings can prevent your phone from going standby even if screen is off. It means your CPU can still be used at 100 %, and your battery will keep on draining, nearly as if it was awake.

It the process you identified in point 2. is a 3rd party app, there is not much to do. Use common sense : if the draining culprit is a backup app, try to disable automatic backup, permanent monitoring, or any option that could use your phone even when standby. Each application has its own settings. Ultimately, you should uninstall these apps, and get in touch with the developper to inform him about the issue.

Often, you won’t have much information about what is preventing your phone from sleeping. The main process is ‘Android System’. There has been much discussion over the net about this issue.

There has been many cases reported where WiFi when turned on, would keep your phone in ‘Partial Wake’. Even when turned off, the phone would not return to normal behaviour. In this case the only solution is to reboot with WiFi off. This is not a global issue, I did not suffer from it, but take the time to investigate this path. If you confirm you have this issue, there is not known solution yet. I would advice you to go to point 4.

By experience I can also tell you that installing a Rom over a previous one without wiping all can lead to some erratic issues. You should always backup your important data, then wipe all (data, dalvik, cache, etc) and then only install your new Rom. Some backup apps (like Titanium Backup) offer the possibility to save and restore system settings. This can also cause issues. You should only save data (sms, mms, bookmarks…) but not settings.​


3.3- Taskillers

If you use a taskiller, simply don’t. Really. Or at least, disable any option that allows the taskiller to permanently monitor and manage your memory.

Taskillers are supposed to speed your phone by killing tasks when the Memory is ‘full’ or above a defined limit. The problem is that it interferes with Android built-in (and efficient) memory management. You have to understand that what can slow down your phone is not Memory saturation (because Android will start closing apps on its own before reaching this situation), but CPU usage. You can still use a taskiller to see which app are eating CPU cycles and close them. But again, don’t let any 3rd-party app manage your memory. It will only bring you force-closes, battery drain, and various unpredictable issues.​


3.4- Radios

I won’t be very talkative on this topic, but if your phone is fully rooted, ENG-OFF and Radio S-OFF, you should really try a few radios. Some of them are reported to improve signal strength and battery life. Write down the version of your current radio (to be able to restore it if needed) and try a few ones. Have a look here :

http://forum.xda-developers.com/showthread.php?t=877295


4. Battery still draining insanely fast : what to do now ?

Ok, at this point, you have not much options left.

If not already done, install a fresh, well-known, and stable Rom (for example LeeDroid or RevolutionHD). Install it from scratch, after having wiped all. When booting and going through the setup steps, untick ‘save my settings with my google account’ (or something similar, sorry my Rom is in French…). This will prevent the Market from restoring the apps you used with your previous Rom.

When fully booted, only install CurrentWidget off the market, reboot, and follow point 1. to calibrate your battery. You are now on stock Rom, with only one app installed (which I certify does not drain battery…).

At this point you should not experience battery drain.

- If you still have an unusual battery consumption, I have no more idea. Get in touch with the relevant Customer Service and ask for a return. You may restore a stock Rom before doing this (for warranty purpose), search the forum to find How.

- If you seem to have a reasonable battery flow (again, between 3 to 8 mA with only a few peaks), install your favourite apps one by one, with at least 30 mn between each installation (and having a look at the current log each time). This will allow you to identify any app that would start draining your battery. If you identify such an app, go to point 3.1. This will take time, but hey, you want your issue solved don’t you ?​


5. General tips

Finally, I will try to sum up what to do to preserve your battery life :

- avoid installing a Rom without wiping your system before
- after installing a new Rom, calibrate your battery (point 1.2)
- do not use taskillers
- try to install applications one by one to easily identify a battery-draining one
- don’t use HTC Sense account, it can use much CPU, drain your battery, burn your house and kill your family​

Following on from my previous *#*#4636#*#* tip to access battery info without Spare Parts - If you use BetterCut, you can create a direct shortcut to the battery info page. Simply open BetterCut and look in the Activities list for something called "Testing". Now you can create a homescreen shortcut to it ;)

Thanks for taking the time to read.
 

Attachments

  • screenshot.jpg
    screenshot.jpg
    33.5 KB · Views: 768,643
  • screenshot_1.jpg
    screenshot_1.jpg
    33.1 KB · Views: 767,833
Last edited:

CitizenLee

Senior Member
Aug 21, 2009
2,391
503
Aberdeen
Great post! I'm sure this will come in very handy for a lot of people!

Here's a tip that you might want to add:

If you go to the dialler and press *#*#4636#*#* this will take you to the same battery information pages as Spare Parts does, meaning you don't have to install yet another app ;)
 

katem

Senior Member
Mar 7, 2009
130
4
it's very very useful thread you saved me battery alot

thank you very much

this thread must be pinned to help others like me
 
Oct 10, 2009
48
0
Sorry to ask but just to be clearer

I have rooted my phone and have not been able to calibate my battery due to Clockmod work bug.
Regarding the statement, is it correct in order to boot my phone, I need to fully charge,then delete the mentioned file and its done after reboot?

Btw, very handy thread, thanks mate



1.2- Calibrating the battery

Then, you should fully charge your battery. Not plug it off when the led turns green, but when Current Widget stops reporting a charge (it slowly decreases). You will see that it takes sometimes more than 1 hour after the green led, to fully charge your battery. If your phone is rooted, delete the file ‘data\system\batterystats.bin’ with a file explorer to reset your battery calibration, and reboot.
 

henk_j

Senior Member
Dec 19, 2010
461
77
musselkanaal
Sorry to ask but just to be clearer

I have rooted my phone and have not been able to calibate my battery due to Clockmod work bug.
Regarding the statement, is it correct in order to boot my phone, I need to fully charge,then delete the mentioned file and its done after reboot?

Btw, very handy thread, thanks mate



1.2- Calibrating the battery

Then, you should fully charge your battery. Not plug it off when the led turns green, but when Current Widget stops reporting a charge (it slowly decreases). You will see that it takes sometimes more than 1 hour after the green led, to fully charge your battery. If your phone is rooted, delete the file ‘data\system\batterystats.bin’ with a file explorer to reset your battery calibration, and reboot.

if that would be the case then rebooting in cwm would be the solution right away cause in advanced you can wipe your battery stats also.
 

BorisDeviant

Senior Member
Jun 20, 2008
159
220
Lyon
I don't think charging while shut down is really necessary. THe most important is to keep your phone in charge until CurrentWidget displays 0. It means no more current is being transferred to the battery = it is really fully charged.

Then, yes, you can delete the mentionned file and reboot. Your battery stats are now reset, you can consider your battery calibrated. ;)
 

BorisDeviant

Senior Member
Jun 20, 2008
159
220
Lyon
Hmmm. I think draining completely a Li-ion battery is unuseful, if not harmful. That kind of battery do not have any memory effect like the old Nickel batteries.

Fully charging (regardless the % of battery left) as previously mentionned, and resetting battery stats (in CWM or by deleting the batterystats.bin) should do the trick.
 

igor.tonky

Senior Member
Nov 9, 2009
187
86
Dnepropetrovsk
Hmmm. I think draining completely a Li-ion battery is unuseful, if not harmful. That kind of battery do not have any memory effect like the old Nickel batteries.

Fully charging (regardless the % of battery left) as previously mentionned, and resetting battery stats (in CWM or by deleting the batterystats.bin) should do the trick.

AFAI understand, the point in full discharge is not to train the _battery_, but to tell _software_ what is the lowest voltage battery can handle before shutting down, so it would display percentages correctly, based on highest and lowest voltages it has seen from battery.

and i've read, that in the phone the battery won't go as low, while discharging, to damage itself, and it shuts off before dangerous voltages are reached.

so if the battery is drained and recharged shortly afterwards(1-2 days, while self discharge won't put it _under_ dangerous voltages) - no harm to it will happen.
 

BorisDeviant

Senior Member
Jun 20, 2008
159
220
Lyon
so if the battery is drained and recharged shortly afterwards(1-2 days, while self discharge won't put it _under_ dangerous voltages) - no harm to it will happen

Ok, thanks for the explanation. But I maintain it's not necessary to down the battery to 0 % to get a 'good' calibration. I never did this way, and my battery % is displayed 'correctly' (ie no % jumps, sudden discharge / magic recharge)
 

victoryo

Senior Member
Mar 16, 2009
1,016
270
Gelderland
1.2- Calibrating the battery

Then, you should fully charge your battery. Not plug it off when the led turns green, but when Current Widget stops reporting a charge (it slowly decreases). You will see that it takes sometimes more than 1 hour after the green led, to fully charge your battery. If your phone is rooted, delete the file ‘data\system\batterystats.bin’ with a file explorer to reset your battery calibration, and reboot.

So when it's fully charged delete the file with the phone plugged in? And than plug it off and reboot? or still let it plugged in until reboot is done?:rolleyes:
 

leith51

Senior Member
Feb 23, 2009
3,677
771
95fe3337-375f-3432.jpg



Can someone enlighten me on the snap shot I took for battery drain so many ppl reporting up to 2 days charge I'm lucky to get 16 hours help
E=Mc2
 

Trifidw

Senior Member
Mar 21, 2010
60
0
I've been doing what the OP says for a couple of weeks now. My battery life was very inconsistent, going a whole weekend using only 40% of the battery (OK, it was a test and I didn't use the phone other than to check my email, still had my sim card connected though) to needing to charge my phone at work as it wouldn't last a working day (9 hours).


I did a fresh wipe on Leedroid 1.5.1 and then restored my phone using Titanium Backup and surprise surprise the battery life was terrible again. Think it used 10% of the battery in an idle hour. On Sunday I did another fresh wipe but didn't restore my phone and I've gone over 44 hours on a single charge with 1/3 of the battery left still. :)
 

ringrover

Senior Member
Dec 19, 2010
961
46
Dubai
i did this :
If your phone is rooted, delete the file ‘data\system\batterystats.bin’ with a file explorer to reset your battery calibration, and reboot.


but i did not finish all steps .... what will happene:eekd ?????:eek:
 

robE9

Senior Member
Dec 7, 2010
214
18
Noob question: i know that the phone is fully charged when there shows 0 MA on the widget? ;s
 

BorisDeviant

Senior Member
Jun 20, 2008
159
220
Lyon
i did this :
If your phone is rooted, delete the file ‘data\system\batterystats.bin’ with a file explorer to reset your battery calibration, and reboot.


but i did not finish all steps .... what will happene:eekd ?????:eek:

Not a problem. You may only end up with a incorrectly calibrated battery. You do not risk bricking your phone !

Noob question: i know that the phone is fully charged when there shows 0 MA on the widget? ;s

Yes.
 
  • Like
Reactions: kartoonz

20mark

Senior Member
Nov 8, 2010
323
90
OnePlus 6
hi,im suffering of battery drain since i bought DHD. after i've read your thread,i've diecided to give a try,so:

  • installed currentwidget on AR HD 2.0.9
  • charge phone til currentwidet said 0mA
  • boot into recovery,wiped batterystats
  • wiped everything and installed AR HD 2.0.9
playing with settings,set accounts sync to the min time (everyday;or manual where i could),calendar dont show weather,mail sync set to manual,news andweather set to manual,disable automatic position on google latitude,installed titanium backup and REMOVED stock and stock widget,3d gallery and sim services(? dont know how's in english :\ ) because i think those from time to time keeps hog battery when phone is in standby
  • i leave 3G ON.

then,i went to sleep and leave currentwidget do his work overnight.
well..in about 9 hours i lost 16% battery. weird.

this is my log file..if someone is so kind to tell me where i go wrong :(

Code:
2011/02/02 00:48:59,-140mA,83%
2011/02/02 00:49:59,-155mA,83%
2011/02/02 00:50:46,-100mA,83%
2011/02/02 00:50:47,-100mA,83%
2011/02/02 00:50:53,-100mA,83%
2011/02/02 00:51:19,-100mA,83%
2011/02/02 00:52:10,-126mA,83%
2011/02/02 00:52:11,-126mA,83%
2011/02/02 00:52:12,-126mA,83%
2011/02/02 00:52:13,-126mA,83%
2011/02/02 00:52:14,-126mA,83%
2011/02/02 00:52:14,-126mA,83%
2011/02/02 00:52:14,-126mA,83%
2011/02/02 00:52:15,-126mA,83%
2011/02/02 00:52:15,-126mA,83%
2011/02/02 00:52:15,-126mA,83%
2011/02/02 00:52:15,-126mA,83%
2011/02/02 00:52:16,-126mA,83%
2011/02/02 00:52:16,-126mA,83%
2011/02/02 00:52:16,-126mA,83%
2011/02/02 00:52:27,-126mA,83%
2011/02/02 00:52:28,-116mA,83%
2011/02/02 00:52:28,-116mA,83%
2011/02/02 00:52:29,-116mA,83%
2011/02/02 00:52:29,-116mA,83%
2011/02/02 00:53:01,-116mA,83%
2011/02/02 00:53:01,-116mA,83%
2011/02/02 00:53:02,-116mA,83%
2011/02/02 00:53:02,-116mA,83%
2011/02/02 00:53:07,-116mA,83%
2011/02/02 00:53:50,-163mA,82%
2011/02/02 00:53:51,-163mA,82%
2011/02/02 00:55:07,-6mA,82%
2011/02/02 00:56:12,-6mA,82%
2011/02/02 00:57:17,-68mA,82%
2011/02/02 00:58:22,-76mA,82%
2011/02/02 00:59:27,-31mA,82%
2011/02/02 01:00:33,-6mA,82%
2011/02/02 01:01:37,-6mA,82%
2011/02/02 01:02:43,-64mA,82%
2011/02/02 01:03:47,-60mA,82%
2011/02/02 01:04:53,-170mA,82%
2011/02/02 01:05:58,-158mA,82%
2011/02/02 01:07:03,-68mA,82%
2011/02/02 01:08:09,-4mA,82%
2011/02/02 01:09:14,-4mA,82%
2011/02/02 01:10:18,-32mA,82%
2011/02/02 01:11:25,-6mA,82%
2011/02/02 01:12:30,-6mA,82%
2011/02/02 01:13:35,-3mA,82%
2011/02/02 01:14:40,-27mA,82%
2011/02/02 01:15:45,-35mA,82%
2011/02/02 01:16:50,-36mA,82%
2011/02/02 01:17:55,-29mA,82%
2011/02/02 01:19:01,-5mA,81%
2011/02/02 01:20:05,-3mA,81%
2011/02/02 01:21:11,-60mA,81%
2011/02/02 01:22:14,-27mA,81%
2011/02/02 01:23:21,-59mA,81%
2011/02/02 01:24:27,-6mA,81%
2011/02/02 01:25:27,-4mA,81%
2011/02/02 01:26:27,-50mA,81%
2011/02/02 01:27:28,-6mA,81%
2011/02/02 01:28:28,-6mA,81%
2011/02/02 01:29:28,-27mA,81%
2011/02/02 01:30:28,-6mA,81%
2011/02/02 01:31:29,-6mA,81%
2011/02/02 01:32:29,-6mA,81%
2011/02/02 01:33:30,-3mA,81%
2011/02/02 01:34:30,-3mA,81%
2011/02/02 01:35:30,-3mA,81%
2011/02/02 01:36:30,-3mA,81%
2011/02/02 01:37:30,-3mA,81%
2011/02/02 01:38:30,-5mA,81%
2011/02/02 01:39:30,-39mA,81%
2011/02/02 01:40:31,-3mA,81%
2011/02/02 01:41:31,-3mA,81%
2011/02/02 01:42:32,-3mA,81%
2011/02/02 01:43:32,-3mA,81%
2011/02/02 01:44:32,-4mA,81%
2011/02/02 01:45:33,-3mA,81%
2011/02/02 01:46:33,-3mA,81%
2011/02/02 01:47:33,-3mA,81%
2011/02/02 01:48:33,-9mA,81%
2011/02/02 01:49:33,-30mA,81%
2011/02/02 01:50:33,-45mA,81%
2011/02/02 01:51:34,-30mA,81%
2011/02/02 01:52:34,-30mA,81%
2011/02/02 01:53:34,-5mA,81%
2011/02/02 01:54:34,-37mA,81%
2011/02/02 01:55:39,-153mA,81%
2011/02/02 01:56:44,-143mA,81%
2011/02/02 01:57:50,-3mA,81%
2011/02/02 01:58:54,-3mA,81%
2011/02/02 01:59:59,-45mA,81%
2011/02/02 02:01:01,-5mA,81%
2011/02/02 02:02:01,-5mA,81%
2011/02/02 02:03:01,-20mA,81%
2011/02/02 02:04:02,-5mA,81%
2011/02/02 02:05:02,-5mA,81%
2011/02/02 02:06:02,-3mA,81%
2011/02/02 02:07:02,-5mA,80%
2011/02/02 02:08:03,-6mA,80%
2011/02/02 02:09:03,-6mA,80%
2011/02/02 02:10:03,-6mA,80%
2011/02/02 02:11:03,-45mA,80%
2011/02/02 02:12:04,-3mA,80%
2011/02/02 02:13:04,-3mA,80%
2011/02/02 02:14:04,-3mA,80%
2011/02/02 02:15:04,-28mA,80%
2011/02/02 02:16:04,-39mA,80%
2011/02/02 02:17:05,-3mA,80%
2011/02/02 02:18:05,-3mA,80%
2011/02/02 02:19:06,-3mA,80%
2011/02/02 02:20:06,-3mA,80%
2011/02/02 02:21:06,-3mA,80%
2011/02/02 02:22:07,-3mA,80%
2011/02/02 02:23:07,-3mA,80%
2011/02/02 02:24:08,-6mA,80%
2011/02/02 02:25:08,-6mA,80%
2011/02/02 02:26:09,-3mA,80%
2011/02/02 02:27:09,-3mA,80%
2011/02/02 02:28:09,-5mA,80%
2011/02/02 02:29:09,-44mA,80%
2011/02/02 02:30:14,-4mA,80%
2011/02/02 02:31:19,-5mA,80%
2011/02/02 02:32:24,-5mA,80%
2011/02/02 02:33:29,-6mA,80%
2011/02/02 02:34:35,-31mA,80%
2011/02/02 02:35:35,-6mA,80%
2011/02/02 02:36:35,-6mA,80%
2011/02/02 02:37:35,-3mA,80%
2011/02/02 02:38:36,-5mA,80%
2011/02/02 02:39:36,-5mA,80%
2011/02/02 02:40:36,-3mA,80%
2011/02/02 02:41:36,-10mA,80%
2011/02/02 02:42:36,-32mA,80%
2011/02/02 02:43:36,-5mA,80%
2011/02/02 02:44:37,-6mA,80%
2011/02/02 02:45:37,-6mA,80%
2011/02/02 02:46:38,-3mA,80%
2011/02/02 02:47:38,-3mA,80%
2011/02/02 02:48:38,-27mA,80%
2011/02/02 02:49:39,-3mA,80%
2011/02/02 02:50:39,-3mA,80%
2011/02/02 02:51:39,-32mA,80%
2011/02/02 02:52:40,-4mA,80%
2011/02/02 02:53:40,-4mA,80%
2011/02/02 02:54:40,-40mA,80%
2011/02/02 02:55:41,-15mA,80%
2011/02/02 02:56:41,-15mA,80%
2011/02/02 02:57:42,-13mA,80%
2011/02/02 02:58:42,-13mA,80%
2011/02/02 02:59:42,-15mA,80%
2011/02/02 03:00:43,-3mA,80%
2011/02/02 03:01:43,-3mA,80%
2011/02/02 03:02:43,-6mA,80%
2011/02/02 03:03:44,-6mA,80%
2011/02/02 03:04:44,-6mA,80%
2011/02/02 03:05:49,-190mA,80%
2011/02/02 03:06:54,-5mA,80%
2011/02/02 03:07:59,-3mA,79%
2011/02/02 03:09:03,-44mA,79%
2011/02/02 03:10:09,-49mA,79%
2011/02/02 03:11:09,-55mA,79%
2011/02/02 03:12:09,-35mA,79%
2011/02/02 03:13:11,-4mA,79%
2011/02/02 03:14:11,-4mA,79%
2011/02/02 03:15:11,-17mA,79%
2011/02/02 03:16:11,-18mA,79%
2011/02/02 03:17:12,-5mA,79%
2011/02/02 03:18:12,-5mA,79%
2011/02/02 03:19:13,-6mA,79%
2011/02/02 03:20:13,-6mA,79%
2011/02/02 03:21:13,-3mA,79%
2011/02/02 03:22:13,-23mA,79%
2011/02/02 03:23:13,-34mA,79%
2011/02/02 03:24:13,-6mA,79%
2011/02/02 03:25:13,-3mA,79%
2011/02/02 03:26:14,-13mA,79%
2011/02/02 03:27:14,-13mA,79%
2011/02/02 03:28:15,-3mA,79%
2011/02/02 03:29:15,-3mA,79%
2011/02/02 03:30:15,-30mA,79%
2011/02/02 03:31:15,-5mA,79%
2011/02/02 03:32:16,-3mA,79%
2011/02/02 03:33:16,-3mA,79%
2011/02/02 03:34:16,-24mA,79%
2011/02/02 03:35:17,-5mA,79%
2011/02/02 03:36:17,-5mA,79%
2011/02/02 03:37:17,-3mA,79%
2011/02/02 03:38:18,-6mA,79%
2011/02/02 03:39:19,-13mA,79%
2011/02/02 03:40:32,-3mA,79%
2011/02/02 03:41:41,-3mA,79%
2011/02/02 03:42:53,-3mA,79%
2011/02/02 03:43:57,-3mA,79%
2011/02/02 03:44:57,-60mA,79%
2011/02/02 03:45:57,-28mA,79%
2011/02/02 03:47:03,-21mA,79%
2011/02/02 03:48:04,-3mA,79%
2011/02/02 03:49:04,-3mA,79%
2011/02/02 03:50:04,-5mA,79%
2011/02/02 03:51:04,-3mA,79%
2011/02/02 03:52:04,-24mA,79%
2011/02/02 03:53:05,-5mA,79%
2011/02/02 03:54:05,-5mA,79%
2011/02/02 03:55:05,-5mA,79%
2011/02/02 03:56:05,-35mA,79%
2011/02/02 03:57:05,-51mA,79%
2011/02/02 03:58:05,-48mA,79%
2011/02/02 03:59:06,-3mA,78%
2011/02/02 04:00:06,-3mA,78%
2011/02/02 04:01:06,-5mA,78%
2011/02/02 04:02:07,-3mA,78%
2011/02/02 04:03:07,-3mA,78%
2011/02/02 04:04:07,-13mA,78%
2011/02/02 04:05:08,-3mA,78%
2011/02/02 04:06:08,-3mA,78%
2011/02/02 04:07:08,-4mA,78%
2011/02/02 04:08:09,-6mA,78%
2011/02/02 04:09:09,-6mA,78%
2011/02/02 04:10:09,-5mA,78%
2011/02/02 04:11:09,-5mA,78%
2011/02/02 04:12:09,-5mA,78%
2011/02/02 04:13:09,-24mA,78%
2011/02/02 04:14:09,-5mA,78%
2011/02/02 04:15:15,-5mA,78%
2011/02/02 04:16:20,-5mA,78%
2011/02/02 04:17:25,-3mA,78%
2011/02/02 04:18:30,-13mA,78%
2011/02/02 04:19:33,-19mA,78%
2011/02/02 04:20:35,-20mA,78%
2011/02/02 04:21:35,-28mA,78%
2011/02/02 04:22:36,-3mA,78%
2011/02/02 04:23:36,-3mA,78%
2011/02/02 04:24:37,-5mA,78%
2011/02/02 04:25:37,-5mA,78%
2011/02/02 04:26:37,-27mA,78%
2011/02/02 04:27:37,-5mA,78%
2011/02/02 04:28:38,-5mA,78%
2011/02/02 04:29:38,-5mA,78%
2011/02/02 04:30:38,-5mA,78%
2011/02/02 04:31:38,-5mA,78%
2011/02/02 04:32:38,-3mA,78%
2011/02/02 04:33:38,-3mA,78%
2011/02/02 04:34:38,-5mA,78%
2011/02/02 04:35:39,-6mA,78%
2011/02/02 04:36:39,-3mA,78%
2011/02/02 04:37:40,-6mA,78%
2011/02/02 04:38:40,-6mA,78%
2011/02/02 04:39:40,-5mA,78%
2011/02/02 04:40:41,-3mA,78%
2011/02/02 04:41:41,-3mA,78%
2011/02/02 04:42:41,-15mA,78%
2011/02/02 04:43:42,-3mA,78%
2011/02/02 04:44:42,-3mA,78%
2011/02/02 04:45:42,-21mA,78%
2011/02/02 04:46:42,-3mA,78%
2011/02/02 04:47:42,-4mA,78%
2011/02/02 04:48:42,-13mA,78%
2011/02/02 04:49:42,-3mA,78%
2011/02/02 04:50:48,-5mA,78%
2011/02/02 04:51:53,-5mA,78%
2011/02/02 04:52:57,-3mA,77%
2011/02/02 04:54:02,-54mA,77%
2011/02/02 04:55:09,-9mA,77%
2011/02/02 04:56:09,-9mA,77%
2011/02/02 04:57:09,-13mA,77%
2011/02/02 04:58:10,-7mA,77%
2011/02/02 04:59:10,-7mA,77%
2011/02/02 05:00:11,-3mA,77%
2011/02/02 05:01:11,-3mA,77%
2011/02/02 05:02:11,-13mA,77%
2011/02/02 05:03:12,-5mA,77%
2011/02/02 05:04:12,-5mA,77%
2011/02/02 05:05:12,-13mA,77%
2011/02/02 05:06:13,-5mA,77%
2011/02/02 05:07:13,-5mA,77%
2011/02/02 05:08:13,-15mA,77%
2011/02/02 05:09:14,-5mA,77%
2011/02/02 05:10:14,-5mA,77%
2011/02/02 05:11:14,-15mA,77%
2011/02/02 05:12:14,-39mA,77%
2011/02/02 05:13:15,-3mA,77%
2011/02/02 05:14:15,-3mA,77%
2011/02/02 05:15:15,-22mA,77%
2011/02/02 05:16:15,-18mA,77%
2011/02/02 05:17:16,-3mA,77%
2011/02/02 05:18:16,-3mA,77%
2011/02/02 05:19:16,-9mA,77%
2011/02/02 05:20:17,-26mA,77%
2011/02/02 05:21:17,-3mA,77%
2011/02/02 05:22:17,-46mA,77%
2011/02/02 05:23:18,-3mA,77%
2011/02/02 05:24:18,-3mA,77%
2011/02/02 05:25:23,-20mA,77%
2011/02/02 05:26:28,-3mA,77%
2011/02/02 05:27:33,-3mA,77%
2011/02/02 05:28:38,-6mA,77%
2011/02/02 05:29:44,-35mA,77%
2011/02/02 05:30:44,-3mA,77%
2011/02/02 05:31:44,-3mA,77%
2011/02/02 05:32:44,-3mA,77%
2011/02/02 05:33:45,-3mA,77%
2011/02/02 05:34:45,-3mA,77%
2011/02/02 05:35:45,-3mA,77%
2011/02/02 05:36:46,-3mA,77%
2011/02/02 05:37:46,-3mA,77%
2011/02/02 05:38:46,-5mA,77%
2011/02/02 05:39:47,-3mA,77%
2011/02/02 05:40:47,-3mA,77%
2011/02/02 05:41:47,-5mA,77%
2011/02/02 05:42:47,-3mA,77%
2011/02/02 05:43:47,-9mA,77%
2011/02/02 05:44:47,-29mA,77%
2011/02/02 05:45:48,-3mA,77%
2011/02/02 05:46:48,-3mA,77%
2011/02/02 05:47:48,-3mA,77%
2011/02/02 05:48:49,-3mA,77%
2011/02/02 05:49:49,-3mA,77%
2011/02/02 05:50:49,-3mA,77%
2011/02/02 05:51:49,-40mA,77%
2011/02/02 05:52:49,-6mA,77%
2011/02/02 05:53:49,-3mA,77%
2011/02/02 05:54:50,-6mA,77%
2011/02/02 05:55:50,-6mA,77%
2011/02/02 05:56:50,-3mA,77%
2011/02/02 05:57:51,-5mA,77%
2011/02/02 05:58:51,-5mA,77%
2011/02/02 05:59:52,-12mA,77%
2011/02/02 06:00:57,-3mA,77%
2011/02/02 06:02:01,-3mA,77%
2011/02/02 06:03:07,-50mA,77%
2011/02/02 06:04:07,-6mA,76%
2011/02/02 06:05:12,-6mA,76%
2011/02/02 06:06:12,-3mA,76%
2011/02/02 06:07:13,-3mA,76%
2011/02/02 06:08:13,-3mA,76%
2011/02/02 06:09:13,-3mA,76%
2011/02/02 06:10:14,-3mA,76%
2011/02/02 06:11:14,-3mA,76%
2011/02/02 06:12:15,-11mA,76%
2011/02/02 06:13:15,-11mA,76%
2011/02/02 06:14:15,-31mA,76%
2011/02/02 06:15:16,-13mA,76%
2011/02/02 06:16:16,-13mA,76%
2011/02/02 06:17:16,-18mA,76%
2011/02/02 06:18:17,-3mA,76%
2011/02/02 06:19:17,-3mA,76%
2011/02/02 06:20:18,-5mA,76%
2011/02/02 06:21:18,-5mA,76%
2011/02/02 06:22:18,-3mA,76%
2011/02/02 06:23:18,-27mA,76%
2011/02/02 06:24:18,-3mA,76%
2011/02/02 06:25:18,-49mA,76%
2011/02/02 06:26:19,-3mA,76%
2011/02/02 06:27:19,-3mA,76%
2011/02/02 06:28:19,-24mA,76%
2011/02/02 06:29:20,-5mA,76%
2011/02/02 06:30:20,-5mA,76%
2011/02/02 06:31:20,-24mA,76%
2011/02/02 06:32:20,-3mA,76%
2011/02/02 06:33:21,-3mA,76%
2011/02/02 06:34:21,-3mA,76%
2011/02/02 06:35:26,-6mA,76%
2011/02/02 06:36:31,-4mA,76%
2011/02/02 06:37:36,-9mA,76%
2011/02/02 06:38:41,-45mA,76%
2011/02/02 06:39:47,-3mA,76%
2011/02/02 06:40:47,-6mA,76%
2011/02/02 06:41:47,-6mA,76%
2011/02/02 06:42:48,-3mA,76%
2011/02/02 06:43:48,-3mA,76%
2011/02/02 06:44:48,-6mA,76%
2011/02/02 06:45:48,-3mA,76%
2011/02/02 06:46:48,-23mA,76%
2011/02/02 06:47:48,-34mA,76%
2011/02/02 06:48:49,-3mA,76%
2011/02/02 06:49:49,-3mA,76%
2011/02/02 06:50:49,-3mA,76%
2011/02/02 06:51:50,-3mA,76%
2011/02/02 06:52:50,-3mA,76%
2011/02/02 06:53:50,-6mA,75%
2011/02/02 06:54:50,-36mA,75%
2011/02/02 06:55:50,-3mA,75%
2011/02/02 06:56:50,-23mA,75%
2011/02/02 06:57:51,-3mA,75%
2011/02/02 06:58:51,-3mA,75%
2011/02/02 06:59:52,-3mA,75%
2011/02/02 07:00:52,-3mA,75%
2011/02/02 07:01:52,-3mA,75%
2011/02/02 07:02:53,-3mA,75%
2011/02/02 07:03:53,-3mA,75%
2011/02/02 07:04:54,-5mA,75%
2011/02/02 07:05:54,-5mA,75%
2011/02/02 07:06:54,-3mA,75%
2011/02/02 07:07:55,-3mA,75%
2011/02/02 07:08:55,-3mA,75%
2011/02/02 07:10:34,-4mA,75%
2011/02/02 07:11:56,-6mA,75%
2011/02/02 07:13:01,-6mA,75%
2011/02/02 07:14:06,-3mA,75%
2011/02/02 07:15:12,-3mA,75%
2011/02/02 07:16:12,-3mA,75%
2011/02/02 07:16:55,-5mA,75%
2011/02/02 07:16:56,-5mA,75%
2011/02/02 07:16:58,-5mA,75%
2011/02/02 07:16:59,-5mA,75%
2011/02/02 07:17:00,-5mA,75%
2011/02/02 07:17:11,-5mA,75%
2011/02/02 07:18:11,-89mA,75%
2011/02/02 07:18:51,-130mA,75%
2011/02/02 07:20:29,-3mA,75%
2011/02/02 07:21:33,-33mA,75%
2011/02/02 07:22:39,-47mA,75%
2011/02/02 07:23:44,-5mA,75%
2011/02/02 07:24:49,-5mA,75%
2011/02/02 07:25:55,-3mA,75%
2011/02/02 07:26:55,-3mA,75%
2011/02/02 07:28:04,-162mA,75%
2011/02/02 07:29:10,-56mA,75%
2011/02/02 07:30:15,-34mA,75%
2011/02/02 07:31:21,-3mA,74%
2011/02/02 07:32:26,-3mA,74%
2011/02/02 07:33:31,-22mA,74%
2011/02/02 07:34:36,-6mA,74%
2011/02/02 07:35:41,-40mA,74%
2011/02/02 07:36:41,-42mA,74%
2011/02/02 07:36:45,-42mA,74%
2011/02/02 07:36:46,-42mA,74%
2011/02/02 07:37:46,-151mA,74%
2011/02/02 07:38:59,-5mA,74%
2011/02/02 07:40:04,-5mA,74%
2011/02/02 07:41:09,-21mA,74%
2011/02/02 07:42:14,-3mA,74%
2011/02/02 07:43:19,-3mA,74%
2011/02/02 07:44:24,-5mA,74%
2011/02/02 07:45:30,-6mA,74%
2011/02/02 07:46:35,-4mA,74%
2011/02/02 07:47:40,-4mA,74%
2011/02/02 07:48:51,-324mA,74%
2011/02/02 07:49:57,-3mA,74%
2011/02/02 07:51:07,-4mA,74%
2011/02/02 07:52:17,-3mA,74%
2011/02/02 07:53:23,-6mA,74%
2011/02/02 07:54:29,-6mA,74%
2011/02/02 07:55:33,-11mA,73%
2011/02/02 07:56:39,-45mA,73%
2011/02/02 07:57:44,-4mA,73%
2011/02/02 07:58:49,-28mA,73%
2011/02/02 07:59:54,-3mA,73%
2011/02/02 08:00:59,-3mA,73%
2011/02/02 08:02:04,-24mA,73%
2011/02/02 08:03:09,-27mA,73%
2011/02/02 08:04:15,-6mA,73%
2011/02/02 08:05:19,-6mA,73%
2011/02/02 08:06:25,-36mA,73%
2011/02/02 08:07:24,-10mA,73%
2011/02/02 08:07:31,-108mA,73%
2011/02/02 08:07:32,-108mA,73%
2011/02/02 08:07:32,-108mA,73%
2011/02/02 08:07:33,-108mA,73%
2011/02/02 08:07:34,-108mA,73%
2011/02/02 08:08:34,-78mA,72%
2011/02/02 08:09:34,-78mA,72%
2011/02/02 08:10:34,-87mA,72%
2011/02/02 08:11:45,-78mA,72%
2011/02/02 08:12:51,-6mA,72%
2011/02/02 08:13:55,-6mA,72%
2011/02/02 08:15:01,-59mA,72%
2011/02/02 08:16:06,-6mA,72%
2011/02/02 08:17:09,-32mA,72%
2011/02/02 08:18:10,-171mA,72%
2011/02/02 08:19:10,-280mA,72%
2011/02/02 08:20:27,-2mA,72%
2011/02/02 08:21:27,-2mA,72%
2011/02/02 08:22:27,-135mA,71%
2011/02/02 08:23:44,-82mA,71%
2011/02/02 08:24:44,-48mA,71%
2011/02/02 08:25:44,-93mA,71%
2011/02/02 08:26:44,-138mA,71%
2011/02/02 08:27:44,-331mA,71%
2011/02/02 08:28:32,-77mA,70%
2011/02/02 08:29:33,-76mA,70%
2011/02/02 08:31:21,-48mA,70%
2011/02/02 08:32:26,-4mA,70%
2011/02/02 08:33:31,-4mA,70%
2011/02/02 08:34:31,-2mA,70%
2011/02/02 08:35:31,-94mA,70%
2011/02/02 08:36:31,-165mA,70%
2011/02/02 08:37:31,-90mA,70%
2011/02/02 08:39:36,-267mA,70%
2011/02/02 08:39:48,-254mA,70%
edit
this is an example of what processes are running:
Code:
2011/02/02 09:26:10,-17mA,71%,android.process.acore;com.android.phone;com.htc.android.htcime;system;com.htc.bg;com.htc.launcher;com.google.process.gapps;com.google.android.apps.maps;com.google.android.gm;android.process.media;com.htc.bgp;com.google.android.apps.uploader;com.manor.currentwidget;com.htc.WeatherWallpaper;com.htc.cs:remote;com.htc.htcMessageUploader;com.htc.sdm;com.android.htccontacts;com.google.android.apps.maps:LocationFriendService;com.android.settings;com.android.updater;com.noshufou.android.su;com.keramidas.TitaniumBackup;com.htc.RosieUtility;com.htc.widget.clockwidget;com.htc.laputa.HtcLaputaInstaller;com.htc.ereader.drmengine;com.htc.googlereader;com.htc.android.worldclock;com.htc.messagecs;com.htc.wotaproviders;com.twitter.android;com.facebook.katana;com.android.browser;com.android.mms;com.android.vending;com.htc.recommend;com.htc.android.mail;com.htc.wdm;com.htc.music;com.htc.cspeoplesync;com.htc.searchanywhere;com.htc.ereader;com.google.android.apps.maps:NetworkLocationService;com.google.android.apps.maps:FriendService;com.android.voicedialer;com.htc.opensense;com.htc.fm;
2011/02/02 09:26:11,-17mA,71%,android.process.acore;com.android.phone;com.htc.android.htcime;system;com.htc.bg;com.htc.launcher;com.google.process.gapps;com.google.android.apps.maps;com.google.android.gm;android.process.media;com.htc.bgp;com.google.android.apps.uploader;com.manor.currentwidget;com.htc.WeatherWallpaper;com.htc.cs:remote;com.htc.htcMessageUploader;com.htc.sdm;com.android.htccontacts;com.google.android.apps.maps:LocationFriendService;com.android.settings;com.android.updater;com.noshufou.android.su;com.keramidas.TitaniumBackup;com.htc.RosieUtility;com.htc.widget.clockwidget;com.htc.laputa.HtcLaputaInstaller;com.htc.ereader.drmengine;com.htc.googlereader;com.htc.android.worldclock;com.htc.messagecs;com.htc.wotaproviders;com.twitter.android;com.facebook.katana;com.android.browser;com.android.mms;com.android.vending;com.htc.recommend;com.htc.android.mail;com.htc.wdm;com.htc.music;com.htc.cspeoplesync;com.htc.searchanywhere;com.htc.ereader;com.google.android.apps.maps:NetworkLocationService;com.google.android.apps.maps:FriendService;com.android.voicedialer;com.htc.opensense;com.htc.fm;
2011/02/02 09:27:11,-208mA,71%,android.process.acore;com.android.phone;com.htc.android.htcime;system;com.manor.currentwidget;com.estrongs.android.pop;com.htc.bg;com.google.android.gm;com.google.process.gapps;android.process.media;com.htc.bgp;com.google.android.apps.uploader;com.htc.launcher;com.google.android.apps.maps;com.google.android.apps.maps:LocationFriendService;com.htc.htcMessageUploader;com.htc.cs:remote;com.htc.WeatherWallpaper;com.htc.sdm;com.android.htccontacts;com.android.settings;com.android.updater;com.noshufou.android.su;com.keramidas.TitaniumBackup;com.htc.RosieUtility;com.htc.widget.clockwidget;com.htc.laputa.HtcLaputaInstaller;com.htc.ereader.drmengine;com.htc.googlereader;com.htc.android.worldclock;com.htc.messagecs;com.htc.wotaproviders;com.twitter.android;com.facebook.katana;com.android.browser;com.android.mms;com.android.vending;com.htc.recommend;com.htc.android.mail;com.htc.wdm;com.htc.music;com.htc.cspeoplesync;com.htc.searchanywhere;com.htc.ereader;com.google.android.apps.maps:NetworkLocationService;com.google.android.apps.maps:FriendService;com.android.voicedialer;com.htc.opensense;com.htc.fm;

edit 2:
i have regret that i've not installed setcpu and set governor to smartass.. :\
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 158
    Having an abnormal battery drain on our phone is really frustrating, and finally prevents us from using it normally. Smartphones have a short battery life in general. Do not expect a two weeks-battery life like your old fashioned monochrome Nokia had… But with finding out what’s eating up your battery, and fixing it, you should be able to use your device for about 35-48 hours with ‘normal’ use. This guide will consider you own a Desire HD (even if some advices may be applicable to many other android phones), with a Rom based –at least- on a 1.72.xxx Rom (this base is known for greatly improving battery life over 1.32.xxx based-Roms).

    Note to the admins : maybe not in the right section, but questions about this topic often arise in this section... Feel free to move...

    It's a bit long and formal, but I tried to be as precise as I could. ;)


    1. Evaluating the battery drain
    1.1- Setting up CurrentWidget
    1.2- Calibrating the battery
    1.3- Monitoring your battery behaviour
    2. Finding what is causing the battery drain
    3. Fixing the battery drain
    3.1- Processes heavy on CPU, GPS, Sensors
    3.2- Processes preventing ‘deep sleeping’
    3.3- Taskillers
    3.4- Radios
    4. Battery still draining insanely fast : what to do now ?
    5. General tips


    1. Evaluating the battery drain

    Battery life length is mainly something subjective. You can not compare your battery life to someone else’s, even not with your previous battery cycle. It all comes down to how you use your phone : some activities are known to be real battery hogs (like navigation, watching a movie, recording an HD-clip) and will remain whatever you will do. To eliminate the subjective ‘part’ of our process, we need to measure if you are suffering from an unusual battery drain.​


    1.1- Setting up CurrentWidget

    First, we need to have a measure tool. CurrentWidget will be perfect. Download it and install it off the market. Add the widget to your desktop, and when prompted to configure the widget, tick ‘log file’, you can leave the ‘Update Interval ‘ at 60 seconds.

    attachment.php


    You end up with a widget that displays the current current (…) in mA (milliampere). Basically, this is the battery flow, measured each minute. More importantly, CurrentWidget generates the file ‘sdcard\currentwidget.log’ which contains the raw measures, with their matching time. This file can be open with any text editor (and most file explorer like ES Explorer, or Root Explorer).​


    1.2- Calibrating the battery

    Then, you should fully charge your battery. Not plug it off when the led turns green, but when Current Widget stops reporting a charge (it slowly decreases). You will see that it takes sometimes more than 1 hour after the green led, to fully charge your battery.​


    1.3- Monitoring your battery behaviour

    To evaluate the behavior of your phone, leave it asleep (but not shutdown) a whole night, or at least 2 consecutive hours. Do this with Bluetooth, GPS, and WiFi OFF, data connection ON. Then open the log file. A typical and normal log should look like that :

    2011/02/01 03:48:12,-5mA,55%
    2011/02/01 03:53:20,-3mA,55%
    2011/02/01 03:57:54,-66mA,55%
    2011/02/01 04:07:46,-5mA,55%
    2011/02/01 04:08:51,-5mA,55%
    2011/02/01 04:18:44,-7mA,55%
    2011/02/01 04:23:20,-3mA,55%
    2011/02/01 04:33:13,-3mA,55%
    2011/02/01 04:38:19,-3mA,54%
    2011/02/01 04:48:12,-3mA,54%
    2011/02/01 04:53:20,-3mA,54%
    2011/02/01 04:58:12,-3mA,53%
    2011/02/01 05:08:20,-3mA,53%
    2011/02/01 05:18:13,-8mA,53%
    2011/02/01 05:28:05,-5mA,53%
    2011/02/01 05:37:58,-5mA,53%
    2011/02/01 05:48:44,-5mA,53%

    You see here that the battery drain flow is continually between 3-8 mA, with only one peek at 66 mA. It results in only 2 % battery lost in 2 hours. When in standby, your phone should lose roughly 1 %-charge per hour.

    If you can use your phone to heat your lounge and your log look more like this one :

    2011/02/01 03:48:12,-164mA,55%
    2011/02/01 03:53:20,-225mA,54%
    2011/02/01 03:57:54,-147mA,54%
    2011/02/01 04:07:46,-213mA,52%
    2011/02/01 04:08:51,-110mA,52%
    2011/02/01 04:18:44,-236mA,50%
    2011/02/01 04:23:20,-189mA,49%
    2011/02/01 04:33:13,-264mA,47%
    2011/02/01 04:38:19,-235mA,46%
    2011/02/01 04:48:12,-199mA,44%
    2011/02/01 04:53:20,-236mA,43%

    It’s good news ! There is room for improvement !​


    2. Finding what is causing the battery drain

    At this point, you know that something is eating up your battery. The key is to find out which setting or application (or combination of both) is causing this.

    Open the dialer and press *#*#4636#*#* or download and install ‘Spare Parts’ and go in ‘Battery History’. In the second box set ‘Total since boot’. Then let’s have a look at the first box settings.

    CPU usage :

    A reasonable repartition should look like that :
    attachment.php


    If one or more Items are much more CPU-intensive than others, you have identified the culprit (or at least a part of them).

    Proceed the same way with GPS and Sensors usage and look for any abnormal intensive processes.

    If at this point you have identified one or more processes, go to point 3.1

    Finally select ‘Partial Wake Usage’. If your phone suffers from battery drain, it is likely you will have one or more process(es) over represented in this ‘Partial Wake Usage’. It means these applications or settings (if the main culprit is 'Android System') are preventing your phone from going standby, keeping it in a partial wake state, which is obviously less battery-efficient. In this case, directly go to point 3.2​


    3. Fixing the battery drain
    3.1- Processes heavy on CPU, GPS, Sensors

    - If the main processes you identified are 3rd party applications, there is not much to do. Use common sense : for example if the draining culprit is a backup app, try to disable automatic backup, permanent monitoring, or any option that could use your phone even when standby. Each application has its own settings. Ultimately, you should uninstall these apps, and get in touch with the developper to inform him about the issue.

    - If the main processes you identified are or is a stock app (ie HTC Sense account, Gmail, etc.) :
    . if applicable, you should delete your ‘HTC Sense account’ which is know to be heavy on CPU
    . if you identified Gmail, Picasa, or any other Google service, try lowering the synchronization frequency (or disabling it to see if it improves your battery life)
    . stock apps can also drain battery when you installed a Rom over a previous one without completely wiping your system. Keep in mind that the results log I presented at the beginning are obtained with synchronization and stock app with their default settings. So on a healthy system, stock apps should not cause battery drain (again, appart from HTC Sense Account which is crap)

    At this point, you should repeat point 1 and have a look at your log to see if things have improved. If the answer is ‘No’, go to point 4.​


    3.2- Processes preventing ‘deep sleeping’

    Some apps or settings can prevent your phone from going standby even if screen is off. It means your CPU can still be used at 100 %, and your battery will keep on draining, nearly as if it was awake.

    It the process you identified in point 2. is a 3rd party app, there is not much to do. Use common sense : if the draining culprit is a backup app, try to disable automatic backup, permanent monitoring, or any option that could use your phone even when standby. Each application has its own settings. Ultimately, you should uninstall these apps, and get in touch with the developper to inform him about the issue.

    Often, you won’t have much information about what is preventing your phone from sleeping. The main process is ‘Android System’. There has been much discussion over the net about this issue.

    There has been many cases reported where WiFi when turned on, would keep your phone in ‘Partial Wake’. Even when turned off, the phone would not return to normal behaviour. In this case the only solution is to reboot with WiFi off. This is not a global issue, I did not suffer from it, but take the time to investigate this path. If you confirm you have this issue, there is not known solution yet. I would advice you to go to point 4.

    By experience I can also tell you that installing a Rom over a previous one without wiping all can lead to some erratic issues. You should always backup your important data, then wipe all (data, dalvik, cache, etc) and then only install your new Rom. Some backup apps (like Titanium Backup) offer the possibility to save and restore system settings. This can also cause issues. You should only save data (sms, mms, bookmarks…) but not settings.​


    3.3- Taskillers

    If you use a taskiller, simply don’t. Really. Or at least, disable any option that allows the taskiller to permanently monitor and manage your memory.

    Taskillers are supposed to speed your phone by killing tasks when the Memory is ‘full’ or above a defined limit. The problem is that it interferes with Android built-in (and efficient) memory management. You have to understand that what can slow down your phone is not Memory saturation (because Android will start closing apps on its own before reaching this situation), but CPU usage. You can still use a taskiller to see which app are eating CPU cycles and close them. But again, don’t let any 3rd-party app manage your memory. It will only bring you force-closes, battery drain, and various unpredictable issues.​


    3.4- Radios

    I won’t be very talkative on this topic, but if your phone is fully rooted, ENG-OFF and Radio S-OFF, you should really try a few radios. Some of them are reported to improve signal strength and battery life. Write down the version of your current radio (to be able to restore it if needed) and try a few ones. Have a look here :

    http://forum.xda-developers.com/showthread.php?t=877295


    4. Battery still draining insanely fast : what to do now ?

    Ok, at this point, you have not much options left.

    If not already done, install a fresh, well-known, and stable Rom (for example LeeDroid or RevolutionHD). Install it from scratch, after having wiped all. When booting and going through the setup steps, untick ‘save my settings with my google account’ (or something similar, sorry my Rom is in French…). This will prevent the Market from restoring the apps you used with your previous Rom.

    When fully booted, only install CurrentWidget off the market, reboot, and follow point 1. to calibrate your battery. You are now on stock Rom, with only one app installed (which I certify does not drain battery…).

    At this point you should not experience battery drain.

    - If you still have an unusual battery consumption, I have no more idea. Get in touch with the relevant Customer Service and ask for a return. You may restore a stock Rom before doing this (for warranty purpose), search the forum to find How.

    - If you seem to have a reasonable battery flow (again, between 3 to 8 mA with only a few peaks), install your favourite apps one by one, with at least 30 mn between each installation (and having a look at the current log each time). This will allow you to identify any app that would start draining your battery. If you identify such an app, go to point 3.1. This will take time, but hey, you want your issue solved don’t you ?​


    5. General tips

    Finally, I will try to sum up what to do to preserve your battery life :

    - avoid installing a Rom without wiping your system before
    - after installing a new Rom, calibrate your battery (point 1.2)
    - do not use taskillers
    - try to install applications one by one to easily identify a battery-draining one
    - don’t use HTC Sense account, it can use much CPU, drain your battery, burn your house and kill your family​

    Following on from my previous *#*#4636#*#* tip to access battery info without Spare Parts - If you use BetterCut, you can create a direct shortcut to the battery info page. Simply open BetterCut and look in the Activities list for something called "Testing". Now you can create a homescreen shortcut to it ;)

    Thanks for taking the time to read.
    5
    Great post! I'm sure this will come in very handy for a lot of people!

    Here's a tip that you might want to add:

    If you go to the dialler and press *#*#4636#*#* this will take you to the same battery information pages as Spare Parts does, meaning you don't have to install yet another app ;)
    1
    i did this :
    If your phone is rooted, delete the file ‘data\system\batterystats.bin’ with a file explorer to reset your battery calibration, and reboot.


    but i did not finish all steps .... what will happene:eekd ?????:eek:

    Not a problem. You may only end up with a incorrectly calibrated battery. You do not risk bricking your phone !

    Noob question: i know that the phone is fully charged when there shows 0 MA on the widget? ;s

    Yes.
    1
    16 % in 9 hours is not that bad ! But I confirm there is still room for improvement.

    Did you find anything odd in your battery usage statistics ? (point 2. of the Guide)
    1
    16 % in 9 hours is not that bad ! But I confirm there is still room for improvement.

    Did you find anything odd in your battery usage statistics ? (point 2. of the Guide)


    thank you DarkAdrien :)
    from what i see,telephone and android system are the most battery hogs.
    and there is a process called "0"..what is that?
    there is a way to find out what process is killing my battery? i think is related to network usage,not to cpy cycles..maybe setting to GSM only will prevent phone to search for 3G network? i have full 3G signal where i live,though.

    this is what i got:

    XWgAB.png


    aksGN.png


    XdfhT.png


    psClB.png