yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Jigen90:
Hi guys!

I need your help, I really don't understand battery drain in my galaxy i9100.

After flashing CM9 I get a lot of partial wakes!

All of the expecially from "events"!

I see a lot of active "kworkers" in android system battery usage.

I'll attach my dump from bbs.

Who are those event1, event2, event3, and so on?

Are normal those partial and complete wakelocks?

Thanks in advance!
[BetterBatteryStats] gaui:
I can't see anything.

1h 8m deep sleep of 1h 13m is very good!

I would try another ROM. CM9 is not ready yet, as it is not stable version yet.

Try HyDr0G3N-ICS, it has been getting GREAT reviews!

http://xdaforums.com/showthread.php?t=1530179
[BetterBatteryStats] Karpfenhai:
If you don't see anything in BBS and your phone keeps draining, i would try another modem and a battery saving kernel (Undervolt), since siyah is compatible to CM9, try this one for at least 2-3 days to compare, i heard many good things about sammys Stock kernels too (CF-Rooted) in case of battery drain.

My recommendation, Use KI3 or KI4, i know they are old but the best for Battery!

Furthermore, disable Auto Brightness and haptic feedback (not all functions), do you really need auto rotation all the time?

Good luck!

---------- Post added at 10:06 PM ---------- Previous post was at 09:59 PM ----------

Thats an easy one ;)

1. Get rid of Facebook, use friendcaster instead

2. Get rid of Battery Monitor Pro, or at least bring down the refresh rate (Saved WL) better freeze it for a while.

3. Dont use Juice defender... freeze it.

4. Check your Sync settings with care.

5. disable haptic feedback and keyboard sounds, i personally don't own an HTC device but audio_out3 reminds me to my own problems after migrating to ICS..

6. Since HTC has just Super LCD instead of Amoled, try to reduce the brightness of your screen, Screenfilter from market may help you in low light conditions as well. Don't use auto-brightness if not needed!

7. Good luck! ;)
[BetterBatteryStats] chamonix:
1. check bmw: you seem to have the statistics collecting every minutes: that's far too often and keeps waking up your phone

2. facebook is waking up your phone: known issue, there's nothing that can be done against it except usinf another facebook client

3. get rid of JD,

Once you have cleaned up those please repost a dumpfile
[BetterBatteryStats] gaui:
Someone should make a guide on how to check for those things using BMW and BBS.
[BetterBatteryStats] steve austin:
Thanks. a couple of questions about these suggestions.

1. will my contact pics link up to freindcaster? I don't remember seeing that option in my contacts "contact links". I don't want to loost the contact pics in my sms and phone app.

2. I have looked at BMP settings. under Monitoring. mA data update rate the only options for the refresh rate are 5, 10, 30 and 60 seconds. Nothing else. Are you seeing someplace else to enter longer values? if so let me know.

3. I actually find that juicedefender helps my battery life. Are you saying get rid of it just because of the wake ups? just curious. I will try it though and report back.

4. will any of these impact how much slower the battery drains as a USE the phone or bring the current do to in between 2mA - 15mA when at rest?

* I am going to try friendcaster , but see my concerns (above).

* all my sync accounts are for two hours each. However it looks like htc's facebook is running, but I never set up that account...?

* I don't use haptic feedback on anything. Do you see that in my log somewhere?!?!

* my screen is usually at 60%. I know the screen is a killer.

* See question above about juice defender.

Thanks a heap people!
[BetterBatteryStats] Karpfenhai:
I'm Sorry, but i don't use facebook, in this case i am just a parrot, distributing other users experience, but just try it, there's always a way back if you're unhappy afterward ;)

JD is only helpful by disabling certain functions / services until they are needed, it only does things which can be done manually too by the cost of additional wakelocks, if you set up your phone properly, JD is not needed, its okay for "Users" /rookies but almost useless for Power Users / pro's. Better to do it right from scratch than being lazy ;) Just my two cents

The Audioout_3 Wakelock in your log tells me the haptic feedback thing, but i could be wrong, im not with HTC.. so its just a blind guess..
[BetterBatteryStats] chover427:
مشكور

جاري التجربه
[BetterBatteryStats] Karpfenhai:
No need to thank mate, just trying to help ;)
[BetterBatteryStats] steve austin:
* I installed friendcaster. I don't like having one service for two accounts, but if it will save me some juice I will explore the option.

* As far a JD, I don't know what setting / stock program that allows you to turn off radios & data like juice defender. If my phone is sleep, and I want the phone to ping for dat to sync on an hourly basis, I don't know how this functon can be performed without something lik JD. If I am wrong please point me to the program to replace jd. I'll try it.

* I think that audio_3 thing has to do with my headphones is some way.
[BetterBatteryStats] Karpfenhai:
Of course, if you actually listen to music, this explains the wakelock, but if not, haptic feedback maybe the culprit.

regarding JD, maybe Llama can do this for you too, afaik it does not cause a wakelock, but if you're fine with JD, no question, use it.

Every additional action on your phone will cause more drain, the contest is to find the right balance, if you are happy with your setup, then leave it as it is, but you asked us for help in the first place, so don't be surprised if we mention to disable / change things.. :p
[BetterBatteryStats] cheezzzz:
hey guys its me again, (saved my dump) this time ive changed to cm7, had insane batt life BEFORE i restored gmail. Now gtalk heartbeat and reconnect is just haunting me.. and so is AlarmManager and that bq275x0 kernel wakelock..

any suggestions? thanks!
[BetterBatteryStats] g3ckospy:
hi guys,

maybe someone can help me with my wakelock problems.. attached is my dumpfile.

thanks,

i attached the alarmdump after freezing all the unnecessary sammy apps. can somebody help me with this one?
[BetterBatteryStats] steve austin:
I do listen to music and podcasts. however, while the phone was at rest there was nothing to listen to. I will have to investigate further.

I never heard of llama before. I will check it out to see if it is something I can use.

Hey, I am not complainng at all. I appreciate all the help I can get. I am just manipulating different variables at the moment. Thanks.
[BetterBatteryStats] chamonix:
if Android would work that way everything would be fine. The problem is that there is no way that apps know what JD (or you) want to orchestrate and there's where the trouble starts:

- apps obsessing to try to get a data connection with more or less well designed strategies (error handling) while JD decides when data is to be on and where not.

The solution for that problem would be an architecture change allow a central service to decide on how to use the data connection and apps to query that central service e.g. "is data avaliable right now" or "when will data be available next so I can set an alarm for that slot"
[BetterBatteryStats] chamonix:
Release 1.8RC4

The last RC ist out, hopefully fixing the open issues

Enjoy!
[BetterBatteryStats] chamonix:
Tho hours is not enough to tell, please post an new reading after laeving your phone alone for a little longer.

From that reading what I can tell is that the wakelocks are caused by data traffic mostly (may viber but I can't tell for sure based on that info)
[BetterBatteryStats] chamonix:
15 minutes out of 5 hours 42 is not that bad. You may want to update to a more recent version of BBS for us to get more details on the alarms.

What looks weird is the amount of wakelocks caused by checkin (google). Do you use Latitude together with automatic checkin?
[BetterBatteryStats] Crazy-Silver:
Can anyone reup the 1.8.0 rc4 ? Direct link do not work for me.....

Samsung Galaxy S II I9100 Powered by MIUI Official + Siyah Kernel
[BetterBatteryStats] chamonix:
That problem is a known one but unfortunately the cause is unclear. Talking to service through a binder is never supposed to return a null parcel but that happens from time to time under circumstances that I can't explain (and by extension fix).

I will have another look into the source of the service itself (android core) to see if I could get more info from that parcel I get.
[BetterBatteryStats] mariotme:
Parse error on installation
[BetterBatteryStats] chamonix:
Edit: re-uploaded and tested it myself: working now
[BetterBatteryStats] dude0014:
Hey guys is 25 minutes of Android OS usage when phone was not being used for 5 hours a normal usage?

Now Android OS usage is 2 hours in 24 hours! On better battery stats I'm seeing wakelock counts of many services well over a 1000. Activity Manager and Alarm Manager over 3000! I've had Sync switched off the whole time.

Is it worth posting a dump? Im thinking ill leave it overnight today after a full charge.

Thanks!
[BetterBatteryStats] g3ckospy:
thanks will post tomorrow for another reading along with the alarm dump..
[BetterBatteryStats] Kaze105:
Hoping to get some help.

My battery was draining fairly fast so after checking BBB, there a ton of wakeup from Alarmmanager. I then got the dumb by adb and here are the things that are creating the wakeups, but I have no idea what they are or how I can disable them.

com.android.phone
2303ms running, 115 wakeups
115 alarms: act=com.android.internal.telephony.gprs-data-stallflg=0x14

com.google.android.apps.maps
1251ms running, 39 wakeups
23 alarms: flg=0x4 cmp=com.google.android.apps.maps/com.google.googlenav.prefetch.android.PrefetcherService
1 alarms: act=com.google.location.lbs.collectionlib.STOP_SCANNER.1 flg=0x14
7 alarms: act=com.google.android.location.ALARM_WAKEUP_SENSOR_UPLOADER flg=0x14
4 alarms: act=com.google.android.location.ALARM_WAKEUP_S_COLLECTOR flg=0x14
1 alarms: act=com.google.location.lbs.collectionlib.STOP_SCANNER.3 flg=0x14
3 alarms: act=com.google.android.location.ALARM_WAKEUP_CALIBRATION_COLLECTOR flg=0x14

com.google.android.gsf
9552ms running, 54 wakeups
3 alarms: act=com.google.android.intent.action.GTALK_RECONNECT flg=0x14
24 alarms: flg=0x14
24 alarms: act=com.google.android.intent.action.MCS_HEARTBEAT flg=0x14
3 alarms: act=com.google.android.intent.action.SEND_IDLE flg=0x14
[BetterBatteryStats] suku_patel_22:
Hey Chamonix,

Still the bars on the widget are hard to see

A request, could you please make a 2x1 widget without the bars and the kernel wakelock, i think that would be very highly usable.

Also according to me the font size is just too small. Please see the widget on top of bbs. That should be the proper font size. Easy to read for people with eyesight issues

So make use of the full 2x2 space and have lather font without graphs or a 2x1 as mentioned above
[BetterBatteryStats] radosnyz:
Can anyone help me? I don'y have deep sleep.
[BetterBatteryStats] chamonix:
I will add a 2x1 widget as suggested and also settings for font size as I guess that's the easiest way to serve multiple densities / requests.

About the colors that's weird: if I use 100% on both BG and FG I get the brightest colors and on your screenshot it looks like they still have a gamma < 100%.

Does the 1x1 have the same symptoms?
[BetterBatteryStats] Karpfenhai:
successfully installed and tested, nothing to complain so far!
[BetterBatteryStats] suku_patel_22:
Thanks for the2x1 widget and font setting

Another suggestion would be to show the percentage instead of the actual durations in the widget

Would make the widget more concise

Guess I was being stupid, removed and added the widget, looks fine..

Swyped from my Desire S waiting for Kernel 3, WAKE UP HTC
[BetterBatteryStats] sohebq:
Need help here. I lost 8% battery in 6-8 hours while sleeping. I want to know about

:

ConnectivityService (Android System): 1 m 51 s (111 s) Count:332 0.4%

NetworkLocationLocator (Google Services): 1 m 18 s (78 s) Count:536 0.3%

ActivityManager-Launch (Android System): 60 s (60 s) Count:191 0.2%

======================

Alarms (requires root)

======================

com.google.android.location (): Wakeups: 534

-

I don't have any maps enabled, so why this alarm is present? Log attached
[BetterBatteryStats] maardiweb:
Hi all,

I just searched this thread and I didn't find anything useful regarding to 2 kernel wakelocks which annoy me. They are called nfc and mipi_link. I'm using a galaxy nexus which has NFC, but while I have it disabled it is responsible for 500+ wakeups. Mipi_link doesn't seem to be mentioned earlier in this thread, but is the biggest wakelock on my phone. When I google it, the only thing I find is that it is somehow related to the camera, but killing my camera apps after using them doesn't seem to make any difference.

Does anyone know more? :)

thnx in advance!

EDIT:

It's you location service which wakes up your device. Do you use any weather services? You can decrease the amount of wakelocks by changing the interval for weather updates or just disabling the location services
[BetterBatteryStats] sohebq:
Even I was feeling it could be weather. What about these kernal wakelocks:

event3-1812" (): 6 m 38 s (398 s) Cnt:(c/wc/ec)773/0/0 1.5%

"sec-battery-monitor" (): 6 m 8 s (368 s) Cnt:(c/wc/ec)763/683/0 1.3%

"event1-1812" (): 6 m 4 s (364 s) Cnt:(c/wc/ec)720/2/0 1.3%

"event0-1812" (): 6 m 4 s (364 s) Cnt:(c/wc/ec)698/0/0 1.3%

"event2-1812" (): 6 m 4 s (364 s) Cnt:(c/wc/ec)10253/0/0 1.3%

What is event ????
[BetterBatteryStats] realmattez:
Strange graphs, battery fail?

What do you think about this behavior. PLS look at attached screenshot.

After I used Belkin Car USB charger (5V/1A) for a one day on the road in my car my phone start restarting. an keep restarting till I connect charger. If its fully charged It works out of wire, everything looks good for some time (2-3 hours). But then battery level falls down turbo rapidly.

Course , I should attach the dumpfile, if it helps

Thanks for any tips.

@chamonix: great app! thanx a lot.
[BetterBatteryStats] steve austin:
Round 2

Thanks for everyone who contributed the first go round.

observations:

* Getting rid of the facebook app really seems to let the phone rest and fall into an actual sleep.

* i went into battery monitor widget and changed the phone profile to "Sensation". Even though I was only given the maximum time of "60 seconds" for it to perform a drw, it now looks like the phone is logging history every 5 minutes as opposed to every minute - which is good.

* I am getting sleep, but when awoken the phone seems to burn through the battery (more on that in a bit).

Attached are the BBS stats, a few BBS screen shots and my battery drain from battery monitor pro.

I am still running juice defender for the moment, but that does not seem to be what is the major waking program (from what I can tell).

Secondly, looking at the bmp pics my phone does not settle in between 2- 15 mA when at rest. Is this normal? I hit 543, 434 and went as low at 15 - once.

A. does anyone know why the rates are so high even at rest

B. when sending a text message it goes as high as 911 mA. What is an acceptable drain and do you know of any way i can tweak to phone to drain slower based on the information I have provided. As always, thanks in advance.

C. IS there a credible alternative to Battery monitor widget pro that does not keep the phone awake as much or is that the norm.

As always, thanks in advance for all your expertise and assistance!
[BetterBatteryStats] gaui:
Guys, please help me. I have been having trouble with drains for a very long time. I'm really exhausted, really thinking about uninstalling all apps, start from scratch and install only one app by one. But that would take a REALLY long time.

I'm running a custom ROM (HyDrOG3N-ICS) and Siyah kernel (latest). This has nothing/little to do with that, because I've tried several other ROMs/kernels. Always the same/similiar problem. Also other users are experiencing great battery life with these two.

No CPU/GPU undervolt going on. I use the ondemand governor.

I have a "Screen off" profile that sets the CPU max_freq to 200 MHz.

I have a "Screen on" profile that sets the CPU max_freq to 1000 MHz and min_freq to 200 MHz.

I have tried to turn off WiFi, it didn't change much.

I have only sync on Gmail, calendar and contacts.

I have seen gprs.data-stall wakelock a lot lately. Even though I have mobile data disabled at

all times

.

I have GTALK_ASYNC_CONN wakelocks even though I froze Talk app with TiBU.

I did a cat /proc/wakelocks > wakelocks.txt and put it into a PDF in the attachments.

In attachments are also my WireShark and dmesg and BBS dumps

BBS dump in attachment not working, here it is: http://pastebin.com/W3iAw5Ui

192.168.1.20 is my phone.

I filtered the WireShark dump with this:

ip.src == 192.168.1.20 || ip.dst == 192.168.1.20

Because I was getting a lot of other network data.

Here are some screenshots:

http://imgur.com/a/cyhSO

As you can probably see in wakelocks.pdf battery-sec-monitor is getting very high wake_count. Don't know what that is.

PLEASE help me get to the bottom of this. :)
[BetterBatteryStats] Krisrk:
Carrier: Verizon

Phone: Galaxy Nexus

GPS: Enabled

WiFI: Enabled

Description: I have JD downloaded, but currently disabled while running this test. Facebook notifications are for every hour. Foursquare notifications are turned off. G-mail is my main account. I do however use an exchange account for my university.

Phone signal usually is very good, almost always 4G… however I turned to CDMA (3G) for better battery life and only use 4G if required and on AC power.

My battery typically seems to drain about 8 percent an hour with the screen off and the phone not in use. Which seems too high for not actively using the phone for calls, data, or texts.

And in advance, a big THANKS to anyone that is better able to understand these as I little knowledge about how to interrupt this data.
[BetterBatteryStats] Karpfenhai:
Hmm, the attachments are broken somehow, or maybe its my browser..

To Steve, forget about 2-10 ma, this is not a real value, it only appears right after charging, during the time the chemistry of the battery is still sorting itself.

So lets do a simple calculation:

Your Stock Battery has lets say 2000ma. This indicates, it could run on 2000ma for on hour till it would be empty.

So far so good, now the tricky part, based on the calculation above and your screenshot i would say a current consumption of 50 - 60 ma seems to be perfect for your phone during deepsleep, just compare the awake time and your drain, 100-160 seem to be the drain if your phone is awake and its screen is turned of (sync per example). As soon as your screen kicks in, the consumption raises to 200 and above.

So far the facts, now the calculation, deepsleep consumption between 50 and 70 ma (rounded 60 average) lets divide 2000 / 60 we have not an calculated standby of 33 hours (no flightmode, sync on) which is not that bad or?

What you should do is to consider your options, i can only give you recommendations:

- Check your Device thread for battery friendly basebands, there must be some choice.

- Try to underclock / undervolt your CPU / GPU, probably there is a custom kernel for that.

- Get a custom rom with less services running, (Bloatware)

You see, we have almost reached the end of the line, now the real work starts ;)

Good Luck Buddy!

@ Gaui, Since rc 2 of Siyah there is some unknown drain, go back to 3.0.1 and report! Use KI3 or KI4 Modem for at least 1 full charge cycle and report back.

Furthermore, give speedmod a shot, 1 cycle at least, speedmod will drain a lot less by default!
[BetterBatteryStats] gaui:
Thanks mate, I'll go back to Siyah 3.0.1 until he fixes this.

But Speedmod is a Sammy based kernel? I'm using AOKP/AOSP ROM. :)
[BetterBatteryStats] Karpfenhai:
Yeah sorry, forget about speedmod then ;) Maybe neak but im not familare with this kernel, read the thread ;)

Im curious about the difference with 3.0.1 and KI3, i easily get 2 days out of my phone with normal usage, lets see what happens to you! ;)
[BetterBatteryStats] gaui:
Yep, do you know where I can get KI3 baseband? :)
[BetterBatteryStats] sonicfreak360:
You need to download autoruns manager from the market, go to advanced mode, select "show system entries", find google services framework, and disable anything that mentions gtalk in it.

The reason is that Google Talk is connected to the Google services framework, meaning you can't just get rid of google Talk!
[BetterBatteryStats] gaui:
Better yet, disable EVERYTHING under Google Services Framework. :D
[BetterBatteryStats] Karpfenhai:
sure ... http://xdaforums.com/showthread.php?t=1131950

Basics.. though ..
[BetterBatteryStats] gaui:
They work at least here...

http://xdaforums.com/showpost.php?p=24970150&postcount=631
[BetterBatteryStats] Karpfenhai:
Nope, i get this ;)

<html>

<head>

<title>404 Page Not Found</title>

<style type="text/css">

body {

background-color:	#fff;

margin:	40px;

font-family:	Lucida Grande, Verdana, Sans-serif;

font-size:	12px;

color:	#000;

}

#content {

border:	#999 1px solid;

background-color:	#fff;

padding:	20px 20px 12px 20px;

}

h1 {

font-weight:	normal;

font-size:	14px;

color:	#990000;

margin:	0 0 4px 0;

}

</style>

</head>

<body>

<div id="content">

<h1>404 Page Not Found</h1>

<p>The page you requested was not found.</p>	</div>

</body>

</html>
[BetterBatteryStats] gaui:
I give up. :o
[BetterBatteryStats] sonicfreak360:
Ehh... That worked for me, but then the market stopped connecting to the server... So be careful!
[BetterBatteryStats] manuelkuhs:
So after a hard reset and only installing Battery Monitor Widget and AndExplorer and some initial news reading, I had the screen off (3G on) for half an hour and during that time (see attached BMW log) power usage was still ~150mA even though the phone was asleep.

Maybe I'm being too impatient and should wait longer...
[BetterBatteryStats] nobnut:
No, no, no, no there is something very wrong here for a factory reset.

I do not believe the figures that BMW is reporting. Has it correctly detected your battery mA capacity? Does it show 1,520mA in BMW settings? If not change it and try again.

If it does, uninstall BMW and install Current Widget from the Market, enable logging in it and perform the same test.

This is not right!
[BetterBatteryStats] manuelkuhs:
BMW reported 1580mAh and said it couldn't estimate itself because I've not done a 100-0% (or otherway, not sure) run (since hard reset). And it wouldn't let me manually change it, so I just installed Current Widget. Will see how that goes.

I remember when first getting the phone doing a hard reset and just seeing how fast the battery drains on standby (subjectively, no current measurement) and it was the same as with lots of apps installed - so maybe it's a problem with my phone?

I mean the current shown by BMW seems correct since the battery % level drops accordingly (see screenshots in last post).
[BetterBatteryStats] nobnut:
You read my mind. I didn't say as such as I didn't want to scare you.

If Current Widget reports the same statistics, then in my humble opinion, your phone is draining to an excessive degree. It should be exchanged for a new one by the vendor.

If however Current Widget reports more sensible figures then there is more investigation to do.

But... your earlier findings do show an unacceptable drop in battery in a short period of time. Let's see how you get on with Current Widget with your screen off test.
[BetterBatteryStats] Irontiger:
I also use Screebl, but it doesn't drain my battery. It prevents the screen from going off if you read a text. Otherwise it doesn't do anything... It is a know battery drainer?

IT