yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] jkc120:
SmsCallServiceWakeLock

For anyone who was having the SmsCallServiceWakeLock, I found I could reproduce it with the following:

1. turn OFF wifi while in an LTE area and ensure you're getting LTE and connected

2. Go to Settings -> "More..." under Wireless & networks -> Mobile networks -> Network Mode -> select "CDMA/EvDo auto" (you should already be set to "CDMA + LTE/EvDo" when you enter this menu

3. observe in BBS or another WL detector the SmsCallServiceWakeLock constantly incrementing.

I had someone on CM 10.2 try this, but they couldn't reproduce, but they are on the ME7 radios.

I'm wondering if there's something specific to AOKP mr2 (or maybe even CM 10.2 also) on the jfltevzw (VZW Galaxy S4) device that doesn't work well with the MDK radios when dropping from LTE to CDMA/EvDO?

In any case, seems like something buggy in RIL/radios on this one, but I unfortunately gave up on 4.3 and went back to 4.2.2 (AOKP mr1 M2) due to this and a couple of other issues.
[BetterBatteryStats] sewe:
Sorry if this has already been discussed but I updated to latest on my unrooted note 3 and and I have watchdog enabled and it doesn't display toasts nor notifying if it's been 100% awake with screen off

SM-N9005 via Tapatalk 2
[BetterBatteryStats] Perseus:
Please try another Rom. Suggested Slimbean.
[BetterBatteryStats] Karpfenhai:
Not sure whether i understand you right, but do not enable BBS root features on a unrooted device.

if you are sure the issue is not related to wrong setup, post more informtion about it, check if you cn grab a logcat on your device.
[BetterBatteryStats] sewe:
Ok, I'll try to explain better.

Before I was on 1.11.0.0 and all worked well til I switched to the note 3 unrooted.

I noticed that kernel wakelocks was blank so I updated til the latest and kernel wakelocks worked again but sadly,notifications from watchdog when you turn on the screen and when you have 100% wakelocks doesn't appear,I saw that it was a bug on earlier release

1.12B2

Some tuning

#299: Watchdog does not report when awake > threshold

SM-N9005 via Tapatalk 2
[BetterBatteryStats] fachadick:
Can anyone help me make some sense of this? I took these this morning after going to sleep with 100% battery. It looks like something's keeping my phone awake and I can't seem to figure out what it is - it should be spending a lot more time in deep sleep and a lot less time awake. To me, it looks like it's the wifi service - am I reading that right?

Any help would be greatly appreciated - thanks.
[BetterBatteryStats] Perseus:
Did you have the HTC Email Client going ? Freeze it and then check.

I would not read into RILJ. The email forced wireless to come on.
[BetterBatteryStats] fachadick:
I do, but i need to have it push enabled with exchange activesync all night - it never sucked battery like that though.

I'm not really concerned with RILJ - I'm actually looking the 4 hours "wlan_rx_wake" as the possible problem.

I just realized - I've been having google syncing issues for the past few days. could that be keeping wifi on and the phone awake?
[BetterBatteryStats] fastguy:
I had the same wlan_rx_wake stuff few days ago. It seemed some broadcast multicast packets were sniffing into the WLAN of the home router. I disabled some route announcements, changed dhcp lease time to 36hours, disabled lan sync from Dropbox and bittorrrent sync on other computers and it seems the wakelock has gone. I am now at 26h on battery and still 44% juice. Also check if you have any DLNA server or something like that which make announcements periodically to the network.
[BetterBatteryStats] rignfool:
OK...

I to have a phone built on the same board... I think... ;)

And if you have the same problems on your phone... I blame hacked adreno libs... It causes absolute rediculious battery drain when the screen is on...

Unfortunately the only fix is to go with a sense based ROM... AFAIK
[BetterBatteryStats] chaoscreater:
Well, I'm about to try that in fact. I'm gonna try ARHD 7.3 (ICS Sense Rom) and then try the official CM 9.1 Rom. If neither improves my battery life, I'm not sure what else I can do....
[BetterBatteryStats] fastguy:
Also try disabling location reporting from Google maps.
[BetterBatteryStats] slebit:
This is a great app. Makes it really easy to detect wakelocks that is draining your battery.
[BetterBatteryStats] damnation333:
Hey guys,

reporting back now after some optimisation work on my SGSII running SlimBean4.3.

As you can see above I have pretty darn good energy consumption over night when the phone isn't used, but like I mentioned consumption goes up when using the phone and I could easily spot a difference of 3x between "screen on" and "awake".

I now got this down to only 1.66x change and a drainage of ~2%/h over 17hours.

What I did:

- Greenify: Facebook, Google Play Magazines, Keep, Maps, Vine

- get rid of "Email" and exchange and install Emoze

- Google account sync: tick only "app data, calendar, contacts, keep, people details

I am more than happy with this now and finally got good levels and the battery isn't dropping every minute I got my phone on.

Attached some logs and a screenshot.

Hope this post might help some people.
[BetterBatteryStats] wilflare:
9h 19mins at 65%

6h 32mins in Deep Sleep

2h 47mins in Awake

1hr 53mins in Screen On

is this okay?
[BetterBatteryStats] xavihernandez:
For those who run CM10.2 : do you have a big RILJ wakelock. I have noticed that sending/receiving text message (SMS) increases RILJ wakelock.
[BetterBatteryStats] Perseus:
Google Sync Issue can cause RILJ to balloon. Yes that seems to be your cause.

Since your Rom does have its own CPU Control app, use that instead of SETCPU. Since I didn't know, I gave that option. If that app does not allow Undervolting, let it go. Do stick with Conservative governor and ROW Scheduler. Set the max frequency to at least 1000 MHZ or what lower value is typical on your phone. There will be plenty of discussion for it on the Sensation forum.

Stupid question, I probably know your answer, Is the Screen brightness at a moderate value and not too bright ? I saw 37 % Ratio but still making sure. Better yet, instead of auto, set it artificially low.I see people have complained that the screen comes on when there's bounding off of tower.

Really old school request, can you wipe clean the battery contacts and the phone's corresponding contacts just at all in case there might be some shorting caused? Another thing, There are ways to test Battery Voltage level when fully charged either in Android or outside the phone. Please see if the voltage level is on par with what the manufacturer expected ?

I revisited the last log you posted, in light of what you said above.

If you used the phone wireless for 5 minutes, the phone was awake 30 minutes, then what was it doing during awake time ? I know the screen was on all the time. Also the "com.google.process.location" was chewing for half hour. Even after your mods, that should not happen. Can you please check again ? This time prevent all Checkin entries in GShared Services in System Tuner from starting at boot. May be you missed one ? With absense of other potential suspects, that's the main one.It does have a history of bad behavior anyway.

As to Go Keyboard, well to be honest I am grasping at straws here, I saw it active for 59 minutes and just wonder if its a buggy app or something? Same with GoSms. So Don't fret over that one.

Lastly if the main culprit is resolved, perhaps the rom problem going to speaker may not be such a big deal. You can perhaps completely wipe and then reflash the Rom and Gapps.
[BetterBatteryStats] droid4lif3:
vbus-tuna_otg

Hi everyone before hand I want to thank you for taking your time to help me, with that being said let me get to the point.

I have a Verizon Galaxy Nexus 32gb that I bought used, about 2 months ago. When I bought it, it had an unlocked boot loader and I installed twrp recovery and cm10.1.3 stable. Since day 1 the battery life has been bad and the screen constantly turns on to the lockscreen.

I reinstalled CM 10.1.3 with the 10-12-13 GAPPS, I checked the checksum on both files and they are good. I have bought a new battery and I changed out the USB port flex cable and the problem is still here. The main wake lock that shows up is vbus-tuna_otg and its been killing my battery like crazy. So if you guys could give me any tips or hopefully we can get it fixed. Thanks.
[BetterBatteryStats] chamonix:
You analysis is right and that wakelock is caused by your kernel believing that USB is plugged. You should start by turning you phone off and carefully cleaning the USB plug.
[BetterBatteryStats] droid4lif3:
Hi chamonix and thanks for your reply, I have cleaned out the USB port before and the problem was still there, so I ended up replacing the USB port flex cable which is one piece and it has the usb port and the problem was still there. Do you think its a hardware problem?
[BetterBatteryStats] wilflare:
I have 1hr worth of wakelocks for 8hours of use...

PowerManagerService.WakeLocks (14min) this is okay... for my Partial Wakelocks

bam_dmux_wakelock (13m) no idea what is causing this though...

ssp_sensorhub_wakelock (7m) this one is problematic too

radio-interface (4m) what's this?

alarm_rtc (3m)

resume_wakelock (3m)

ssp_wakelock (2m)

sec-battery-monitior (2m)

Ril-Am (2m)

alarm (2m)

smdcntl0 (1m)

any advice?
[BetterBatteryStats] SweetPant:
100% awake. Mainly from PowerManagerService.WakeLocks but cannot find any clue from Partial Wakelocks.

Can somebody help me, thank
[BetterBatteryStats] Hopper8:
Hey guys just a quick question regarding email apps.

I see a lot of posts regarding Gmail & recommending to use an alternative email app. What I am wondering, is it ok for battery life to use the Gmail app, but not set it to sync at all? I only wonder this as one of my email accounts doesn't play nice with other email apps (it uses the google servers but is not strictly a "gmail"). Hence my preference would be to run my email accounts through the Gmail app, but set sync to off. Is this ok for battery? Or still not ideal?

Many thanks, keep up the great work in this thread! :good:

Edit: and I plan on uploading an idle dump after the night when I will leave my phone on untouched :)
[BetterBatteryStats] Karpfenhai:
Of course it's okay, manual sync will not affect standby drain.

Tapatalked from my Galaxy SII

---------- Post added at 10:38 AM ---------- Previous post was at 10:35 AM ----------

Disable Wi-Fi for some seconds and check if a huge amount of deleted_wakelocks will appear, that's your answer then.

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] chaoscreater:
As above, in red colour.
[BetterBatteryStats] SweetPant:
No deleted_wakelocks after turning on and off WiFi for several seconds several times.

:(
[BetterBatteryStats] Gunkk:
Looks like you have WIFI on but it has no connection. So it's sitting there, lonely and afraid, screaming in the dark for someone to come save it ...

Other Usage

===========

Awake (): 2 h 26 m 58 s (8818 s) Ratio: 100.0%

Screen On (): 22 m 54 s (1374 s) Ratio: 15.6%

Wifi On (): 2 h 26 m 58 s (8818 s) Ratio: 100.0%

Wifi Running (): 2 h 26 m 58 s (8818 s) Ratio: 100.0%

No Data Connection (): 2 h 26 m 58 s (8818 s) Ratio: 100.0%

No or Unknown Signal (): 2 h 26 m 58 s (8818 s) Ratio: 100.0%

It appears that the WIFI radio is killing your battery. Pull up your battery usage chart and see if the radio/WIFI is causing the drain. Then turn WIFI off and see if the drain goes away to confirm.
[BetterBatteryStats] SweetPant:
I have tried turning on and off Wi-Fi but the awake is still 100%.

Wi-Fi signal is a bit low but I'm certain that it has connection as I still receiving chat messages, email, notifications, etc. The phone sits next to my PC that connect to the same Wi-Fi.

Here is my battery usage.
[BetterBatteryStats] xavihernandez:
Hi peeps,

No one got high RILJ wakelock with CM10.2?

I can't find what's the problem. I have no GAPPS, just using k9 for my mails and cardav sync for my contacts.

I have noticed that send/receiving sms increases RILJ wakelock. Then when I send lots of sms I got a really huge RILJ wakelock.

If anyone has any clue. Thode running cm10.2 can check too. To know if it's a common behavior.

Thanks.
[BetterBatteryStats] baghera1979:
Hello,

Firstly ... thanks for your help with this.

Now, put my phone (sgh-i717, note) on charger and its either very very slow to charge- 1% every 15 minutes, or it charges up like normal-1% every 2-3 minutes.

tried new batteries but to no avail. New batteries don't charge while in phone.

here's my dump log and hopefully I did it right

https://db.tt/ct4YYhWB

And a pic of battery usage overnight during the log gathering

Edit...

I'm not running any fancy roms or the kernel. Just a simple rooted stock rom and that's it

I noticed thatbi forgot to make sure alarms would populate, didn't know how to til now. Wakelocks are populated so I hope that helps
[BetterBatteryStats] Perseus:
Please note, the battery may appear to be sluggish in charging due to mainly 2 reasons.

1. Charging on USB is inherantly slower compared to Wall charge. Even on wall, sometimes, after market chargers would be slower compared to Samsung charger due to 11th pin.

2. The phone is not sleeping while charging. This does not mean you are using it but rather its kept awake by some process.

In this case the phone was

Please Remove the Search box widget from your home screen it is chewing battery. If you want to search, do it the normal way in browser. Turn off gmail sync and manually sync it. Remove Facebook and use the mobile site instead. Same for twitter. Turn off Google Location Services and Location Sharing.Plenty posts last few pages on that. Also use Rescan Media Root.
[BetterBatteryStats] baghera1979:
Thanks for the help. Thing is, I only charge up using the charging block and cord that came with the phone from factory and its always plugged into wall, never to a PC to charge. It says I have a search widget on home screen? Weird cause I dont have one on there. Maybe its somewhere I don't see.

thanks for the help.

I should also mention that I have not changed anything to cause a faster drain or slow/no charge. No newly added apps that I can remember. That's why I'm a little confused
[BetterBatteryStats] Perseus:
If you do use factory charger, and the wall outlet is ok, then I'd say the phone usage during charge might affect. Say if I took a bunch of phone calls or used LTE while charging, it takes forever to charge. On the flip side if I let it alone and charge off wall, it typically charges in an hour and half from 9% to full.

Stock roms generally have a bunch of bloat that drains. Unbloat the phone and you may see improvement.
[BetterBatteryStats] baghera1979:
OK. I have tried that. I don't use phone while on charger so all it should do is charge. Stock rom is rooted and de bloated so there not the rouge issues.

I'm just trying to figure out if maybe its a hardware or software issue and needs to be returned under warranty (bought new in July).
[BetterBatteryStats] wilflare:
anyone any idea?
[BetterBatteryStats] Perseus:
Is it just time taken to charge or is there any other reason to consider returning ? Also, in BBS, there's a setting to enable it to track even when charging. You can use that.

Do note, with my own SGH-T999, at work it takes 5-6 hours to complete the charge whereas at home it charges in an hour or 2.

Guess I missed it first time. You seem ot have LTE or 3G data signal issues. Every time you are switching from Wi-Fi to Data, turn on Airplane more for a bit and then turn it off. If you tend to oscillate between places like home, work/school etc, do it at each place.

Also re-calibrate, Gyroscope on a flat surface. Ask if you don't know how to do that.
[BetterBatteryStats] baghera1979:
Time to charge. Used to take 1.5-2 hours to charge battery to full from round 5-10% either at work or home. Now, put on charger the other nite at 32% and woke up at 6am to it only charged to 58%. That was over a 6 hour period. That's why I thought it may be hard/software related and not neccisarily apps draining it.

Wanted to run BBS and see what you guys with a better eye could find. Maybe I was wrong in my assumption.
[BetterBatteryStats] wilflare:
thanks! hmm I use WiFi in school but it's not always stable...

my LTE signal in school is pretty below average (mostly yellow? instead of green)

so every time I switch between WiFi and 4G I should turn on Airplane mode on and off?

I'll do the re-calibration soon...

just bought the phone less than 2 weeks ago :/
[BetterBatteryStats] fone_fanatic:
I have very minimal drain with Wi-Fi and data off (log here https://db.tt/KxC6HuF9) but that greatly increases after I turn data on. Do I need to provide a dump with data on to help investigate?

Also my kernel has logging disabled so BBS does not show kernel wake locks, is there a way I can enable this or is it something the kennel Dev has to do?
[BetterBatteryStats] Perseus:
There's nothing big jumping out of your battery stats.If there is loose connection with the charger and the phone port then I'd go in for replacement.

Yes flip Airplane mode for a bit at each location school and home.

Turn off Location Services and Location Sharing for Google Apps. Set all google apps to manual sync except contacts.
[BetterBatteryStats] fone_fanatic:
Oh good point, I forgot I had that on.

What's the recommended procedure if I want to log battery drain with data. WiFi on or off?
[BetterBatteryStats] Hopper8:
Hey guys here is my log from overnight, is someone able to take a look please?

https://db.tt/KXyIAnPP

Data and mobile signal are enabled all night. Using stock AOSP email app instead of Gmail. Whatsapp is enabled. Many apps are greenified and location services are off. I've also disabled some things from inside the google services framework as outlined in 2nd or 3rd post of this thread.

To my untrained eye, it seems as if I need to cut down on a fair few kernel wakelocks but the partial wakelocls don't seem to give me any clues what to target. In addition to this I get a lot of alarms caused by 'com.android.phone' which I don't know how to stop (fast dormancy is disabled).

Any help is greatly appreciated :)

Sent from a galaxy far, far away
[BetterBatteryStats] Karpfenhai:
Brilliant, well done, disable swiftkey's dictionary sync or set it to manually, seems it's calling home.

Afaik you can achieve the same results with location service enabled, the main culprit is maps and Wi-Fi scanning.

No need to cut down all smart features, good luck.

Tapatalked from my Galaxy SII
[BetterBatteryStats] Hopper8:
Hmm that's weird, I hadn't even signed in to SwiftKey cloud. Now I've signed in and disabled sync (I don't use the cloud thing), maybe that will do the trick...

Any tips about the 'com.android.phone' wakeups?

Edit:

com.android.phone (): Wakeups: 61

Alarms: 61, Intent: com.android.internal.telephony.data-stall

Is the thing that's waking it up. I don't know what 'internal.telephony.data-stall' is. Is it able to be configured for less wakeups somehow?

Sent from a galaxy far, far away
[BetterBatteryStats] Perseus:
Flip airplane mode for a bit and then check
[BetterBatteryStats] Karpfenhai:
This is hard to avoid...

It means your phone is negotiating about the data connection speed with the cell tower, it usually increases while traveling. But also if your device is flapping between different states or if Wi-Fi is turned on and off again.

You can avoid / decrease its amount if you set up a profile like "2g only at night" or if you stay on Wi-Fi while screen is off.

2g only will also save additional battery if no big data is transmitted, should be no problem for push notifications.

If you want to learn more about the triggers for this alarm, read the code --> https://android.googlesource.com/pl...l/telephony/dataconnection/DcTrackerBase.java

Tapatalked from my Galaxy SII
[BetterBatteryStats] Hopper8:
A veritable fountain of knowledge! You are incredible at this, keep up the good work mate! :good: Your help is much appreciated :)

Have you guys who help out on the BBS thread been 'approved' by chamonix to help out? Or just began helping? If it's the latter, I might stick around, read how the help process begins and then begin helping out as well. I know a little, as evidenced by my battery dump just before.
[BetterBatteryStats] Karpfenhai:
Just start spreading your knowledge, we will watch and improve your posts if necessary, assistance is always welcome and appreciated!

Tapatalked from my Galaxy SII
[BetterBatteryStats] Andro Boy:
Thx. Simple and helpful :)
[BetterBatteryStats] Hopper8:
Just one more question... I still see a secril_fd-interface wakelock (it's not large) even though I've disabled fast dormancy. I therefore assume it isn't actually disabled, but is rather reporting that it's disabled, but is active and causing a wakelock. Karpfenhai, as you have an i9100, have you managed to disable fast dormancy on a 4.2.2 or 4.3 ROM? I'm suspecting that gokhanmoral's fast dormancy toggle app is not effective on an AOSP ROM, only a stock - based ROM.

Sent from a galaxy far, far away
[BetterBatteryStats] Perseus:
Don't think I got any kind of permission let alone approval. I like to help to the best of my ability and knowledge. Its the spirit of XDA Community. You are welcome to chime in. If you want help, don't hesitate to ask.

Amen bro.

P.S. - I hit the limit for Thanks for today. Can't hit either thanks button today.
[BetterBatteryStats] wilflare:
hmm seems like my Galaxy Note 3 has no option to re-calibrate the Gyroscope
[BetterBatteryStats] Perseus:
It actually depends in part on the kernel. If the stock does not let it, you are going to have to find some other app to do it. Google's your friend.
[BetterBatteryStats] wilflare:
thanks guess I'll have to do some searching!

I'll just use my phone normally for awhile and post up a proper log for everyone to see.

I do feel that my battery can still do better
[BetterBatteryStats] Hopper8:
When you post a "proper log" make sure it's an idle log, ie. unplug your phone off the charger, then let it sit idle, without touching it, for 4 hours (maybe overnight). Then when you turn the screen on, save the log file and post it here. It's not really much use posting a log after you've been using it all day.
[BetterBatteryStats] wilflare:
sure will do (:

will post it after I left it overnight
[BetterBatteryStats] Karpfenhai:
Nope, they don't work anymore, but I have developed a new strategy for that, it's called "Ignorance" :D because it's usually between 2 and 4 minutes after 24 hours so I handle it like Icona pop, I DON'T CARE... :p

Regards

Tapatalked from my Galaxy SII
[BetterBatteryStats] Gunkk:
from: https://android-review.googlesource.com/#/c/40690/

Fix Data stall issue

In the case of disabling apn and enabling immediately, as the state

of apn type may still be CONNECTED, it will return

Phone.APN_ALREADY_ACTIVE before setting Enabled of apn type as true,

and result in the data stall.

To avoid the issue, set enabled as true in enableApnType() even it

is already connected.
[BetterBatteryStats] gaich:
How can I do it? Beeing a simple user? Is there some app for it or should I write is in some init.d or something else?:confused:
[BetterBatteryStats] xavihernandez:
Hi guys,

I have saved 2 logs. One after 1h15 (approx) of sleep, and another one just after I had sent a text message. Look at RILJ wakelock, it has increased one the 2nd log.

If anyone can give advice or just want to talk about it, I would be glad if I have some clarification.

Thanks.
[BetterBatteryStats] guido_glx:
Hey guys here is my log from overnight, is someone able to take a look please?

Any help is greatly appreciated :good:
[BetterBatteryStats] bazakn:
Whats is wrong with this log ?

View attachment BetterBatteryStats-2013-10-10_151616051.txt
[BetterBatteryStats] fbf2201:
The screen on time is 3 h 26 m 54 s.