yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] wiggerbrand:
Attaching my log.

Basically I feel like my battery life is not so good and looking to improve my battery life any possible way.

I recently installed TuneInRadio and it feels like that has made things worse...but maybe I am just imagining this...

Thanks for any input/help.

Edit---

Also, I did play with the Keep wi-fi on during sleep option...and noticed better battery life...however I kept experiencing wifi sleep of death issues...
[BetterBatteryStats] jelle2503:
perfect log as per op!

your wifi is holding your phone awake. wlan_wake responsible for 80% of your wakelocks, nearly two hours.

try adjusting either settings on phone or on the router used for the network

or simply turn it off, but it still doesnt need to hold your phone awake while enabled, as there seems no reason for.
[BetterBatteryStats] Tungstwenty:
I think Chamonix mentioned the info is read from /proc/net/xt_qtaguid/stats.

Search for "xt_qtaguid" for instance within the sources, as in:

find root_dir -type f -name '*.c' | xargs grep qtaguid

This should show you the source file where that /proc file entry is created. Open it and search for conditional defines surrounding it.

In addition, you might need to check the Makefile in the same folder as the source file, or one of the parent dirs, for conditional flags to include that entire .c file in the kernel image or not.

In my kernel, it's:

- Networking support

- Networking options

- Network packet filtering framework (Netfilter)

- Core Netfilter Configuration

- Netfilter Xtables support (required for ip_tables)

- "quota, tag, owner" match and stats support

Since there are dependencies for the options to be available, check which options you might need to activate for this to show, and browse the /net/netfilter/Kconfig (and any other relevant ones) to check what might be needed.

For instance, if you activate "owner match support", the "quota, tag, owner" option will not be available.

There's always the possibility that your kernel doesn't include this at all ...
[BetterBatteryStats] chamonix:
PM m your order number, you'll get a refund. I have no time to lose with people who are not even willing to learn. Dude, get yourself an iPhone
[BetterBatteryStats] chamonix:
Pls, don't..... big or small insults I don't care... this a dev / support thread, no kindergarden. That kind of answer will get you reported
[BetterBatteryStats] chamonix:
#291
[BetterBatteryStats] Karpfenhai:
Man! First of all, do not post a full dump within the thread!! Thanks!

I'm on tapatalk so it rooks me about 3 mins to delete the crap on this quote...

So, what do we have, actually 16 mins overhead, which is pretty good so far.

Most of your wakeups are caused by network activity but i think it might be interesting what happens if you disable the nfc function for a while, could you do that and report back?

Good luck!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] wiggerbrand:
Thanks, so looks like I should try running a network sniffer to try and determine the traffic.

What sort of things can I adjust on my router?
[BetterBatteryStats] Karpfenhai:
Beacon interval plus static IP may help, furthermore disable wifi sharing manager and wifi sharing on your device.

have fun.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] NunoPitbull:
http://xdaforums.com/showpost.php?p=32213835&postcount=9066

Please guys, someone check my logs and tell me whats wrong with my lil ace :)
[BetterBatteryStats] kevindd992002:
@karpfenhai

Hey mate, need your help here if you don't mind. Here is the duml and logcat of my device overnight.

http://db.tt/PNOezq0H

http://db.tt/mf3ECNlx

I seem to have around 2%/hr. consumption which is kinda high. Mobile data is enabled as advised in this forum while leaving the phone idle. Is this correct? What can I do to solve this high consumption rate?
[BetterBatteryStats] Miche1asso:
Hi TT,

thanks for the great explanation. I followed your directions, I could find all parameters in menuconfig but the "tag" match. I recompiled but it still doesn't work. This is the list of NETFILTER_XT in my .config after setting it up as you described:

$ grep NETFILTER_XT .config | sort
# CONFIG_NETFILTER_XT_CONNMARK is not set
# CONFIG_NETFILTER_XT_MARK is not set
# CONFIG_NETFILTER_XT_MATCH_CLUSTER is not set
# CONFIG_NETFILTER_XT_MATCH_COMMENT is not set
# CONFIG_NETFILTER_XT_MATCH_CONNBYTES is not set
# CONFIG_NETFILTER_XT_MATCH_CONNLIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_CONNMARK is not set
# CONFIG_NETFILTER_XT_MATCH_CONNTRACK is not set
# CONFIG_NETFILTER_XT_MATCH_DCCP is not set
# CONFIG_NETFILTER_XT_MATCH_DSCP is not set
# CONFIG_NETFILTER_XT_MATCH_ESP is not set
# CONFIG_NETFILTER_XT_MATCH_HASHLIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_HELPER is not set
# CONFIG_NETFILTER_XT_MATCH_HL is not set
# CONFIG_NETFILTER_XT_MATCH_IPRANGE is not set
# CONFIG_NETFILTER_XT_MATCH_LENGTH is not set
# CONFIG_NETFILTER_XT_MATCH_LIMIT is not set
# CONFIG_NETFILTER_XT_MATCH_MAC is not set
# CONFIG_NETFILTER_XT_MATCH_MARK is not set
# CONFIG_NETFILTER_XT_MATCH_PKTTYPE is not set
# CONFIG_NETFILTER_XT_MATCH_POLICY is not set
# CONFIG_NETFILTER_XT_MATCH_RATEEST is not set
# CONFIG_NETFILTER_XT_MATCH_REALM is not set
# CONFIG_NETFILTER_XT_MATCH_RECENT is not set
# CONFIG_NETFILTER_XT_MATCH_SCTP is not set
# CONFIG_NETFILTER_XT_MATCH_STATE is not set
# CONFIG_NETFILTER_XT_MATCH_STRING is not set
# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set
# CONFIG_NETFILTER_XT_MATCH_TIME is not set
# CONFIG_NETFILTER_XT_MATCH_U32 is not set
# CONFIG_NETFILTER_XT_TARGET_CLASSIFY is not set
# CONFIG_NETFILTER_XT_TARGET_CONNMARK is not set
# CONFIG_NETFILTER_XT_TARGET_MARK is not set
# CONFIG_NETFILTER_XT_TARGET_NFLOG is not set
# CONFIG_NETFILTER_XT_TARGET_NFQUEUE is not set
# CONFIG_NETFILTER_XT_TARGET_RATEEST is not set
# CONFIG_NETFILTER_XT_TARGET_TCPMSS is not set
# CONFIG_NETFILTER_XT_TARGET_TEE is not set
CONFIG_NETFILTER_XTABLES=y
CONFIG_NETFILTER_XT_MATCH_MULTIPORT=y
CONFIG_NETFILTER_XT_MATCH_OWNER=y
CONFIG_NETFILTER_XT_MATCH_QUOTA=y
CONFIG_NETFILTER_XT_MATCH_STATISTIC=y

And I am afraid there are no .c module using qtaguid:

$ find . -type f -name '*.c' | xargs grep qtaguid
$

as after compiling and booting the new kernel there is no /proc/net/xt_qtaguid/stats:

bash-4.1# find /proc -name '*xt*'
/proc/sys/net/ipv4/inet_peer_maxttl
/proc/sys/net/ipv4/inet_peer_gc_maxtime
/proc/fs/ext4
find: /proc/8591: No such file or directory
bash-4.1#

It is a 2.6.35.7 (Gingerbread 2.3.6) kernel. Is there a chance it isn't supported? I thought it was standard Linux code. Thanks a lot again.
[BetterBatteryStats] Karpfenhai:
Hmm, buddy..

first of all, the consumption / awake is quite normal, so you have 50 mins awake caused by samsung push app, maybe some bad network coverage too ( Timeouts in your dump)

Disable this push stuff and you will be good, all other are normal.
[BetterBatteryStats] kevindd992002:
Thanks :)

1. What does that Samsung Push Service specifically do? Do I disable it by freezing it?

2. Yeah, I have bad coverage in my room. So bad coverage produces wakelocks too?

3. Are the frozen apps in the image you've uploaded the recommended apps that needs to be frozen?

4. Is it correct to take an idle dump while packet data connection is enabled?
[BetterBatteryStats] Karpfenhai:
Good Luck ;)
[BetterBatteryStats] Tungstwenty:
I looked at the Linux source and it doesn't seem that it's part of the standard linux distribution but rather Android-specific code (like Kernel Wakelocks and other things, I guess).

I then had a look at the base kernel implementation from google (https://android.googlesource.com/kernel/common.git) and it's there from June 2011.

The history of xt_qtaguid.c on the 2.6 branch shows in the 1st commit that it was backported from android 3.0, so it might work on GB if you port the code to your sources.

The involved files, from that history, seem to be xt_qtaguid*, Makefile, Kconfig and this commit also included 2 defines in /include/linux/android_aid.h.

Good luck adding the module to your kernel image ;)
[BetterBatteryStats] Miche1asso:
All right!! I should be able to do it, then. Thanks! :)
[BetterBatteryStats] Vahooli:
hi Karpfenhai :)

do u remember my problem ? ( high networkstats awake ) then u said i should use getril and change my modem. with that app i changed my modem to xwpq6 and now is better but problem is still here ..

see my 22 mins dumo file with 2min screen on and 7 min networkstats .. :cyclops:
[BetterBatteryStats] Squez:
My NFC is actually already disabled, and when I disabled LTE for an extended period of time, I was seeing the same results.
[BetterBatteryStats] Tungstwenty:
Let us know if you manage to have it working.

Some time ago there were other folks mentioning the absence of network stats on their kernels as well; it would be nice to at least know if it's feasible for them to ask their kernel dev to add it :)
[BetterBatteryStats] drahmed86:
what's the difference between (awake with screen on) , (phone on) and (awake with screen off)?

is it right to use autostart manager with gemini application at the same time and which is better?
[BetterBatteryStats] It_ler:
Awake with screen on is normal - the phone is always awake while screen is on.

Awake with screen off should be zero (or very small), as the phone should ideally went to deep sleep while screen is off.
[BetterBatteryStats] drahmed86:
and phone on means??? that's the core of my Q
[BetterBatteryStats] It_ler:
Oh sorry, haven't seen the "phone on" in brackets.

From the online help:

Phone On: the total time the phone was in a call
[BetterBatteryStats] chrone:
just noticed that betterbatterystat now running all the time as process and services. is this intended? :)
[BetterBatteryStats] a2khalid:
68% battery loss in 7 hrs while in DEEP SLEEP????

Hey guys,

I've done my best to troubleshoot this myself but I think I'm stumped. Just got a galaxy s3 and battery life is brutal. I tried disabling all of the bloatware but that didn't help much.

Last night I ran about 7 hours of BBS monitoring while I slept.

Phone went from 100% --> 32% in 7 hours DESPITE being in deep sleep for almost the entire time! This has me totally confused... something is definitely up.

I attached the dump file. I looked over it and nothing really jumps out at me. If anyone could take a look I would appreciate it.

All I want is to be able to get through each day without having to charge under normal use.

Thanks in advance.
[BetterBatteryStats] Karpfenhai:
You drive me crazy.. :cool:

Your dump lasts 22 mins your phone was awake 8 mins more then 2 mins the screen was on you called 4 mins that lefts exactly 48!! Seconds of background awakes...what exactly is your concern? Post a dump containing at least 4 hours of not touching the phone! Thx in advance. :p

Tapatalked from my Samsung GT9100

---------- Post added at 08:21 PM ---------- Previous post was at 08:18 PM ----------

I'm sorry then, but your dump showed nfc wakelocks..

What happens on flight mode?

Tapatalked from my Samsung GT9100

---------- Post added at 08:23 PM ---------- Previous post was at 08:21 PM ----------

This dump looks very weird to me could you take another reading?

Furthermore, tell us something about your setup, is lte enabled?

There is a known problem with huge battery drops on the gs3 due to a bad modem, just search a bit.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] bosoxdanc:
Wanted to wait a few days before asking for help again. Still getting absolutely atrocious battery life.

Thanks a bunch.

-Dan
[BetterBatteryStats] Karpfenhai:
Here you go, to all gs3 problem guys, read this thread:

Tapatalked from my Samsung GT9100
[BetterBatteryStats] shinesthru:
Couldn't have just posted a link, huh?
[BetterBatteryStats] Karpfenhai:
Sure, but life is fun, isn't it? :D

http://xdaforums.com/showthread.php?t=1811182

Tapatalked from my Samsung GT9100
[BetterBatteryStats] ii7Stryker:
When users paste links, others ask for barcode and vice versa lol .
[BetterBatteryStats] damon412:
Kernel Wakelocks

Could someone help me decipher my dumpfile? I have been trying to figure out what is keeping my AT&T GS3 from going into deep sleep. With everything(data/wifi/sync/gps) except radio off I am still seeing 4% drain an hour. I see a lot of kernel wakelocks and partial wakelocks in BBS log but can't figure out what's causing them.

I have searched and the only one that has any info is the suspend_backoff wakelock. Most of the time it's attributed to Chrome, so I uninstalled Chrome and rebooted, but it still shows. Since then I have uninstalled all aftermarket apps except BBS, ROM Manager, Titanium Backup and GSAM Battery(installed after I uninstalled everything else to see if it would help narrow down the culprit any; no luck).

Thanks for the help!

Can't link to pictures until I have 10 posts : (

Here's the text of the dumpfile, let me know if I should edit it to break it up or something.
[BetterBatteryStats] Karpfenhai:
Hmmm, tough one...

Could you check whether your SD card might be faulty?

Just take it out and see if the phone will sleep then.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] damon412:
I don't have an extra SD card. Just the internal memory.

I did forget to mention that I am running HighOnAndroid's Galaxy S3 ROM for AT&T Galaxy S3 SGH-i747, although to be completely forthcoming my battery life before switching was even worse. I didn't get BBS until after the flash though.
[BetterBatteryStats] [-Mac-]:
I have found a strange bug (happened two time):

I'm trying to create a dump file, I have recharged my GS2 until 100% (I don't remember if I have rebooted it, but it's very probable) so I have unplugged my phone from charger.

I have set my phone to silent mode and I'm went to sleep.

The morning I have checked my phone and BBS:

According to screen shot, for BBS the discharge of all night is occurred in the moment when I take my phone in the morning (1 minute), even the graphs starts with morning time, the others data show more than a minute, and partial wakelocks are empty.
[BetterBatteryStats] a2khalid:
Thank you for your reply. What looks very weird about it? The fact that the cpu is in deep sleep but the battery life still tanks? To me, that is very weird and very concerning.

I should have mentioned that it is LTE enabled. I've realized that there are people out there who have found that disabling LTE helps with their battery issues. I would be very disappointed if I have to disable LTE to make this phone usable.

I will take another reading tonight with LTE disabled, unless you have any other advice.

Thanks again.
[BetterBatteryStats] kevindd992002:
Here's another dump my friend. I already disabled samsung push notifications and ad preferences under settings of samsung apps.

http://db.tt/9W8wdpnd

http://db.tt/2K1sKSJQ

Why is my phone Awake for around 1hr+?
[BetterBatteryStats] Articudos:
I'm on v1.11, BBS grants root permission too often, e.g. when I hang up call, turning on screen, etc..

In v1.10.5, I haven't got this problem.

I don't want to abandon alarm tracking...so any ideas..?:)
[BetterBatteryStats] kevindd992002:
Same here. Can this be considered an issue though? Or just an annoyance?
[BetterBatteryStats] Karpfenhai:
This had been reported, update your superuser app or switch to super su instead.

It's not bbs related, it's just an annoying side effect.

But the calculation thing within the 2 example dumps might be an issue, Sven will take care, could you guys attach a logcat?

Tapatalked from my Samsung GT9100
[BetterBatteryStats] kevindd992002:
I'm using the latest version of SuperSU though?

Hey man, did you see my nee dump file above? Thanks.
[BetterBatteryStats] Tungstwenty:
I suggest you disable the toast notifications for BBS within SuperSU.

Root is requested whenever a reference is required, which could be every time the screen turns on/off if BBS is configured that way.
[BetterBatteryStats] MrMrMr111:
Well it's getting worse, charged to 100% at midnight, went to sleep, woke at 8am and it was flat, wouldn't turn on.

Charged up looked at battery in settings and doesn't seem to be anything. Looks like no screen on, not awake. Couldn't even check BBS as it was flat

Stuck with this now, can someone help, looks like I'm going to have to reset to factory defo I think
[BetterBatteryStats] chamonix:
If the watchdog is on in advanced prefs yes. The service sits there doing nothing except listening for screen on/off even and processing them
[BetterBatteryStats] chamonix:
Root at Hang up on is probably the same cause as screen on as the proximity sensor turns the screen on when the phone leaves your ear. The processing happens when you have ticked the watchdog but you can change the behavior of the watchdog to handle 'unlock', instead of 'screen on' in the watchdog prefs.
[BetterBatteryStats] chamonix:
Does this systematically happen when charged to 100% and unplugging?

It would be great if you could save a logcat next time it happens, we may have a mixup with the calculations here and it would be very important to know if if happens at unplug at charge level only 100 or also at other levels (the processing is a little different when fully charged)
[BetterBatteryStats] kevindd992002:
When do we really need the watchdog to function? Are the default settings fine?
[BetterBatteryStats] Karpfenhai:
Again, your only problem it's network related, and still named Samsung push services.... I assume you are using the inbuilt Samsung email client?

Switch over to k9 then.

You need to fix this by yourself, we are telling you the same thing..several times.. Try harder.. :D

Tapatalked from my Samsung GT9100
[BetterBatteryStats] bosoxdanc:
http://db.tt/JzwOlSO6 is my dump. First time dumping, so I hope it's alright. I'm running re-Calked 2.1 FI25. (this dumb is from 2.0 FI03, but battery life is still the same) I'm getting pretty bad battery drain. I've had bad battery drain for at least a few months now, regardless of the ROM. I assume it's probably network related.

Thanks.

Dan
[BetterBatteryStats] [-Mac-]:
I have not exactly understood how is the exact condition to start the bug, so I can't say if I can define it systematic, but I have reproduced another time.

I have recharged to 100%, reboot, I have waited until phone ends to recharge so I have unplugged it.

I have waited for 26 minutes and when I have checked the phone another time BBS says that was in use from 1 minute, I have checked CPU status and all it's ok BBS says 26 minutes in use, so I have rechecked Kernel Wakelocks (it's my default stats) and now even here BBS says 26 minutes.

I have taken LOGCAT before to change from Kernel Wakelocks to CPU states.
[BetterBatteryStats] kevindd992002:
Thanks. Sorry for the hassle mate, I'm confused on how to read bbs dump files. What particular wakelocks should I be looking at, partial or kernek wakelocks?

Yes I am using the built-in email client but with notifications turned off. I will try K9 client then.

I hope you don't mind me posting another dump after I do my research.
[BetterBatteryStats] Karpfenhai:
No problem buddy, just go ahead :)

Freeze the Samsung push service too!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] yahyoh:
sorry if it asked before but is there any way to fix the damn com.google.android.gsf wakelock it can do 100 wake or more in 1 day i think its killing my battery on standby :(

btw i remember this problem happen only with cm rom's not on stock (crap wiz rom's )
[BetterBatteryStats] xelra:
LOL! Are you doing this on purpose? You're just trolling here, aren't you?!

Anyway, I just wanted to state that even if it's a joke, it's not funny anymore. :banghead:
[BetterBatteryStats] kevindd992002:
How was his post a troll/joke?
[BetterBatteryStats] yahyoh:
:confused::confused:

btw i tried to sign out from Gtalk still nothing -.-
[BetterBatteryStats] xelra:
It just shows that you didn't even read the last 5 or so pages of the thread. This question is on every third page.

gsf means Google Services Framework. It does everything. Not just GTalk.
[BetterBatteryStats] akarol:
Or the OP for that matter.

Sent from my amazing Galaxy Nexus 7.
[BetterBatteryStats] chantoine:
I agree. Most of the time, new posters don't spend the lightest effort reading the last pages or opening post. It's crazy !

Envoyé depuis mon GT-N7000 avec Tapatalk
[BetterBatteryStats] prowede:
Dear All,

I found that my Galaxy Nexus is also awake.

I have dumped the file for unplugged ~6-7 hrs.

https://www.dropbox.com/s/nqzon5zx33vrhz9/BetterBatteryStats-2012-10-04_145718988.txt

How can i trace back or getting more info. which part is consuming the power?

Pls advice.

Thank you
[BetterBatteryStats] kai_:
First of all, thank you to various contributors who spend their (free) time in assisting everyone in deciphering their battery stats. I would like to ask someone to assist me in doing the same.

I'm using a Samsung Galaxy SII, based in the UK on the T-Mobile network. My rom is Wanamlite v12.4 using Siyah 4.1.1 kernel. I consider myself to be quite a light user of the phone. My normal usage usually means that I can get about 2 and a half hours of screen on time over a 24/30 hour period. However, lately, things have been going a bit wrong and now I'm down to about less than 1 hour of screen on time over 21 hours. Overnight (7hrs), I think the phone dropped from somewhere like 54% battery 33%!

This is despite recently following a thread's instructions on the SGS2 forum about using Gemini Manager to disable autostarts of certain programs. I now also notice that Gemini seems to run on it's own, occasionally flashing up in the notification bar saying that it's found an app that can be moved to the sd card. I would also like suggestions on a good program to use to freeze applications if Gemini is not a good one for doing this.

I'm open to suggestions but here's what I need my phone to do:

Samsung Dive phone tracking service

Check email (multiple accounts on IMAP and also Exchange for Hotmail account), but it's not required to sync email, I can live with checking manually every so often

To be able to use Google Maps and Navigation as I frequently travel around

To display my calendar and tasks from Google calendars on my home screen (I currently use Pure Calendar Widget and Astrid tasks to do this)

Hullomail voicemail needs to be able to be in use since T-Mobile charges to listen to voicemail on it's network.

Samsung Ch@ton is required to communicate with my friends.

Everything else I would like to be able to use only when it's called on and then off when I stop using it (I guess the aim of everyone here!).

I have read the first page and just seen Karpfenhai's post http://xdaforums.com/showpost.php?p=29420959&postcount=7059 on how to optmize Google Maps, so will be implementing that as soon as possible.

Please find attached my BBS log file and if there's any further information needed, I'm happy to provide it in order to get this sorted out. Many thanks in advance.
[BetterBatteryStats] Karpfenhai:
Hey there, your dump doesnt look too bad but its not an idle one ;)

you only had 1 hour 10 min total overhead, most probably caused by the samsung chat app --> e (com.sec.chaton.ChatON): 1 h 34 s.

Maybe you can replace exchange by K9 set to pull.

So, provide an idle dump (Overnight) to find more specific issues.

Good luck!
[BetterBatteryStats] tc80tc80:
Well, after three weeks of various versions of BBS, hunting and testing different scenarios, modems, etc; I finally found the culprit on my SGS i9000

com.android.providers.calendar (): Wakeups: 691

Alarms: 692, Intent: com.android.providers.calendar.intent.CalendarProvider2

This bugger had my battery loss at about 4%/hour. I froze it with Titanium and lost only 5% of battery in the last 12 hours.

I am on helly_bean_allinone_20120925 now but the problem has been there for the last four versions.

Now the big question...... I don't see a lot of people with the same culprit so how do I track down what keeps the calendar working so hard?

I never sync the calendar, never have in fact. I don't even use Google Calendar on my PC.

It did this behavior in Airplane mode and no wifi.

Suggestions.......
[BetterBatteryStats] yungskeeme:
I'm having a major battery drain on AOKP. Can someone tell me what it is how to fix it?

http://db.tt/4lMkxD0x