yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] It_ler:
1. Please provide an idle dump (while doing nothing/screen off all the time), as it makes it a lot easier to find the culprit(s).

2. I see "in.vineetsirohi.customwidget.Ultimate custom widget (UCCW)", eBay, Facebook, "jp.tanyu.SmartAlarmFree", "tunein.service.pro", "com.nike.plusgps:remote", "android.process.acore", etc. Please disable/freeze all widgets/apps that you don't need every day.

3. K-9 is very active. Maybe you can optimize it a little bit (e.g. bigger update interval).

4. Have a look at Karpfenhai's description of how to "optimize" Google Maps (link is in post #3). Give it a try as Maps is very busy on your phone.

5. Disable all location service options in ROM settings.

6. "com.google.android.tts (com.google.android.tts.GoogleTTSService)" is active. Try to disable all voice/text-to-speech options to see its influence to your batetry life.

7. Your phone seems to be rooted, but no Network and alarm stats. Please enable root options in BBS app menu (Setings > Advanced).

Then try again.

Good luck !

---------- Post added at 02:49 PM ---------- Previous post was at 02:41 PM ----------

What exactly do you want to know?

a) The time that your phone can approximately run on the current/left battery power?

b) The time when the battery was empty and phone went off?

c) The time when you lost the battery falling out of the phone?

d) The time when you started the BBS recording, e.g. set a custom reference in BBS app menu?

e) Something different? Please explain in other words for better understanding. English is not my (and I think also not your) mother tongue.
[BetterBatteryStats] Steven Seagal:
Ok, I'm from Spain.

Of all the options you put, the question I wanted to do is:

a) The Time that your phone can run approximately on the current / battery power left?

What I want to know, is the time I have left until the battery runs out of all ...

Thanks for the help
[BetterBatteryStats] superleeds27:
Thanks, Im aware of the music player, that was poweramp on the way to work. It was the syncloop overnight that seemed strange!?

All location options are disabled. Its the first thing i do when i set the ROM up.

Ive enabled root features. Ill plug in and unplug my phone when i get home and see what i can grab!
[BetterBatteryStats] Xelstyle:
So I am back with what is hopefully a proper dump.
[BetterBatteryStats] It_ler:
Ok, AFAIK BBS app does not support this info.

If your ROM does not show this kind of information either, you have to install another battery app to do so.

Maybe battery monitor widget (bmw) from Play store offers such an approximation value. (As there are so many battery apps, I am not quite sure about the different features of each one.)

But it is always a theoretical guess (extrapolation) based on the current battery drain/consumption.

Good luck !
[BetterBatteryStats] Karpfenhai:
Man, this dump looks almost perfect, there is not much room for improvement, just the led notification could be better but it seems it had not much influence.

Good job, enjoy your phone!

Tapatalked from my Samsung GT9100
[BetterBatteryStats] s2dh:
Sorry how do I do this?

1. Please provide an idle dump (while doing nothing/screen off all the time), as it makes it a lot easier to find the culprit(s).
[BetterBatteryStats] It_ler:
Hey ... it's quite good :good:

1. I see "NetworkLocationLocator (com.google.android.apps.maps.Maps)", so either one of the location service options in still enabled or Maps is using your CPU. Check location service options and disable all of them. And follow Karpfenhai's description of how to "optimize" Maps (link in post #3).

2. Google quick serach box is active. Disable/freeze it. Just to see its influence to your battery life.

3. I see Gmail, Facebook, snotebook, Tasker, dropbox (photo upload service), etc. Disable/freeze all apps that you don't need every day.

All together ... only small optimizations, but nothing big IMO.

Enjoy your phone !

---------- Post added at 04:56 PM ---------- Previous post was at 04:48 PM ----------

As I already said: Do nothing and let the screen off all the time.

Fully charge the phone, unplug the cable, and turn off the screen.

Wait for about 4 hours not touching the phone. Then unlock the screen, go to BBS and save the dump.

That's it.
[BetterBatteryStats] Xelstyle:
Thanks for your input.

1) I do have all of my location service off and map optimized according to Karpfebhai 's post so not too sure what might causing that.

2) I had asked earlier but will do again, when you're asking to freeze Google quick search box, should I be disabling all Google search stuff in TB? In other words, I still have another Google search that's not frozen shown in the attached image.

Once again, thanks a lot.

Scribbled with the Note II
[BetterBatteryStats] Casanoaa:
Yes freeze all google search stuff.
[BetterBatteryStats] s2dh:
Will do...
[BetterBatteryStats] Tungstwenty:
Philz is stock, perhaps a custom one might have more recent sources picked from the main linux branch...

I don't know if it's possible to do what you suggest, I'm merely reading sources here :D

The "pin" is active, I don't know if it's possible to clear it directly, or if instead it's achieved by reading data from the battery controller, writing back some stuff there (all this is done inside that IRQ code I mentioned), and it's the controller itself that after receiving those instructions will clear the interrupt line until it needs to be signaled again. If so, there's no way to do that.

And even if it's possible, that would be an ugly workaround which I'm not sure what kind of side effects might introduce.

If it's an HW issue, be it the controller, the connector, whatever, it's probably a good idea to solve it in the root cause.

Unless a custom kernel and/or a good blow on the connector does make this behavior disappear, I'd go to the service center.

EDIT:

You have the same irqs as me, as expected.

Your count for the fuel alert is 0, mine happens to be 2.

But whatever that was (perhaps "battery full"?), it was handled and didn't keep occurring. We'll probably see a big number in piccolo's case.
[BetterBatteryStats] picollo78:
Thank you for your help.

Here is my interrupts.txt file.

I can flash another kernel on that rom? philz JB isn't only one compatible with jb? with my rom?
[BetterBatteryStats] abbz123:
Alrighty here's another dump - Just wondering how i can eliminate more wake locks..

I use cm10 and currently using kt747 kernel however I think i will be reverting back to task's underwear kernel as it yields better battery life for my particular phone (s3)

Cheers!
[BetterBatteryStats] It_ler:
1. Next time please provide an idle dump of about at least 4 hours. Then the "real" culprits are easier to find.

2. I see Google+, Facebook, Google quick search box, etc. Disable/freeze all apps that you do not need every day.

3. It seems that not all location services are disabled. Please check it and disable all location service options.

4. Google Maps is busy on your phone. Have a look at Karpfenhai's description of how to "optimize" Maps (link in post #3).

Then try again.

Good luck !
[BetterBatteryStats] Steven Seagal:
Thank you very much ¡¡¡¡ :good:
[BetterBatteryStats] chamonix:
#305

Will work on some fixes till this weekend
[BetterBatteryStats] Karpfenhai:
Your full alert does show a terrible amount!!

Right now I'm drunken and just back from weihnachtsmarkt after a lot of gluehwein so I can't give you a valid advice . (Giggling) but could you try another battery?

Tapatalked from my Samsung GT9100
[BetterBatteryStats] jastonas:
I am having the same problem. I think it's the modem that's causing it.
[BetterBatteryStats] Tungstwenty:
Pretty interesting stuff! :good:

It looks like Google is indeed moving Android's kernel in a convergent direction to the mainline Linux.

http://lwn.net/Articles/479841/ mentions the inclusion of Autosleep (or Wakeup Sources) which is a mechanism that was accepted upstream and targets opportunistic suspends, which wakelocks are the Android's way of achieving it.

Here's a sample patch where KWLs are being replaced by that new stuff. Perhaps in *Google's* 4.2.1 kernel this has been done thoroughly (?)

Sven, looks like you might want to check /d/wakeup_sources later on, as 4.2.1 might start bringing the equivalent to the current KWL info.

I don't know what's the meaning of all those counters, but they are richer than the ones I already have (and which are all 0s).

Unfortunately, running an AVD configured for 4.2.1 doesn't carry this so probably an actual physical device is needed to experiment.

Would it be possible for anyone (CazeW perhaps) to post their contents and a BBS dump since boot at about the same time? We can then try to see what sort of correlations exist between the entries here and the deep sleeps, PowerManagement, etc.

Remember, it must be from STOCK 4.2.1 kernel. The output shared by

is all 0s because he's running a custom kernel, which probably isn't up-to-date with those changes in stock.
[BetterBatteryStats] picollo78:
:D it's the interrupts.txt file with another battery. I have 3 for this phone.

Thanks a lot.
[BetterBatteryStats] nyijedi:
I have a few apps that are causing wakeups (under Alarms), even though I disabled them using autostarts, and freeze them with TB immediately when I'm done using them. Specifically, the ESPN Fantasy Football app and SportsTap exhibit this behavior. How are these apps still waking up my phone when they've been prevented from starting up and are frozen? Can anyone enlighten me?
[BetterBatteryStats] Langes:
I had that problem until I moved BBS back to phone (was on sdcard). Please reply if you have BBS on phone memory or external.
[BetterBatteryStats] MizzouBrent:
Is it normal to have this many phone wakeups in my alarm wakes? i havent even used phone all day and don't have any alarms set up. anything else look weird? haven't been teak happy with battery lately
[BetterBatteryStats] It_ler:
I see Facebook, MediaPlayer, NFC, GPS, BatteryMonitorWidget, tweetcaster, "com.espn.espnfantasyfootball", StopWatch, etc.

Please provide an idle dump ... while doing nothing / screen off all the time for at least 4 hours.

Then it's easier to find the "real" culprit(s).

And keep in mind to disable/freeze all apps that yo don't need every day.

Then try again.

Good luck !
[BetterBatteryStats] picollo78:
Another file after the night. Thank you.
[BetterBatteryStats] superleeds27:
Overnight file from me too. I'm aware of the audio wakelock.
[BetterBatteryStats] It_ler:
Look quite good :good:

I see "com.mxtech.videoplayer.ad.MX Player" and WhatsApp, but nothing big ... just "normal" battery consumption IMO.

Enjoy your phone !
[BetterBatteryStats] chasabi:
Hi Guys,

Can anyone help with my battery drain. Previously I could get about 24-36 hours out of a single charge, now I'm lucky to get 14 hours. I flashed a JB rom recently and that's when the battery drain started. I rolled back to ICS and the battery is now terrible.

I rarely have data or wifi on. I use them when I need them. I've attached a screenshot and a dump from BBS.

I followed some of the instructions in the "Complete Guide to Maximum Battery Life" i.e. freezing some apps, preventing some from auto starting, using GetRIL to update my modem, etc.
[BetterBatteryStats] s2dh:
Hi,

I am back after doing the full charge, switch screen off, leave for 1-4 hours (i did just short of 4 hours).

Here is my dumpfile - please scrutinise.
[BetterBatteryStats] It_ler:
Hmm ... your BBS dump looks quite ok, but are you on XXLPQ (Andrid 4.0.3)?

Then you should update to a newer firmware, such as XWLPY or XWLQ2/LQ3 (=> http://xdaforums.com/showthread.php?t=1544487).

Maybe this can optimize your battery life a little bit.

Good luck !
[BetterBatteryStats] chasabi:
Thanks, I'll give that a shot, I'm downloading I9100XWLQ3 now.
[BetterBatteryStats] Tungstwenty:
During all this troubleshooting have you ever flashed a different kernel?

Sorry if this has been discussed, as I'm following the discussion with some lag and I'm a bit lost by now :D

Here are 2 suggestions:

Siyah

Dorimanx
[BetterBatteryStats] It_ler:
1. I see "AlarmManager (in.vineetsirohi.customwidget.Ultimate custom widget (UCCW))". Think about disabling/freezing this app/widget.

2. eBay, MyProfiles, "jp.tanyu.SmartAlarmFree", FaceBook, etc. are busy. Disable/freeze all apps and widgets that you don't need everyday.

3. Maybe you can optimize K-9 mail a little bit (e.g. set a larger update interval).

4. The GoLauncher Weather widget is very active. Try to disable auto-update or remove it from the homescreen to see its influence to your battery life.

Good luck !
[BetterBatteryStats] s2dh:
Thanks for the reply, i have a few queries still though..?

1. I see "AlarmManager (in.vineetsirohi.customwidget.Ultimate custom widget (UCCW))". Think about disabling/freezing this app/widget.

I use this for my clock widget, so do not really want to disable this, are there any other options..?

2. eBay, MyProfiles, "jp.tanyu.SmartAlarmFree", FaceBook, etc. are busy. Disable/freeze all apps and widgets that you don't need everyday.

These are used quite often, but should not be doing anything whilst in my phones screen is off, is there a way to suspend these until the screen is back on..?

3. Maybe you can optimize K-9 mail a little bit (e.g. set a larger update interval).

I changed the interval from 1 hour to 3 hours, I might change this to manual update, after a previous BBS stats post a couple of pages back.

4. The GoLauncher Weather widget is very active. Try to disable auto-update or remove it from the homescreen to see its influence to your battery life.

Will disable auto-update.
[BetterBatteryStats] Tungstwenty:
Thanks for the feedback.

That might mean that even in 4.2.1 not all stock kernels are using Wakeup Sources yet...

So let me rephrase the request:

Could anyone running 4.2.1 who has non-zero contents in /d/wakeup_sources post:

- its contents

- a BBS dump

since boot

taken at about the same time as the contents of wakeup_sources

- a screenshot of Phone, About (kernel version string, etc.)

Thanks!
[BetterBatteryStats] It_ler:
Nothing big ... these are only small recommendations which might help to optimize your battery life.

1. You can try another clock widget and compare the wakelocks/alarms. Then use the one you like/prefer. It's your choice.

2. You can try to "optimize" these apps similar to Karpfenhai's Google Maps "optimization" (link to his description is in post #3).

3. I always use manual update, as I want to have minimum wakelocks/alarms and maximum control ;)

4. Good :good:
[BetterBatteryStats] Karpfenhai:
Ähm, am i wrong or.. NEW JB LEAK ROM NOT SUPPORTED! YET!

:)

A good way to kill the phone ;)

ItLer, myself and many others are using this rom, its not the kernel..
[BetterBatteryStats] s2dh:
Thanks for your help.
[BetterBatteryStats] Tungstwenty:
Oh, if it's 4.2.1 then forget about custom kernels, sorry :o

Service center it is then ...
[BetterBatteryStats] It_ler:
Only if picollo78 is back on the leaked XXLSJ (Android 4.1.2) ROM.

He flashed a 4.0.4 ICS ROM in between. If he is still on 4.0.4, then SiyahKernel or DorimanX can be flashed.
[BetterBatteryStats] Tungstwenty:
The fact that the BBS dump is not since boot (perhaps it's the already mentioned issue of losing references after 10min under 4.2.1) makes that the numbers don't match the wakeup_sources, which are counters since boot.

PowerManagerService times would be somehow related with the (normal) WakeLocks section in BBS, I guess.

From what I could see in 4.2.1 AOSP sources, that comes from STATE_PHONE_SCANNING_FLAG which is signaled when the sim is in an "out of service" state and scanning for signal is started. But I don't know if it's supposed to be reported as ON all the time, instead it should be only when *starting* to scan.

It might be a mistery similar to the "unknown signal" which is reported in several phones, instead of "good" or "average" ...
[BetterBatteryStats] CazeW:
EDIT: Removed what I wrote earlier as I finally managed to get some values from since boot. The time when the referance was created in the Reference overview is still wrong though, the real time is 16min 36s.

And thanks for the clarification for Scan. I suspected it was something like that.
[BetterBatteryStats] Tungstwenty:
Nice, but could you fetch a 2nd pair of files after you let the phone run for one or 2 hours? This dump is for 100% awake, and none of the wakeup sources have any "prevent suspend time" :)

I assume that screen was on during the whole 16m, right?
[BetterBatteryStats] picollo78:
No I have not flashed other kernel. I'm always on thel philz kernel.

My rom is [ROM][XXLSJ]-[JB 4.1.2][--VK--™] [V 6.1](21/11/2012). I can flash other kernel?
[BetterBatteryStats] chamonix:
Release 1.12B3

Beta 3 is up, hopefully fixing dissapearing refs and current mot getting invalidated when other refs are saved. Happy testing and thank you very much for the feedback till now
[BetterBatteryStats] Tungstwenty:
No you can't. Since you're using 4.1.2 you need to use the stock kernel (or only with slight changes like Philz). But anyway others are using the stock kernel with that same ROM base and they don't have any issues, so this is probably a real HW issue.
[BetterBatteryStats] picollo78:
So my problem can not be solved? :crying:
[BetterBatteryStats] Karpfenhai:
We afraid not, but at least we could narrow it down to the real cause, so something with your full alert chip is causing this, did you reset the battery stats within the recovery?

Tapatalked from my Samsung GT9100
[BetterBatteryStats] kainas555:
tell me what process wakes the device in Avio mode?Samsung VK--ROM-GT-I9300-XXELK4-V-7.2 Phenomenal4.0Medium View attachment BetterBatteryStats-2012-12-07_064539869.txt
[BetterBatteryStats] justin0108:
Hi,

My device is Nexus 7 3G and I notice I have very serious battery drain problem even if I put my device in airplane mode. Usually when I leave overnight, the device should be spending most of the time in "Deep Sleep". However my device is 0% in "Deep Sleep".

I tried reading the dump file and compare it to those situation where my device is not draining battery that fast, the difference I see is when my battery is draining very fast (~1.6%/hour in airplane mode, overnight), there is a "Kernel Wakelocks"-baseband_xmm_power taking almost 100%! I tried googling and some say it might be due to places where the signal is weak. But I am in airplane mode, so I am not sure why would this affect me.

The way around it will be to put it in airplane mode, then reset my N7. The next day when I read the dump file, my N7 will be able to get "Deep Sleep". I will also not see the draining effect. Lost only 1% battery in about 8 hours time.

I have attached the dump file from a custom ref point. The reference is set at after I put everything to airplane mode, remove all background task and just screen off and leave it overnight. I let it run for about 6 hours, and it got 0% "Deep Sleep". My device is rooted and have granted permission to alarm and network. I am running stock Android 4.2.1 with CWM.

Thanks for any help in advance.
[BetterBatteryStats] noizy1234:
Can someone help me. I have a Nexus 4 running 4.2.1 and my phone doesn't go into deep sleep at all.. I've tried different roms, and kernel combinations and I've still been unable to do so here's the text file http://db.tt/UYjLzfU0

Something called sns_periodic_wakelock Is keeping the phone awake ALL the time..

Sent from my Nexus 4 themed with Goog Le Bean
[BetterBatteryStats] jeremysherriff:
Just guessing here - do you have a cover or bumper on your phone? Can you check that it is clear of the buttons?
[BetterBatteryStats] noizy1234:
No I don't have either..

When I say it doesn't go into deep sleep, I mean the battery gets drained significantly even if I'm not using the phone..

Sent from my Nexus 4 themed with Goog Le Bean
[BetterBatteryStats] jeremysherriff:
Yeah, we've seen issues in the past where a new style case will slightly press on a key and keep the phone awake. With the new v4.2.1, some new kernel wakelock names, and a new phone model I was wondering if it could be that.

Sent from my GT-P7510
[BetterBatteryStats] nozs:
Hey there, thanks for making the program to help all community.

Here's my dump file, can you take a look at it and see if anything I can do to improve?

Thanks, cheers.
[BetterBatteryStats] thechaoz:
I was on 10.1.5 and getting some stats. Downloaded the newest 1.12 b3? (can't see it right now). All is get is n/a on everything though is was showing a bunch of stuff before...when I go to menu I get stats with "raw" data but nothing on screen. Toggle through other, network, alarms etc and since charged, since unplugged, since custom, etc and still getting n/a in all the menus. Only thing new from 10.1.5 on screen is "Current" not sure if that has anything to do with it.

Thanks in advanced. (I rebooted and it didn't change anything)

EDIT: Just refreshed after boot and getting a ton of stuff..Battery went down 10% in a matter of minutes. I'll post dump? or would logcat be better. It's pretty sad, disabled sync etc everything you can on the phone and still getting terrible battery life (droid charge running tweaked 3.1)
[BetterBatteryStats] Karpfenhai:
Please, dont use a beta to gather support for your device, change back to the latest stable (1.11) and post a dump, thx!
[BetterBatteryStats] It_ler:
It looks quite good ... airplane mode?!

1. Please install latest stable BBS app version, which is ATM v1.11.0.0.

2. Disable/freeze Juice Defender. Only then we get a clear image of the "real" culprits.

Then try again.

Good luck !

---------- Post added at 09:11 AM ---------- Previous post was at 09:05 AM ----------

Looks quite good IMO.

I see TapatalkPro wakelocks ... the rest seems to be "normal".

To get more information (about alarm and network stats), you have to root your phone.

Think about it ... and enjoy your phone !
[BetterBatteryStats] justin0108:
Anybobdy can help me with this? I can upload more information if required. Currently I only attached the dump file.
[BetterBatteryStats] danielo:
What I have to change to get better battery life?

Hi,

I would like to know what I have to change in my settings to improve battery life. Actually I'm getting 1.6%/hour over the night when I have disabled all data transfers, Wifi, BT, GPS and only GSM remains active. I followed Karpfenhai post for disabling GMaps, Latitude, ... but I think that battery drain should be better at night when device is not used. Can somebody take a look at my BBS log and give me some hints?

Thanks.
[BetterBatteryStats] It_ler:
Nexus7 seems to have some issue with this "baseband_xmm_power" wakelock :confused:

Have a look here => http://xdaforums.com/showthread.php?t=2033765 ... you are not alone.

Some sugestions of affected users are: Broken antenna, change modem, use GetRIL app, un-install any "signal booster" or "network signal speed boost" app.

Have you flashed 2-way audio recording patch? That was the culprit for another affected user on HTC One X.

So it's not only a Nexus7 issue.

Check the suggestions above and maybe try one-by-one an check after each change, if the wakelock is gone or not.

Good luck !

EDIT:

As you are in airplane mode, maybe this doesn't work correctly.

Can you turn off airplane mode and make a new idle dump?

Then post it again and we will have another look at it.

---------- Post added at 10:17 AM ---------- Previous post was at 10:09 AM ----------

Your BBS dump looks very good :good:

The battery loss could be caused by flashing a new kernel (DorimanX v7.29) and not settling down the battery and the battery stats chip on the phone.

Have a look here for a good, easy and effective method to get reliable battery stats after flashing a new kernel/ROM => http://xdaforums.com/showthread.php?t=1312273

And try it on a second battery cycle ... then the battery stats are hopefully more realistic than on the first battery cycle.

Good luck !
[BetterBatteryStats] taz1458:
Here is my latest logcat. I let it sit overnight. Battery life isn't too bad but could someone look at it just to see if anything is sucking it up? Thanks

http://db.tt/wq7bA21p