yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] j1gga84:
Many thanks for this updated explanation.

okay, gcm functionality is back but I also want to keep google location for high GPS accurancy, what must I set/not uncheck for that?

Everything with com.google.android.location.xxx I think? Or are there receivers I can disable anyway?

Many thanks and regards
[BetterBatteryStats] Sir_gpm:
[MENTION=4355376]Karpfenhai[/MENTION] It could be useful to update the list cuz I am in KitKat and a lot of the services you described are not present at least in the Roms I have installed. I use minimal gapp by Banks.
[BetterBatteryStats] derders:
it is my first post so I would like to thank [MENTION=1330150]chamonix[/MENTION] for this great tool and support and @ all who helps others

from time to time I read here in last years but it is hard to get an overview 25k+ posts :cyclops: *bravo*

followed [MENTION=4355376]Karpfenhai[/MENTION] Google Play Services and Google Framework guide (thanks :))

some questions

I am in ... what is this copresGcore_EventLoop ?

newer had this (popped up today first time) - drained a lot overnight but forgot to take a log before reboot

1.4 h log is attached

second is a log where I would like to know what is dependent to

com.google.android.gms/com.google.android.gms.checkin.EventLogService$Receiver

and is com.google.android.intent.action.GCM_RECONNECT related to "my never will get away" baseband_xmm_power

or anything else do a reconnect or draining?

same phones without baseband xmm power wakelock sleeps without loosing battery (mostly)

but I would like to minimize everything to this wakelock + standard

everything is of wifi/data/location/nfc

thanks for your help
[BetterBatteryStats] paco_ramirez:
Here you can see this unusual battery draining. 2hours at 4%/hr with no use.

Thanks
[BetterBatteryStats] Finnegans:
This is my battery life so far today, which isn't horrible but this copresGcore_EventLoop is killing me.
[BetterBatteryStats] jukyO:
Hello,

Can anyone help? 86% in 13 hours, moderate use. With such usage I could usually get over 50 hours from 100 to 0. Latest cm11.

https://www.dropbox.com/s/zadwcx3qtozhqji/BetterBatteryStats-2014-09-26_184529851.txt?dl=0

https://www.dropbox.com/s/mxp3e26as1m1ong/BetterBatteryStats-2014-09-26_184529955.json?dl=0

https://www.dropbox.com/s/im42yjceflvf0mr/logcat-2014-09-26_184530229.txt?dl=0

Thanks.
[BetterBatteryStats] Perseus:
The following is part of Google Shared Framework. Its used to check in to Google Server about different services.

com.google.android.gms/com.google.android.gms.checkin.EventLogService$Receiver

The following is used for conencting to Google Cloud Messenger server. Even if you don't have that messenger installed.

com.google.android.intent.action.GCM_RECONNECT

Whatsapp did keep the phone awake. That's just the nature of the app. You might be reccomended to use Greenify on it. I don't recommend that app.

Is your battery getting Old ? With just that usage, the drain seems bit steep.

Facebook is an app that is Top Battery drainer. Especially when you are NOT using the app or Phone. Would you consider accessing the Mobile Website instead ?

Also there are Wireless connectivity related wakelocks. You'd have to make changes on the Router to fix them.

Its the Google Shared Service. Any attempt to reduce it will potentially make you loose Alerts from Google apps such as Hangouts and Gmail.

Be happy to help. But can't access your log sue to firewall. Can you attach just the Text log here ?

Also The log needs to be an Idle Log preferably Overnight.
[BetterBatteryStats] jukyO:
Ok. Will do overnight, and provide those logs. Last night was 30% down without wifi/ data.
[BetterBatteryStats] F308:
1. What the h*ll is with this AudioMix ?

No way to get rid of it ?

2. Other question:

Does anyone know how to freeze apk from commandline ?

I'd set up cron works freezing aps in the evening and waking them up in the morning.

3. BTW: How I hate site's layout changes. Need learn navigating from the very beginning.

(Well, I am dinosaur, all right).
[BetterBatteryStats] Perseus:
1. Wakelock from Audio usage. Particularly usage of headset or rear speaker.

2. Use Tasker. I believe there are some ways there.

3. Go to the lower left corner. Change the theme from that dropbox to XDA 2013.
[BetterBatteryStats] derders:
thanks for your answer Perseus71

so checkin.EventLogService$Receiver and GCM_RECONNECT are necessary for other services/apps

for the copresGcore_EventLoop

I do not have Google+ or Hangouts installed (use PA-microGAPPS) and I do not use Gmail (but is installed/freezed)

this never drained before .. but yet... (since 48h)

could it be GPS 6.1 (I checked version number in last days 5.xx but yet I have 6.1)

question of course is why and how to get rid of it ?
[BetterBatteryStats] Perseus:
Please Apply the following Mod.

http://xdaforums.com/showthread.php?t=2357417
[BetterBatteryStats] Karpfenhai:
looka almost as expected, take care for your sync settings, disable them all, deny auto updates from playstore and take another reading ;)

---------- Post added at 11:04 PM ---------- Previous post was at 11:02 PM ----------

Hmm, the one from Sep. 03 was taken on KK, but im currently messing with GPlayservices 6.1, as soon as it settles ill provide another guide, im still experimenting ;)

Regards
[BetterBatteryStats] :
Can't wait for it!! Please don't forget to publish a guide for Rom toolbox pro users too. Looks like Google play services is full of services and receivers and surely some of them can be disabled with no side effects..waiting eagerly for your guide!

N7100 - Paranoid Android 4.4.4 [MENTION=353015]240[/MENTION] dpi
[BetterBatteryStats] derders:
I followed this guide, but do I have to revert older GPS stuff that were linked before in the guide from this pic http://xdaforums.com/showpost.php?p=47177180&postcount=20256 or is it additionally ?
[BetterBatteryStats] Renton91:
Can someone give a look at my log, please?

Thank you.
[BetterBatteryStats] xavihernandez:
You do not recommend Whatsapp ?

I don't know about my battery. Fast charge may have damaged it.
[BetterBatteryStats] kelly66:
Hi Perseus71,

I have done the mods suggested in this thread and by Skipjacks. While I am getting decent deep sleep of about 92-95%, I still lose about 2-3% overnight with wifi off. Under Alarms, I notice an Intent named "android.net.ConnectivityService.action.PKT_CNT_SAMPLE_INTERVAL_ELAPSED" (about 5 per hour). Any suggestion on how to minimise this Alarm? After every charge this is the only one which seems to be draining the battery on a relative scale.

Thanks.
[BetterBatteryStats] Finnegans:
Thanks for your reply! Is there anything I can do to reduce it though? I never use Hangouts and my mail app is Mailbox so I'm willing to sacrifice that to get a better battery life.
[BetterBatteryStats] njcasillan:
Extreme battery drain with *sync*/com.google.android.gms.fitness/com.google/eM_ADDR

Hi! Left my phone overnight last night and it got severe battery drain from 100% to about 50% doing nothing. My phone was awake 100% for 9 hours and the culprit is

*sync*/com.google.android.gms.fitness/com.google/eM_ADDR

Is there any way to stop this? Thank you!

Here are my logs
[BetterBatteryStats] bailyc:
Interestingly, I too am having massive battery drain due to the android.gms.fitness wakelock. Does anyone have information about this particular wakelock? I can't find where it's coming from but it has held my phone awake for over 9 hours today. This is the first time I've ever noticed it surfacing.

Thanks!
[BetterBatteryStats] Surj138:
I just noticed Google Fit in the Google Settings app today. I would start there
[BetterBatteryStats] Wh1t3Rose:
Look at [MENTION=3639717]Perseus71[/MENTION] helping people like a boss [emoji106] . I need to get off my lazy butt and check these logs [emoji14]
[BetterBatteryStats] Pinan:
Maps/GPS

Karpfenhai (or anyone who knows). I followed your latest System Tuner Guide and it really helped. I'm getting 0.2%hr drain in deep sleep with my Galaxy Note 2 running 4.4.2!

However, Maps/GPS will not come up. Keeps saying "waiting for location".

Do you know what to re-check in System Tuner to get Maps working again?

Thank you much!
[BetterBatteryStats] Zordak7:
Hello!

Same question. Is not let my phone go to deep sleep, how can I disable it?

Thanks!
[BetterBatteryStats] jukyO:
Hello,

hopefully someone can help here to isolate what exactly drains battery 28% overnight.

No internet/data enabled.

Guess it's first process in partial wakelocks:

Links to logs:

https://www.dropbox.com/s/xtqka3puxeyy9ot/BetterBatteryStats-2014-09-28_074643874.txt?dl=0

https://www.dropbox.com/s/bu5hue7h34lohch/BetterBatteryStats-2014-09-28_074643931.json?dl=0

https://www.dropbox.com/s/oavwsp73cq9hwhn/logcat-2014-09-28_074644122.txt?dl=0

Thanks in advance!
[BetterBatteryStats] njcasillan:
I guess this started for me when the update for Google Play Services was pushed two days ago. Have you also experienced crashing of the Google Play Services and location like mine?

Tried looking into Fitness of Google Settings but I have no apps connected to it.
[BetterBatteryStats] F308:
1. Thank you. I don't use those but looks like this is necessary. I thought it is for music or/and movies.

Looks like I cannot get rid of it or phone's functionality will break off.

3. Thanks for that, too.
[BetterBatteryStats] bailyc:
YES. It is horrible. It crashes constantly.

I too do not have Fit devices connected. I have successfully stopped the Fit constant syncing by going into Disable Service (a free app) and disabling the FitnessSyncAdapterService item under Google Play services.

However, that does not help the constant crashing.

I have been trying to find a way to disable the Play Services auto-update because the only way to fix this is to uninstall the updates. But then it updates itself.

Does anyone have a tip on how to keep Google Play Services from auto-updating itself? (Not other apps in the play store, just itself.)

Thanks!
[BetterBatteryStats] Finnegans:
I'm also getting an insane amount of this android.net.connectivity.service.action.PKT_CNT_SA MPLE_INTERVAL_ELAPSED

Over 70 wakes an hour with the screen off. Any ideas?
[BetterBatteryStats] Cozmos23:
Sinc e this weekend I'm getting a lot of wakelocks from the Google Play Location Services. They try to get my location every 10 seconds and also wake my phone for that.
[BetterBatteryStats] mdamaged:
Google just wants to make sure...
[BetterBatteryStats] kaLuta:
Greetings,

since couple of weeks ago my battery life has been exhausted, with minimal usage on my ZTE Blade G i dont get more than approx 16 hours of battery life. I studied what could possibly be the case, so i started with programs like GSAM battery, betterbatterystats and such, and there I learned a lot about wakelocks. Since the beginning of my quest to determine and fix this problem there was a certain wakelock called "gpio_kp". This wakelock uses my CPU approx 95% of the time, and make my device 100% awake, all time, which destroys my battery life. I tried everything from tweeking certain apps, settings, removing and reinstaling applications, I even installed another stock ROM, wakelock detector, even app called "Unbounce" that requires xposed but there i couldnt find "gpio_kp" wakelock. So i unbounced a lot of wakelocks but still "gpio_kp" remained.

Atm as i write this to you, completely helpless, craving for salvation my Betterbatterystats shows this on Kernel wakelocks:

"gpio_kp" 2h 46m 31 s Cnt: (c/wc/ec)0/0/0 98.5%

"powermanagerservice" 1m 24s Cnt: (c/wc/ec)494/0/0 0.8%

as u can see gpio_kp uses almost 100% time of the cpu... while second on the list is only 0.8%.. Looking forward to some answers and solution, i googled a lot about this, and didnt find any solutions, maybe this could be ground braking android wise.

I will put BBS dumpfile in atachment
[BetterBatteryStats] Cozmos23:
I don't get it even when it looks funny.

But also my english is too bad to understand :p
[BetterBatteryStats] jukyO:
Bump. Thanks.

Looks like recent update of google play services causing this

com.google.android.gms/.config.ConfigFetchService

Will revert gapps to previous ones to check the draining.

If anyone knows how to resolve it without gapps downgrade, I'll appreciate it.
[BetterBatteryStats] thienquang07:
can some one plz show me how to use this app? can this app save battery life? Or it's just a monitoring-battery app?

sorry, I'm a noob.
[BetterBatteryStats] Karpfenhai:
This should be unrelated, what happens of you turn on GPS manually?

---------- Post added at 12:22 AM ---------- Previous post was at 12:20 AM ----------

Disable System Update receivers within gsf and Google play services, then try again.
[BetterBatteryStats] Pinan:
The same thing, no difference.

I had done a Nandroid right before using your guide, so reverted back to it and all is well. I don't know what else to think. :confused:
[BetterBatteryStats] Karpfenhai:
Hmm, no clue what to recommend [emoji12]

Apply the changes step by step until it stops working, spare that one and see how it goes.

My setup turns on GPS while maps it's active (llama) . No issue with that. Sorry.
[BetterBatteryStats] dimm0k:
I've been getting these some time over the course of the night while I sleep... anyone know what the cause is? I have "download attachemnts" unchecked and to sync 30 days worth.

*sync*/gmail-ls/com.google/eM_ADDR (com.google.android.gm.Gmail): 31 m 27 s (1887 s) Count:9 4.7%
[BetterBatteryStats] guido_glx:
You made my day! [emoji2]

I didn't know that could be done

Enviado desde mi GT-I9300 mediante Tapatalk
[BetterBatteryStats] jeremysherriff:
I'll grab screens in a few minutes, and if you're really lucky :) I'll get a list of procs running with it off vs on and see if i can actually name it.

But, please note, i have the battery info service running and BBS still crashes.

It seems to do something with network data (the upload and download indicators start to do something) and then it FC's. I've tried to disable the google analytics part, enabled airplane mode etc etc but could only ever get it to work for a minute before it FC's again, and then won't open until I reboot. And now, a reboot doesn't resolve it eaither any more.

What other info can I get you to help?
[BetterBatteryStats] chamonix:
The time spend by K9 mail may not seem high but looking at the high counts you may want to try the alternative of switching to poll with a decent frequency. I don't say it will be better but depending of the usage and amount of incoming mails it may be.

The next candidate to show high wakeups is bmw (Battery Monitor Widget). It looks like you have something around one wakeup per minute and that's the cost of having the "history update rate" that high. I prefer to run one update per 5 minutes when I do monitoring.

I also see a kernel wakelock SMD_DATA but google does not give me any valuable info. You may want to check in your kernel thread as this is definitely not userland.
[BetterBatteryStats] jeremysherriff:
MIUI screens for batteryinfo service

Screenshots from MIUI-PT build 2.1.6 for u8800 (unofficial).
[BetterBatteryStats] chamonix:
The reading is not very representative as it shows 23 minutes of awake with screen off. On the other hand there are a few very obvious wakelocks with huge counts that you shall be worried about:

AlarmManager (Android System): 47 s (47 s) Count:3075 0.2%
keyguardWakeAndHandOff (Android System): 1 s (1 s) Count:2460 0.0%
SCREEN_FROZEN (Android System): 15 s (15 s) Count:2425 0.1%
sleep_broadcast (Android System): 23 s (23 s) Count:2390 0.1%
ActivityManager-Launch (Android System): 1 m 12 s (72 s) Count:2285 0.3%

The main cause of alarms could not be determined by BBS (comparing the counts) but I have the feeling that the problem (and the high counts) are related to your lockscreen.

I'd suggest you turn your lockscreen off and take another more representative run, adding a manually created alarm dump following the instructions provided here.
[BetterBatteryStats] chamonix:
As I run 4.03 as well and have beautiful graphs you should maybe provide a little more info:

- what device

- what build

- is it an offical release (meaning you have a GN) or a leaked build

- who built the rom

- was it built from sources of from an image
[BetterBatteryStats] chamonix:
That's a nice start. Now if you could find the place where the battery service is to be turned on/off and tell me what setting makes the ROM compatible with Android's "batteryinfo" service (and allowing BBS to receive proper data) it would be really helpful.
[BetterBatteryStats] chamonix:
Ok, I have been pretty busy with work stuff and had to catch up a few pages at once. I hope I di not forget anyone and if I did please feel free to remind me, I'll spend time here at a regular basis this week and try to anywer questions as the come.
[BetterBatteryStats] ambrar12:
So I charged up my phone yesterday evening, unplugged it and let it stay in standby overnight. Then this morning I dumped these stats (attached). It's a little bizarre though. Some nights I've seen RILJ or some other things going crazy, last night was less bad (possibly because I did a phone restart).

The alarm stats unfortunately I didn't do until late afternoon today (I didn't realize you needed to type and enter "su" in the terminal emulator before typing and entering the dump command- I highly recommend adding that to the instructions). I've attached the dump anyways in case you can see anything and will do it again tomorrow morning.
[BetterBatteryStats] jeremysherriff:
The second screenshot, the "monitor power usage" on/off slider is the GUI part of turning it on/off, and the menu immediately below that is what you use to get to the next two screens. Is that what you mean?

In terms of actual service calls, sorry dude I'm so *not* at that level!!

I'll see if i can find someone who might be able to help, in the dev threads.

Edit: I note that the graphs are cumulative and get reset only when you disable/enable the option of monitoring power usage.

I'm not sure if they eventually roll over, I ran three days and it didn't but the graph sure gets crowded.

But reading between the lines, this makes it quite different to what you get in stock/CM etc so I'm guessing they collate stats and put it somewhere, so you might not be able to find this easily. And then the FC's are probably part of that collation system - the background process comes along and collates the stats and then wipes the file(s) clean, while your app has read handles open to them. Extrapolating, that means that the files don't exist for a short period of time... which would then present the same behaviour as having the monitoring disabled in the first place.

It's just a guess ;)
[BetterBatteryStats] chamonix:
The reason for my question was not that much how to have miui display the stats but rather what settings (on/off) are required for bbs to be able to collect its data. The FC occurs because the service bbs talks to is either not loaded or not responding. It would be great if you could test what miui setting is required for bbs to connect to the batteryinfo service and show some data. Once we figured that out we'll from there to increase stability
[BetterBatteryStats] chamonix:
Looking much better already, looks like you changed bmw's sample rate. Another app (nextapp.systempanel) is obviously doing something with the same frequency. It's important to know the real cost of monitoring.

About RILJ: I wouldn't worry about that. Depending on reception the wakeups may vary but what you have is not that bad. If you feel like testing you may look for another radio to Flash but I strongly recommend that you look for a file to fall back. When it comes to radio everyone has to test and see what radio workshops the best for him.

To sum it up: except monitoring wakeups there is not much you can do to reduce the drain under the nightly conditions you tested. Now I suggest to extend the test into the day where you will be moving around. Under those conditions we may find other behaviors and try to correct those as well
[BetterBatteryStats] jeremysherriff:
Sorry dude, I still don't understand what you mean by "MIUI setting".

The GUI setting I mentioned is the only option that affects this, with it disabled BBS never works, but with it enabled BBS works sometimes.

I have sent a PM to the dev who ported this ROM, a member of MIUI Portugal. My ROM is unofficial so I guess he has had to get pretty familiar with the inner workings. I've also asked him to suggest another dev if he can't help.

My battery issues are actually resolved through common sense, but I'll continue to work on this issue anyway. PM me if you want me to do something outside of this discussion thread.

Cheers
[BetterBatteryStats] shahulvm:
Hi, can someone give me an helping hand in identifying the wakelock I have. This is a short run dump, later today I shall be taking a report for 8 hours. Appreciate your help..
[BetterBatteryStats] jeremysherriff:
Hoping not to show my ignorance, but do you have battery drain? I can't see anything wrong in these stats (I'm no expert..)

What was your battery level at the beginning of the 1.5 hours, and then when you took the stats?
[BetterBatteryStats] shahulvm:
Honestly, I dont see much battery drain...may be 3%. I would like to know why there is a wakelock in the 1.5 hours even when there isnt much activity.

particualrly to undertstand " com.google.android.gsf (): Wakeups: 16"

I Only have my contacts sync and still wondering. On the otherhand, i have deleted Gtalk and yet I see it as a process com.google.process.gapps (com.google.android.gsf.gtalkservice.service.GTalkService)
[BetterBatteryStats] jeremysherriff:
3% with a bit of usage sounds fine. The wakelocks are background processes that happen on a schedule, such as checking the market to see if app updates are available. 16 in 90 minutes is low, basically one every 6 minutes. Problem wakelocks have numbers like one every second or even higher, possibly into the thousands per minute.

You'll always get some wakelocks, they don't represent a problem as such but can be used to identify problems if issues are experienced. This thread has a link to a good write up about them, try the first post I think. A bit hard for me to find the link on my tablet otherwise i would give you the link.

If you're still concerned, post your stats after the 8 hours as you intended to do. But if you're like me, and this sgs2 is new, you'll be tinkering all day and run your battery flat anyway ;)
[BetterBatteryStats] shahulvm:
Thanks Jeremy, your answers have atleast helped to add a little knowledge to me.. Shall post another one later (after 8 hours).

Thanks much.
[BetterBatteryStats] ryomakun:
guys can help me.. i think my battery drain fast , here i send my file dump from this app, can u guys help to explain , because i still dont understand >,< thx b4
[BetterBatteryStats] s2d4:
it wasn't hard at all, yours is one of the easiest to read so far, try having a go at reading it next time.

Remove goscreen lock and juice defender and you are all good
[BetterBatteryStats] ryomakun:
ok thx, but can u explain how u get that goscreen lock n juice defender ?? because i dont understand how to read ><
[BetterBatteryStats] Karpfenhai:
You're welcome ;) Glad to help ;)
[BetterBatteryStats] Pinan:
Will do, and I'll keep you and the thread posted, in case anyone else has the issue.

Thanks
[BetterBatteryStats] bailyc:
Thanks, I will give it a try.
[BetterBatteryStats] kaLuta:
Bump!
[BetterBatteryStats] Perseus:
Curious Report.

Screen dark (): (0 s) Ratio: 0.0%

What gives ? How come your screen was not off ?

Regarding that wakelock, Do you have any Keyboard Apps ? This could be related to USB connection. Check the USB port of your device. Maybe it has to be cleaned again.
[BetterBatteryStats] Mistertac:
Hey there.. Im wondering what exactly the "block before sleep" WakeLock does and what it effects?

I know it's an Android OS WakeLock but I've been trying to dig around on Google for a better explanation of what it's actually doing... Do you happen to know?

I know you know your sh%t and figured I'd ask that's all lol thanks man.
[BetterBatteryStats] Perseus:
Difficult to say. Try a reboot and see if it reoccurs.