yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] carlos67:
"Battery Usage Detective". Thats my suggestion. Why?

Battery needs to be in there for when people are searching.

Usage, well, erm, cos that's what were talking about isn't it?

Detective because that's what the app behaves like - a detective trying to get to the bottom of something.

Was tempted to substitute "wakelock" for "usage" but most android users wouldn't know what wakelock means.

Edit: sorry for jumping the gun.
[BetterBatteryStats] PhuongHoang:
I prefer using battery indicator pro. It's version in market is 4.0.2, but version 3.0.2 is nice more.
[BetterBatteryStats] nobnut:
Battery Indicator Pro cannot be compared with BetterBatteryStats. The two apps perform totally different functions :)
[BetterBatteryStats] jonny68:
Can anyone shed some light on what Rilj, alarm manager and GTALK ASYNC_CONN are these seem to regularly appear in my wakelocks,

cheers
[BetterBatteryStats] chamonix:
RILJ is the java counterpart of the RIL = radio interface lib = radio of modem. heavy wakelocks can be caused by unstable reception, buggy modem version of fast dormancy issues.

AlarmManager: Search this thread for 'sysdump', you will find it

GTALK ASYNC CONN: part of google's framework for push notifications and market payment, not documented, no sources available. it has been found that the behaviour can be conditioned by some extent by not using google talk but part of the behaviour is still not deterministic and without sources it's pretty hard to explain
[BetterBatteryStats] jonny68:
thanks for that, i assume i just have to live with these wakelocks anyway, juice defender is always top of the lost but still and all if i didn't have Juice defender ultimate my battery would drain a lot faster.
[BetterBatteryStats] nobnut:
No, quite the opposite. Ditch JD, it is useless... and have a search throughout this thread. There are fixes for all of the issues you reported. The only difficult one is Gtalk_Sync but we can get your wakelocks down.

Sent from me to you using stuff
[BetterBatteryStats] RampageRR:
Thanks for the explanation. I did receive an MMS, but it would not download the attachment. You are more than likely describing what happened perfectly. I'll try freezing the stock messaging app to see if it takes care of it.

Do you know if GoSMS needs the stock messaging app to work, or can I freeze it without affecting it? Thanks again!

(ps- i agree with the post about changing the name, this is easily the most useful app have ever used for finding wayward app/battery usage. Should have a name that stands out from the rest)
[BetterBatteryStats] jonny68:
Totally disagree with you there Juice defender ultimate is one of the best and essential apps i have, this has saved me hours of battery, if there are solutions though for any of the other wakelocks id be happy to hear peoples thoughts and opinions.:)
[BetterBatteryStats] nobnut:
LOL

You are perfectly entitled to disagree. Chamonix, Pulser, myself and many others have said many times before how it is not actually a way to save battery life. It actually uses more power. Read this thread for some useful tips to really save juice.

But if you want to use it, go ahead.

PS I get 3 days from my SGSII battery without JD. I bet you don't get 3 days with it ;)

Sent from me to you using stuff
[BetterBatteryStats] jonny68:
3 days eh, id be very interested to see your usage for that period,longest ive got is just 3 mins short of 29 hours on Cognition 1.15 that is with medium usage and JD set to balanced, id say if i had it set to aggressive id get even more.

I'm always open to suggestions and if in the unlikely event it does transpire that by not using JD i can achieve better battery life ill freeze it straight away.
[BetterBatteryStats] suku_patel_22:
I M on the same ROM, with Bluetooth off. Still I am seeing this

Tapatalked from a Desire S waiting for Kernel 3 sources. WAKE UP HTC!!!!!!
[BetterBatteryStats] haloeight:
Thanks, looking forward to it - gladly paid for BBS and would be happy to support this if it can help improve that problem.
[BetterBatteryStats] kwurky:
I didn't want to clutter the thread, but I would like the author to know that I financially support Sven for this awesome app by buying this app on the Play Store after having used the xda version since last year. Finally!:good:
[BetterBatteryStats] chamonix:
Is your device rooted?
[BetterBatteryStats] chamonix:
Unfortunately the dumpfile is incomplete. Please follow the instruction from Post #1 for taking an idle reading
[BetterBatteryStats] chamonix:
Here we go:

Since 8 h 28 m 16 s
Deep Sleep (): 7 h 31 m 36 s (27096 s) Ratio: -64.6%
Awake (): 56 m 45 s (3405 s) Ratio: 11.2%
Screen On (): 4 m 34 s (274 s) Ratio: 0.9%

and the awake is divided into:

"multipdp" (): 31 m 2 s (1862 s) Cnt:(c/wc/ec)272/0/272 6.1%
"secril_fd-interface" (): 23 m 7 s (1387 s) Cnt:(c/wc/ec)352/0/0 4.5%
"PowerManagerService" (): 8 m 40 s (520 s) Cnt:(c/wc/ec)1236/0/0 1.7%

Result: data transfer is your problem. Let's took at that a little bit closer now that we have so nice new features:

10021 (Mobile) (com.android.exchange.Exchange Services): 282.0 KBytes 39.7%
10125 (Mobile) (com.facebook.katana.Facebook): 176.0 KBytes 24.9%
10012 (Mobile) (Google Services): 70.0 KBytes 9.9%
10168 (Mobile) (fr.gdi.android.news.Scrollable News): 59.0 KBytes 8.4%

What does this tell us:

- Facebook is causing almost as much traffic as your mail programme (!). Adding the wakeups to that and you see the real costs of Facebook.

And a question: are you willing to pay that price for Facebook or would an alternate app of the webapp be fine too?

Note: what I did was a mechanical copy/paste from the dumpfile. I could write a script doing that kind of stuff (and I will) because 90% of the readings I see are sooo obvious.
[BetterBatteryStats] chamonix:
This answer was generated:

"wlan_rx_wake" (): 1 h 18 m 31 s (4711 s) Cnt:(c/wc/ec)3431/0/3431 24.0%

Your problem is related to Wifi being on. This causes (among other) wakeups accountable for 1/2 of the total awake of your phone. Turn off Wifi when you are not using it or, if you feel like it, use wireshark to find what traffic from what source does that and turn it off, use search to find if there is a kernel trying to solve that problem or wait a few days for Better Wifi on/off
[BetterBatteryStats] chamonix:
Since 7 h 21 m 12 s
Deep Sleep (): 5 h 35 m 1 s (20101 s) Ratio: 75.9%
Awake (): 1 h 46 m 10 s (6370 s) Ratio: 24.1%
Screen On (): 1 h 2 m 13 s (3733 s) Ratio: 14.1%

Looking at that profile without context I'd say: that is nearly perfect: awake = screen on

Now after reading your text I assume that in this case screen on is not equal to using the phone.

Good news is your phone sleeps well when the screen is off.

The alarms tell me:

- google maps is very hungry and will be the next thing you will want to solve once the screen on/off is gone

- com.BahagHariArts.PeekaDroidTheme (): Wakeups: 206 seems very very weird to me. The name says "theme" but why should a theme wake up your phone twice a minute. Turn it off / remove it to see if if fixes the problem (even if it's not the problem that is far too many wakeups).

If it's not that one please provide a new dumpfile while it's gone and try to estimate how many on/off were there during that time (an idle dump for one hour will be enough while we are trying to pin that problem)
[BetterBatteryStats] chamonix:
Wou are the new winner of the oldest version of BBS still in use ;) Please update to 1.9 and re-post
[BetterBatteryStats] chamonix:
This is literally keep your phone awake:

com.android.email (): Wakeups: 1222
[BetterBatteryStats] chamonix:
ccc71.bmw (): Wakeups: 434

BMW with a sample every minute is far too high and you pay the costs

com.sec.spp.push (): Wakeups: 191

I don't what it is but the wakeups are also too high

com.android.exchange (): Wakeups: 137

com.latedroid.juicedefender (): Wakeups: 119

Remove JD, it is killing your battery!
[BetterBatteryStats] Karpfenhai:
Thx chamonix for your never ending will to answer all users questions!

Today after unplugging my device i decided to not use maps at all.

So i got not a single wakelock today:

Guys, it's possible to reduce the maps wl to zero without loosing any functionality!

Means, if i pull up the application it works flawless.

Disable location based services and deny all autostarts from maps, it works!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] uf21:
Thanks for the quick reply. Is that the normal email app? because I have it set to check email every 4 hours and with the gmail app I have it set to manual check. So why is it keeping my phone awake?
[BetterBatteryStats] KC Boutiette:
No Network Stats

Hi Chamonix, really love your app! Also I am really interested in the Network stats feature. However as you can see on the pics I attached, there are no such stats on my LG Black P970 running a Android 2.3.4 custom mod called Zeus v6.39n. Superuser permissions are granted as you can see on the third screen shot. The first screen shot is showing the network stats from the dropdown menu, the second is the raw data I found in options > more.

Do you know about this problem? If not, what extra information do you need to possibly fix it? I am curious and willing to help.
[BetterBatteryStats] Memphisto11:
Can anyone enlighten me how do I interpret between blue and red bar when looking at the wakelocks?
[BetterBatteryStats] melvinaury:
Thanks, I test what you suggest. Tomorrow I post a new dumpfile.
[BetterBatteryStats] Karpfenhai:
Hey there,

Wlan, Locations Settings, Facebook and Maps, but its not too bad!

Try to clean your wifi (search in this thread).

Try to reduce your general sync activity.

Freeze all autostarts from Maps.

replace FB with Friendcaster or decrease the update rate.

Good luck!
[BetterBatteryStats] BillGoss:
Thanks to Karpfenhai for the solution to the first question.

Would I be correct in saying that the answer to the second question is:

- BBS shows total phone awake time (applications plus kernel)

- System/Battery only shows application wake time.

Sent from my Desire S
[BetterBatteryStats] Emir5kurt:
How can I freeze auto starts from maps? Which app you guys using for that?
[BetterBatteryStats] Karpfenhai:
Use Autostarts from market ;)
[BetterBatteryStats] Emir5kurt:
Thanks for the tip.
[BetterBatteryStats] Tylonhh:
Hi,

I have an understanding question.

As you can see in the screenshot the vbus is higher then my using time although I selected since unplugged. What is the explanation of that?

Gesendet von meinem GT-I9100 mit Tapatalk 2
[BetterBatteryStats] Karpfenhai:
You may have a broken USB port, try to clean it with care.

Enter *#*#4636#*#* and check battery info, something weird visible?

Tapatalked from my Samsung GT9100
[BetterBatteryStats] xelra:
I use Gemini app manager. It's free.
[BetterBatteryStats] Karpfenhai:
Ive used this program too on GB but since ICS it seems to to work properly anymore ;( Can you confirm it freezes everything as expected?

Its pretty comfortable.

Ohh and Update, maybe ill give it another try too.
[BetterBatteryStats] Cyclu:
I have the same problem.
[BetterBatteryStats] yhrn:
I can confirm that the latest update of Gemini app manager fixes the issue that it could not acquire root (in conjunction with SuperSU, I think).
[BetterBatteryStats] ironia.:
report that cpu states isnt workin on jb 4.1.1 nexus s
[BetterBatteryStats] suku_patel_22:
Working fine here on CM10.

Does CPU spy work?

Tapatalked from a Desire S waiting for Kernel 3 sources. WAKE UP HTC!!!!!!
[BetterBatteryStats] Wacco001:
If you mean the blue and red colored bars you'll find under the "Process" selection, I always understood it's CPU (time) consumption by user CPU (Us: ) and system CPU (Sys: ).

Blue representing the time spent by user CPU on the process and red representing time spent by system CPU on that same process.

Hope someone will kindly correct me if I'm wrong..

Cheers,

---------- Post added at 02:26 PM ---------- Previous post was at 01:51 PM ----------

Not sure either, as I also do not have these network stats info on my DHD.

I assume it's (still) related to an previous known issue: " Network stats do not show network usage for all apps/processes on Gingerbread (works on Froyo)."

I hope the OP or somebody who knows more about this will find some time to answer/confirm ..

Cheers,
[BetterBatteryStats] bsoplinger:
Question about this comment of yours....

Is this saying "since BMW samples every minute, its cost is too high" or "your setting BMW to sample every minute is too high" because if it's the last one I'd love to know how to change the rate at which BMW samples.

Sent from my Sprint Evo View 4G (PG41200) using Xparent Purple Tapatalk 2
[BetterBatteryStats] xelra:
In the settings. Just set the sampling rate to either 10 or 30 minutes.
[BetterBatteryStats] boboev:
l2_hsic wakelock?

Hi chamonix, as well as all other regular posters in this very informative and educative thread.

I have run a thread search before asking this because I see that the thread is 1 year old already, so I am quite surprised that the keyword did not return any result. And the key word is l2_hsic

This has been among the worst battery drainers on Galaxy Note eversince ICS came out. Does somebody know which process this wakelock is related to and what must be done to minimize it?

Thank you! I am not posting any dump files because I am interested in this one particular wakelock. I have found quite a lot of info about the others in this thread.
[BetterBatteryStats] steve austin:
update

thanks for the new releases. I seem to have run into a similar issue with the new apps. it seems that the alert I previously talked about seems to primarily happen when I am on a phone call. BBS seems to always seek root permission on a call. besides the pop up alert, if I am on a call, and I have a Bluetooth headset on - but not using on the call - BBS will seek root permission and the call will leave the phone and automatically switch it the the Bluetooth earpiece?!? when it first started happening I thought I was dropping calls. that was not the case. it's a very random occurrence but it does happen.

I am attaching two logcats which I "believe" recorded the last time BBS sought root permission while on a call. this instance does NOT include the Bluetooth hishaps I described. I am using an Anthrax kernel on an HTC T-mo sensation. don't know if that info will factor into the resolution. thanks again.
[BetterBatteryStats] Burgscheinkerkdeiktraast:
Hello, I can't find reason of higher battery usage after I use phone again since complete charge (unplug from the charger).

usually if I don't touch phone I have 0.1-0.2% battery usage, after I use ie. WiFi, I will have minimum 0.8% drain per hour.

I attach logs - battery has been charged fully and left for a while. I attach also battery usage log by battery widget monitor.

I finished browsing NET about 02:10 night - usage was about 50 mA, but why later it took so many hours to drop to example 8 mA?

In GingerBread I had usage about 0.1%-0.2 per hour with same amount of running services in the background. Now I have often even tenth times more....
[BetterBatteryStats] rwelsh09:
Here is a snippet from my dump.

Do you think I should remove JD?

Although it has a high count it does reduce data traffic.
[BetterBatteryStats] chamonix:
Yes it is the "normal" email app. I don't use it so I can't really tell if there is a way to condition that but fact is it keeps waking your phone up far too frequently. Google shows quite some similar situation, for example this one (even if I don't know if it allies): http://code.google.com/p/android/issues/detail?id=31246
[BetterBatteryStats] rwelsh09:
A bug(?) I've noticed is that my default stat is never active when I open the app.

I.E. I set the default to Kernel and when I open the app it is on Other.
[BetterBatteryStats] poundesville:
Robert... Let me thank you first for replying... But removing exchange account didn't help then. When I flash new rom, but I format system and I live without my exchange for a while. No significant improvement...
[BetterBatteryStats] chamonix:
Does the file /proc/net/xt_qtaguid/stats exist? if yes can you please post it so that I can look at the format?
[BetterBatteryStats] chamonix:
There is only one color for the wakelocks and the bar represents the time. The process view has two colors because there are two CPU times shown: user and system times
[BetterBatteryStats] chamonix:
Please attach a dump next time!

Your main problem is "wlan_rx_wake" (): 28 m 28 s

-> as Wifi is always on it keeps waking up your phone.
[BetterBatteryStats] chamonix:
Either you have a dust USB connector or you are using a version from the release candidates to 1.9 that had this bug
[BetterBatteryStats] chamonix:
That's not much of a report. What would be cool to report too:

- does CPU Spy work in that ROM?

- what does the file /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state look like?
[BetterBatteryStats] chamonix:
you can change the sample rate in the prefs of BMW. I use 15 minutes
[BetterBatteryStats] chamonix:
About the bluetooth thing I am not sure but it may be related to the superuser thing. BBS does not do anything with BT but we know that the batteryinfo service does something under the scenes with BT (that's the reason why I had to add BT perms).

About superuser keeping asking for perms over and over: you are not the only one with that problem but I am clueless. What the logcat says is not very speaking:

E/SuperSU (31343): [SuperSU] onReceive

On the other hand I know that the problem does not always occur and I don't want to exclude that there are broken installations of superuser on some ROMs.

Here's the way superuser work: when an app asks for su it executes the binary 'su'. This binary calls the android app for an ok. The app first searches for an OK token in the database (and for the requesting UID=app) and if it doesn't find one it asks (or rejects, depending on settings).

Now obviously the app does not find the entry for that UID and that's where I'm puzzled.

Could you please check the following:

- what UID is BBS running on

- what UID is stored in the SuperUser

- does this happen when you interactively navifate to the alarms or network stats or only while BBS saves it's references

- does accepting the request ad an entry into the SuperUser DB

- are the rights requested only when screen is off / locked or also if you e.g. unplug USB while the screen is on and unlocked
[BetterBatteryStats] chamonix:
I can't discuss about the drain rates, just tell you what your dumpfile says:

Since 15 h 20 m 2 s

Deep Sleep (): 13 h 44 m 10 s (49450 s) Ratio: 89,6%
Awake (): 1 h 35 m 51 s (5751 s) Ratio: 10,4%
Screen On (): 1 h 4 m 25 s (3865 s) Ratio: 7,0%

31 minutes awake in 15 hours is pretty good.

The only thing I see here is ccc71.bmw.pro (): Wakeups: 920

That's one wakeup per minute and in my eyes too expensive / frequent
[BetterBatteryStats] chamonix:
What version are you on? is the problem reproductible with other default values as well?
[BetterBatteryStats] chamonix:
IMHO if you switched ROMs in the same step as disabling exchange you may have introduced new issues as you did two steps at once. If you provide a dumpfile in the new configuration we could start from there for a new round
[BetterBatteryStats] rwelsh09:
Version 1.9

and

Yes
[BetterBatteryStats] chamonix:
You you mind writing all that together (location settings, autostart settings) in one post. I'd like to add that to the FAQ
[BetterBatteryStats] Karpfenhai:
Sure i will, later tonight.

L2_hsic stands for layer 2 which is a component of your network stack (osi model) check on wiki which network tasks are handled by the second layer.

My guess, it's icmp or broadcast, if so, try to reduce your network noise somehow (static ip's for all devices, beacon interval settings on your router)

But it was discussed several times in this thread too!

Good luck ;)

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Lownita:
Any ideas what could be eating 1% battery/h for me? Can't find anything suspicious! Thanks!
[BetterBatteryStats] chamonix:
Issue #214
[BetterBatteryStats] chamonix:
In that 9 hours Facebook has caused 5 times more network traffic than mail..... Keep you device busy and up for quite some time (25 pct of the awake time in total)
[BetterBatteryStats] boboev:
I can confirm the bug fully reproductible. I am on version 1.9.0.0

Sent from my CleaNote V3.1 powered, GL Notecore v8 Std kerneled GT-N7000
[BetterBatteryStats] boboev:
Thank you. I have set static IP to my home wireless network and set beacon time to 300 ms

Other than that I am on 3G during the day.

I was sure this topic shplould have been discussed here but as I said after a search using the forum's search tool I didn't get any results and that's why I asked.

Sent from my CleaNote V3.1 powered, GL Notecore v8 Std kerneled GT-N7000
[BetterBatteryStats] brownartist:
I'm satisfied with my results so far by using ExTweaks + Siyah Kernl with NeatRom, somehow i compared the stock battery stats with the graph of the betterbatterystats, and it shows weird things like below:

As u can see, the graph of betterbatterystats shows values in the Awake-Collum whereas nothing shows up in the stock stats, is that normal? why?

Aufwachen means Awake, Bildschrim ein means Screen ON
[BetterBatteryStats] poundesville:
Thanks...

I am charging my phone now and doesn't have a good dump file on my current GB rom.

How about checking out the issue on my last ICS ROM here.

http://xdaforums.com/showthread.php?p=29280242

Thanks
[BetterBatteryStats] chamonix:
In a nutshell: stock stats interpolate, bbs doesn't as so short awakes are shown. Now if you want us to look at possible causes I suggest that you post a dump file
[BetterBatteryStats] chamonix:
You are taking readings while your phone is on the charger? In that case it's normal that you don't get consistent stats as the battery service is locked during charge. If you are talking about something else please explain it better. And why should I install your Rom?
[BetterBatteryStats] Burgscheinkerkdeiktraast:
Thx, this ccc71.bmw.pro is battery widget monitor pro. I set to save history in 10 min intervals. I turn off it for test.

So it seems ICS is more power hungry - I take your diagnosis as confirmation of this situation. I hope it will change for better in JB :)

I worry about such situation where I unplug phone from charger and is OK, very low batt drain. Later after my use it goes higher even when after is unused.

Perhaps it could be batt monitor failure... unfortunately there is no real time monitor for SGS II :(
[BetterBatteryStats] rwelsh09:
Thanks for this!

Is this Kernel Wakelock issue(you have to plug/unplug to get values), a bug that will be squashed or a feature we have to live with?
[BetterBatteryStats] Rob2222:
I wonder if Altitude App still works under that condition. Somebody know?

BR

Robert
[BetterBatteryStats] salleq:
Not if you disable location services. But, if you don't have any apps that use the location services rolling in the background, it's okay. I've disabled everything in Maps with Autostarts, and after 1d and 15h I have only 2 minutes of networklocationlocator wakelock. I'm having Backitude update once an hour and stealing locations - I doubt the drain can go much better from here :)
[BetterBatteryStats] KC Boutiette:
In the /proc/ folder there is no such thing as a /net/ folder. There is a net-file though. Although it's size is 0.00B and I cannot copy it with root browser lite so I wont know how to get it off my phone and upload it.

Edit:

I've added screen shots of my /proc/ folder so you can see what's there.
[BetterBatteryStats] brownartist:
if u want to have access to the dump file you made, just go /sdcard, there is a file names BetterBatteryStats-.....txt.
[BetterBatteryStats] KC Boutiette:
Ehh... thanks but I was not looking for that file.
[BetterBatteryStats] chamonix:
Besides the fact that your dumpfile is incomplete here's the deal:

2 hours 22 - 1 hour 14 - 11 m - 20 m = 37 minutes awake in 10 hours, I have seen worse.

Nevertheless com.tencent.mm is waking up your phone every 3 minutes in average