yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Karpfenhai:
@fxrb, your issue is ROM related:(

I can reproduce the issue here on lp4 (abyss kernel at the moment), but also with speedmod kernel.

Bbs is innocent in this case, it seems the phone struggles if bt is connected and the power supply is unstable (typical car behaviour, engine start = power down) So the battery service it's messing up some things, it seems getting power, loosing power.. getting power in a short timeline is to much :) Maybe it's an inbuilt security mechanism to prevent damage? Most unlikely but who knows?

Only (to me) known solution is to turn of Bluetooth before unplugging charger or replug a charger for a sec. when bt is off.

Swyped from my GT-I9100 using XDA App.
[BetterBatteryStats] fxrb:
Just to clarify: the problem exists no matter if I use or do not use BT, car charging or car hands free. Yesterday for instance I did not charge the phone the whole day and turned off BT as I wanted to measure battery drain without any "side effects"; however I got the error message from BBS in the afternoon.

Same happens when I don't use the car at all, hence there can't be any relation between the car charger and my problem :confused:
[BetterBatteryStats] HosainH:
Hey,

I took another dumpfile alongside the battery stats screenshot if you could have a look I would love you more than I already do:

dumpfile

I plan on switching to this ROM if you can confirm it's needed. Could this possibly be a issue with my radio driver (XXKF1)? I used KF1 on 4.0.3 with no issues.
[BetterBatteryStats] abax2000:
Can anyone please take a look at this?

http://xdaforums.com/showpost.php?p=26167926&postcount=5091
[BetterBatteryStats] Don MC:
+1.

The down-arrow on my WiFi icon keeps constantly blinking. Every other second.
[BetterBatteryStats] Jeremy:
Someone please help with this. Thanks for reading.
[BetterBatteryStats] :
Guys, I'm having many multipdp wake lock and wlan rx wake when on my home network. This leads to obvious battery drainage :(

I'm posting here a pcap sniffed from my phone as suggested on another thread and the bbs log. The pcap log starts one hour after restart and unplugged from charger.

I beg for your help :)

http://db.tt/XRLyclb0

http://db.tt/hvJBpwGT

Cheers :)

Sent from my SGS2 - SlimICS Rom & Syiah Kernel
[BetterBatteryStats] morphmk:
Unknown cause for battery drain

Up until recently I had acceptable battery life but now there is something that is draining the battery really fast and I'm unable to locate the culprit.

The phone is HTC sensation running custom ROM (latest version of InsertCoin).

Can anyone please have a look at the attached dump file:

Thank you in advance!
[BetterBatteryStats] bsoplinger:
I have yet another interesting screenshot, this time showing that the widget is telling me I've had 114% deep sleep (but I've seen it over 400%) :eek:

Don't know if its related to the update issue. What is interesting is that the uptime widget in the same screenshot shows quite a bit longer uptime than the BBS widget. Assuming that is correct then I'd guess the percentage calculation is over 100% because its using the correct amount of deep sleep time but that incorrect amount of uptime.

Sent from my Transformer TF101 using Xparent Purple Tapatalk 2
[BetterBatteryStats] Karpfenhai:
16 Mins overhead in 13 hours is not bad, facebook and JD are waking your Phone, but this you probably know already ;)

I think the cause for your drain is a bad network connection ( GPRS Stall Data) Search your ROM / Device Thread for a modem / Baseband known for good reception results.

Disable Gmaps location service.

Good luck!

Okay for both of you,

- Change Wifi Channel to some unusual Value, maybe 1 or 11.

- Use static IP ! Dont worry your Wlan will work anyway in other networks, set up your router (announce phone's IP) to support static IP.

- Increase DHCP Lease time.

This should bring down the DHCP related wakelocks.

Per example, my wifi is set to always on (never sleep) and my phone sleeps like a baby (96% deepsleep).

Good luck!

---------- Post added at 01:49 PM ---------- Previous post was at 01:47 PM ----------

That's afaik not an issue, this happens after unexpected reboots, just wait, the values will catch up the deep sleep and the value will increase further after that.

the percentage is getting smaller and smaller after updating the widget, right?
[BetterBatteryStats] morphmk:
Hi. Thank you for taking the time to reply.

In the change log of latest version of InsertCoin there is this:

- disabled fast dormancy – should give you a battery boost

Can this be the problem?

Where exactly do I do this? Is it in Settings\Location\Google's location service?

Regards.
[BetterBatteryStats] Jeremy:
Thank you. But from what in my dump log did you derive that conclusion?

Thanks for explaining :)
[BetterBatteryStats] Karpfenhai:
Fast dormancy can be very useful if your carrier supports it, do a little research whether this is the case or not, can bring up to 20% Battery.

Per Example, Vodafone and T-mobile do support FD in all over europe, We call them D-Net, E-Net (O2 and Eplus) do not support FD.

So find out by yourself ;)

Sign out of Latitude, if you need it, use Altitude instead.

Disable all Location based services, yes.

Some maps versions are drainers (6.0.x) check for update, Use Autostarts from market (if rooted) to forbid some apps (Maps) to work in the background.

Again, good Luck!

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

Oh damned, your the ten minutes man, i multi-quoted you and then i did oversee your short quota, sorry ;)

10 mins in 6 1/2 hours is pretty good!

You have only some wakelocks but nothing critical.

My Findings for you:

- com.android.phone (): Wakeups: 65

Alarms: 65, Intent: com.android.internal.telephony.gprs-data-stall <-- This indicates bad Network, can you try to disable HSPA or switch to GSM Only in the night to see whether it persists?

Battery Monitor Widget wokes your phone 40 times from sleep, if you simply divide your minutes -> 390 / 40 ~ 10 means you refresh your stats every 10 mins.

AFAIK its the widget itself, not the app, so decide by yourself if you really need the widget or if open the app if needed is enough to suit your expectations.

- Dont use LP9 Modem, switch to KI3 (best) or KI4 Modem, you will feel the difference!

Tame your CPU, 800 Mhz are normally way enough.. throttle GPU too, 100-160 or 100-160-200 are sufficient. or just switch to Phenomenal extreme if your phone can make it ;)

Good luck and sorry for my incapability in quoting ;P
[BetterBatteryStats] Karpfenhai:
Sorry mate, but this dump is almost useless ;)

As written many times before, provide an idle Dump, best case scenarion, unplug your phone before sleep and make a dump right after you got up.

Thx!

But: 25 Wakeups of a wheather app within 20 mins look pretty bad to me..

So: --> usb suspend block That particular wakelock is held whenever your 4G or 3G modem is sending or receiving data when the screen is off. This will only be held for the amount of time the phone is actually sending or receiving data. If this is very high, that means you have an app using a lot of data with the screen off. "modem_usb_gpio_wake" Is the corresponding Wakelock for the same if screen is on or youre on Wifi .. Its simply your Network..

If you want to see this for yourself, go look at the number in BBS and then start downloading a file on 3/4g and then shut off the screen and as long as the file was downloading the whole time, the counter for that wakelock will increase by the amount of screen off time. Then switch to wifi and you will see wlan_rx_wake and modem_usb_gpio_wake will correspond to wifi receive and send while modem_usb_suspend_block will not increase.

Good Luck ;) PS, Solution googled within 3 sec, therefore written in italic.. ;)
[BetterBatteryStats] baughmjk:
Any ideas why my battery life sucks so bad?

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

General Information

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

BetterBatteryStats version: 1.8.1.0

Creation Date: 2012-05-17 20:51:25

Statistic Type: (3) Since Unplugged

Since 5 h 1 m 18 s

VERSION.RELEASE: 2.3.7

BRAND: Motorola

DEVICE: triumph

MANUFACTURER: Motorola

MODEL: Triumph

BOOTLOADER: unknown

FINGERPRINT: Motorola/Caymus_VRGUS/Triumph/Triumph:2.2.2/FROYO/1010_2_039_110607:user/release-keys

HARDWARE: triumph

ID: GRJ22

TAGS: test-keys

USER: whyzor

PRODUCT: triumph

RADIO: unknown

Rooted: true

===========

Other Usage

===========

No Data Connection (): 5 h 1 m 18 s (18078 s) Ratio: 100.0%

No or Unknown Signal (): 5 h 1 m 18 s (18078 s) Ratio: 100.0%

Deep Sleep (): 4 h 59 m 29 s (17969 s) Ratio: 96.1%

Awake (): 1 m 49 s (109 s) Ratio: 0.6%

Screen On (): 34 s (34 s) Ratio: 0.2%

=========

Wakelocks

=========

Event Log Service (Google Services): 9 s (9 s) Count:10 0.0%

AlarmManager (Android System): 3 s (3 s) Count:47 0.0%

ActivityManager-Sleep (Android System): 1 s (1 s) Count:53 0.0%

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

Kernel Wakelocks

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

"msm_otg" (): 5 m 57 s (357 s) Cnt:(c/wc/ec)1/0/0 1.9%

"usb_bus_active" (): 5 m 57 s (357 s) Cnt:(c/wc/ec)1/0/0 1.9%

"bq275x0" (): 49 s (49 s) Cnt:(c/wc/ec)108/0/53 0.3%

"PowerManagerService" (): 14 s (14 s) Cnt:(c/wc/ec)98/0/0 0.1%

"mmc_delayed_work" (): 10 s (10 s) Cnt:(c/wc/ec)44/14/1 0.1%

"rmt_storage" (): 10 s (10 s) Cnt:(c/wc/ec)6/0/0 0.1%

"msm_batt" (): 9 s (9 s) Cnt:(c/wc/ec)4/0/2 0.1%

"alarm" (): 4 s (4 s) Cnt:(c/wc/ec)55/0/0 0.0%

"alarm_rtc" (): 4 s (4 s) Cnt:(c/wc/ec)23/0/3 0.0%

"radio-interface" (): 4 s (4 s) Cnt:(c/wc/ec)14/0/0 0.0%

"rpc_read" (): 3 s (3 s) Cnt:(c/wc/ec)180/0/0 0.0%

"event9-229" (): (0 s) Cnt:(c/wc/ec)9/0/0 0.0%

"rpc_reply" (): (0 s) Cnt:(c/wc/ec)71/0/0 0.0%

"power-supply" (): (0 s) Cnt:(c/wc/ec)56/0/0 0.0%

"rpcrouter_smd_xprt" (): (0 s) Cnt:(c/wc/ec)822/28/0 0.0%

"KeyEvents" (): (0 s) Cnt:(c/wc/ec)812/0/0 0.0%

"rpc_reply" (): (0 s) Cnt:(c/wc/ec)10/0/0 0.0%

"rpc_reply" (): (0 s) Cnt:(c/wc/ec)15/0/0 0.0%

"rpc_read" (): (0 s) Cnt:(c/wc/ec)291/0/0 0.0%

"qcril" (): (0 s) Cnt:(c/wc/ec)65/0/0 0.0%

"rpc_reply" (): (0 s) Cnt:(c/wc/ec)8/0/0 0.0%

"rpc_read" (): (0 s) Cnt:(c/wc/ec)4/0/0 0.0%

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

Alarms (requires root)

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

com.google.android.gsf (): Wakeups: 11

Alarms: 1, Intent: com.google.android.intent.action.GTALK_RECONNECT

com.google.android.apps.maps (): Wakeups: 4

com.google.android.apps.plus (): Wakeups: 1

Alarms: 1, Intent: com.google.android.apps.plus.NEW_PICTURE

android (): Wakeups: 1

Alarms: 45, Intent: android.intent.action.TIME_TICK

Alarms: 14, Intent: com.android.server.ThrottleManager.action.POLL

Alarms: 1, Intent: com.android.internal.policy.impl.KeyguardViewMediator.DELAYED_KEYGUARD

com.android.vending (): Wakeups: 1
[BetterBatteryStats] Karpfenhai:
Hey there,

.... because you don't have a signal at all?

No Data Connection (): 5 h 1 m 18 s (18078 s) Ratio: 100.0%

No or Unknown Signal (): 5 h 1 m 18 s (18078 s) Ratio: 100.0%

Switch to flightmode, does the drain persists?

It looks like "Emergency Calls only", changing the carrier may help.

Do you even have a simcard inserted? This looks pretty strange to me.

Your phone is trying to reach a signal, all the time, so the GSM Part is sending with full power, that sucks your Battery!

regards.
[BetterBatteryStats] baughmjk:
I'll switch to airplane mode for a bit and get back to you.

I have data, wifi, BT, etc. turned off to try to save battery, but I'm still able to make calls and send/receive text messages like this, so I am getting service.

No simcard on this phone. Virgin Mobile is the carrier.
[BetterBatteryStats] droidhaze:
Ok, Ill provide any idle dump later if I do not get this resolved, I really just wanted info on those specific wakes. Any idea on common apps that constantly use data with the screen off? Are these usually widgets? Thx
[BetterBatteryStats] chamonix:
I am no specialist in that matter but this guy is: http://xdaforums.com/showthread.php?p=18513308
[BetterBatteryStats] chronophase1:
Just recently flashed cm9 and was still getting massive blue bars of wakeups of some sort just like with every other ROM I've tried. I'm still toying around with a few things and will post an idle dump in a few hours after letting it idle for 2 hours or so. I've started disabling things in hopes that those wakeups would go away. Strangely enough, they have. Now it sucks because I need to figure out wtf was causing them. BBS was reporting android system. Can't remember the exact details though. Sorry.

What I've disabled so far:

1. Backup Transport

2. All the excess Google crap bundled onto 4.x

3. Contacts/Browser/Calendar sync

4. Email/Exchange

Probably a few more odds and ends I probably don't even use.

I really shouldn't have to disable those syncing apps, but I seriously think it's a tie between those and Backup Transport at this point. Data stalls have dropped since I went back to the KB3 radio as well.
[BetterBatteryStats] chamonix:
With unexpected reboots you mean restarts without reboots right? This would explain a lot as a restart will not delete the references where a reboot will. I never thought of restarts but it would be interesting if confirmed because that is something that can be detected.
[BetterBatteryStats] Karpfenhai:
Yes sir, this can happen without notice b/c the pin needs not to be entered, people call this behavior "Soft Reboot" I think i have seen a mod on GB to let this happen on purpose too.

per example if the phone.apk will crash for whatever reason the Phone will "soft reboot" for sure. Maybe UV is the reason then, a dmesg /kmesg might be interesting to see.

If you are willing to test this scenario, you can just replace your phone.apk by a wrong one (from GB or other device) Your phone will crash and reboot permanently, to get it working again, use CWM Mode and adb (shell) to fix the file. Don't forget to save the dmesg / kmesg files ;)

Funny finding, rebooting from power off will lead to an FC (Unfortunately phone.apk has crashed) after this FC you can use the phone some sec. (only once) Then it will soft reboot in a beautiful never ending loop ;)

Have Fun!
[BetterBatteryStats] guppy:
Hey guys, any comments on my batt stats I posted earlier? Not getting the best battery life :( Anything obvious I need to do to improve on? Thanks.

http://xdaforums.com/showpost.php?p=26244824&postcount=5146
[BetterBatteryStats] Karpfenhai:
Mate you gave your answer by yourself ;)

I have contacts, calendar and tasks synced with Google; and I use Gtalk, Facebook Messenger and Whatsapp.

Your most wakeups are from Whatsapp, Facebook drains too, use friendcaster instead if possible.

Stop Syncing or sync manually once a day or something.

Find a less consuming radio, as always i recommend KI3 or KI4.

Good luck!
[BetterBatteryStats] baughmjk:
(original post with non-airplane mode stats)

2.5hrs on airplane mode is not much better (see attachments).

History: had phone for a while, stock, not rooted or anything, and battery life was typical. Not sure what happened but started seeing this kind of excessive drain on the battery. Ordered a new battery--didn't fix the problem. Rooted phone and installed CM7 ROM--didn't fix the problem. Now I'm here hoping to find some answers.
[BetterBatteryStats] gaui:
Your main problem is: Google sync (Contacts/Calendar), 3G Watchdog, WhatsApp, Google+, Seesmic.

Try uninstalling all of those without disabling sync (Contacts/Calendar) and see if if it makes anything better. I would put manual sync on Seesmic, because it doesn't have push notifications.
[BetterBatteryStats] Karpfenhai:
Oh dear, i afraid the solution is somewhere in your hardware ;(

Your stats are good, even your sleep behavior:

Deep Sleep (): 2 h 29 m 42 s (8982 s) Ratio: 98.9%

Awake (): 1 m 36 s (96 s) Ratio: 1.1%

Screen On (): 26 s (26 s) Ratio: 0.3%

I personally cannot help further with this, im sorry! :(
[BetterBatteryStats] gaui:
This is very abnormal. However, after you installed a new ROM, did you test the phone without installing any apps? I would suggest you'd try that. I see some wakelocks, like Zynga Words game and Maps using GPS, along with Facebook.
[BetterBatteryStats] baughmjk:
I was afraid that might be the case :( Thanks for the help.

---------- Post added at 01:55 PM ---------- Previous post was at 01:47 PM ----------

I did not try it without apps, so I may try uninstalling everything. Not too hopeful because as Karpfenhai said, the stats look pretty good.
[BetterBatteryStats] Karpfenhai:
Dont give up, see gaui's post above, maybe it can help, i have one last idea, is your SD Card working correctly? Take it out for a while.
[BetterBatteryStats] gaui:
Yeah, but it's worth the shot. Backup everything to a computer, wipe everything on the phone. Data/cache/dalvik, install new ROM (CM7.1 or whatever), just install BBS and check your stats after the day. If the stats are good but your battery life still sucks, your phone hardware is faulty.

Good luck, mate.;)
[BetterBatteryStats] shd_66:
Thanks for this app. Just what the doctor orderd. :) thanks to this app i found out that FB was the big drain. 6-7 hours on one charge even with sync of and about 1 and a half hour of screen time. after removing FB yesterday i had almost 18 hours on one charge with close to 4 hours of screen time. now looking to improve it even more. So thanks again and keep up the good work.
[BetterBatteryStats] dzontra11:
What is the damn alarm manager..that drain my battery....
[BetterBatteryStats] nobnut:
This subject has been covered extensively in this thread. Have a search when you are next on a desktop. There is lots of information and some good tips.

Sorry, Chamonix, I and others have posted about this many times and my fingers get tired typing the same stuff over and over again (and my brain gets tired too) :)
[BetterBatteryStats] dzontra11:
Ehh...
[BetterBatteryStats] dzontra11:
Damn i cant find tips about alarm manger ,,somebody helps?
[BetterBatteryStats] dzontra11:
Any solutions for this?

TNX

Uploaded with ImageShack.us
[BetterBatteryStats] desean:
the longest partial wakelock is only 14 seconds. What is the problem?
[BetterBatteryStats] dzontra11:
Activitymanager its now 54 s after one hour and half....it is normal or what..?
[BetterBatteryStats] nobnut:
Read the thread, every question you have asked is answered in this thread.
[BetterBatteryStats] chamonix:
Released v0.8.0

Guys a new version is out featuring the new graphics / colors thanks to Nobnut.

Another goodie is also included...

Enjoy!

PS: this is release candiate for android market but no worries, versions will still be kept up-to-date and free for xda-dev members (if you like it I would still appreciate you buying/promoting it)
[BetterBatteryStats] nobnut:
Guys,

Buy this from the Android Market and I will personally donate US$1 to http://www.cancerresearchuk.org/ for each verified purchase. I promise.

:)
[BetterBatteryStats] chamonix:
For the sakes of this humble cause I hope it will be a success ;)

nobnut je te tire mon chapeau! your skills, your patience and your attitude are an asset to this community.
[BetterBatteryStats] nobnut:
I just wish there were more Devs like you.
[BetterBatteryStats] dzontra11:
Somebody know how to read thia graph?

[/URL]

Uploaded with ImageShack.us[/IMG]
[BetterBatteryStats] chamonix:
What I see at a glance:

- you don't have a wakelock problem (yet) as your awake times and screen on times are quite overlapping

- you have a problem of network coverage if I interpret the different shades of yellow in the upper bar
[BetterBatteryStats] nobnut:
That is not bad at all. Your phone sleeps just fine and you have had quite a lot of screen on use. When your screen goes off... your device goes to sleep.

I wouldn't worry of I were you :)
[BetterBatteryStats] nobnut:
Yes... he needs to move house ;)

Move to the city!
[BetterBatteryStats] dzontra11:
Damn..i wish o know how to read graph but ok....

What you mean ..network problem?

Anyway....i did some Htc woodu sh...t (read battery calibration) and it works.....very well.

.
[BetterBatteryStats] nobnut:
There is nothing wrong with your device. All is ok.

Network problem means your mobile signal is not very strong. Your phone has to work harder to get a good signal, it has an effect on the battery, but there is nothing you can do about it, unless you go somewhere where there is a better signal.

Just relax and enjoy your phone :)
[BetterBatteryStats] dzontra11:
Tnx pal a lot.
[BetterBatteryStats] jeremysherriff:
That ROM looks good, stock or stock-based is a good idea for troubleshooting issues.

You have terrible drain - for 3h and this much awake time (2m!) i'd expect the battery to report about 96% or higher! Yes, radio will play a part but if you have used that radio before with no issue, then it is unlikely to be the source of the problem.

I see 3g/reception reports 3 bars but the signal line below shows bright green - I suspect the reception is poor and the report/image is wrong.

Change rom, and leave "UpdateMe" and Gentle Alarm off the new ROM. Add the back only once you know that the ROM is ok, and add them back one at a time. I suspect Gentle Alarm might be holding on to a g-sensor when it is not supposed to. But I think change ROM first, unless you think the ROM used to be OK?
[BetterBatteryStats] Stockmoose16:
Can someone please respond to this? I'm desperate to fix my phone. I cant figure out why a phone that is almost completely stock with no added apps is having those top 3 kernel wake locks. I have tried everything!
[BetterBatteryStats] Karpfenhai:
Why don't you read my answer with care? :confused:

You cannot get rid of this wakelocks!!

Except you stop using your phone.. Disable data network, turn of wifi and set a custom reference in bbs, measure one hour and the wakelock should not appear.

Again, browsing / surfing / downloading with your device will cause this!

Notice: As far as i know, you don't have to believe me :)

Swyped from my GT-I9100 using XDA App.
[BetterBatteryStats] Stockmoose16:
I made that dump overnight, when I was not using the phone at all. My point is that, while it has to do with downloading, there shouldn't have been anything using data during that time. I went down to almost no apps. So, in answer to your response, I'm looking for why it's getting a kernel wakelock when there should be nothing downloading?
[BetterBatteryStats] Karpfenhai:
In this particular dump your phone made 107 connects to google servers,

within ~ 330 mins, this indicates 1 connect every 3 mins. It's like your phone asks " Hello Google, do you have something to sync for me?

Don't you think this causes traffic?

Hopefully you will be able to find the culprit soon, but your dump looks pretty good, so don't get too obsessed. :cool:

Swyped from my GT-I9100 using XDA App.
[BetterBatteryStats] Stockmoose16:
It looks like those 107 google hits are gchat, which I had frozen. I wonder why it was using data? My stats may look good, but I'm only getting about an hour of screen on time, when I previously got closer to 2+ hours. What should I do?
[BetterBatteryStats] tez1:
I seem to be getting alot of "wlan_rx_wake" kernel wakelocks.

I understand its router related, although it seems to vary with different kernels I use.

Stock one appears to have the least amount of "wlan_rx_wake" wakelocks from others.
[BetterBatteryStats] xelra:
Yes, the kernel can have an effect on this wakelock as it comes with a less or more aggressive filter for specific packages.

But it doesn't change the fact, that your network is "dirty".

It's like polluting the air so much that you can't breathe anymore. Now you have 2 solutions. Wear a gas mask or clean the air.
[BetterBatteryStats] gaui:
I think RX means incoming, so your LAN environment is causing some polling to your device. I recommend running Shark over night and reading it with Wireshark to check what device on the LAN is polling your device.

Also it might help to change your WiFi connection to static instead of dynamic. Go to your WiFi screen, long press your router/SSID, go to "Modify network", scroll down, tap "Show advanced options", change "IP settings" from DHCP to Static and set some IP address you know is available.