yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] chamonix:
Unfortunately GpsLocationProvider is "reporting" to Android System not to the app so there is no direct way. The indirect way would be to look for apps consuming *network-location*. I went for a jog this evening and see the wakelocks from runtastic at that level as well as google+, google maps. The problem here is that you would also see apps using only coarse grained location accessing *network-location* what is perfectly fine.

That's the flaw in android about the GPS mangement: you are supposed to be able to leave it on without it consuming battery if no app is using it. Unfortunately most dev request for fine+coarse location and read location with the highest possible precision leading to your phone using GPS for e.g. a weather widget. That is of course crap but there is nothing we can do about it except spotting the apps and revoking perms using "permissions" from market.

Sorry that I can not provide a more straight forward method but I hope those few hints will help you spotting the app you are looking for
[BetterBatteryStats] chamonix:
The crawler hit BBS on the market, updating second post.
[BetterBatteryStats] cordell12:
Sorry, gonna install new version, i didnt notice :o

NEW Pastebin log... http://pastebin.com/DnYCMb9u
[BetterBatteryStats] defnz:
No worries, the only indication I have of potential GPS use is the wakelock NetworkLocationActiveCollector by com.google.android.apps.maps.Maps

Could it be related to the "Use wireless networks" option which caches wifi spots and their relative gps location?
[BetterBatteryStats] chamonix:
got it!

onDraw: canvas (17, 12, 89, 12)

Rectangles of height 0 (12-12) are drawn. Weird but what the heck, let's fix that.

oops, it already happened.... check version 0.8.2 that should make sure the minumum height of bar never gets zero.

Please let me know if the fix works as I'd like to update the version on the android market with that fix as well.

Cheers
[BetterBatteryStats] chamonix:
( o).(o )

10 chars...
[BetterBatteryStats] thekayman:
I'm getting the bar's after 0.8.2 on the Desire HD

is there docco on what the bar's mean etc?
[BetterBatteryStats] Karpfenhai:
Can't find your dump somehow :confused:

Would you mind to provide a new one?

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Meim769:
Hey guys, long time lurker first time poster. I did a bunch of research on the best ways to maximize my battery potential on a stock phone (warranty is up in a few months) and made a few changes. Initially I was getting about 12-14 hours on a single charge with minimal usage (check facebook a couple times, maybe 10 minutes worth of internet browsing, and maybe 10-20 texts) and since my changes I haven't seen a huge difference.

I just wanted to run my results past you guys to see if there is anything blatently obvious I am missing. Thanks for the help!
[BetterBatteryStats] LordManhattan:
LOL, that's just too funny :p
[BetterBatteryStats] gpz1100:
From your log, these lines seem to be have relatively high wakelock.

Kernel Wakelocks

================

"multipdp" (): 28 m 56 s (1736 s) Cnt:(c/wc/ec)274/0/274 4.4%

"secril_fd-interface" (): 23 m 46 s (1426 s) Cnt:(c/wc/ec)325/0/0 3.6%

I'm not exactly sure what they are, I think it pertains to the radio. Perhaps someone more knowledgeable can explain what these are caused by or what they mean. My guess is something to do with your radio, because under Other, your good signal is only ~50%.
[BetterBatteryStats] Meim769:
Thanks for the response.

Yeah, I noticed those. I tried to do some searches but I couldn't find what they pertain to. If anyone has any info on those I would appreciate it.
[BetterBatteryStats] KallistiMan:
I never use or even start gtalk so I've frozen it now. We'll see if it helps.... :) thanks!
[BetterBatteryStats] saggysadler:
Short life

Hiya there. Long time lurkers also here and some amazingly knowledagble folks

Does anyone fancy a nose at my dump to see why I only had sorta 11 hours life before it startin warning about a low battery?

I have just recently set K-9 mail to use IMAP rather than POP and now appears in here as one of the highest...

Many thanks
[BetterBatteryStats] Karpfenhai:
Yeah its not to bad, secril_fd points to fast dormancy, enter *#9900# and disable it.

Multidpd is a tough one, its related to the network, it seems your carrier signal is worse in your area, maybe you should try another modem, kl1 has good reception results and is battery friendly.

It simply indicates your device had sent/received date via mobile network, i think its caused by app related background activity / sync. And due to your bad network it has this high amount.

Disable hsdpa if not needed (toggle 2g only)

Good luck!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Karpfenhai:
Damned wtf? Why is this so funny?

:eek::what::screwy:

please enlight me.. ;)

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Meim769:
Awesome! Thanks for the help!
[BetterBatteryStats] jonneymendoza:
hi. does anyone know what a"deleted_wake_locks" are?
[BetterBatteryStats] Boat Traveller:
Hi,

Here's my dump file. Is there something I should be worried about ?

IMHO no but we never know.

Thx !
[BetterBatteryStats] azrash:
You can disable history logging or increase the history update rate. I disabled history logging
[BetterBatteryStats] cdmackay:
Wake locks relating to a service are converted to deleted_wake_locks if that service goes away.

The common cause is when you disable wifi: then the wifi-related wake locks (like wlan_wake, etc), all get lumped together as deleted_wake_locks.

I'm not sure whether this applies to any service other than wifi, but that's when I see it.
[BetterBatteryStats] Birba:
You can find my dump here

http://xdaforums.com/showthread.php?p=26744085#post26744085
[BetterBatteryStats] Karpfenhai:
Ou, that's a long time ago ;)

But seriously this dump looks almost perfect!

From userland side there is nothing left to improve! (as stated by chamonix)

Maybe you should try to use an undervolted kernel and a battery saving modem to gain more juice.

Disable nfc functionality if not needed.

Enjoy your Phone! :)
[BetterBatteryStats] jonneymendoza:
i have my wifi on all day but it gets auto tunred off when the phone is on stanby as i dont have wifi always on
[BetterBatteryStats] logrej:
Weird it is. After testing, strange results. Worked ok, installed batteryspy, and no deep sleep. Uninstalled it, everything ok. Connected charger and after charging, no deep sleep. Nandroid restore helped. Then after setting facebook app sync, again no deep sleep. Restore helped... Reboot of phone also trigger no deep sleep... Maybe it is related to charger or usb connectors? On GB when connect charger phone rebooted.... voodoo phone :)
[BetterBatteryStats] valspats:
great app
[BetterBatteryStats] Karpfenhai:
Hmm, clean the usb connector port ;)

Seriously, no clue .. but cleaning may help ;)
[BetterBatteryStats] chamonix:
I use K9 IMAP as well but for my situation I found it better in terms of battery usage to go for poll instread of push. The main reason for me is that I frequently travel by thrain and that induces bad connectivity. Under those conditions the keep-alive does not work and the reconnection overhead is more than I want to "pay"

Beside that I see:

- facebook

- an overhead caused by wifi (DHCP, state machine)
[BetterBatteryStats] mikeage:
Tasker and Awake times

For those who were following my logs above, it was observed that tasker seems to be keeping the CPU awake.

While I haven't yet gotten to the bottom of it yet [see https://groups.google.com/forum/?fromgroups#!topic/tasker/JmTHSjfAzf4 for a thread in the tasker support forum as well as several BBS dumps], I did discover something that might be of interest to anyone investigating a tasker issue.

Tasker's CPU usage seems to be high even if all profiles are disabled! This was quite surprising to me [especially considering my method of debugging profiles was to disable some and see what happens]. OTOH, if no profiles exist at all, CPU usage is about the same as if it's not installed at all (as expected).
[BetterBatteryStats] Boat Traveller:
Hi,

Here's my dump file. This morning I unplugged my phone fully charged and I lost 4% in 2 hours. I usually lose 1% in 2 hours when my phone is fully charged.

Can some one help me ?

thx !
[BetterBatteryStats] AhmadOkda:
I am using cm9 which is based on 4.0.4

I would like to help in testing bbs on it if you wish
[BetterBatteryStats] Napalm Candy:
I want to know (I am searching a solution for months) but I am unnable to find an answer why I have too many wakelocks from these 3.

Please anyone can answer? If is by private message better. Thanks
[BetterBatteryStats] Thefly24:
Help: Battery drain by event

Hello Guys,

Can anyone help me with optimizing my phone. Whether I use an Official Rom, CM9 or Darky-Alliance with every Rom I have kernel wakelocks named Event0, Event1, Event3 . In my stats they have for example the name Event1-1983 but sometimes they are called Event1-2016 or 1995 or 2014. Unfortunatly I cannot find how to solve this so I hope some-one can help me. Enclosed my stats from BBS.

Thanks in advance.

Regards,

Frank
[BetterBatteryStats] manekineko:
Has anyone been seeing a lot of popups telling you that, "BetterBatteryStats is not responding. Would you like to close it? Wait Ok"

I've been getting quite a lot of these, just randomly when I'm doing other things, or especially when I unlock my phone.

I can confirm that everything looks normal in Superuser, and BetterBatteryStats is being allowed by it, so that's not the issue.
[BetterBatteryStats] Karpfenhai:
Guys for all of you, the eventx-xxxx is the Android system server!

The digits are only the PID (Process IDentifier), therefore the number is always a different one.

Means this is the famous Android OS visible in the stock battery monitor application.

Google masquerades the internal processes this way.

So we don't have any insight which part of the system triggers the particular wakelock, an assumption what might be one cause is fast dormancy and scheduled background processes like alarm clock and sync/update activity (market/maps).

Please keep that in mind! Thanks :o

Tapatalked from my Samsung GT9100
[BetterBatteryStats] itsLYNDZ:
Using the Samsung blaze and juice defender ultimate app. I noticed at work when I use my phone for a few mins then put it back in my purse and don't touch it for 2 hours or so, the battery has drained a decent amount. I've been using jd for years and know how to use it, but ill use the phone for 5 mins maybe web and text, and it will drop maybe 2 percent. I come back a few hours later and it has dropped 10%. This was never an issue on my Vibrant. I also make sure to exit out of apps when done. Im also not sure how to do a bbs dump since I'm using my phone through out the day
[BetterBatteryStats] chamonix:
That's pretty easy:

- plug/unplug at the beginning of a period

- use the phone 3-4 hours

- go to 'since unplugged'

- menu - more - dump

- get the file from /sdcard
[BetterBatteryStats] chamonix:
Pid is good. I'll try to match the numbers against a table as I believe I can get the pid from the batteryinfo process list
[BetterBatteryStats] chamonix:
Except facebook and some bad network coverage I can't see anything. The main cause of drain is data traffic
[BetterBatteryStats] chamonix:
Please post a logcat
[BetterBatteryStats] chamonix:
Please do
[BetterBatteryStats] chamonix:
3 hours 30 awake, 3 hours 10 screen on and 1 hour of music. That reading can not tell anything.

Please provide a new one leaving your phone alone 3-4 hours
[BetterBatteryStats] miteshjesani:
Many Thanks
[BetterBatteryStats] Karpfenhai:
Wow, never seen this before, your phone does not sleep at all!

Disable/freeze Google cloud backup or whatever backup SW you are using, something is going totally wrong here!

(System settings backup and reset, uncheck backup my data)

disable all sync activity for a while.

I wonder how log your battery lasts with this behavior.

Install cpuspy to monitor the sleep behavior of your phone,

the good thing is, all other entries are looking good so far.!

Good luck!
[BetterBatteryStats] miteshjesani:
[/COLOR]

Those look fine to me, as your phone was on deep sleep pretty much most of the time when your screen was off. Maybe one of your apps is causing this? e.g. whatspp facebook, or maybe just a worn out battery that doesnt hold much charge?
[BetterBatteryStats] billab0n6:
My phone is draining like mad!
[BetterBatteryStats] manekineko:
Nevermind, got it figured out. I had enabled a Cyanogenmod 9 setting that shows that popup even when background tasks are not responding. Disabling it seems to have fixed the problem.
[BetterBatteryStats] gpz1100:
People, please stop CLUTTERING the thread with your in message bbs dumps.

These dump files should be posted as an attachment ONLY!

Also, in order for your data sample to be meaningful, you need several hours worth. Preferably something more than 5-6 hours.
[BetterBatteryStats] Phil3759:
Hi,

Hope I do not miss something when posting my issue.

I installed BBS on my i9100 ICS stock XWLPG (4.0.3)

I installed CPU Spy

I plug charger and unplug

After 2h

BBS: shows always 0s in deep sleep

CPU Spy: shows 69% deep sleep

Something seems wrong.

Also, have one question. I can disable BBS from autostart? CPU Spy gives stats but not auto-start

Thanks a lot
[BetterBatteryStats] Karpfenhai:
Bbs does not measure when charger is connected, just wait a bit after unplugging.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] Phil3759:
I waited 2h :confused:
[BetterBatteryStats] chamonix:
If you are happy with the drain when your screen is off I won't comment on the logs and there is nothing BBS can do for you.

Usually the drain when screen is on is caused by the display itself so you should look into the effect of brightness on the drain to find the right settings. Also I noticed a lot of activity related to google maps and wifi so if your wifi sleep policy is set to "off when screen off" that overhead would occur exactly in the time where your screen is on
[BetterBatteryStats] Phil3759:
Now it worked

I just plug in and out again

Strange

Thank you
[BetterBatteryStats] bombdog:
Hiya Guys, just wondering if you could have a look at my dump file and give me your views on what might be causing drain (if anything). My phone is HTC One X (Tegra 3) running ICS 4.0.3, LeeDroid One Xtreme V4.0.0, build is 1.28.401.9. This was a typical days use for me. Any further information needed just holla. Many Thanks in advance.

https://www.dropbox.com/s/tocdsuqoib1czw1/2012-06-08_23-23-14.png

https://www.dropbox.com/s/222j28imcauunfb/2012-06-08_23-23-21.png

https://www.dropbox.com/s/04dgf4ltrv8ffz7/2012-06-08_23-23-31.png

https://www.dropbox.com/s/itl87m9qihcbmwy/2012-06-08_23-23-39.png

https://www.dropbox.com/s/qsdpwppewwsvkot/2012-06-08_23-23-47.png
[BetterBatteryStats] mattiadj:
Thanks for replying and I ask sorry to community but with Tapatalk i can't attach files.

Back to my problem. Yes is very strage i have noticed Google maps is the most used apps but I never open google maps app! I never used it! Never! About wifi off when screen off I think it's no possibile since I used what's app, viber and push mail so turn it on at every screen on I think is not a good solution.

Brightness is automatic.

Thanks to who answer me

Inviato dal mio HTC Desire HD con Tapatalk 2
[BetterBatteryStats] MyLifeRocks10:
If u don't use maps then freeze it with TB.
[BetterBatteryStats] Karpfenhai:
My friend we need an idle dump!

A dump containing normal activity is pretty hard to analyze!

So set a custom reference ( or plug in your charger for some sec), go to bed and provide a fresh dump as soon as you awake.

Set bbs to"since unplugged" then.

Regards.

Tapatalked from my Samsung GT9100
[BetterBatteryStats] itsLYNDZ:
Here is my BBS dumb from today. Ive been having problems with my Samsung Blaze battery continually dropping while im not using it. i do have JD ultimate and have used that for a year so I know how that works. Im also making sure I exit out of all apps when im done.

I noticed at work when I use my phone for a few mins then put it back in my purse and don't touch it for 2 hours or so, the battery has drained a decent amount. I've been using jd for years and know how to use it, but ill use the phone for 5 mins maybe web and text, and it will drop maybe 2 percent. I come back a few hours later and it has dropped 10%. This was never an issue on my Vibrant. I also make sure to exit out of apps when done. Im also not sure how to do a bbs dump since I'm using my phone through out the day

If anyone could private message me, it would probably be easier as posts get lost easily in this thread...
[BetterBatteryStats] :
Anyone can look my dumpfile? I don't have a real problem with the battery, but I have delete many service and applications, have done everything I have read, every setting for better battery but still haven't got the best result. Most of all, cant find what wakes my device. Although here don't see it that much as I haven't use my phone at all for 5 hours and have phone off..

Thanks to any advice.

:)
[BetterBatteryStats] Boat Traveller:
Hi,

My phone can't go to sleep today because of

Partial wavelocks

backup* (Système Android): 1 h 45 m 23 s (6323 s) Count:132 98,4%

and Kernel Wavelocks

"PowerManagerService" (): 1 h 37 m 57 s (5877 s) Cnt:(c/wc/ec)0/0/0 91,3%

Those two keep going and won't stop (1h30 since I unplugged). Can someone help me to get rid of that ? It's not the first time it happens.

thx
[BetterBatteryStats] bombdog:
Doh!

Oops! OK I'm pretty busy this weekend, but I will defo find the time to do the above and get back to you.

Thanks for letting me know :)
[BetterBatteryStats] Phil3759:
Hi,

Thanks a lot for this program

I have pain to understand the difference between partial wakelocks and kernel wakelocks, if someone can help or link a reference.

Final question, if I disable BBS from autostart, it will do a harm to program?

Thanks
[BetterBatteryStats] cdmackay:
Partial wakelocks are those explicitly taken by (or given to) an application, so that it can ensure that the phone stays awake whilst it processes some important task.

Kernel wakelocks are those taken by kernel services. The kernel wakelock "PowerManagerService" includes all partial wakelocks.
[BetterBatteryStats] Phil3759:
Thanks for the explanation
[BetterBatteryStats] itsLYNDZ:
Can anyone look at mine a few posts back?
[BetterBatteryStats] gpz1100:
LocationReportingService (com.google.android.apps.maps.Maps): 22 s (22 s) Count:703 0.1%

NetworkLocationLocator (com.google.android.apps.maps.Maps): 8 s (8 s) Count:317 0.0%

NetworkLocationCallbackRunner (com.google.android.apps.maps.Maps): 1 s (1 s) Count:670 0.0%

com.google.android.apps.maps (): Wakeups: 319
Alarms: 316, Intent: com.google.android.apps.maps.nlp.ALARM_WAKEUP_LOCATOR

Check through all your widgets and anything else running in the background for periodic location updates. Make sure you're logged out of latitude. Something is polling your location often.

While the actual wakelock time is low, the overhead associated with it adds up. Aside from that, in a 5hr period, you only have about 10 min of partial wake, so not bad at all.
[BetterBatteryStats] xelra:
It's just backup. Deactivate it. That should do the trick.

It just shows again under kernel wakelocks as powermanager service. Click the little icon on the right and you'll understand.
[BetterBatteryStats] Ping69:
Greetings folk!

I'm obviously new here n here's hoping that i'd be able post things up correctly :p

Anyway i'd like some help with regards to my severe batt draining

I'm using a SGS i9000 n recently flashed to ICS333 with the Semaphore kernel that comes together

However my battery life has been very poor, draining for from 80% to 40% in 5 hrs while I was sleeping

here's an attached copy for my dump for your kind help :D

and oh, thanks a lot in advance! :p
[BetterBatteryStats] itsLYNDZ:
Im not sure what apps would cause location updates. Any ideas so to whats causing these?
[BetterBatteryStats] Tritonio_GR:
I saw quite a big portion of deleted_wake_locks yesterday so I did some research and found this:

in wakelock.c I found this function

void wake_lock_destroy(struct wake_lock *lock)

which seems to destroy wakelocks. Whenever it does this it ads the wakelock stats to the deleted_wake_locks.

deleted_wake_locks.stat.count += lock->stat.count;

In the API available to android drivers (which run as kernel modules AFAIK) it is advised to call wake_lock_destroy before freeing the memory of the wakelock struct that you created. This is probably done on shutdown OR perhaps if for some reason a driver is unloaded from the kernel.

A driver can use the wakelock api by adding a wakelock variable to its state
and calling wake_lock_init. For instance:
struct state {
struct wakelock wakelock;
}

init() {
wake_lock_init(&state->wakelock, WAKE_LOCK_SUSPEND, "wakelockname");
}

Before freeing the memory, wake_lock_destroy must be called:

uninit() {
wake_lock_destroy(&state->wakelock);
}

References:

http://www.netmite.com/android/mydroid/cupcake/kernel/kernel/power/wakelock.c

http://elinux.org/Android_Power_Management

Now what I don't know is why would a driver get unloaded from the kernel in android. Maybe next time someone sees "deleted_wake_locks" in BBS he could check out his kmsg for unload messages? Actually I just noticed that I still haven't rebooted and I still see those messages. I'll check it in a while and if I find anything in my kernel messages log I'll report it here again.

Cheers!

PS: Maybe someone want's to add a page to the KB? Can I do it?

EDIT: Actually I can't read /prov/kmsg. It looks more like a pipe than a file too me. If I "cat" it it hand there and prints messages in real time as they happen. I rebooted and I hope it will be now copied to last_kmsg so that I can grab it.

EDIT2: No last_kmsg after the reboot. I guess it's only created on kernel panics. Didn't know that. :-(
[BetterBatteryStats] cdmackay:
Disabling wifi does this, at least it does for me.
[BetterBatteryStats] mzaur:
Deleted
[BetterBatteryStats] Pirol_62:
Hi,

Has anybody found a solution for that issue?

I have exactly the same problem.

90% of my partial wake locks is overflow 1013.

It's my last unknown battery drainer.

Regards
[BetterBatteryStats] gaui:
Finally I rooted my SGS3 so I can see alarms! :D
[BetterBatteryStats] antonyfl:
I have a suspend_Backoff wakelock. Wifi is not the problem.
[BetterBatteryStats] Karpfenhai:
With a bit of luck 1013 is the Process ID, do a "ps -ef |grep 1013" from a console to see what is behind.

---------- Post added at 06:31 AM ---------- Previous post was at 06:25 AM ----------

Ahh, again this Voodoo Issue ;)

Some users are reporting good results by taking off the battery for a while.

Does the issue reappear instantly after a reboot?

IMHO an ROM Upgrade should fix it, not all roms / Kernels are suffering with this.

As you can see, there is no general solution, unfortunately, upgrading the rom / kernel may be your best shot.

Good luck!
[BetterBatteryStats] antonyfl:
Yes it reappears after a reboot. Will try to install newest CM9 nightly
[BetterBatteryStats] skinner12:
Hi, Can anyone can help me to analyze this dump?

http://pastebin.com/tErB0L4v

Thanks..

Nocerino's Rulez with RAScarlo's ROM features TriNitY ;-)
[BetterBatteryStats] chamonix:
That log looks pretty good to me. Most of the awake time was spend syncing your accounts and it seems to have been amplified by bad network coverage if I look at the syncloopwakelock and the grps stalled alarms. Assuming the accounts and data you sync are needed that is under everyday conditions what you can expect
[BetterBatteryStats] chamonix:
I see rwo hot spots here:

- k9 mail push: already discussed often in this thread, you could check if poll works better for you (it does for me as I often have bad coverage and can not benefit from keep alives)

- go SMS is pretty expensive in synchronizing your contacts : do you want / need that?