ConnectivityService wakelock - Wifi off - Moto X Q&A

YHey everyone!
Recently I was able to pinpoint some problem that happens on my Moto X (xt1052 GB retail) with 4.4.4 rom.
I observed that switching off WIFI causes massive ConnectivityService wakelock. Every time I turn off the WiFi (could be through Tasker, could be manually) my phone collects 1 minute wakelock.
I verified that behavior by performing multiple tests with BBS and Gsam.
My setup:
- installed Xposed + Gravity Box
- installed Greenify
- no social apps like Facebook, Tweater
- Sync is totally switched off.
- No services like Google Play Services or Framework are disabled (either with Android Tunner or other similar apps)
- Location Services were enabled (battery save) and disabled - no impact.
So I was wondering if any of you guys and girls who has BBS or Gsam could do similar test and let me know if they experience same issue?
Test procedure:
- reset stats (i.e in BBS set custom point)
- enable WiFi and wait a minute
- check if there is ConnectivityService partial wakelock
- disable WiFi (manually)
- check BBS again for above wakelock
Note!
This wakelock will not appear if you do the test with Mobile Data. For me it only shows up with WiFi.
Thanks!
Sent from my XT1052 using Tapatalk

Do you have "always scan for WiFi blah blah" enabled in WiFi advanced settings? If so, turn it off.
---------- Post added at 04:42 PM ---------- Previous post was at 04:41 PM ----------
Wait....one minute wakelock? How much total a day?

KJ said:
Do you have "always scan for WiFi blah blah" enabled in WiFi advanced settings? If so, turn it off.
---------- Post added at 04:42 PM ---------- Previous post was at 04:41 PM ----------
Wait....one minute wakelock? How much total a day?
Click to expand...
Click to collapse
No I don't have that option enabled.
Yes the wakelock gets higher for about 1 minute every time you switch off WiFi.
I am using Tasker profile to switch off my WiFi and mobile data one the screen goes off. However it makes no difference if Taker is involved or not cause manual test gives same result.
So the total amount of time consumed by that wakelock depends on how many times I turn on and off the screen while being at home (out I am using Mobile Data which Tasker controls the same way without that wakelock)
Sent from my XT1052 using Tapatalk

Honestly, WiFi shouldn't cause nearly any drain if there's no related issues. So leaving it on is the best solution.
Chances are connecting/ disconnecting x amount of times a day is causing you more battery drain than leaving it on. On top of the wakelock. Which for your setup could be a perfectly normal wakelock.
I bet leaving it on would obviously get rid of the wakelock....and actually better your battery life overall.. :good:
---------- Post added at 05:13 PM ---------- Previous post was at 05:11 PM ----------
Oh, and same goes for data....though data can use far more battery life up if the signal is not excellent. So disabling data can be smart if signal isn't top notch.
But again, disabling WiFi when screen is off isn't probably helping....more likely hurting.

KJ said:
Honestly, WiFi shouldn't cause nearly any drain if there's no related issues. So leaving it on is the best solution.
Chances are connecting/ disconnecting x amount of times a day is causing you more battery drain than leaving it on. On top of the wakelock. Which for your setup could be a perfectly normal wakelock.
I bet leaving it on would obviously get rid of the wakelock....and actually better your battery life overall.. :good:
---------- Post added at 05:13 PM ---------- Previous post was at 05:11 PM ----------
Oh, and same goes for data....though data can use far more battery life up if the signal is not excellent. So disabling data can be smart if signal isn't top notch.
But again, disabling WiFi when screen is off isn't probably helping....more likely hurting.
Click to expand...
Click to collapse
KJ thanks for the tip. I was thinking about leaving WiFi on but it will not prevent any app that needs (usually that Google stuff to use the connection) - drain battery.
Moreover I was wondering if this is only related to my phone or other owners of Moto can observe the same. The test is pretty straightforward so if you or anyone could test out and let me know I will be glad!
EDIT:
I finally found circumstances under which this wakelock occurs. When the 'Mobile Data' is switched off (i.e. by toggle in notification area) and you switch off Wifi this wakelock appears. It looks like it is searching for alternative source of network connectivity for a minute.
If you turn on mobile data and then switch off Wifi it will not appear or will be there but for a very short time.
Sent from my XT1052 using Tapatalk

Related

[Q] How too improve battery life

I wonder i just bought a new Xperia T (james bond version).
But what i found out is that the phone is really fast empty.
I had a htc one v, and i didnt use my phone and was up to 60-70%,
With my xperia T i will not even make the complete work day (most of the time the phone is in my pocket)
I did do bravia engine off, screen in the middle/dark, auto on/off.
I do have sync on, facebook/twitter but dont the auto one that you can setup with sony
I run the same apps as i did on my htc.. but why is it empty so quick?
Is it a software issue because the phone is so new?
Please post in the correct forum. There's even a sticky about this in the General section.
Thanks
AvRS
Check out the battery life thread.
http://forum.xda-developers.com/showthread.php?t=1913735
There have been mixed results on battery life. Personally my phone has been great on battery life but I'm careful what I install and keep an eye on what might be draining my charge.
If you don't have 5-6 hours screen time and your phone is still discharging within 12 hours or so then it's likely to be an app hammering your battery.
---------- Post added at 07:17 PM ---------- Previous post was at 07:08 PM ----------
You could also try installing CPU Spy to make sure the phone is going into deep sleep mode.
You could also try turning off WiFi when not in use to see if that makes a difference.

Battery backup

Am loving the battery on my Xperia ZR. Am on 4.1.2 now, haven't got the update to 4.2.2 yet.
Wow..
Thats amazing dude. Can you post the screen on time screen shot pls?? Am planning to buy one soon and this would help me.. Thanks :good:
here is the stats for today.. :cyclops:
george101 said:
here is the stats for today.. :cyclops:
Click to expand...
Click to collapse
Lucky .... guy. It's hard for me to believe this 2 days and 3 hours screen time??? wow.
george101 said:
here is the stats for today.. :cyclops:
Click to expand...
Click to collapse
wow you seriously get that backup???
do you have mobile data on all time or just when you need???
Me too. Never thought i would get battery backup like this. I got only a day and a half of battery backup max on my old Galaxy Nexus.
Mobile data always ON now, but also have STAMINA mode activated which cuts off mobile data while screen is off. Also Wifi is automatically deactivated when i leave home and turns on when am back!
Here's my battery backup. Heavy day and I was on the road from morning to evening.
Sent from my C5503 using Tapatalk 2
Standby Loss?
My experience with the battery has been mixed.
The standby time is great. But sometimes i experience abrupt drop in battery level (about 4%) while idling and no background apps, data,bluetooth, wifi all off.
Also, can someone please tell the standard battery loss for following scenarios (in % loss per hour or other time intervals)
1. While using Mobile Data (not WiFi) and browsing on Chrome ( I lose 17-20% battery per hour)
2. Sleeping with STAMINA MODE on. (i lose 3-4% in 6-8 hours overnight)
Any replies or help is appreciated.
What kind of sorcery is this??!! :silly:
GREAT!! :good:
Thought I should update once more.. This time I have more voice calls than screen on time.
Using Opera instead of Chrome, I have seen far less battery usage and also memory usage.
It's better battery life than GNexus for sure. but playing game really drain up the juice
Usually using Calls, SMS, Internet (Jasmine, Twitter, YouTube, Opera) via 3G and Wi-Fi, listening music via BT PowerAmp -
Gaming RealRacing 3 from 96% to 28% -
Good Battery i think.
St_Ranger said:
Usually using Calls, SMS, Internet (Jasmine, Twitter, YouTube, Opera) via 3G and Wi-Fi, listening music via BT PowerAmp -
Gaming RealRacing 3 from 96% to 28% -
Good Battery i think.
Click to expand...
Click to collapse
l love my new phone. l`m just loveit. He have a verry good baterry life comparated whith my old HTC Sensation, doble l can say or more.
Ciao
I just bought the xperia ZR. I haad sgs2 and I was very please with that phone. Recived OTA 4.2.2 as I turned on the phone. Updated.
Screen, design and UI responsivness is just top of the notch.
Camera in low light envirioments is poor, pics are full of noise... You have to play a lot with the settings to get a decent pics. I heard that is a software problem... Well... I hope they fix it soon cause is worst than sgs2 pics which has less MPixl.
Question about stamina mode. I turned on but I do not see it working... Please spare me lessons on how it supposed to work. I do know that. When I turn on the display the H o 3G icon is there as the networks never been shutted. I still receving FB whatssapp notification, and i didn't put any app in the allowed list.
I read that many other guys experienced this sort of problem after updating to 4.2.2
Any suggestions? Is yours working well? So u have always the network logo?
By the way yesterday was first day without stamina the battery hit 13 hrs with 1hrs call and 3hrs screen on. Not bad I might say. But I cant get 1 or 2 days as guys with stamina did....
has anyone tried the mugen power batteries yet? I watched the video showcasing the 4600mah battery and it kinda looks like they doubled the thickness with the new case? I don't think i would want my phone to be that thick so can anyone who has it post comparison pictures, or at least testimonials about the 4600mah and 2500mah ones.
Glitches in Battery Status
After 10.3.1.A.2.67 Update (jellybean 4.2.2), there's been glitch in battery status, sudden drops in battery level. Anybody else experiencing the same?
And Take Screenshot option removed from power option menu? I don't see it after update.
so far didnt experience any battery problem. but screenshot option is no more there. liking this update
Problem in 4.1 too!
sandeep044 said:
After 10.3.1.A.2.67 Update (jellybean 4.2.2), there's been glitch in battery status, sudden drops in battery level. Anybody else experiencing the same?
And Take Screenshot option removed from power option menu? I don't see it after update.
Click to expand...
Click to collapse
I haven't updated to 4.2.2 yet, but I have sudden battery drops (4-8%) with 4.1 JB on C5502. It usually happens when battery is below 40%.
These drops have happened more than 20 times in last 2 months.
I was hoping that this issue will be fixed in 4.2 update?
---------- Post added at 11:07 AM ---------- Previous post was at 11:02 AM ----------
You have updated to 4.2.2
Could you please tell me the size of the update by PC companion? Is it like the FTF( 700MB) or OTA update (200MB).
I have limited data for my connection.
---------- Post added at 11:13 AM ---------- Previous post was at 11:07 AM ----------
Does the screenshot shortcut i.e. pressing power button and volume down together, work on the 4.2.2 update?
DPY! said:
I haven't updated to 4.2.2 yet, but I have sudden battery drops (4-8%) with 4.1 JB on C5502. It usually happens when battery is below 40%.
These drops have happened more than 20 times in last 2 months.
I was hoping that this issue will be fixed in 4.2 update?
---------- Post added at 11:07 AM ---------- Previous post was at 11:02 AM ----------
You have updated to 4.2.2
Could you please tell me the size of the update by PC companion? Is it like the FTF( 700MB) or OTA update (200MB).
I have limited data for my connection.
---------- Post added at 11:13 AM ---------- Previous post was at 11:07 AM ----------
Does the screenshot shortcut i.e. pressing power button and volume down together, work on the 4.2.2 update?
Click to expand...
Click to collapse
1.) I dont see any battery drops in 4.1.2 or 4.2.2
2.) I didn't received any OTA updates. So updated using PC companion(700+ MB)
3.) Screenshot using hardware keys working fine
I am loving this update:victory::laugh:

'Android OS' using a lot of CPU time

Android OS currently has 1:34 of CPU total and 0:32 of keep awake, out of 5:00 on battery (h:mm).
Is this normal for this phone? Seems like an awful lot of both.
I never use Wi-Fi because I have unlimited data but the last two days I tried using it exclusively to see how much it would help battery life and now I'm seeing the exact same thing you are. I'm not sure why this would make a difference but I'm going to try all LTE tomorrow and see if it reverts back. My "android os" has never previously exceeded screen as a battery drain culprit so I'm not entirely sure
Sent from my gPhone
Update with new info. This is after a factory reset.
Is there any way I can track down what is causing this?
I had similar issues with mine. My culprit was Location services being on all the time. I turned it off for a few days and my Android OS was significantly lower.
Preliminary experimentation indicates that the system processes chew up CPU time with Wifi and high-accuracy location enabled, but not with Wifi disabled and high-accuracy location enabled.
I'm now testing with Wifi enabled and location disabled.
Im on same page not sure why, but everything start like thanksgiving day
Sent from my XT1060 using Tapatalk
Yup, I've had this for a few days now. Today, I was actually using the X a lot, so my battery lasted like 8 hours total. Usually I have no problem at all getting through the day. I'm on LTE most of the day, and it was doing fine at first like that, so I don't think that's the reason. I'll try disabling some of the apps that use the location services and see if that helps.
It definitely appears directly related to Wifi. With Wifi off, I don't have the problem at all, regardless of other settings such as location, Active Notifications, etc.
Yeah mine too. I keep WiFi on since I don't have great data speeds.
Sent from my XT1053 using Tapatalk
So what is this about? Bad WiFi driver or something?
jonnythan said:
So what is this about? Bad WiFi driver or something?
Click to expand...
Click to collapse
I really don't know. Even though the CPU is being used a lot, standby time is okay. ~1% per hour. That's still horrible compared to my HTC One.
Something that has me kind of worried is that my N7 running 4.4 also has the same problem. It was great running 4.3 (~.3% per hour), but with 4.4 it tanked.
I hope moto/google releases the 4.4.1 update fixing all this.
I'm having the same problem too. It happened all of a sudden after Thanksgiving. Does this have anything to do with Google Services sucking the battery down?
DroidOnRoids said:
I'm having the same problem too. It happened all of a sudden after Thanksgiving. Does this have anything to do with Google Services sucking the battery down?
Click to expand...
Click to collapse
google services is just location. Turn location to "device only", then that problem goes away. Make sure "Location History/Reporting" is OFF too.
---------- Post added at 06:17 PM ---------- Previous post was at 06:11 PM ----------
Wakelocks for anyone that is curious.
Sent from my XT1053 using Tapatalk
Could it be Motorola Connect? I just started using it after Thanksgiving and that's when the high Android OS usage spiked.
I get the problem even when location services are disabled.
Do you guys use or have Motorola Connect enabled? I turned mine off and after a few hours the Android OS usage went down a bit. I hope I'm right.
I have never used Motorola Connect.
Its the same with cm10.2 & cm11 Roms , android os is always high on CPU usage, so I assume its Google apps that are the cause
Sent on my Moto X
Disabling Moto Connect had no effect.
Why would Google apps use tons of CPU on Wifi but not 4G?
I've never turned on Moto connect. I've turned off wifi scanning from the beginning too. Something is a bit off here.
If someone has a moto forums account, please post it there to see if they can help. I bet there are more people with this problem, just not saying anything.

[Q] wakelocks - battery guru and com.sonyericsson.android.wakeup

Hi guys,
1) what's the function of com.sonyericsson.android.wakeup and why there are so many wakelocks ?
2) is it normal for battery guru to have so many wakelocks ?
3) and also what is up with dropbox ? I use it to upload mobile photos on wifi only.
4) and of course I have 8000x RIL wakelocks. how come ?
https://www.dropbox.com/s/iw72zejun0y2ojr/Screenshot_2013-11-15-10-16-28.png
i have same problem !! also bbm is producing higher wakelock than whatsapp
Search before posting.
http://forum.xda-developers.com/showthread.php?t=2493648
Sent from my C6903 using Tapatalk
Daelyn said:
Search before posting.
http://forum.xda-developers.com/showthread.php?t=2493648
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
the thread you linked to did not offer a solution tho
For fixing thins, and a fix IS needed if your carrier does not have fastdormancy:
http://forum.xda-developers.com/showthread.php?t=2382680
I did it for my phone when i noticed it NEVER deepsleeped.
You need root tho
so how should i know if my carrier have fastdormancy or not ? and if i disabled it as shown in the guide you posted is there any threat or consequence for it to network connection ?
I guess you could google around (i quickly found out that no carrier in Argentina supports it).
Also, if you have thousands of wakelocks like this and your phone does not enter deep sleep... ever... your carrier must not support it
This is a feature for saving battery, that requires both carrier and phone to support it, but it BEATS me why if only the phone supports it... it is unable to learn that the carrier does not and ends up being terribly bad.
cocchiararo said:
I guess you could google around (i quickly found out that no carrier in Argentina supports it).
Also, if you have thousands of wakelocks like this and your phone does not enter deep sleep... ever... your carrier must not support it
This is a feature for saving battery, that requires both carrier and phone to support it, but it BEATS me why if only the phone supports it... it is unable to learn that the carrier does not and ends up being terribly bad.
Click to expand...
Click to collapse
my stats now since unplugging charger from 1 hr ,,com.sonyericsson.android.wakeup 597 times !! so from what u r saying my carrier doesnt support fastdormancy thing ? so it is ok to disabling it ?
As i said, if it is not supported, it is NOT ok to disable it... you MUST disable it
Why don't you download "cpu spy plus" and see if after a few hours of use/screen off time you have any deepsleep time ?
What carrier + country are you on ?
i live in egypt and my carrier is etisalat
i have wakelock detector app
---------- Post added at 10:13 PM ---------- Previous post was at 10:12 PM ----------
i live in egypt and my carrier is etisalat
i have wakelock detector app
can any one explain wakelock detector to me ? it had 4 tabs to choose from
Mohaakotb said:
can any one explain wakelock detector to me ? it had 4 tabs to choose from
Click to expand...
Click to collapse
Wakelock detector is an application that shows you what application is draining your battery (generally speaking). If you look under CPU wakelock, you can see what's been hogging your CPU when your phone is asleep, thus causing battery drainage. If something has like 20 minutes+ then it's causing your battery to drain unnecessarily.
Sent from my C6906 using XDA Premium 4 mobile app
does it calculate when screen is off or while im using the phone ?
See picture for com.sonyericsson.android problem 36 % And 10000 wakeups.!!
So I'm 99% certain from googling that Virgin Mobile in the UK doesn't support this feature, so do I just disable it in Greenify and be done with it?
When you leave your phone not charging overnight how much battery does the phone use on it's own? Turn off wireless connections, try it and reply here.
I lose 1% overnight, max 2%.
EE uk.
Monx
Stock adv kernel.
Using greenify and autostarts, no adverts in apps, all paid for alternatives, no battery promising savers besides stamina mode and the two afore mentioned apps.
if you only have 1% drop overnight then you are going into deep sleep mode.
---------- Post added at 09:02 AM ---------- Previous post was at 08:58 AM ----------
I personally don't have com.sonyericsson.android in my battery list either, only difference is i'm not using the launcher from Sony, I use the google nexus launcher.
Search for Fast Dormancy on Google for the wakelocks! You need root and a root browser so you can adjust system files to fix this problem!
Sent from my C6903 using XDA Free mobile app

Problem with battery in android 5.0.2, someone plz explain to me :(

I don't know why i have this: Cell stand by is draining my battery @@ someone plz help me
Use BetterBatteryStats to pin point the wake-locks. And of course, try to reboot.
Sendt fra min C6603 med Tapatalk
sontran_vietnam said:
I don't know why i have this: Cell stand by is draining my battery @@ someone plz help me
Click to expand...
Click to collapse
use 2g it consumes less battery
I'm using wifi (
Your phone is switched on and connected to the mobile network, and has been for 12h 12m and 9s. I see no problems here.
---------- Post added at 05:31 PM ---------- Previous post was at 05:28 PM ----------
usman_fareed said:
use 2g it consumes less battery
Click to expand...
Click to collapse
The difference is barely worth the bother.
technaudio said:
Your phone is switched on and connected to the mobile network, and has been for 12h 12m and 9s. I see no problems here.
---------- Post added at 05:31 PM ---------- Previous post was at 05:28 PM ----------
The difference is barely worth the bother.
Click to expand...
Click to collapse
I'm using wifi only
your phone is connected to the mobile network.
65% battery drainon me too. 35% at best. i went back to kitkat. if it were google services or something i could have done something but cell standby?? nothing to do about it. just buggy software. unless sony pushes an update (not anytime soon, if ever) or a developer fixes the problem there is no solution.
Me too same problem
Check your screen on time, as you can see in my screens it shows the same, but if I check Screen it shows similar or better values than 4.x.
It is common in various 5.0 phones to show data like that.
Someone above already pointed out that it is just showing that your phone is connected to a mobile network which allows you to make/receive calls
Sony could mask that number which will have 0 impact on battery life. If you think being connected to a mobile network doesn't consume battery because in your previous roms that number was masked then nothing Sony can do about it...
Sent from my C6603 using XDA Free mobile app
After do 2 time hard reset and i don't have this problem anymore ^^ you guys should try it ^^
Mobile radio active is a known bug of Lollipop mobile data connection especially in 4G/LTE.
I'm using C6603 with Sony official Lollipop 5.0.2 ROM, please check my screenshots, disable mobile data then reboot your phone and only connect to WiFi, you'll find the usage time of mobile radio active doesn't increase and there is no battery consumption issue of cell standby even mobile network is connected.
However if you turn off WiFi and connect to mobile data especially 4G/LTE, use it for a while then turn off the mobile data, the usage time of mobile radio active will continue increase and it drains your battery even you close the phone mobile data and connect it to WiFi hotspot.
I don't know why mobile radio active is still be activated and drains lots of battery after I close the mobile data connection. My phone doesn't have this issue if I closed mobile data in 2G/3G mode. In 2G/3G internet mode, the usage time of mobile radio active stop increase if I close mobile data.
I have a temporally solution of this issue:
After you finish using 4G internet mobile data and want to switch back to WIFi connection:
1. Turn on flight mode
2. Close internet mobile data
3. Turn on WiFi then turn off flight mode
The usage time of mobile radio active doesn't increase anymore and there will be not power consumption issue of Cell standby.
I'm appreciated if developer can help to explain and provide possible solution for this issue.
This is a major lollipop bug do a google search on mobile radio active bug and you will see it affects many people across different devices and firmware.
I have had it on both cm12 and now stock but I have to say the actual battery drain on stock is much less.
I found that once mobile data connects the mobile radio active timers never really stop properly so cell standby can show a massively incorrect value suggesting that the system is not returning the mobile radio to it's lower power level.
I have a crap data plan so only enable data when I want to use it, but now on lollipop once I enable it cell standby will work it's way to the top of my battery stats with an insane mobile radio active time. Yet on a day when I stay home and I am connected to WiFi and never use mobile data I get no entry at all for mobile radio active in cell standby and absolutely no battery drain.
Clearing the apps you used (browser, email etc) can also help reduce the drain but the timers still continue.
The name itself is so misleading because mobile radio active can be mistaken for the time your phone has been connected to your provider which it does not represent rather showing the time an app or the system has used your mobile data connection.
Sent from my C6603 using Tapatalk
i'm just using 3g @@
it's not an un-masked feature that wasn't shown before. battery drain is real. in my first two days of using lollipop on z everything was ok, but then sometime i lost 25% of battery as i was sleeping (with everything off and cell standby on gsm only). you probably haven't encountered the problem, but it's sadly real. and no factory reset can solve it, i've done 2 and installed lollipop on a wiped data/cache/system phone....
alexvv said:
it's not an un-masked feature that wasn't shown before. battery drain is real. in my first two days of using lollipop on z everything was ok, but then sometime i lost 25% of battery as i was sleeping (with everything off and cell standby on gsm only). you probably haven't encountered the problem, but it's sadly real. and no factory reset can solve it, i've done 2 and installed lollipop on a wiped data/cache/system phone....
Click to expand...
Click to collapse
Try installing better battery stats and see what is preventing the phone from going into deep sleep. You said you didn't encounter the problem in the first two days so something has changed which is causing excessive drain.
Sent from my C6603 using XDA Free mobile app
mohdsubaie said:
Try installing better battery stats and see what is preventing the phone from going into deep sleep. You said you didn't encounter the problem in the first two days so something has changed which is causing excessive drain.
Sent from my C6603 using XDA Free mobile app
Click to expand...
Click to collapse
of course i installed better battery stats and wakelock detector. they didn't show anything new, just the mobile radio battery drain. not all bugs can be solved and this is one of them. you can't do anything about a faulty recognition of hardware... hopefully an update rolls out sometime soon, if ever.
Does Sony ever test any firmware before bringing it out? With 5 days of testing one would already discover this.... Like the fact that the Z gets Lollipop, bu you end up with a no use phone...
If you have bad mobile signal, then battery consumption will be higher. Also % doesn't show how much battery is consumed but how much % of all apps consumption is taken by this app. Cell standby consumption will be high only if you didn't use phone (other apps) a lot.
Sent from my SM-N910C using Tapatalk

Categories

Resources