yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] EP2008:
I tried both 1.16 and 2.0.0.0b2 with the same results.

Sent from my SM-N910U
[BetterBatteryStats] marknoll:
Maybe try the oldest ..
[BetterBatteryStats] EP2008:
Works better, but the kernel and alarms are blank (no error message, just no stats). I've allowed root access.

As stated before, other apps are giving me alarm and kernel wakelocks (and all the other stats) without issues. What's locking BBS out?
[BetterBatteryStats] Karpfenhai:
Just wait for [MENTION=1330150]chamonix[/MENTION] to respond and provide a logcat. You can achieve that from within the bbs app.

Regards
[BetterBatteryStats] Perseus:
To All,

With regards to an Alarm under com.android.phone AKA Phone app. Its called

com.android.internal.telephony.data-stall

There is a Solution in sight for the Data-Stall alarm caused by com.android.phone. Please see

CM Commit here.

I have made a test build for my device to extensively test for it. Its helping a lot!. You'd want to ask your Rom Dev to include that commit.
[BetterBatteryStats] andee39:
Hi,

Was hoping someone could answer a question for me. I have an extended battery (5800 mah) and get at least 4+ days between charging which I think is pretty good but recently I started to notice that my top alarm in android is android.app.backup.intent.RUN is ridiculously high compared to the rest of the alarms. What exactly is that? :confused: An app trying to backup? I searched and saw it mentioned in multiple places but didn't see an explanation of what it is?

Thanks.
[BetterBatteryStats] Hedied4me:
Can someone please help. My phone refuses to sleep because of these two partial wake locks: copresGcore_EventLoop and Checkin Handoff.

(was able to fix checkin handoff)

Edit: copresGcore_EventLoop makes my phone not sleep even a wink, ever.

Sent from my cdma 4.4.2 Virgin Mobile HTC Desire 601 zara_cl
[BetterBatteryStats] wilkster:
This could mean some data being backed up to goggle is corrupt. Under settings, account, open up the Google account and force a sync. Then see what, if any, Google services are taking a long time to sync. Depending on the culprit it may involve clearing cache or some other entries ( Google it )
[BetterBatteryStats] andee39:
Thanks for the info. I actually did google it but didn't find any answers. Maybe I wasn't asking correctly! [emoji1] I will take a look at that.

UPDATE: so it turns out there was a problem with my google account syncing properly. Took forever for some of them to complete. I cleared data and will keep an eye on it to see if it is resolved.

Thanks again! [emoji41]
[BetterBatteryStats] Celestial Fury:
3 Hours - 0% battery drain with WiFi ON

Hello, I wonder what to make of these screenshots.

Other - 3 hours (50% asleep, 50% awake) = 0% battery drain.

Wakelocks - WeChat going crazy even when not using it but causing no battery drain.

Alarms - These stats seem really out.

I suspect that the option to keep wifi on during sleep - but only when charging actually turns wifi off but somehow BBS and Android don't register it?
[BetterBatteryStats] mdamaged:
This post suggests removing and readding your google account fixes it.
[BetterBatteryStats] Hedied4me:
I've tried that also. I've tried many things, turning off various services using android tuner all to no avail. I've even used deep sleep battery saver and had it set to sleep always while screen is off. Nothing. Tried amplify/unbounce for xposed mod. Nada. I'm simply at a loss. It only started when I updated the 3 new Google apps: calendar, maps and gmail. Although its probably one of the first two. Thanks for the advice, I will try removing Google account again tonight.

Sent from my cdma 4.4.2 Virgin Mobile HTC Desire 601 zara_cl
[BetterBatteryStats] Perseus:
Do a factory reset then re-flash current Rom and Gapps.
[BetterBatteryStats] chamonix:
Simple: gplay gets updated when a version gets released, XDA gets all betas and release candidates.
[BetterBatteryStats] Hedied4me:
Thanks for the suggestion. I did that last weekend. Was the first thing I did. I'm actually using stock Sense 5.5 rooted and s-off. I can get rid of all the other wakelocks except copresGcore_EventLoop. My phone won't even sleep for 1 second because of this stupid wakelock. For me it only started with recent update to gmail 5.0, calendar 5.0 and maps 9.0 and perhaps some Google play service update im unaware of. I dont have App ops even though I am on KitKat, something to do with Sense I think. Is there an xposed mod or app that does the same thing as app ops

Sent from my cdma 4.4.2 Virgin Mobile HTC Desire 601 zara_cl
[BetterBatteryStats] wonsky21:
Can somebody help me to sort out these alarms?

GT-I9505 | SlimKat 4.4.4 jflte 8.10 WEEKLY
[BetterBatteryStats] vitoski:
I also have very similar alarms /wakelocks to yours and was trying to find out what they are responsible for... however no luck. Btw do you have Moto X?

Getting back to the point I am using Amplify to limit these, specifically SEND_IDLE, GCM_RECONNECT, eventLogReceiver (however this even with 900sec is not getting blocked...) with 600sec and have not encountered any issues so far.

I was searching for PKT_CNT_SAMPLE_INTERVAL basically everywhere I could think of but no luck. I found that limiting this with Amplify (600sec) doesn't work (could be too low time) so I stopped.

Nevertheless I would be grateful if anyone with similar alarms /wakelocks could share his findings.

Sent from my XT1052
[BetterBatteryStats] wonsky21:
Nope, I own Samsung S4 (aka i9505, aka jflte) :)

GT-I9505 | SlimKat 4.4.4 jflte 8.10 WEEKLY
[BetterBatteryStats] Solace50:
requesting dark theme be implemented as an option thanks.
[BetterBatteryStats] chamonix:
https://github.com/asksven/BetterBatteryStats/issues?q=milestone:R2.0.0.0B3+is:closed
[BetterBatteryStats] chamonix:
B3 is probably coming tomorrow
[BetterBatteryStats] Hedied4me:
So how has anybody else dealt with the wakelock called copresGcore_EventLoop? My poor phone wont sleep because of this bastard.

Sent from my cdma 4.4.2 Virgin Mobile HTC Desire 601 zara_cl
[BetterBatteryStats] skingg:
I have not been able to display to view as "Since Screen Off" as the default stat type from the widget, there are no options for me to choose from the home screen within the app except "Since Boot". How do I fix this?
[BetterBatteryStats] jswclw:
+1
[BetterBatteryStats] tsiftsism:
Hi,

Since I unplugged this morning my device I noticed a battery drain and I saw in the app a Eventx-884 wakelock (never noticed it before).

I even rebooted the device, but the wakelock is still there.

Anyone knows what may causes it?
[BetterBatteryStats] elsworth1983:
Just noticed in bbs I have a wakelock called ScheduleNextAlarmWakeLock_5 now am sure I've never seen this before can anybody advise me what I could be I've googled a bit but no luck. My device is HTC m8 and running stock with stock kernel. https://www.dropbox.com/s/ykfyclnl9mtn38u/BetterBatteryStats-2014-11-09_152055958.txt?dl=0
[BetterBatteryStats] chamonix:
2.0B3 is up. I hope you like the dark theme (among other goodies)
[BetterBatteryStats] qwerty22:
Thanks! But... I can`t see settings menu:

Upd.

After rebooting the problem is not reproduced
[BetterBatteryStats] vitoski:
You have to reload the app. There seems to be a problem with applying the theme... which require app restart.

If you switch from dark to light or the other way around there will be some graphic glitches (as on your screenshot) until you restart the app.

Sent from my XT1052
[BetterBatteryStats] Solace50:
changing themes produces a FC as well, on top off inital load is defaulted to some weird theme until you reboot or select white theme then dark.
[BetterBatteryStats] shaggyskunk:
I changed from the light to dark theme - No issues - just restart the app to apply
[BetterBatteryStats] chamonix:
Ok, obviously different devices behave differently when it comes to switch themes. I will check if I can solve this without Restarting the app (that can be done by code too).
[BetterBatteryStats] jr67:
I have a nexus 4 using CM11. The settings menu has an extra "Display" title at the top and if I scroll as far down as I can "Advanced" under "Settings" is cut off (though I can still click it). I thought perhaps it was the theme I was using but it still happens even after reverting to the stock theme.
[BetterBatteryStats] shaggyskunk:
Did you tweak the dpi on your device?
[BetterBatteryStats] jr67:
Nope.
[BetterBatteryStats] shaggyskunk:
It's displayed properly on my N4... Not sure why it isn't on your Nexus?
[BetterBatteryStats] Karpfenhai:
Looks like his overflow menu is ignored by the app, xposed maybe?

[MENTION=1330150]chamonix[/MENTION], I'm twisted minded about b3, still no since % and the possibility to suppress from / to is gone, please bring it back, pay attention for small screen devices, maybe by adding the feature to adjust circle and icon size?

It's to big imho.. [emoji20]

Why is there so much space?

1.16 was light and filigree in comparison, I see the need of matching material design but this.. hmmm..

Furthermore the icons and circle should be in line with the text, everything else is waste of space

Last thing, why are so many customization options gone?

No offense btw, thx and regards.
[BetterBatteryStats] vitoski:
Looks like B3 has an issue with displaying number of wakeups per minute/hour. Until B3 BBS was showing nr of wakeups per minute or hour. Now it displays (infinity/min) all the time.

btw. Do you know what causes: ANDROID.NET.CONNECTIVITYSERVICE.ACTION.PKT_CNT_SAMPLE_INTERVAL_ELAPSED alarm?

This is the highest number of alarms I get for Android.

Searching on Google gives no clue besides the fact that it appears in a lot of BBS dumps people publish.

Sent from my XT1052
[BetterBatteryStats] chamonix:
#518
[BetterBatteryStats] chamonix:
#519, #520, #521

I recognize that layouts is a tricky matter, especially while making changes with the range of screen sizes.

I will try the following:

I will add a few setting to tune margins, font and icon sizes so that you guys can tweak and report back what values are optimal in your eyes on your devices.

Using your feedback I can then define those values for different screen densities to be set as default, making sure that BBS looks nice on all devices (I admit that I am currently only checking on my n5 and n9, will undust my Nexus s for the occasion).

About the options: I have removed some because the underlying features are going to be overhauled or maybe because I wasn't aware that they were useful. Of course I don't want to steal any useful features from you so please feel free to push back in telling me what features I should put back in / not forget to re-add.

I really appreciate this kind of feedback so be reassured: no offense taken ;)
[BetterBatteryStats] Hedied4me:
Please I'm begging for help with the wakelock called copresGcore_EventLoop. I have searched and searched and googled but do not see anything that has ultimately helped. This is what my phone looks like everyday (attached image). I have factory reset more than once. It only started about two weeks ago. Please does anybody have any information on getting rid of this wakelock? [MENTION=1330150]chamonix[/MENTION]

Sent from my cdma 4.4.2 Virgin Mobile HTC Desire 601 zara_cl
[BetterBatteryStats] Perseus:
Please can you post text Dump ? Preferred one from Idle Period.
[BetterBatteryStats] Hedied4me:
I'm very sorry, I've never done that before. Is that something I can do from within bbs application?

Sent from my cdma 4.4.2 Virgin Mobile HTC Desire 601 zara_cl
[BetterBatteryStats] Osama Zabin:
Press share from BBS application, then save dump as text as shown in snapshot.

Plug/unplug your charger, leave your phone idle over night, take the dump at morning and post here.
[BetterBatteryStats] blue_moon:
Sorry. What is 518?
[BetterBatteryStats] Karpfenhai:
Uhhm, search harder...

copresGcore --> Broadcast sent to handle copresence sync settings.

So, either you've messed something up with your gms app (Google play services) or you have a misbehaving app trying to sync all the time...

I think you may have flashed an old gapps package, I recommend to get and flash a current one .

See how that goes, regards.

---------- Post added at 09:25 PM ---------- Previous post was at 09:23 PM ----------

Sorry for being a smartass but Google for "github" paired with "better battery stats" and check the open issues section, you will be enlighted [emoji41]

Regards..
[BetterBatteryStats] Hedied4me:
[MENTION=4355376]Karpfenhai[/MENTION]

I use stock rom and kernel. Rooted and S-off. I have most if not all syncing off that I can think of. I only sync when I need it and turn it off afterwards. Ill post a dump and hopefully that will help. Thanks for responses guys.

EDIT: Also I do not use Google Search or Google Now. Both are uninstalled so there is no Google Ok.

Sent from my cdma 4.4.2 Virgin Mobile HTC Desire 601 zara_cl
[BetterBatteryStats] gaich:
This Google Play Service should be responsible for that:

You can disable it usung My andoidtools, Disableservice or other programms, just to prove I am right, but it can have some consequences. Anyway, I am living without it.
[BetterBatteryStats] Hedied4me:
Boy did I ever hope you were right. But I did disable the service just now and still not one second of sleep. Ill post a dump tomorrow of tonight inactivity.

Sent from my cdma 4.4.2 Virgin Mobile HTC Desire 601 zara_cl
[BetterBatteryStats] Karpfenhai:
Post a logcat or check by yourself what happens after "syncing filesystems" if applicable.

..or send me your device, I'll fix that for you [emoji14] [emoji41] [emoji12]

I assume you're rooted, could you freeze your play service for a moment? Some stuff will crash but might be interesting.

Regards
[BetterBatteryStats] Hedied4me:
Filesystems?

Sent from my cdma 4.4.2 Virgin Mobile HTC Desire 601 zara_cl
[BetterBatteryStats] Karpfenhai:
That's usually the command send before putting the device to sleep.

PM: syncing filesystems

Just to make it t easier to search there logcat.

But as perseus said, post a dump first.

Regards
[BetterBatteryStats] Hedied4me:
I froze google play services. First time I've seen deep sleep in more than a week. Wish I could leave it like that. Will post a dump tomorrow morning.

Sent from my cdma 4.4.2 Virgin Mobile HTC Desire 601 zara_cl
[BetterBatteryStats] Karpfenhai:
Ahh, great then, so we are sure its caused by GMS then, good, so which version of playservice do u use? 6.1.38 ?

Try to upgrade it or more important clear all its data and maybe uninstall all updates, it will self upgrade in no time but maybe it fixes the issue.
[BetterBatteryStats] Hedied4me:
I'm using 6.1.88. Ill clear data and uninstall updates tonight. Sleep while I let it sit idle off the charger and post my dump in the morning. Thanks for your help

Sent from my cdma 4.4.2 Virgin Mobile HTC Desire 601 zara_cl
[BetterBatteryStats] vitoski:
Hi all.

Wanted to share my recent finding. I was getting 1 minute 'ConnectivityService' wakelock every time I turned off WIFI. Finally I was able to pinpoint under which circumstances it appears.

When the 'Mobile Data' is switched off (i.e. by toggle in notification area) and you switch off Wifi this wakelock appears. It looks like it is searching for alternative source of network connectivity for a minute.

If you turn on mobile data and then switch off Wifi it will not appear or will be there but for a very short time.

Sent from my XT1052
[BetterBatteryStats] Hedied4me:
Well I goofed there. Uninstalling updates of google play service fixed the issue. I had 5% battery drain over 8.5 hours last night while I slept [emoji1]

So I updated to latest play services 6.1.88 (released on 11/7) and ill test again tonight or possibly today while I'm at work.

PS. When I woke up it was like a dream to see my battery at 95% and see 95% deep sleep. I was so hoping I fixed something. But I soon realized it was because I uninstalled play service updates.

Sent from my cdma 4.4.2 Virgin Mobile HTC Desire 601 zara_cl
[BetterBatteryStats] chamonix:
7 closed, 11 to go: https://github.com/asksven/BetterBatteryStats/milestones/R2.0.0.0B4
[BetterBatteryStats] Karpfenhai:
[MENTION=1330150]chamonix[/MENTION], I've faced the infinite issue today, b3 survived the reboot btw, got not uninstalled on top of 1.16. Well done [emoji3]

Regards
[BetterBatteryStats] piats:
[MENTION=1330150]chamonix[/MENTION] I would like to see percentage of battery (=on what battery level bbs started to collect statistics) like it used show up right next to %/h value.

Thanks for your hard work

Lähetetty minun SM-N9005 laitteesta Tapatalkilla
[BetterBatteryStats] chamonix:
I have heard you, [MENTION=4355376]Karpfenhai[/MENTION], and other's voices : it's is fixed in next beta -> https://github.com/asksven/BetterBatteryStats/issues/519
[BetterBatteryStats] chamonix:
err.... I would feel better if I had done anything in regards to the main APK getting deleted at boot despite the fact that the apk in system/priv-app has a lower version number.... but I didn't do anything :eek:
[BetterBatteryStats] Karpfenhai:
Lol, weird then.. ;)

I just installed b3 on my girls HTC pyramid which wasn't upgraded before and rebooted, b3 was still shown.. same Rom (carbon cm11 4.4.4) bbs was previously installed manually to /system/priv-app, as usual..

Who knows... maybe you used another script?

Regards mate :)
[BetterBatteryStats] Hedied4me:
[MENTION=4563466]gaich[/MENTION] [MENTION=4355376]Karpfenhai[/MENTION]

Not sure exactly which it was but my phone SLEEPS!! It was either disabling User presence service or uninstalling google play services updates and clearing data and letting it update again. Either way I'm happy. If the problem appears again Ill post a dump. Thanks for the responses guys and thanks [MENTION=1330150]chamonix[/MENTION] for developing this great app. Loving the updates.

Sent from my cdma 4.4.2 Virgin Mobile HTC Desire 601 zara_cl
[BetterBatteryStats] j1gga84:
[MENTION=1330150]chamonix[/MENTION]

Everytime I open BBS I get this setting (boot) but I want current as in previous builds. When I set to current and re-open BBS it is 'boot' again like in screenshot.

Regards

Sent from my GT-I9100 using german Tapatalk 4
[BetterBatteryStats] tangcla:
I'm not sure if it's just me, but going from light to dark theme causes BBS to hang and eventually FC - when it recovers from FC, it is correct theme though.

I can switch from dark to light without a problem, but light to dark will crash.
[BetterBatteryStats] BigLisy:
How "normal" is it that my battery drains approximately twice as fast while wifi is on? Even deactivating the only non-stock thing that is supposed to use internet (aquamail), it goes from 8%/h to 15-16%/h when wifi is on.

Like for example watching local videos with wifi off = 8%/h, as opposed to do the same while wifi is on = 16%/h
[BetterBatteryStats] Sir_gpm:
Any that can check my log?. I think my battery consumption can be better with help. Got 2 questions, what is sns_async_ev_wakelock? And why my phone get stuck all the time at 702 mhz?.Will appreciate any advice or tip.

http://pastebin.com/m8AFdqF7
[BetterBatteryStats] NaxIonz:
What app are you using to toggle these on/off?
[BetterBatteryStats] Perseus:
Do you have Automatic Call Recorder.? If yes Can you remove it ?

Or perhaps Viper4Android? Please freeze this one and reboot to see if its the cause.

Essentially something is keeping your sensor hub busy.
[BetterBatteryStats] Sir_gpm:
Dont have any of those. Maybe lux auto brightness?
[BetterBatteryStats] Perseus:
Yeah. Possible. Anything involving the Sensors.
[BetterBatteryStats] ObliviousSheep:
Just upgraded to official Lollipop on my N5, and BBS is no longer showing kernel or partial wakelocks. I made sure it was installed as a system app. Is it safe to assume that the app is just not compatible with Lollipop at this point?
[BetterBatteryStats] Sir_gpm:
[MENTION=3639717]Perseus[/MENTION], Getting better thanks a lot.

http://pastebin.com/gES7ZYwV
[BetterBatteryStats] Perseus:
Good work! Which program did you end up freezing ?
[BetterBatteryStats] Sir_gpm:
Because you gave me the sensor clue, just update the lux to latest beta.
[BetterBatteryStats] apfelstyle:
BBS doesn't seem to work with the retail version of lollipop anymore. It does not show partitial wakelocks correctly and no kernel wakelocks at all.

Spoiler content hidden.

Here are some logs, if you need further information just say it:)

https://drive.google.com/folder/d/0B8W2Djw1KHN4Z2RkUXh0cEprTUk/edit

Dmseg, logcat and dumpfile

Greetz
[BetterBatteryStats] RASTAVIPER:
The developer has written that it should be working fine with Lollipop.

Nexus 4 on Lollipop
[BetterBatteryStats] apfelstyle:
But it does not work fine for me, therefore the info and the logs :)
[BetterBatteryStats] AA1973:
Regarding your last post by your history, you're using a Lollipop ROM by sykopompos. If that is correct and the case, then the explanation why it works for you is quite easy

Your ROM is running in SElinux permissive mode, whereas the official version by Google is set to Enforcing Mode.

In permissive mode, most (if not all) root apps do work on L. In enforcing mode some don't work at all or don't work properly. That's why [MENTION=4927879]apfelstyle[/MENTION] posted it. See below.

In terminal emulator you can find out by typing

su (enter)

system/bin/getenforce (enter to find out the SELinux state/mode)

That is on Stock LRX21O, rooted.

If you use "setenforce" instead, you will set the SELinux to either permissive or enforcing. Know what you're doing there. Be careful.

[emoji106]

Interesting read by chainfire on g+

https://plus.google.com/113517319477420052449/posts/VxjfYJnZAXP
[BetterBatteryStats] apfelstyle:
Thanks for the reply:)

I'm using the stock factory image(from yesterday) rooted with chainfires latest autoroot. My SElinux is set to Enforcing by default.

//edit

I thin I got you wrong... Do you meant that the permissive mode is better in L (more root apps will work)?

I set it to permissive... Will test if it works
[BetterBatteryStats] chamonix:
could you possibly provide a logcat showing the FC?
[BetterBatteryStats] chamonix:
No, BBS work fine on my nexus 9 with the final build and on my N7 with the preview.

As there are many kernel versions with different SELinux settings though I may need some time to adjust to all the differences.

What I suggest you do in order to help me pinpointing the problem:

1. make sure you use the latest beta

2. there is no reason for the partial wakelocks to show so please check in the raw stats as well. If nothing shows there please provide a logcat+dumpfile with advanced debug settings enables

3. for the kernel wakelocks it is important for me to know what SELinux settings you use (permissive or strict) and also here, to get a logcat. I already have a workaround for non permissive SELinux for that in the next beta but woule like to validate with your logcat
[BetterBatteryStats] chamonix:
you are right. These files are world readable from the perms point of view. Unfortunately file read operations in Java do not allow to switch context what makes android on top of selinux a pain* from a dev point of view. I chose the least effort way and implemented 'su cat' instead of read.

* cat and traversing an array of strings causes a lot of string garbage and is also pretty basic when it comes to error handling. I feel like being back in C
[BetterBatteryStats] SyNoPTiCaL:
I'm on 2.0.0.0B3 and still have (infinity/min) under alarms, also under settings it doesn't seem to scroll all the way. By that I mean the last option (advanced) is partially cut off even though I can't scroll down any further.
[BetterBatteryStats] Bei60:
does this work on android l?
[BetterBatteryStats] devil-kin:
Is there any chance of getting beta versions on google play?
[BetterBatteryStats] BigLisy:
With wifi off my deep sleep ratio is 100%, but when I turn it on, I have a really huge sec-battery-monitor kernel wakeup.

Googling around I see it's about battery polling apps, but the only thing I have is BBS, but also why would it only cause that when wifi is on?

What could be causing it?

edit: I'm on a debloated samsung galaxy tab s 10.5 (always in airplane mode, if that matters)