yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] gordonthegopher:
What's the exact procedure for an IDLE log? My specific problem happens when using the phone out and about on 3g. I don't think the drain happens when the screen is off as from my BBS logs it looks like the phone is going into deep sleep and staying there. Should I just leave the phone on overnight without charging and connected to 3g? And should auto-sync be on or off?

---------- Post added at 06:30 PM ---------- Previous post was at 06:27 PM ----------

I've always had signal issues as I'm on 3 in the UK. But I've had the phone since last April and it's only for the last three weeks that the battery has gone nuts and the phone has been heating up. My usage pattern has been pretty similar since I very first got the phone...
[BetterBatteryStats] Perseus:
Ok that EDIT makes sense. GCM Receivers are activated by Google Play service even though there's no Hangouts or Google Cloud Messenger. Its a long story. See if you can live with Google Play service frozen.

Please do factory reset then re-install Rom and Kernel from Scratch. While at it, format your External SD card after backing it to PC or something.

And oh yeah to top it off, use the MediaServer Kill application from Play Store after the re-install.

Please do leave the phone on all night with connected to 3G. Do not turn on Auto Sync. No charging either.

If you haven't already, please switch to Siyah Kernel and do a little bit of undervolting. Also follow the Fast Dormancy advice [MENTION=4355376]Karpfenhai[/MENTION] posted earlier.
[BetterBatteryStats] gordonthegopher:
Ok, I'll do the first, but I won't go for undervolting just yet...

Log in the morning.
[BetterBatteryStats] Perseus:
Follow [MENTION=4355376]Karpfenhai[/MENTION]'s advice on Fast Dormancy.
[BetterBatteryStats] cgeorge12:
All,

I posted here a week or two back about having a really serious battery drain problem. I would be getting down to below 20% in only about 6 hours of very light use with my Droid Razr Maxx. Nothing seemed to fix it and it didnt seem that any wakelocks were keeping it awake (I even tried BBS but it showed no issues).

After changing ABSOLUTELY nothing (no system updates, no removal of apps, no addition of new apps, no settings changes, no change in usage pattern, no change in location where using the phone), my battery has improved significantly. I posted a picture of my battery screen. I literally did nothing to make this improvement. So I guess I just want to tell those who are having battery issues that are not apparent using BBS to try to stick it out and see if some random change within the phone fixes it.

Thanks!
[BetterBatteryStats] gordonthegopher:
What exactly is this advice, I can't find the post? Also, I am on a CM11 base, so there isn't a way to toggle is there?
[BetterBatteryStats] Perseus:
I meant to ask use this. Or some other way to turn off Fast Dormancy.

Forgot you have CM11 codebase. Disregard Fast Dormancy since you are not changing kernel.
[BetterBatteryStats] OnAir783:
Hi

Does anyone know what the PowerManagerService.Display Wakelock is?

Had more than 3hours and can't see anything unnormal in partial wakelocks (Android 4.4)
[BetterBatteryStats] Perseus:
Cumulative Kernel Wakelock.

Screen Time and then some.
[BetterBatteryStats] chamonix:
That wakelock seems to keep your phone awake almost all the time. does overflow show even for shorter time spans? unfortunately I don't know of any other way to work around that limitation of android's internal counters
[BetterBatteryStats] chamonix:
The awake time is the total runtime minus the deep sleep time. summing wakelocks does not fit as those can overlap and there is awake time without wakelock too as the state transfers are not instant
[BetterBatteryStats] tonymy01:
Go into Wi-Fi advanced settings and set it to be always on. Notice when it sat on Wi-Fi the drain was reduced, on 3/4G data really kills battery compared to Wi-Fi.
[BetterBatteryStats] Rapture Veteran:
I thought I mentioned I did this, sorry. But yea I have it as a system app, it doesnt work.

To the person who replied about, yes i can try and remember to get a logcat

---------- Post added at 07:10 PM ---------- Previous post was at 07:09 PM ----------

Ive gone through 4 different 4.4 roms, a 3 different kernels and it doesnt work for crap on my S3

---------- Post added at 07:11 PM ---------- Previous post was at 07:10 PM ----------

Ive gone through 4 different 4.4 roms, a 3 different kernels and it doesnt work for crap on my S3
[BetterBatteryStats] EvanVanVan:
Yeah, that is strange... As I said in my OP I installed it as a system app using the experimental feature in the settings menu. I just verified that is indeed installed in "/system/priv-app/". Maybe I need to open the processes tab once after unplugging it before it'll start recording them?

I'll get another log tonight.
[BetterBatteryStats] :
on nexus 4. im getting huge wakelock on android os and android system. BBS shows that com.google.android.gms is causing it. please take a look at the attachment. the wakeups is insane! :crying:
[BetterBatteryStats] NoSpamDan:
For all the folks having trouble on KitKat, I have BBS installed as a user app but to allow stats I use a free app found on XDA here called Xposed by [MENTION=4419114]rovo89[/MENTION] along with a module available to download from within the Xposed app called Enable Battery Stats Permission - Xposed Module [1.2].

Works perfectly on Beanstalk 4.4.215 on my Galaxy SII Skyrocket!

EDIT: I just realized I posted about another app in this thread. No disrespect meant. I just wanted to clarify that it may help those with trouble using BBS as a system app on KK. You need root for Xposed, fwiw...
[BetterBatteryStats] whitey.germany:
Thank you for clarify this. Now this makes sense. :good:
[BetterBatteryStats] gordonthegopher:
Here is a textfile and logcat. XDA wouldn't let me upload the json and I tried ticking the dmesg but everytime it says it's created that file but it doesn't exist.
[BetterBatteryStats] joshdax2:
Thank you for replying. I unchecked it all in location services and it worked :good:

But com.google.android.gsf is still getting like 35 wakeups according to BBS.

I greenified almost all my apps. All that is left not hibernating are BBS, camera, clock, gallery, contacts, messaging, phone, samsung keyboard, supersu, syncmIDS, system UI, Touchwiz home.

---------- Post added at 11:15 AM ---------- Previous post was at 11:10 AM ----------

Have you tried Greenify? Install it and buy the donation and you'll be able to hibernate both user and system apps. I've noticed HUGE improvement over battery life. try it. I used to have ALL those wakeups but now I only have android with 30-ish wakeups and com.google.android.gsf with 30-ish wakeups as well. :fingers-crossed:
[BetterBatteryStats] joshdax2:
ignore this post.
[BetterBatteryStats] spaazm:
Yesterday, shortly after 18:00 hours, I've noticed that my phone is getting too warm doing nothing but sitting in my pocket. It's been there for an hour or so. Should be in deep sleep and it usually is in that conditions, yet it drained more then 20% of the batter in a matter of around 60 minutes.

I didn't have time to investigate it any further while I was working at that time. Still I've noticed in Trickster that all four of my cores were running above 918mhz and wouldn't go below.

Couldn't find any obvious reason, so I just rebooted. The problem is gone since then. I can't reproduce it.

I have last kmsg here: http://pastebin.com/E2NbJYHi

Unfortunately I can't provide BBS stats for that period of time.

Feel free to ignore this post as the problem I've encountered has solved itself on its own. Still it was the first time I've witnessed anything like it with my phone.

For those who are interested I have not changed any settings for couple of days. Kernel is all default: 162/1512mhz, ondemand, mpdecision on (1 core min.), except for -75uv.

• AOSPA 4.0 BETA2 • AK.024.XGENESIS •
[BetterBatteryStats] gordonthegopher:
Just did another test. As you can see, battery is very good on idle. I've bought an extended battery as I just think living in London, using 3G while out and about burns the battery, especially on Three as their coverage is extremely patchy.
[BetterBatteryStats] Karpfenhai:
Well, as far as I can see your doing pretty good, the only awakes are caused by network activity, you should disable market auto updates , ad-away updates and this sms backup thing.

Beside that your good to go.

Regards

Tapatalked from my Galaxy SII

---------- Post added at 02:37 PM ---------- Previous post was at 02:34 PM ----------

Just some hint,

- check your filesystems.

- do a "ps | grep z" next time the cpu hog occurs, you could suffer zombie process

A corrupt filesystem can lead to your described issues.

Tapatalked from my Galaxy SII
[BetterBatteryStats] :
which service exactly did u greenify? google play service itself has so many things. greenify the wrong one im afraid will cause problem
[BetterBatteryStats] OnAir783:
Hi guys.

I m using rooted CM 4.4.2 and have the root feature enabled in newest BBS. But there are far too little apps shown at the partial wakelocks. My PowerManagerService and the active time is much higher than the seconds of the apps at partial wakelock. (e.g. K9 Mail only 6s after a whole day, normal are 10 minutes or more) Have I to activate something else that the programm works correct?
[BetterBatteryStats] Perseus:
Its expected. That service is a commonly shared framework.

Uninstall BBS completely. Reboot, install BBS as normal app and then get Titanium Backup to convert it to system app.

Freeze Google Play Service.

Have you turned off Google Location Reporting ? I still see entries in the log indicating that its not the case. You also have Gmail Sync on. Did it took a while to sync ? There was a Stalled connection
[BetterBatteryStats] gordonthegopher:
There's a cleaner log above. But yes, Google Location Reporting is off, as is in fact all location settings. Gmail sync was on for a bit in the first log, but off totally in the second. I had a reply from Karpfenhai about the second log with a few tips. Any notes on the second one from you?
[BetterBatteryStats] Perseus:
Its going to sound bad, but can you switch to 2G only mode for a while and see how goes the battery ? The second log does look pretty good. The drain is pretty low. Do you have Android News and Weather widget ? If so, in its settings, there is a place to set Sync frequency. Can you increase it to 6 or 12 hours ? Are there any other Google Apps that sync such as RSS feed ? Have you killed Media Server already ? If so you do have an issue with file system. Also you might have an app called Business Calendar. Does it need to sync so frequently ?
[BetterBatteryStats] gordonthegopher:
I can try 2g only, but I suspect it will give good results, as when I'm on Wifi battery drain goes down. No Android News and Weather. No other Google Sync Apps. Haven't killed Media Server, should I? I have Business Calendar, only recently installed it so I'll have a look at settings in that too. I think it just uses the sync settings for the account it links with, which in my case is Google, so as far as I'm aware, sync is either On or Off, same as Gmail.

How long should I stay on 2G only before I post a log, overnight?
[BetterBatteryStats] Perseus:
Yes Stay 2G overnight if that's ok. Do turn off sync while you are at it. I don't know if we discussed before. (maybe we did and I am forgetting) Any chance you could change your modem ? If you have so many signal issues, why can't you turn off background data?

Yes Kill media server with the app from play store.

As it is that second log was pretty amazing. What do you have issues with that?
[BetterBatteryStats] gordonthegopher:
Sync was switched off for both those previous dumps, the second one the whole time.

Modem change seems to make little difference, I tried all the EFS V2 modems with no effect.

How do you turn off background data in 4.4.2? I can't seem to see a setting, there was one in stock 4.1.2 and 4.3.

What are the downsides of turning off MediaScanner? E.G. Does it stop new photographs from being added to the gallery automatically?

Second log was good, but screen was off, sync was off. My main issue is the battery drains like water as soon as I use it on 3g. Hopefully the extended battery will help matters also.

I'll do an overnight 2G IDLE and post the dump in the morning.

---------- Post added at 04:46 PM ---------- Previous post was at 04:41 PM ----------

I just looked at Background Data, seems to be a per app setting, but Google Play store seems to be using a fair amount of Background Data (80mb). Are they any adverse affects to disabling it?
[BetterBatteryStats] Perseus:
Google Maps and possibly Google Play service will complain if you turn off background data. But you may have to give it a try. There should have been a global setting for background data.

This is from the second log. It shouldn't be happening if you had sync going on. I can't say for a fact who is calling on Google Play service. Its not Google Play Service that's to blame. I think that business Calendar may be up to no good.

Downsides to turning off media scanner are little to none. Photos will still add to gallery if I remember right. Let's see that overnight log.
[BetterBatteryStats] RJQXCV:
Why doesn't anything show up in the "awake" bar? It stays black even when the screen is on and it's obviously awake.
[BetterBatteryStats] Perseus:
Please turn off Google Location Reporting. Wipe the data for Play Store and Play Services. Freeze Smooth Calendar for now.
[BetterBatteryStats] Gerxp:
Thx Perseus.

Local reporting was already off. I wiped the data of Play Store and Services. Then rebooted and will post again later.
[BetterBatteryStats] Perseus:
If location reporting was off then turn off Location Services and Uncheck "Scanning Always Available" option (Settings > WiFi > Advanced)
[BetterBatteryStats] Karpfenhai:
This has nothing to do with bbs but might occur on kk and it's custom kernels.

Tapatalked from my Galaxy SII
[BetterBatteryStats] Perseus:
Have you installed BBS as System App ? If not use Titanium Backup to do so. I see RILJ wakelock. More than likely its related to Location search.Other than that I really don't see anything major that'd point at the -8 % drain. Can you please post an overnight Idle Log ?

Turn on Location Service, make sure Google Location still shows as off. Then turn off Location Service.
[BetterBatteryStats] Gerxp:
BBS indeed is system app.

I will post an overnight idle log.

Thanks in advance Perseus!
[BetterBatteryStats] RJQXCV:
I'm an idiot. Posted on wrong thread. Thanks.
[BetterBatteryStats] dylansmith:
Hi guys,

not sure why but my battery drains really fast nowadays. the first i realized it was because i always put my phone below my pillow when i sleep, and from that day onwards, it always turned out quite warm and battery draining by quite a bit, although there wasn't any background process supposed to be running.

E.g. Screen takes 40%, and Android OS would take around 20% (unusually high), device idle would be 3rd on the list.

I installed BBS to check the results, and realized it had never went to deep sleep before. however, just by looking at the GUI, i cannot make out which app is at fault - and have attached the dump files as such (from my rooted s4, i9505).

help very much appreciated!
[BetterBatteryStats] Hidden-Hunter:
Hi to Friends

This is the log for my phone,How is this possible?

stock rom 4.1.2

tnx:good:
[BetterBatteryStats] therenegadenail:
so out of nowhere my phone wont go to sleep at all now? im running cm11 on gs3 sprint and i have a wakelock called "CdmaInboundSmsHandler" which is running all the time and is preventing my phone from sleeping, and google has turned up nothing regarding the matter, and i would really love to know how to fix this
[BetterBatteryStats] v_square:
You have a wifi related wakelock. Wlan wakelock has kept your device awake for almost 9 hours. May be a reboot would fix such a problem.

---------- Post added at 12:54 PM ---------- Previous post was at 12:46 PM ----------

I didn't see anything wrong in there. I wonder why you said ''how's this possible''.
[BetterBatteryStats] Karpfenhai:
Do you have any third party sms app installed?

I guess a reboot would fix that, seems you received a sms which got stuck between radio (modem) and GUI (android)

Source:

This class broadcasts incoming SMS messages to interested apps after storing them in
** the SmsProvider "raw" table and ACKing them to the SMSC. After each message has been
** broadcast, its parts are removed from the raw table. If the device crashes after ACKing
** but before the broadcast completes, the pending messages will be rebroadcast on the next boot.
**
** <p>The state machine starts in {@link IdleState} state. When the {@link SMSDispatcher} receives a
** new SMS from the radio, it calls {@link #dispatchNormalMessage},
** which sends a message to the state machine, causing the wakelock to be acquired in
** {@link #haltedProcessMessage}, which transitions to {@link DeliveringState} state, where the message
** is saved to the raw table, then acknowledged via the {@link SMSDispatcher} which called us.
**
** <p>After saving the SMS, if the message is complete (either single-part or the final segment
** of a multi-part SMS), we broadcast the completed PDUs as an ordered broadcast, then transition to
** {@link WaitingState} state to wait for the broadcast to complete. When the local
** {@link BroadcastReceiver} is called with the result, it sends {@link #EVENT_BROADCAST_COMPLETE}
** to the state machine, causing us to either broadcast the next pending message (if one has
** arrived while waiting for the broadcast to complete), or to transition back to the halted state
** after all messages are processed. Then the wakelock is released and we wait for the next SMS.
**/

Tapatalked from my Galaxy SII
[BetterBatteryStats] costin96:
S2

Hello.

I installed SlimBean 4.3.1 stable on my device some days ago and I saw that there was an awful battery drain in comparison to my semi-tweaked 4.1.2 (stock 4.1.2 with stock kernel + root + greenify and some other apps).

On SlimBean ROM I saw that whenever I listen to music (via PowerAmp) battery literally goes down 1% each 4-8minutes. On my stock 4.1.2 there was no problem about battery drain in this situation. With BatteryDrain application I saw that my phone with SlimBean ROM does an amazing -12% -> -16%/h drain with music on, and around

-6%

with screen off and music off, while on my old 4.1.2 I had as low as -2.4% -> 7.0%/h drain with music on and

-0.5 -> - 1.7%/h

with screen off and music off.

I own a Galaxy S2 device (GT-i9100), with the 2000mAh battery kit from samsung. I will add some screenshots and logs from BetteryBatteryStats, BatteryDrain and the Android System battery manager.

I can't understand why I have this drain while listening to music, and why it does consume -4 -> -6%/h in idle.

If anyone could help me, it would be really apreciated :(.

Attachment: http://xdaforums.com/attachment.php?attachmentid=2523588&stc=1&d=1390038885

Thanks in advance!

PS: I got google location set to off to avoid any problems with nlpwakelocks like I had on 4.1.2. I got 3G on all the times, and signal in my location is very good (always over 3/4 signal lines). GPS Off, Wifi on only around 6h when I'm home.
[BetterBatteryStats] gordonthegopher:
Okay, here it is. Location Services and Reporting off, 2G only. Wifi off. Sync off. Screen off basically the whole time.
[BetterBatteryStats] OnAir783:
PowerManager.Display

Hi guys....

can anyone explain me THIS?! :
[BetterBatteryStats] spaazm:
Result of "ps | grep z" is always the same for me:

u0_a208@mako:/ $ ps | grep z
root 214 1 859332 42212 ffffffff 00000000 S zygote
u0_a96 2403 214 1080968 137216 ffffffff 00000000 S org.herozero
u0_a207 9452 214 868876 19796 ffffffff 00000000 S biz.gyrus.yaab
u0_a208@mako:/ $

I've checked it several times. herozero is a game I play. yaab stands for yet another auto brightness. I have no idea what zygote stands for. Judging by its priority it might be system process.

I didn't have much luck in checking my filesystem. I've managed to google some ADB commands, yet I don't have access to PC now, and it's necessary if I got it right.

Anyway the drain didn't occur any more since my last post. Thank you again for your effort.

Meanwhile I've discovered rather high usage of msm_hsic_host wakelock overnight. From what I've researched there's not much I can do about it, except for using 2G (which was true), turning off data (which was false) or going into airplane mode (false). Correct me please if I'm wrong.

You'll find necessary fillies attached:

kmsg http://pastebin.com/b5RPnvWc

BBS stats http://pastebin.com/6TLp3kyQ

• AOSPA 4.0 BETA2 • AK.032.XGENESIS •
[BetterBatteryStats] Untitled87:
Does anyone have the android.net.connectivityservice.action.PKT_CNT_SAM PLE_INTERVAL_ELAPSED wake lock?

It made my phone 102 times of wake lock for one day of light use...
[BetterBatteryStats] therenegadenail:
no third party sms apps, just the normal app, and a reboot doesnt fix the problem, its so weird, i have found that if i just send myself a text it fixes the problem. but its annoying overall and i dont understand how it just kinda manifested itself
[BetterBatteryStats] keeekeeess:
So let me get this straight:

The widget's green / yellow bar is the ratio of how much I used the phone vs. how much time it was in deep sleep. This depends on the user.

I know the yellow bar is composed of 2 parts - transparent (for screen on) vs. red for awake.

My question is - does the battery show either:

1. a ratio of awake/screen on? In this case, if the ratio is = 1, the battery should be 50% transparent 50% red (because it's impossible to have screen on > awake)

2. it shows the difference between being awake and screen on ( awake(s) minus screen on(s)), in this case it can go up to 99.9% (if phone never goes in deep sleep)

So the bottom line is: in a perfect scenario, should the battery icon be half full or should it always be empty? (i never gotten under 50% with it)
[BetterBatteryStats] chamonix:
https://github.com/asksven/BetterBa...tterBatteryStats/graphics/Doc_SmallWidget.png
[BetterBatteryStats] Karpfenhai:
Multiply your alerts with 6 and you know the non measurable overhead, so yes, lightflow is an issue..

Plus Google search box.. :D and your Wi-Fi... And location.. Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] Tennic:
Is correct that when I enable the root features (to display "partial wakelocks", alarms, etc), the phone (nexus 4, CM11 + faux kernel) no longer goes into deep sleep, but it remains stuck at the minimum frequency, consuming a lot of battery, even the application is closed? :confused:
[BetterBatteryStats] Perseus:
Change your Launcher or remove the Search box on the home screen. Also turn off Google Location Reporting from inside Google Settings App.

Can you turn on Root Features of BBS ? Also use Titanium Backup and move BBS to be a System App. There is a good discussion on this thread for Multipdp wakelock. Please follow the same. Finally post an idle log without any music playback for about 3-4 hours if possible.

The drain is much less this time. I still see a hell of a lot of Radio chatter. Can you ask the carrier about your APNs ? Can we improve those settings ? Also even though you did not have much luck with another modem, can you please try another modem under similar circumstances as this log ? At the least, keep Wi-Fi on. Even though you set to 2G, how come it reported no signal all through the whole period ?
[BetterBatteryStats] Perseus:
Please use Kill Mediaserver app from play store. Please follow this mod. Even if you loose the notifications, it will do a lot good for battery.