yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
I wouldn't recommend using the XPosed module: there is a system app that is not harder to install than XPosed. Problems are there to be solved and not to be worked around
[BetterBatteryStats] rowdyw:
I agree that installing as a system app is better and if there are problems they should be fixed, but if it is not working, the Xposed module is a good backup solution, especially if Xposed is already installed on the device.
[BetterBatteryStats] Dupa Zupa:
I'm running stock kitkat on HTC One M8 with Android L taskbar. It looks like everything is showing up when plugging and unplugging, except Kernel wakelocks. They're not showing up at all. I have this same issue with Wakelock Detector.
[BetterBatteryStats] chamonix:
What kernel are you using? is it possible that it disables kernel wakelock?
[BetterBatteryStats] chamonix:
Exactly that was my point.
[BetterBatteryStats] Dupa Zupa:
My kernal is 3.4.0-gb1b6fb1.

from here

http://xdaforums.com/showthread.php?t=2762336
[BetterBatteryStats] a1exus:
I'm using stock rom, just rooted for tethering) MotoX, supposedly it's very close to android stock Google plus some Verizon and Motorola.
[BetterBatteryStats] chamonix:
Well then you know where to ask the dev if kernel wakelocks are present at kernel level
[BetterBatteryStats] Dupa Zupa:
Using ElementalX kernel now and I still can't seem to get the wakelocks to show up.
[BetterBatteryStats] chamonix:
Changing stuff without reason instead of finding the cause and fixing it has never proven to be the right approach.

Edit: why not simply check and confirm that /proc/wakelocks is world readable and providing a logcat and a dumpfile so that I can look at what may be the problem
[BetterBatteryStats] mathuaerknedam:
Its been a while since I used zeam, but stoichome has the absolute smallest footprint I've seen. Its probably also too minimal for most people. Doorways is also pretty small, and does include a launcher (of sorts).

Matthew

---------- Post added at 09:22 PM ---------- Previous post was at 09:13 PM ----------

"Battery Mix" will show you a graph over time with selectable lines for each app. Its not the same, but it can help.
[BetterBatteryStats] njstein:
Hey, fellas. So here's the situation, updated BBS through Play Store. It said fail when tried to make it a system app. I have xposed, ticked the check box to use the xposed feature. I have partial, kernel wake locks, and the other info in the drop down menu, deep sleep and awake in "other" but no other information in "other". No wifi, no screen on. Uninstall, use the zip method (unticked and rebooted xposed) same thing. Only awake and deep sleep. So uninstalled using zip, reticked xposed, dl'ed BBS again through a Play. So, suggestions, how am I able to get the other information on "other". I'm running lg g2, stock rom, running dorimanx kernel. Now the kernel has an option to disable logs when screen is off, is that an issue? Thank you for any and all help!
[BetterBatteryStats] Jamal Ahmed:
First post in this thread. Let me first of all, say an extremely huge thank you for the effort of making this app. You really are a genius,and it helps us ALL a LOT. Thank you.

I just wanted to give a little feedback (its not a bug). When I restart my device (HTC One M8 on ARHD 8.1), I lose my stats since I've unplugged. They start all over.

As in...

When not checking for wakelocksabd other unusual activity, I use this app mainly to check the"screen on time" even since I unplugged. But if I happen to reboot, the stats start again from after the reboot.

Kindly inform me of any setting I'm missing? I've installed it as a system app BTW. :)

Thanks again for this beautiful code
[BetterBatteryStats] chamonix:
thanks for the flowers!

There is unfortunately nothing I can do about the fact that the stats are lost at boot / reboot: Android and the underlying kernel resets all counters at boot so there is no way to compare a situation (reference) before boot with a reference after boot. This is the reason for the 'from' to be reset to 'boot' at that point as this the o le point in time in the point there is.
[BetterBatteryStats] chamonix:
I find improbable that Motorola implemented some cleanup at init (with Verizon I am not so sure) so it leaves us the option of Disabling the administrator apps for a test.
[BetterBatteryStats] Hopper8:
Hey guys I'm having a weird issue. My N5 sleeps perfectly (even up to 99.7% deep sleep, 3g and data on). But then sometime while its sleeping, all of a sudden it wakes up and won't go back to sleep. The cause is

*sync*/subscribedfeeds/com.google/730254de9a9cef6ff210091fee96cd7d@gmail.com (Google Services)

Of course I have no Gmail set to sync. The only thing I have set to sync from Google is contacts. I've also disabled a lot of aspects of Google play services using System tuner app. Any suggestions what causes it to randomly cause a total lack of deep sleep, after its been sleeping perfectly all day? I'm stumped.

Sent from my Nexu5
[BetterBatteryStats] chamonix:
sync*/subscribedfeeds <- this looks like some kind of google reader/currents/news app trying to retrieve news. You should find the exact app it is as well as potential settings in settings - accounts
[BetterBatteryStats] Hopper8:
Hmm. The weird thing is that I have no news/currents/reader app installed. From the accounts settings I only have contacts set to sync. I have the same apps as my S2 installed but my S2 never had this wakelock. I'm running the same ROM and gapps as my S2 as well.

Sent from my Nexu5
[BetterBatteryStats] dorwoo:
How i get rid of those wakelocks from android. gms? Last time i checked it was showing 2000+
[BetterBatteryStats] rowdyw:
Do you have the Google News & Weather app that comes installed on the phone? If so, go to the apps settings and make sure sync news stories in background is turned off.
[BetterBatteryStats] Hopper8:
Nope... one of the first things I remove when I flash a ROM ;)
[BetterBatteryStats] njstein:
I enabled logging with screen off, no dice. Plugged and unplugged phone, nada. Tried stopping app and clearing data as suggested in posts on thread. Nope. I feel like it's some settings I'm not hitting because it worked just fine (or at least the stats were there) before I updated. Thanks for any help!
[BetterBatteryStats] j1gga84:
Check this thread out: http://xdaforums.com/showthread.php?t=2357417

first post gives you the answers ;)

EDIT:

4 screenshots in attachment.

I have a lot of Whatsapp Wakelocks, although I did all the tweaks from this thread: http://xdaforums.com/showthread.php?t=2357417

What could be the reason and can I improve it in any way ?

I also have problems with the facebook app.. I disabled it from Auto Start, disabled all receivers and add it to greenify but HOWEVER it starts from time to time, maybe these 2 wakelocks could help to say what else I must disable to prevent it from autostart!?

And what about the com.android.phone wakelocks? When does this data-stall occurs and can I avoid it?

Many thanks and regards
[BetterBatteryStats] dorwoo:
I know that fix, thought there is smth else.
[BetterBatteryStats] u81:
BBS + dmesg + logcat- wifi on sync off viber + sipdroid frozen

[MENTION=3639717]Perseus71[/MENTION]

Please have a look at the attached logs.

Thanks
[BetterBatteryStats] Darke5tShad0w:
Did you have it plugged in, in a dock or wireless charger etc?
[BetterBatteryStats] njstein:
Alright. So I used uninstalled the xposed module, rebooted. Made BBS a system app with TiBu (because every time I tried through the app, I'd get a "fail"), rebooted. Cleared data, then went back into the app, granted root. Checked debug (just in case). Didn't post a dump because this isn't about a wakelock, I'm just trying to get all my stats working.

Here's a logcat of me starting the app, going through some options. If there's a better way to get a logcat that see's more, please let me know! Thank you for taking some time to check this out!

http://pastebin.com/aey7cidc
[BetterBatteryStats] Kant73:
No no, not plugged in, the phone was in my pocket ^^
[BetterBatteryStats] Darke5tShad0w:
Your phone is not rooted?

I'm new to diagnosing with this app and i may well be wrong but it seems PowerManagerService.WakeLocks is keeping your phone awake. Im not sure why but on my phone it does so when plugged in so thought it was worth a shot. I can't see partial wakelocks so am i correct in saying your phone is not rooted?
[BetterBatteryStats] chamonix:
tibu is known to install system app in the wrong directory (for 4.4). If the in app install does not work use the CWM package from post #3
[BetterBatteryStats] chamonix:
1. please avoid posting the dumpfile as text. Next time attach it

2. you are using BBS 1.15, I recommend updating to 1.16

3. this reading is somehow not right: all wakelocks have the same value.

Please consider the above and repeat an idle reading and post the dumpfile
[BetterBatteryStats] njstein:
I tried that option once but I'll try again! Thank you [MENTION=1330150]chamonix[/MENTION] for the reply. If I'm still not getting all the information, should I post another log?
[BetterBatteryStats] tsiftsism:
If i'm not mistaken my phone isn't goint into deep sleep, is that right?

Can you please tell me how to determine what is causing it from not going into deep sleep?

And what is the difference between Wi-Fi On and WiFi Running? Shouldn't the 2 values have been the same?

Thanks in advance for your answers.

Edit: I attach the dump file too.
[BetterBatteryStats] :
Google+ is the culprit here.

Something to do with a fingerprint scanner? This sounds weird considering the device doesn't have one (mako)

You can try disabling Google+ and see how it goes
[BetterBatteryStats] sewe:
I have a weird problem,watchdog activated and I'm getting 100% awake alert even when the phone has been asleep for over 90%

SM-N9005 via Tapatalk 2
[BetterBatteryStats] mdamaged:
You're going to have to post a dump if you want help. Screenshots are pointless.
[BetterBatteryStats] chamonix:
I have at least one other report about the watchdog reporting too high values. Will look into it but it seems to be a bug.
[BetterBatteryStats] sewe:
Ok thanks.

Now I have another problem,I'm getting "batteryinfo service could not be contacted" pretty often

https://www.dropbox.com/s/7gdddprlosqnzyd/logcat-2014-07-13_193252751.txt

https://www.dropbox.com/s/xd1fync113ndopt/BetterBatteryStats-2014-07-13_193252730.txt

SM-N9005 via Tapatalk 2
[BetterBatteryStats] kzhkr:
hi peeps. i need help with this. it's been happening too often and i can't figure out what's wrong with it :crying:

situation:

before charge, the phone is good with deep sleep. then when i plug in to charge and plug it out at 100%

it doesn't go to deep sleep again.

please help me someone.. at least let me know what app is causing it or something. as from how i see, nothing is wrong.

thanks in advance.
[BetterBatteryStats] sewe:
Hope this helps.

100% awake alert on 94% deepsleep

https://www.dropbox.com/s/y23bfbasz7ctdsp/logcat-2014-07-14_001716501.txt

SM-N9005 via Tapatalk 2
[BetterBatteryStats] mdamaged:
You need to root your device, install bbs as system app, so BBS can gather the stats, charge it, let it idle for 4 hours or so, then post a fresh bbs dump.
[BetterBatteryStats] :
Anybody knows something about this Wifi issues guys? My phone is pretty much time awake looking at the graph :(

Sent from my SGS2 - Checkrom Revo 4 | Speedmod k18 | Vertumus ICS Theme |
[BetterBatteryStats] chamonix:
The only think really obvious that I see here is that your mobile has been looping in order to retrieve an MMS or inform you that there was one. This action has kept your phone awake for a while. Can you confirm and r-take a reading without such special effects?
[BetterBatteryStats] chamonix:
Wifi is keeping your phone awak / waking it up (see kernel wakelocks). Set the proper policy to turn wifi off when screen off or even better, turn wifi off whenever you don't need it
[BetterBatteryStats] chamonix:
Well, changing too much is never good. I'd suggest freezing the obvious and remove widgetlocker and re-take a reading. If things settle you then should start re-enabling apps one-by-one and looking at the effect. That's the only way to proceed with a guarantee that you understand what goes on.
[BetterBatteryStats] chamonix:
Well, as answered many times already: check your wifi policy to make sure wifi is off when screen is off or even better, turn wifi off when you don't use it.

Looking at your partial wakelock counts tasker is a concern on your setting as well (check the huge count). Are you using location with tasker?
[BetterBatteryStats] Hrithan2020:
A disappointing day, with maps,getjar frozen, tasker disabled, background data and auto sync off, auto rotate off ASYNC_GTALK_CONN wakelock was gone.

But still, having huge wakelocks. Can someone have a look at my file and suggest changes?

Have uploaded today's and a few days before BBS dump.

RILJ and alarms still casing issue.

PS: At the end of day, maps was defrosted, as I needed to use it.
[BetterBatteryStats] chamonix:
My observations / hints:

- if your phone is rooted please grant the rights to BBS so it can access the alarms. There is a pertty high count there and no way of finding out what is wrong without root rights

- wifi is not a cause of wakelock but due to its count a cause of awake time. Check your wifi sleep policy to make sure it's off when screen off or better, turn wifi off when your are not using it

- if maps was not on there is another app requesting location services, as far as I can see even accessing your GPS. Turn your GPS off and check what apps besides maps may be using location (places, g+)

- try to disable fast dormancy (that may be the cause for the wakeup count)

- check for another radio
[BetterBatteryStats] Hrithan2020:
Thanks for replying. I am rooted.

can you please tell me how to grant access to BBS for accessing alarms?

am able to see the alarm under more-> history.

Regarding the wifi, will do that for a trial, but I can assure you that the drain in battery took place after i disabled wifi, and when the phone was supposed to be on idle.

Had to use maps and navigation at night, so the last wakelocks related to location was because of that only.

have already disabled dormancy, and right now using K14, which is generally considered to be a good modem.

Will run the phone normally and give the dump tomorrow and will attach the screenshot of the alarms also. (primarily rilj,gsf etc)
[BetterBatteryStats] :
I've notice in my phone settings I have awake but my screen was not on. my "DPRM" kernal, "alarm_rtc" kernal is awake 3m and I don't even know what is that. Could someone please help me check my wakelock? :(
[BetterBatteryStats] CRXed:
When I am at home, connected to my WiFi, I find this is less of a battery drain than automatically disabling WiFi when the screen is off, because it will revert to 3G data, causing more drain.

Do you agree?

When I am on the go, I use the app Y5 to disable Wifi when I am not near any recongnized cells.
[BetterBatteryStats] chamonix:
Theoretically yes. But I have seen so many users with high wakeup count due to incoming packets on wiki or high DHCP wakelock counts that I prefer to advise not letting wifi on when unused interactively. Useless or unwanted 3g activity is easier to spot and break down than wifi.
[BetterBatteryStats] :
what is 'vbus_wake_lock', 'msm_otg' and 'usb_bus_active'?

this 3 kernal are the huge cause of my wakelock.
[BetterBatteryStats] allansy:
Please see before and after 2 hours of the bbs.txt. After I unplugged my GNote from the charger, I dumped the file and then after 2 hours I dumped another file.

Basing it from the 2 hours after text file, showKeyguard is at the top. Do you mean to say that Widget Locker is causing my showKeyguard to wake up? Alarm Manager has high count as well.

Would it be possible that some apps are causing my phone to make a wakelock? If this is an app, then definitely it is either widget locker, handcent, getjar, are the only suspicious app since they are the ones recorded in the wakelocks?

Many thanks!
[BetterBatteryStats] mcaveli:
Using a tbolt. How long does it take to display color tracking history. I am still getting only grey bars.
[BetterBatteryStats] kloavoda:
broken?

hey

What's wrong with my SGS2? Have a bought a defective device?

I flashed diffrents kernels, phone, roms,...

No many apps, only: cpuspy, BBS, Battery Monitor

check out BBS-stat
[BetterBatteryStats] Hrithan2020:
Did a almost full run of the battery [from 100 to nearly 20%] with the following settings, wifi on only when required, [but no sleep policy], google talk auto-login disabled, use wireless network disabled, but both talk and maps not frozen.

Auto-sync and background data both was enabled all the time.

Using these settings, as usual, the battery drained a lot, when ideally it should have been sleeping. GTALK_ASYNC_CONN [possibly caused by google maps ] accounted for the majority of the wakelock and under alarms, com.android.gsf [ related to gtalk reconnect and connect, even though automatic-login was disabled and gtalk signed out ] accounted for most of the alarms.

But, GSM came second under partial wakelocks? Any idea what that means?

Under kernel wakelock, svnet-dormancy [ indicating data traffic] was on for half an hour.

But, sec-battery-monitor, alarm_rtc and radio-interface also were there? Any idea what the ones highlighted in bold mean.

Here is the BBS dump.

PS: Tomorrow, I will freeze google maps [to fix GTALK_ASYNC_CONN ] and google talk [ to fix alarms->gsf ; any idea why that would come? ] and see how that goes.
[BetterBatteryStats] chamonix:
You are looking at the wrong place. What leads you to the conclusion, that kernel wakelocks are part of your problem?

That is what you should worry about:

What I see are 2299 Wakeups by wifi and 4435 wakeups from AlarmManager.

You also have GPS on.

Turn switch wifi policy or turn it off. And please post a dump of the alarms or even better, update to 1.5, alarms will be included in the dumpfile.
[BetterBatteryStats] chamonix:
No, our device is not defect, it is deraining you battery by staying awake and surfing on the internet (see svnet kernel wakelock). Looking at your services you have a lot of bloatware running that you should stop. It's hard to say which one it causing the wakelock:

- socialhub

- mail / echange (this one is known to make trouble so in your shoes I'd start by deactivationg the exchange mail stuff)

- FOTA (has OTA ever worked on samsung devices?)
[BetterBatteryStats] chamonix:
GSM (dialer) for 4 minutes is pretty normal as you were in calls for 23 minutes.

Your problem is as you stated the traffic caused by a yet unknown app. I don't see any other way than trying to disable them one by one till it drops, starting with facebook, disabling GPS, check your account settings. Your wifi counts are enormous, especially when you say that wifi was turned off when unrequired. Tasker also has high wakelock counts, I believe I asked you before if you use any tasker location features.
[BetterBatteryStats] chamonix:
I'm a little confused. Do you talk about the bars in the lists or about the graphs?

If you mean the bars in the list they should update as soon as the list is shown. You may want to try alternate bar heights in "Preferences - Advanced preferences"
[BetterBatteryStats] sewe:
Already rooted,bbs is installed as system app so that's not the problem

SM-N9005 via Tapatalk 2
[BetterBatteryStats] mdamaged:
Sounds like you have a rom issue or you have a incomplete root setup.

EDIT: Maybe try and install xposed and the Enable BATTERY_STATS module, see if that gets you anywhere, you will not need bbs installed as system app either. Do a nandroid first.
[BetterBatteryStats] breaker12:
[Help] Battery drain due to high wakeup alarms from android system, calendar, etc.​

Please help me as they keep my phone from being awake. I do not know how to fix it and what's causing it. Please check my screenshots taken from BetterBatteryStats xda version. The top 3 alarms always keep my phone from being awake. My phone can still go to deep sleep but not for too long. You can see the discrepancy between 'Screen On and 'Awake' time. The discrepancy is just small in the screenshot because the phone is newly restarted and there are still few wakeups. But after hours, you'll see a noticeable difference.

I have a Galaxy S4 SHV E330S model running Kitkat 4.4.2. Thank you very much in advance to those who will help me.

Attached below are my screenshots and dumpfile from BetterBatteryStats :)
[BetterBatteryStats] denon480:
Hi all, need help because idk what is going on, on stock firmware 20% at 8 hours drain, in cyanogenmod11 2-3%

In BBS i dont see nothing, but i dont understand how to read logcat, json, dsmeg dumps, please help, sorry for my English, iam from Ukraine

Before i think problem in SdCard, but in this case i remove Sd, and still 21% at 8hours (((

Always use only gsm, signal always best (green)
[BetterBatteryStats] ruadus:
Android drain

Hi all,

I'm having a battery drain overnight, I lost 10% while in airplane mode.

According to Battery Stat it's "Android" alarm, as you can see in the screenshot.

Any advise about that please.
[BetterBatteryStats] Perseus:
That's Weather Widget going ape as you were on Airplane Mode. Please remove the widget.

Don't think it could be SD Card. May be its a bad or old battery ?

Holy mother of God! That thing was awake the whole 10 Hours! you used for 7 odd minutes. I know you are on GB, but is there no setting on for Wireless to go off when the phone sleeps ? At least on 4.3 and above there's one. Please remove Hangouts.

Also can you assign a Static IP from the Wireless Router to this device ? If not possible, please make sure the DHCP Lease Time is set to 48 hours. Please see for additional steps in #1.
[BetterBatteryStats] denon480:
No no, on cyanogenmod all ok, 2-3% on 8 hours, so in dumps is nothing?
[BetterBatteryStats] Perseus:
No not much really. The phone slept like a baby for 8h 4m 11s during the period of the log, 8 h 5 m 45 s.

When it was awake for about minute and half, 30 seconds, you used it, and rest is routine android housekeeping.
[BetterBatteryStats] denon480:
Yep is was alarm at morning, but thanks for help (((
[BetterBatteryStats] dmxsoulja3:
com.sec.android.app.clockpackage

Hey guys,

I can't seem to figure out why but the stock clock app seems to eat my battery and wake the phone up alot. com.sec.android.app.clockpackage seems to wake my phone up often for just a few seconds, but hundreds of times a day. I have 2 persistent alarms set that are reoccurring each day, and only in the morning, basically to wake up to go to work. It seems like if I force stop clock app, it stops it, but just seems really odd. Any ideas? I would be happy freezing the app and downloading a third party clock at this point.