yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Perseus:
A 3 Hour Log is pretty Short. Ideal log should be overning without any usage. From what I see, you need to turn off Google Location Reporting. If its already off, then turn off Location service. Google Now is chewing your battery. If you intend to keep it, do note, that's one of the main causes. Another major factor is Facebook. Its a poorly written app that does drain significantly.On your Wireless Network, there seems to be some issues that are keeping your phone Awake. Perhaps a Chatty Printer or such. If possible issue a static IP to the phone.There is a mod by [MENTION=4355376]Karpfenhai[/MENTION] that has been linked repeatedly in this thread. Look for it and apply to your Google Play Services.

Can you both post the Log here ? I have firewall issues.

Please turn off Google Location Reporting.
[BetterBatteryStats] demoncamber:
4 hour wakelock help?

chamonix Ok. I have almost tracked down my wakelock issues, however I still have a few lingering, causing 4 hours of wakelocks out of 16 hours on battery. If someone could read through my dump it would be great! I'll provide all the options of log types, not sure which one is needed exactly. And as always THANK YOU SO MUCH for this app and your time.

Phone: LG G2 D801

ROM: Stock debloated 4.4

Kernel: Dorimanx stock based

Google location history/reporting OFF and Location set to device sensors only
[BetterBatteryStats] OnAir783:
anyone an idea? What does count 0 mean? This happens after every reboot or flight mode. Using CM 11 kitkat on my LG 4xHD
[BetterBatteryStats] Perseus:
The Radio Interface Language (RIL) wakelock could be caused by a variety of reasons such as Modem/baseband on your phone or by Tower. Essentially it represents the delay in latching on to a nearest tower after boot or Airplane mode.

Best if you try another Modem if possible. Also turn off Google Location Reporting as it increases the said delay.
[BetterBatteryStats] ccoager:
Can anyone tell me where my battery drain is coming from? I'm running Cyanogenmod 11 M3 with BMS kernel on a Samsung Galaxy S3 with Verizon.
[BetterBatteryStats] Perseus:
Please remove Chrome as your Browser. Use some other Browser such as Dolphin or Boat. You need to change settings of K9 email regarding email refresh. Do you really need Facebook App ?
[BetterBatteryStats] K3n H1mur4:
About 3k NLP wakelocks in 4 hours, any ideas? They account 15 minutes (more than 3 wakelocks/second) of uptime, I'm really going crazy here. Screenshot, BBS log and logcat attached, Moto X (XT1058) running rooted, UB stock 4.4.2, main mods are a few XPosed modules.

BBS log: http://pastebin. com/U8H2SucG

Logcat: http://www.mediafire. com/view/?t25dxadf74ykehf

Sent from my Moto X
[BetterBatteryStats] Perseus:
Network Location Provider (NLP) Wakelocks are predominantly caused by Google Location Reporting and apps that use this service such as Google Now. turn off this reporting and see the result.
[BetterBatteryStats] K3n H1mur4:
I've tried it before, it did work, but Google now rendered useless. Location tracking (which could be the culprit to so many wakelocks) is already off, but sporadic location reporting is needed for a essential functionality of my phone (considering I bought a Moto X for its Google Now integration) and shouldn't be causing so many wakelocks (c'mon, 3 per second is simply ridiculous). I can deal with a few dozens per charging circle, but thousands in only 4 hours is just inadmissible.

Edit: 5 hours since unplugging, 5k wakelocks so far.

Sent from my Moto X
[BetterBatteryStats] Perseus:
If you want Google Now fully functional, then you have to live with this. Any other suggestions will not give full Google Now experience. If you really want, set the Location Service to Device Only.
[BetterBatteryStats] K3n H1mur4:
I had functional GN in 3 KitKat phones (Defy, Xperia S and Moto G) without this much wakelocks before, that's the point. Plus, Google wouldn't create an app with so much system integration that would cause this harmful behavior to the device.

Sent from my Moto X
[BetterBatteryStats] nic85:
doesn't work on my rooted d802 kiktat stock :(
[BetterBatteryStats] Hopper8:
Beg to differ... GNow is one of the leading battery smashers created, it's up there with Facebook app. I know it's integrated but it really does take a huge toll on battery. It's always active and always checking for info, whether its news/weather, if you're walking/running, or getting sports scores.

Edit: and [MENTION=1545532]nic85[/MENTION]... what does that mean?? "Doesn't work" gives no way of helping you. What, the app just doesn't install? Or you didn't install it as a system app (I assume you're on KitKat with a D802). Whatever it is, we need more info, saying it doesn't work is no use.
[BetterBatteryStats] chamonix:
Looking at your partial wakelocks it's pretty easy:

PlumeServiceRest (com.levelup.touiteur.Plume): 14 m 14 s (854 s) Count:39 3.0%
IdleScreen:command (com.htc.idlescreen.shortcut.Fond d'écran): 10 m 24 s (624 s) Count:80 2.2%
CSPUSH (Calendrier): 9 m 11 s (551 s) Count:87 1.9%
SYNCHRONIZED (com.htc.android.mail.E-Mail): 4 m 23 s (263 s) Count:57 0.9%
*sync* (com.htc.android.mail.E-Mail): 3 m 46 s (226 s) Count:80 0.8%
*sync* (com.google.android.apps.plus.Google+): 3 m 24 s (204 s) Count:11 0.7%
MAIL_PWR_LOCK (com.htc.android.mail.E-Mail): 3 m 18 s (198 s) Count:134 0.7%
START_SERVICE (Calendrier): 3 m 15 s (195 s) Count:206 0.7%
3gw.ServiceLifeCheckr (net.rgruet.android.g3watchdog.3G Watchdog): 2 m 1 s (121 s) Count:32 0.4%
FacebookService (com.facebook.katana.Facebook): 1 m 32 s (92 s) Count:5 0.3%

Here are the ones that can be easily changed by adjusting settings.

- Your twitter client kept your phone awake 14 minutes and woke it up 39 times: you should lower your poll frequency

- Facebook is a known cause of wakelocks as well and was respobsible for 1,5 Min. awake

And some apps that you should think over or look for alternatives:

- Your wallpaper kept your phone awake 10 muntes and woke it up 80 times

- your HTC e-mail client is responsible for 7 minutes awake

- 3G watchdog woke your phone up 32 times with a total of 2 minutes awake
[BetterBatteryStats] chamonix:
Well that's an easy one: http://grepcode.com/file/repository...m/android/server/StatusBarManagerService.java

Looking at the code there is no good reason why it should hold a wakelock though. Are you using any statusbar extensions or tweaked resources / framework that could be the cause?

It would be interesting to check your logcat for the tag "StatusBarManagerService" in order to see if something goes wrong there.
[BetterBatteryStats] chamonix:
Call for testers, 1.5RC1 is up

Hey guys,

the upcoming version has some major changes so I decided to release one or two candidates before the final version here in order to get your feedback. The version is as usual in the second post.

Here's the changelog:

#62: Dmpfile is now named with timestamp to avoid overwriting

#63: if writing a dumofile fails because of unmounted SD and error is displayed

#64: alarms with upper case names / numbers in the package name were being truncated

#65: the retrieval of the online knowledge base was blocking the refresh of the screen under bad network conditions

#66: alarms were added to dump (if phone rooted)

#67: "Actions" menu was renamed to "More"

#70: references "since unplugged" and "since charged" were added to kernel wakelocks. Please note that the corresponding events (unplug, charge to 100% must occur once for the data to be available)

#34: the whole persistence of sample data (custom reference, since.... for kernel wakelocks) was refactored and persistence of samples is now on private storage (files). There is no ned for preventing the user from leaving BBS with "back" as the data is not in memory

#71: graphs now work in ICS

#72: FC on start when the battery service could not be initalized (typical for MIUI as the service is off be default).

#73: added google analytics for a better tracking of how BBS is used. A warning notifies of that change and offers to opt-out if Google Analytics are not wanted

#74: added "raw" kernel wakelocks to the "more" menu

Thanks for your support!
[BetterBatteryStats] chamonix:
Could you please attach a dump. Even log service is not a drainer by itself but a side effect. Unfortunately there is no way to find the causes by analysing other dumps as for alarm manager so we need to have a closer look at the dump to find some ways to correlate
[BetterBatteryStats] chamonix:
There is something really odd in your data:

- the partial wakelocks listed are higher than "awake"

Could you please take another reading after rebooting your phone? If this persist I am afraid that there is something wrong with the batteryservice of your phone.
[BetterBatteryStats] chamonix:
As there is no apparent driver for those occurences of EventLogService I tink we should look into your alarms. Could you please provide a dump of those?
[BetterBatteryStats] suku_patel_22:
What would analytics collect and send?

Swyped from my Desire S
[BetterBatteryStats] suku_patel_22:
Initial list of issues

1. Need to update the release.notes

2. Force close on dump to file, 0 byte file created

3. Other + since unplugged shows blank on first load, could not replicate again though

4. I'm wakelocks show as blank, get a today notification, saying its not unplugged yet, raw kernel wakelocks loads up fine

5. Set a custom ref force closes

6. Dump to file from history screen works fine but doesn't add timestamp to the file name

Well try to post logcat asap

Swyped from my Desire S
[BetterBatteryStats] chamonix:
One call on opening every screen / changing the views from the the spinners.
[BetterBatteryStats] chamonix:
1. Sure, will be done once moving from RC

2. It would be nice if I could have a log on that, I tested if with and without root rights on my GN. May be root retection as alarms are part of dump now

3. Will try to find the condition

4. Kernel wakelocks show as empty till a reference could be created. This happens at different event: when you unplug your phone, when the phone reached 100% of load. "raw" kernel wakelocks are "since boot" and always show data

5. I broke something, issue #76

6. oh, I forgot that one, added issue #75

Thanks for your efforts
[BetterBatteryStats] bala_gamer:
thanks for the reply.. i have attached the logcat for framework here, waiting for your reply :)
[BetterBatteryStats] chamonix:
RC2 is up in post #2:

- FC on Custom Ref is fixed

- Timestamp on Series as well

- I couldn't reproduce FC on dump, neither on a rooted ICS nor on an unrooted Desire so I can only assume the first fix did the trick here as well
[BetterBatteryStats] intulsa:
I downloaded RC2 from the link but I noticed after install the about says RC1. Did I get the wrong one? I got an FC when I tried to dump with zero byte files as the result.

The apk I downloaded does say RC2 so I guess the about just hasn't been updated?
[BetterBatteryStats] brice83:
thanks, i will lower the update frequency of these application. but i don't understand how the wallpaper can keep the phone awake :confused:
[BetterBatteryStats] chamonix:
There is indeed no reason except if you have an animated wallpaper and a flawed launcher.
[BetterBatteryStats] EyeTech:
Lots of alarm wakeups

On my SGS2 I have 5820 Wakeups just in the com.google.android.apps.maps section of alarms. The second on the list is android, making up 592 wakeups.

The specific intent is ALARM_WAKEUP_LOCATOR (5569). The same intent on my GTab 7 has no wakeups! I have latitude disabled, but I do use google maps on my sgs2. Should I be looking to reduce this count? If so, can you suggest any ways of doing this?

Thanks
[BetterBatteryStats] itay_h7:
thanks!! ! ! ! ! !!!!!!!!!!!!
[BetterBatteryStats] suku_patel_22:
Custom ref works fine

The file name for serie dump is fine as well, would be good to add a '-' between date and text ex; BetterBatteryStats_History-2011-12-28_071646185.txt . Same goes for normal dump

Well post logcat asap, still not out of bed :)

Swyped from my Desire S
[BetterBatteryStats] hurley81388:
please delete. thanks
[BetterBatteryStats] chamonix:
That's a good idea, addoing this to RC3. I have also found the reason for the FCs I believe. There were two tricky things related to creating the dump while plugged to USB. I had to add a service because of leaked broaadcast receiver and do a more specific handling in case of missing references. While I was at it I have also added a speaking text to a list when a reference is not present yet to avoid empty lists.

I am populating the readme now and will release RC3 in a few minutes
[BetterBatteryStats] nic85:
sorry! if i install it like a sistem app i get "failed" popup
[BetterBatteryStats] Perseus:
So does that mean you tried to install the app and then move it to be System app ? Or was it that you tried to click on the app from inside /system/priv-app and it gave you failed error ?

Without having detailed information, it is extremely difficult to help. In order for us to help you install, we need to know what steps you have done so far.
[BetterBatteryStats] xanthrax:
It is working fine

Download the latest 1.6.0.0.b3, copy /paste in system /priv-app, fix permissions 644, reboot, wait for 2 minutes for the system to settle, open bbs, give root access and use it

-=-=- lol, RCs assault against boobs, sorry, noobs :rolleyes:

Sent from my Darkside of LG G2
[BetterBatteryStats] K3n H1mur4:
As I said, I had it working on other phones without this much wakelocks. Since I've been backing up and restoring AOSP KK ROMs in different devices for some time, now, I assume is some misconfiguration being carried from my Moto G to my Moto X, probably due to the fact that I'm using a stock ROM now (was on Carbon on my XPeria S, went to Carbon on Moto G), or to hardware differences.

Sent from my Moto X
[BetterBatteryStats] rotman253:
need help with finding the problem in my tablet

hello ,

first of , thanks for the great tool.

I've just bought an android tablet (Pipo M8HD) , I noticed the battery is draining very fast , even when turning on flight mode and not touching the tablet at all.

The stats shows that :

Kernel Wakelock :

PowerManagerService is 89.7% of the time and it's the only major one under that category.

Partial wakelocks :

Checkin Handoff is the major one with 24.8% and after it NlpColectorWakeLock with 1.1%

No alarms

CPU :

312Mhz - 88.5% of the time

816Mhz - 10.8%

Deep sleep - 0.2% (!!) only 39 seconds out of 6h 28m 9s

so clearly there is a problem here.

where should I start?

Thank you very much

Edit :

ok , should have just include a dump file and that's it ...

so this is it: https://www.dropbox.com/s/rsfu9duw57kxg74/BetterBatteryStats-2014-05-21_021651632.json
[BetterBatteryStats] robindebruin:
Look at freaktab.com and look for rileyrom i myself have the old pipo max m9

If you need anyhelp shoot me a pm i now have my tablet for over 1 year

Verstuurd vanaf mijn GT-I9300 met Tapatalk
[BetterBatteryStats] Karpfenhai:
Mate, please do not add a json file since we don't have an interpreter for that, it's more for the dev.

For us a simple dump is sufficient (pain text)

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] ccoager:
Can someone tell me why I have such high battery drain even though my deep sleep is very high?
[BetterBatteryStats] demoncamber:
If anyone could please help me out: http://xdaforums.com/showthread.php?p=52772936

Sent from my LG-D801
[BetterBatteryStats] badboy47:
How do you guys take the dump?
[BetterBatteryStats] K3n H1mur4:
Usually in the bathroom

JK, there's an option for it (with several ways, like logcat, dmesg, etc) in the menu

Sent from my Moto X
[BetterBatteryStats] It_ler:
BBS Dumpfile: Click on the share button (top right), select Text dumpfile and click Save (or Share).

My tapatalk signature:

Phone:

SGS2 (GT-I9100)

ROM:

XWMS3 NeatROM Lite v6.3 (PDA: XWMS3 / PHONE: XXMS4 / CSC: FOPLS6)

Kernel:

Apolo v4.14

If you have any question about or any issue with your SGS2, just ask in the New members friendly Q&A thread.

Have a :eek: at my latest kernel test results.
[BetterBatteryStats] TKD29:
What is Checkin Handoff ? and how stop?
[BetterBatteryStats] an0n981:
Did you disable the CheckinService for Google Play services or Google Services Framework (depending on the GAPPS version)? If yes, then you also need to disable the CheckinServices$Receiver, $TriggerReceiver etc. This can done for example with Android Tunner
[BetterBatteryStats] TKD29:
No, it`s first time when i see this..
[BetterBatteryStats] rotman253:
thanks ,

would this help ? http://jsonviewer.stack.hu/

or are you still prefer txt dump file?
[BetterBatteryStats] Avishai1b:
http://speedy.sh/hP4Yt/BetterBatteryStats-2014-05-21-083650678.txt

http://www.sendspace.com/file/n0zw80

My battery drains about 10 prevents over 6 hours, when using waze+Bluetooth and charging in my car, battery still goes down slowly

Something is using the radio too much.. Thanx

My battery drains about 10 prevents over 6 hours, when using waze+Bluetooth and charging in my car, battery still goes down slowly

Something is using the radio too much.. Thanx
[BetterBatteryStats] Perseus:
Please reboot to clear out deleted wakelocks that are chewing your battery. Next you seem to have Signal issues. If so, please toggle on Airplane mode briefly then turn it off. If you reboot, you don't have to do that. Lastly K9 mail's settings need to change to pull.

I know I'd prefer a plain simple Text File. Yes there are JSON Viewers. That's not the point. These files have a lot more data that we do not need to analyze your problem.

Would you mind posting the Text log here ? I can help you then.

Do you have a Caller Reverse Lookup service or such ? If yes, its taking a lot of time to do so and draining. Can you switch to a different provider ?

Another thing that's draining your battery is WiFi Calling. Google now too is a drain.
[BetterBatteryStats] Avishai1b:
Uploaded*
[BetterBatteryStats] SaintCity86:
Can anyone tell me why BBS says my wifi is on at all times, even though it's turned off, and under my locations settings, I have the wifi Option ticked off?

Contemplating getting the S5....
[BetterBatteryStats] an0n981:
Wifi - advanced- disable scanning always available
[BetterBatteryStats] Perseus:
I am sorry, 1 hour is a very small amount of Log time. Ideally we need at least 4 to 5 Hours of Idle Log. Idle = Phone is in Standby mode and not being used at all.
[BetterBatteryStats] guyavraham30:
my dump

the device was in 'awake' for over 7 hours! is this normal?

dump attached
[BetterBatteryStats] Perseus:
No its not Normal. Go to Settings >wireless > Advanced. Look for a setting Keep WIFI On during Sleep. Set it to Never. Reboot afterwards.
[BetterBatteryStats] guyavraham30:
Thanks, Done! But that way isn't the mobile data running in sleep mode?

Other than that, are my stats fine?
[BetterBatteryStats] Perseus:
No it usually does not. You can keep a track of Data used before and after sleep if needed. that settings usually is meant for any process needing internet. If the process wakes up phone, the phone will re-establish the last Wireless connection upon waking. At least that is the principal supposed to be.
[BetterBatteryStats] ccoager:
I just did a factory reset to continue troubleshooting. I have barely anything installed but still seeing a high number of deleted wakelocks. What could be causing this?

My signal is weak at my house but very high at work.

Thanks for your help Perseus71!
[BetterBatteryStats] mtxx1:
recently my mobile data uses alot of data.

built in data usage reports that "Android OS" uses alot of data. 100+MB in 20days

i feel this is abnormal as my friends one doesnt exceed 30MB in a month

i dont think it's any user app that cause it, since it's written as "android OS" usage.

using BBS, it reports that an app called "0" is using the data.

anyone knows how to deal with this 0 app?
[BetterBatteryStats] jhuff83:
Attached is my latest dump. I have done everything I can think of for the wlan_rx_wakelock found here: http://xdaforums.com/google-nexus-5/help/getting-rid-wlanrxwake-wakelocks-t2519294

Can anyone give me any more suggestions to fix this issue?
[BetterBatteryStats] Karpfenhai:
Well, you could try 2 more options, first place this script to/data/local:

busybox ifconfig wlan0 -multicast

echo "$(date)" >>/data/local/userinit.log

Name it userinit.sh and set permissions to 755.

This should disable broadcast receiving.

Second, if possible setup a dedicated vlan for your device only.

Good luck!

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] Perseus:
Please Read this link. It would help you greatly. When you reach home, please toggle Airplane mode briefly. That will help get better lock on nearest tower. Please search this thread for [MENTION=4355376]Karpfenhai[/MENTION]'s mod. I have linked it on several occasions. You will need System Tuner app for that. Afterwards please reboot and post an overnight idle Log.

Please Turn off Android Backup from Settings > Backup & Restore. Reboot then check again.
[BetterBatteryStats] ccoager:
Thanks Perseus71 and Karpfenhai. Is there a newer version of this post for Kitkat 4.4.2 with the newer version of Google Play Services? The post is over 6 months old and the screenshots don't all line up with what I have.
[BetterBatteryStats] Perseus:
It does not line up for other devices. What you are looking for in your own Play Service are the entries that are related to GCM. You need to uncheck them.
[BetterBatteryStats] Durocks:
Solved it by manually moving the apk to /system/priv-app/

Thanks for the help
[BetterBatteryStats] Apollondor:
Hi guys, I have recently installed the official KitKat update on my Razr Maxx HD, but unfortunately I get huge battery drains because of the Fastdromancy being enabled (my cell operator doesn't support it). My device is not rooted so I can't edit the build.prop file in order to disable it. Does smbd know if is there a way to disable fastdormancy with an unrooted phone?

p.s: also can't understand why I get the Wi-Fi bar always blue even though I have had turned it off practically for the whole day.
[BetterBatteryStats] ccoager:
[MENTION=3639717]Perseus71[/MENTION]

I made the changes to Google Play Services with System Tuner. Can you tell if it worked? I still see GCM wakelocks.

My percentage per hour improved a bit but it still seems really high for the phone doing nothing.
[BetterBatteryStats] chang87:
where did you file the apk? I have the same problem as you but I cant find the app?
[BetterBatteryStats] Karpfenhai:
:

The drain seems to high for me, according to your dump it should be around 0.4 / hour maximum.

Since I don't know the age of your battery it might be related to bad network coverage, can you try if the drain vanishes in flightmode?

If this is the case, try setting your device to 2g only or something, tasker / Llama or even gravity box can be very helpful for that.

Furthermore, if possible find a baseband for your phone winch is known as battery friendly.

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] Durocks:
I installed it, and used Root Browser (Free in the Play Store) to navigate to /data/app/ , once there, i looked up for the betterbatterystats apk, and i moved it (not copy it) into /system/priv-app/, followed by a reboot. And that's it, enter BBS, and check if the partial wakelocks appear as they should.

Good Luck, Durocks.

LG G2 D802
[BetterBatteryStats] chang87:
Hi Guys,

I tried installing BetterBatteryStats as a system app but It always fails.

I have read it somewhere that you need to move it manually so it'll work.

Where can I find the file so I can move it manually to the system?

And what particular folder should I move it to?

Thanks
[BetterBatteryStats] Karpfenhai:
Move the whole apk as it comes from op either to /system/app (prior kitkat) or to /system/priv-app (kk).

Set permissions to 644, owner and group to root. Reboot and done.

But.... that all had been discussed and explained recently in this thread.....

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] chang87:
Ok, I have just successfully moved the .apk it to the said location and just done rebooting the phone.

Do I need to do the "Install as system file" again? or not?

Thanks