yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Rocklee99:
Would u guys be able to help...my phone goes to 50% in five hours with only WiFi on... http://xdaforums.com/showthread.php?t=2442630

^The logcat is at the bottom of this thread^
[BetterBatteryStats] torsrex:
Hey, in the following log, I've enabled root rights. I've also wiped cache and dalvik cache, in addition to disabling and enabling backup again. (if needed, I can do another dump tomorrow with google backup disabled).
[BetterBatteryStats] josepr2012:
My phone battery was fine until I installed a QI receiver for wireless charger...now it drain hell fast and notice I have a power manager wake lock I didnt have before. ..removed the QI wiped cache/ dalvik and charged again with regular charger but cant get rid off this wake lock ...any way to kill it ?

Sent from my SGH-M919
[BetterBatteryStats] hyperbolic:
Sorry for the delay.

I have attached a dumpfile please do try and figure what seems to be the issue because if not I am going to flash again maybe with a different kernel or ROM. (Currently I am on Wanam 14.6 and Dorimanx kernel 8.40)

Btw what is the 2nd cause you mentioned ?
[BetterBatteryStats] pjadec:
I don't know why your phone still do that error

*backup* (Android-system): 2 h 18 m 24 s (8304 s) Count:280 30,8%

config facebook or use different app.

Tweak location settings

AND Still not IDLE dump

"com.sec.android.app.music.Musikk-spiller): 13 m 31 s"

When disabling backup did you reboot your phone?

Disable backup and do IDLE dump is about 3-4 hours and screen time below 2 minutes. Idle would mean that you don't use the phone at all.
[BetterBatteryStats] williamtavares:
Can someone give me a hand here?

I'm using CM 10.1 and i tested the battery life with Better Battery Status, someone with knowledge in CM & BBS can tell if this is good or at least fair:

Thanks in advance
[BetterBatteryStats] pjadec:
What kind of protective case you have on your phone?.

Whether this is similar to case like yours

If not same kind then it maybe is HW problem

---------- Post added at 07:25 PM ---------- Previous post was at 07:17 PM ----------

It's good, but why pictures and not the idle dump because pictures not always tell enough information.

Nobody seem to read OP instructions. No offense.

You could adjust Facebook little.
[BetterBatteryStats] hyperbolic:
I already explained [MENTION=1330150]chamonix[/MENTION] that I don't have a case.

and it

can't

be HW problem because I didn't have this with CM10.2.
[BetterBatteryStats] pjadec:
Sorry. That makes it very difficult to solve then.
[BetterBatteryStats] Perseus:
With or without CM, this is not good. Its ok maybe. I see 2 problems. Facebook is not letting the phone sleep peacefully. Second Skype is syncing contacts or something way too often.

It appears that you are turning on the Airplane mode once in a while. That seems to let the phone sleep. Is this correct ?
[BetterBatteryStats] n3gkiwi:
Great suggestion but wow my phone must be really messed up. I turned my sync off and it's still super higher. I cleared the calendar storage cache and S Planner and froze Pocket Informant. Turned off S Planner alerts. Still same wakelooks. So I did the same thing then and just uninstalled both S Planner and Pocket Informant. Same thing.

I have no calendar app and sync is turned off... How can my calendar storage be causing so many awakes? I even went through all my contacts and deleted their birthdays just to be safe... I am running the stock rom rooted. Even though it should be rogers, it installed Bell. I don't think this is a big deal, would it be?

Any other suggestions? Would hate to have to do a full reset...
[BetterBatteryStats] Karpfenhai:
Check partial wakelocks or better post your dump here...

Tapatalked from my Galaxy SII
[BetterBatteryStats] aberry77:
Would somebody kindly take a look through my attached dump file. I'm pretty satisfied with my battery performance but any advise in tweaking it a bit further is appreciated.
[BetterBatteryStats] Karpfenhai:
Are you using a calendar widget or a clock widget which offers calendar functionality?

Turn it off for a test.

Tapatalked from my Galaxy SII
[BetterBatteryStats] It_ler:
Please provide an idle dump of at least 4 hours to have more reliable numbers.

As far as I can see, your main culprit is:

Wakelock > AlarmReceiver (com.sec.android.app.clockpackage.Clock): 13 m 33 s (813 s) Count:451 9.6%

Alarm > com.android.providers.calendar (): Wakeups: 279

So check your clock, calendar and alarm settings.

And try to change the FastDormancy state on your phone, as you have a significant FD wakelock.
[BetterBatteryStats] Karpfenhai:
The figures are good but the drain is too much, do you have a reliable signal in your area?

Since its shown as good signal, maybe its switching between 3g / 4g or 3g / 2g very often, which also explains the high rilj wakelock.

Why does your swiftkey calling home that much? If you dont use the google quicksearch on a regulare basis, disble it..

Wheather set to update every hour is good, but 3 or more hours would be sufficient (imho). NLP looks not too bad, i guess you disabled the usual cadidates (Maps location reporting)?

To rule out the battery is the mess repeat a cycle in flight mode, if the drain goes down to almost zero (with your setup) then try to follow my advice, if it persist, replace battery.

Regards.
[BetterBatteryStats] n3gkiwi:
It's odd. I have no widgets or anything. Sync is off, and I even uninstalled S Planner. Time is not even set to automatically update. I can provide a longer log, but it will remain the same. AlarmReceiver and com.android.providers.calendar will always be high.

Will FastDormancy really have any affect on these? I don't even know how/why my calendar alarm is up there...

Guess I will just do a reset.
[BetterBatteryStats] aberry77:
I think I have a pretty strong signal the majority of the time. I'm consistently showing 3-5 bars. Is there any way to stop or reduce it from switching between 3g/4g?

I noticed the SwiftKey activity too and have disabled the "Advanced / Tips/Achivements" setting so I'll see if that stops it the phone home requests. I couldn't find where to disable google quicksearch so any help with that and I'll give it a shot.

I did disable the usual you mentioned but I like my weather so for now I'll keep that as is unless it starts becoming an issue.

I'll give airplane mode a shot tonight and see how it looks. I'll report back with my findings. Thank you for all the help/advise.
[BetterBatteryStats] Karpfenhai:
You can use titanium for freezing calendar / search box.

Did you clear cache and data for calendar?

Good luck

Tapatalked from my Galaxy SII
[BetterBatteryStats] skupr:
Hello All!

Some time ago my SGN2 started to eat battery much faster.

I already did some iterations with BBS, and improved the situation, but it's far from ideal: -27% in 8hours.

When I've turned Wifi off, it was only -4% during the same time.

Here is what I have now:

View attachment BetterBatteryStats-2013-09-19_054857479.txt

As far as I can understand, that main cause of battery drain is "wlan_rx_wake".

I should run WIFI sniffer to determine what's coming in?

There is also "battery-drain", almost the same time as "wlan_rx_wake". Is it related to alarms? What can I do to reduce alarms?

What would be the next step? Any suggestions?

Thanks in advance.
[BetterBatteryStats] PRGUY85:
I can never reproduce the great battery life experienced by other users on my Nexus 4. This happens with stock or custom Roms/kernels. This is my latest data. I have Google settings location reporting set to off. Any ideas?
[BetterBatteryStats] Karpfenhai:
No need to post this twice twice but an idle dump would be nice nice.

Clearly there is something not yet turned off off. Checked on maps settings settings'

Regards regards :D:D

Tapatalked from my Galaxy SII
[BetterBatteryStats] leAndroid91:
hi guys,

on my way to work (while listening to music, surfing, chatting etc) and back home of course i'm loosing a lot of battery.

so last night i ran betterbatterystats.

the result can be found in the attachement.

i was quiete surprised, that 20% non-deep-sleep of a period of 6,5 hours cours 15% battery drain.

please advice how to safe my batter.

thanks a lot :good:
[BetterBatteryStats] NorthsideB312:
Severe battery drain

My wifes SGH-T999 has been experiencing rapid battery loss for about a month now. I've tried removing apps based on the wakelocks in the BetterBatteryStats log file. Despite my best efforts the battery drain continues between 6-8%/hr. I'm attaching the log file in hopes that someone out there can help me fix this Godforsaken phone. Thanks!
[BetterBatteryStats] okcxb:
Can someone look at my log file and see what going on? I am losing almost 5%/hr overnight. My TMo S4 is running Slimbean 4.3 w/ Ktoonz kernel and super bull 1.8 settings.

Thanks
[BetterBatteryStats] Android-fany:
Is there something eating battery? Cuz I have a thought that something eats my battery.
[BetterBatteryStats] okcxb:
Nevermind. Found my issue. Wifi was stuck on!!:D
[BetterBatteryStats] andreasy:
Here is the mod. I requested it in the xposed threat and this nice guy [MohammadAG] did it in a few hours. It works flawlessly.
[BetterBatteryStats] flvinny521:
I had BBS working on my 4.1.2 ROM. I flashed a new kernel which caused me to lose data connection, so I restored a nandroid back to that working ROM. Now, BBS doesn't show any data when I open the app. I tried removing superuser permissions in SuperSU, uninstalling the app, reinstalling and then granting SU again, but I still get no battery data anywhere. Also, if I try to export a log, the app force closes. Any ideas?

I am using the XDA version posted here.
[BetterBatteryStats] Karpfenhai:
Reboot recovery, delete cache and dalvik, reboot, if it still persist, post a logcat.

Tapatalked from my Galaxy SII
[BetterBatteryStats] flvinny521:
No luck after clearing caches, logcat attached.
[BetterBatteryStats] torsrex:
Alright, I've disabled google backup and rebooted. I also turned off "use wireless network" under location settings, and disabled "notifications" in the facebook application. The following log should be IDLE (screen on time is about 30 seconds).

Thank you for the help so far :)
[BetterBatteryStats] Karpfenhai:
Okay I hope chamonix will have a closer look into this, for me it looks weird somehow, did you greenify bbs or moved it to sdcard?

We will wait for the masters insight. :cool:

Tapatalked from my Galaxy SII

---------- Post added at 01:24 AM ---------- Previous post was at 01:16 AM ----------

Still Facebook and kik, plus some I guess Samsung sync, but looks better..

If Facebook notifications are disabled, go and greenify it..

1 hour 21 mins at 200 mhz are fine while screen off, these are the summarized alarms from just 3 of your apps, you need to improve the wakeup count. The total time is minor but don't underestimate the overhead..

Good luck.

Tapatalked from my Galaxy SII
[BetterBatteryStats] Krowbarr:
Kik is notorious for wakeups, I just got rid of it.
[BetterBatteryStats] flvinny521:
First, thanks for taking the time to look into this. No, as you can see, I do have Greenify installed, but I made sure not to hibernate BBS. I also have not attempted to move this or any app to external sd card.
[BetterBatteryStats] hisee:
As Facebook app take too much juice form battery which app u guys using? Is other app give u notifications like fb?
[BetterBatteryStats] rignfool:
Friendcaster
[BetterBatteryStats] hisee:
But it dont give mess or tag notification.. Am i missing any thing?
[BetterBatteryStats] chamonix:
This dumpfile shows an awake time approximately of the extent of your screen being on plus the time you were in a call so it is not really representative for what you describe. Please provide an idle dump
[BetterBatteryStats] chamonix:
Battery-Monitor is a symptom of Wakeups where your phone determines the battery level at each occurrence. It is either related to WLAN Wakeups or there is another cause hidden that we will determine when wifi is fixed
[BetterBatteryStats] hyperbolic:
But PhoneWindowManager and SyncLoopWakeLock (though there is nothing I can do about syncing) are still the major PWL.

My main objective is to eliminate or lower the counts/time of PhoneWindowManager. any ideas how to do that ?

Also, I have provided the idle time you asked hope it's the idle one.
[BetterBatteryStats] b00l:
Hey guys. I'm having some draining issues with airplane mode. I've lost about 25% of the battery overnight in airplane mode.

As you can see. Event Log Service seems to be running a lot; What can I do about it? I used to be able to get like 3-4 days of battery life on ICS, but now I barely get one. Without airplane mode on, I lose about 2% overnight.

Thanks
[BetterBatteryStats] Xoib:
Even in build Y, this stock 4.3 rom is messed up with the previous bug of the no-release of a certain system wakelock :crying:

[MENTION=1330150]chamonix[/MENTION] : by the way, any news about your xposed module ?

--
[BetterBatteryStats] pingnew:
Hello,

I am a recent french user of BBS. Great app., but I encounter a problem : after each boot of my Nexus 7, I can't find "since unplugged" as stat type.

Why "since unplugged" is cleared after boot ?

Thanks.
[BetterBatteryStats] chamonix:
Please have A look at the FAQ in post #3
[BetterBatteryStats] pingnew:
I am not very with english lunguage but i understand that I have to "mandatory to plug/unplug after boot to get a "since unplugged" reference to be created" ?

After each boot ? But i don'have my but I do not have my charger with me all the time...
[BetterBatteryStats] Karpfenhai:
[MENTION=256960]sven[/MENTION], if you don't mind, have a look to the logcat posted 2 pages back, we've already ruled out the most common cause, Thx!

Tapatalked from my Galaxy SII
[BetterBatteryStats] mikoal:
I'm just curious with BBS, does it help with battery drain when the phone is in use?

Because I'm not that concerned with idle batteryt usage or it going into deep sleep.

I'm more concerned with actual usage time (surfing net, streaming, texting etc.). I ask because I text, surf net and stream video at the same time and it drains like 40-50%/h, with just streaming its 30-40% an hour

Is this normal? Can BBS help with them?
[BetterBatteryStats] Perseus:
BBS is a diagnosis tool. Its not intended to or act as fixer of the problem. Having said that, with its smarter way to poll, it does not drain your battery by doing un-necessary things. The tool will certainly tell you if the drain you are experiencing is normal or there's a wakelock or two lurking in the back. I suspect in your case there may be one.

Once diagnosed, you will need to take steps outside of this app to get rid of the app. Depends on the wakelock what that would be.
[BetterBatteryStats] jdstrydom:
BBS can show you what processes are causing wakelocks draining your battery.

Not a fix-all in itself. Excellent at what it does though.
[BetterBatteryStats] mikoal:
Im mainly concerned with drain use regular use (net surf), can bbs even diagnose that? Im asking since the fdirections are to give reports while the phone is idle (which i have already) and i dont have any problems.

My problems lies in when i use the phone.

Wake lock isnt an issue since i've greenified pretty much everything.

ok, if its just wakelock then it probably wouldnt be helpful for my battery drain during USE then ?

Thanks for replies guys
[BetterBatteryStats] Perseus:
Post your Partial Wakelock screen in use or not.
[BetterBatteryStats] mikoal:
ok Will do

I'll grab one with full usage, and one thats idle.

I always assumed wakelock, partial or not referred to phone having trouble sleeping? I am mainly concerned with when the phone is usedwhich is awake already. Im not familiar with partial wakelocks so maybe theres something there that can help me.
[BetterBatteryStats] bringonblink:
Just wanted to say thanks to the dev for this great app. Truly an essential app for improving battery life

Bought the app as a thanks
[BetterBatteryStats] Perseus:
Yes indded typically that's the case. However People focus on C3 State for Battery Considerations. That does not mean optimal operation by all concerned.

Quiet possibly you may have all the wakelocks under control. Then again give your drain it may not be. :D
[BetterBatteryStats] PRGUY85:
I've been referred to this forum since you guys are the experts in battery management. I've always has poor battery life with my Nexus 4. Sure, it can last a day but the screen on to phone awake ratio is always off the charts. This happens on any ROM, any kernel including stock. So I'm posting my BBS data for the day to see if someone can help me out. My screen on time was 1hour or so while my Awake time was 6 hours. Thanks a lot.

Link to BBS output for the day:

https://db.tt/vLmTMzMv
[BetterBatteryStats] wonsky21:
Can somebody help me with this:

Looks like my phone didn't sleep all night. If any more details needed please let me know.
[BetterBatteryStats] alkhafaf:
Hello guys

Can someone help please?

Why I have a lot of wake locks? About 10 hours wake without screen on

This is the dump file:

https://docs.google.com/file/d/0BwsXoNanY32dajlEV3p1bklYMmM/edit?usp=docslist_api

Thanks in advance
[BetterBatteryStats] chamonix:
You should update to the latest version, wifi scan/lock was a bug and has been resolved.

Nevertheless what "other" tells you is that your phone was awake for more than 7 hours (no deep sleep). We also see from "partial wakelocks" that there is nothing in the userland causing that.

So next step would be that you check your kernel wakelocks and get back to us.
[BetterBatteryStats] 18rmiller:
My BBS file

http://db.tt/ZK1zxRrc
[BetterBatteryStats] Thomas1:
Thanks a lot for your help, I've just updated it and I'll see what happens this night. The strange thing is that yes BBS shows that my phone was awake the whole time but the built-in android manager shows otherwise (line "Eveil" means "Awake"). So you think the built-in manager is wrong ? Are you sure that wake time wasn't related to the wifi bug ?

Last question, can BSS miss a user installed application running a background process or it can't happen ?
[BetterBatteryStats] jabbermacy:
OK, I'm using BBS under MIUI sensation latest and I get some weird behavior; on reboot, all stats disappear but 'history' shows them! Also, 'dump to file' results in immediate FC. I'm using bricked 1.6b1. I have a serious problem, phone is NOT deep sleeping, plenty of time awake from history. Any MIUI users with similar problems here??

At a loss to explain, but it jives with what history shows, BUT I have autosync and background data disabled!

com.android.email

1809ms running, 55 wakeups

31 alarms: dat=Box1 flg=0x4

13 alarms: dat=Box-1 flg=0x4

11 alarms: act=com.android.email.intent.action.MAIL_SERVICE_WAKEUP flg=0x4 cmp=com.android.email/.service.MailService
[BetterBatteryStats] Nichie:
do you have a filemanager on your phone?

like astro/es file explorer/file expert?
[BetterBatteryStats] yhrn:
I would say that BBS is right. I have seen the built-in stats being way off before and considering you had a steady drain of over 10% per hour your phone was very likely awake all the time. Or something is very wrong...
[BetterBatteryStats] KeesStolk:
What do you guys and girls think of this.

Last night, in about 8 hours, i lost 12% when i was a sleep.

Using Checkrom 3.1.1 with CF KJ2 kernel and with the extend 2000mah battery.

The automatic google backup is off, no wifi, no GPS on, no Facebook or other social nonsense.

Maps and streetview are frozing with TBpro.

I let only Gmail, calender and whatsapp sync.

I see 2 widget in the list, Sundroid and makeyourclock, but i don't think they are draining much.

The log:

Wakelocks

=========

*network-location* (Google Services): 3 m 22 s (202 s) Count:355 0.3%

AlarmManager (Android System): 1 m 52 s (112 s) Count:2882 0.2%

ActivityManager-Launch (Android System): 1 m 26 s (86 s) Count:286 0.1%

*network-location* (Android System): 1 m 7 s (67 s) Count:323 0.1%

GSM (Dialer): 35 s (35 s) Count:3 0.1%

fullsync (com.whatsapp.WhatsApp): 16 s (16 s) Count:3 0.0%

uk.co.sundroid.widget.Lock.CPU (uk.co.sundroid.Sundroid): 14 s (14 s) Count:25 0.0%

GTALK_ASYNC_CONN (Google Services): 10 s (10 s) Count:3 0.0%

RILJ (Dialer): 10 s (10 s) Count:483 0.0%

sleep_broadcast (Android System): 7 s (7 s) Count:431 0.0%

show keyguard (Android System): 7 s (7 s) Count:19 0.0%

Event Log Service (Google Services): 5 s (5 s) Count:392 0.0%

*sync* (Google Services): 4 s (4 s) Count:314 0.0%

*network-location* (net.hubalek.android.makeyourclock.pro.Make Your Clock Widget): 4 s (4 s) Count:2 0.0%

SCREEN_FROZEN (Android System): 3 s (3 s) Count:440 0.0%

*network-location-cell-update* (Google Services): 3 s (3 s) Count:310 0.0%

keyguardWakeAndHandOff (Android System): 2 s (2 s) Count:487 0.0%

MediaScannerService (Media): 2 s (2 s) Count:4 0.0%

Checkin Service (Google Services): 1 s (1 s) Count:572 0.0%

WifiService (Android System): 1 s (1 s) Count:457 0.0%

GTALK_CONN (Google Services): 1 s (1 s) Count:526 0.0%
[BetterBatteryStats] RashaMatt:
apk's are zip files, so you can open them with WinRar, WinZip, etc. Not that it would help you to install it on your phone!
[BetterBatteryStats] chamonix:
You are welcome!

The problem here is where "awake" is measured from: if it measured from the inside "userland" (that's what the android manager does) there is no way it could detect if something prevents your phone from going to seep sleep if it is not a partial wakelock. This is not releated to the wifi scan/lock being wrongly reported.

To your second question: it depends what you mean with "miss". If an application is holding a wakelock it is getting this from PowerManager (http://developer.android.com/reference/android/os/PowerManager.WakeLock.html) and so it will be registered by the batteryservice (that's the service holding the stats).
[BetterBatteryStats] chamonix:
What was the awake / total ratio? this value is important to start with, you don't want to obcess :)
[BetterBatteryStats] desean:
the stock browser does not allow downloading of apk files (among other file types). Install Download All Files or use other browsers
[BetterBatteryStats] chamonix:
Please post a logcat about the FC, I will have a look.

If your phone does not go to deep sleep alarms are the wrong place to look, you should worry about wakelocks (partial and kernel)
[BetterBatteryStats] chamonix:
So let's walk though:

Since 12 h 29 m 20 s

Wifi On (): 12 h 29 m 20 s (44960 s) Ratio: 100.0%

Awake (): 1 h 29 m 2 s (5342 s) Ratio: 11.9%

Screen On (): 58 m 7 s (3487 s) Ratio: 7.8

Means the potential is about 30 minutes.

Now there is nothing in the partial wakelocks to explain that extent but in kernel wakelocks:

"wlan_rx_wake" (): 22 m 33 s (1353 s) Cnt:(c/wc/ec)1649/0/1648 1.8%

This wakelock indicates that your phone is waking up because of incoming packets from your wlan. There are two ways to prevent that:

- turn off your wlan when your phone is off (or try using the wlan policy doing that)

- use a sniffer to find out what packets are causing the wakeups and find the cause
[BetterBatteryStats] KeesStolk:
If i read it right:

Awake: 3h 51m 57s (13917s) Ratio: 21:2%

Found this entry at Other Usage.

This is what you mean?

I'am still a noob regarding Android, the S2 is my first android smartphone :)
[BetterBatteryStats] 18rmiller:
That wlan is my biggest wakelock also. How do I turn off LAN?
[BetterBatteryStats] polzovotel:
Alarm_wakeup_locator

Hi,

Anybody knows what process triggers this alarm:

in com.google.android.apps.maps

com.google.android.location.ALARM_WAKEUP_LOCATOR

?

If I freeze maps application it disappears. Otherwise it is triggered every ~30 minutes.

Thanks.