[Q] Weird Wifi behaviour, can't identify why - Nexus 7 General

Hi,
I've been having some really weird Wifi behaviour since 4.2.1.
I'm using stock Rom, rooted, and I have Wifi sleep policy set to "only when charging", so it should go to sleep when idle.
I think something is waking it up, not sure what. And it's struggling to go back to sleep (or at least this is what it looks like).
Attached is the really weird graph of the battery stats, you can see an example of how Wifi is switching on/off like crazy. Also attached BBS logs from idle. Any help would be appreciated.
Thanks

Sounds like maybe a rogue app doing something to wake,maybe a sync issue.Try shutting off auto sync and see if it helps.
Sent from my SGH-I927 using xda app-developers app

So far no luck, but this was my assumption too. Any way to track down the rogue app?

Id maybe start with obvious ones like facebook and apps that have wifi permissions.I cant really say as I dont know what you using.Also if you are using an email client that accesses wifi to sync.
Sent from my SGH-I927 using xda app-developers app

I've found Wifi doesn't turn off for 5-15 minutes and sometimes NEVER since ICS. I personally use Tasker to turn off wifi at screen off, but Green Power or Setting Profiles Lite are two other options to do this, and actually do it.

IMO, if your device is going into deep sleep, it should be fine for battery and otherwise.
As far as the Wi-Fi behaving that way, look at Google maps, latitude and location reporting. They're the problems for me and I'm working on them as well.
Try diagnostic apps which tell you which app is using your Wi-Fi and check it out..
Sent from my Nexus 7

Related

Automated GPS on/off and sync on "autopilot"

Hi,
I puzzed why entering navigation (Google or Premium...same issue) doesn't automatically turn on the GPS and disable it on exit. The car panel setup allows for automatic turn on of bluetooth, but again no automation of GPS turn on/off. So I'm wondering if there an app out there, that will turn on GPS when charged and disable it again when disconnected from the charger? That would do the trick IMO.
Also, if anybody knows of an app that will automate syncing of the standard accounts (i.e. stock, exchange, facebook etc.) depending on time of day and weekday, I'm very interested? Exchange ActiveSync could be ex. be synced "upon new mail" during 8-17 and in user defined, reduced intervals (hourly, every 2 hours etc.) or completely off for the rest of the day/night. You might want to get updates on facebook, gmail, sense, news etc. a couple of times during workhours, but then more frequently when off work. You might change setting for the weekend and hollidays. Could be a very neat app - if it's out there?
Thanks guys!
If you leave GPS enabled then when you open nav software it turns on and when you close it it turns off, there is no extra battery drain from leaving it enabled all the time, at least none that I have found.
I don't think many people appreciate this. Lots of posts about GPS disabled to save battery life. As you write, on GPS-aware apps turn on GPS so the battery drain is minimal.
My experience of the Desire HD is that the GPS and wi-fi radios are very efficient in terms of battery life but the 3G radio is absolutely and utterly fecking terrible and runs the thing down at an astonishing rate. HTC need to re-engineer this software urgently.
tasker
Hello,
I use "tasker" to define a task to switch on/off the GPS when running a specific application. works fine!
Thomas
goofy584 said:
Hello,
I use "tasker" to define a task to switch on/off the GPS when running a specific application. works fine!
Thomas
Click to expand...
Click to collapse
+1 for Tasker.
I don't use it to turn GPS on/off as you don't need to - just leave it enabled and it'll only be called upon when an app needs it.
What I do use Tasker for though is turning auto-sync on and off depending on the time of day. I believe that is similar to what you're looking for?
Sent from my X10i using XDA App
SunjinSak said:
+1 for Tasker.
I don't use it to turn GPS on/off as you don't need to - just leave it enabled and it'll only be called upon when an app needs it.
What I do use Tasker for though is turning auto-sync on and off depending on the time of day. I believe that is similar to what you're looking for?
Sent from my X10i using XDA App
Click to expand...
Click to collapse
Will try to leave the GPS on to check if it in fact doesn't affect battery drain unless called upon by an app.
Tasker sounds very intesting so thanks a lot!

WiFi doesn't reacquire from sleep. (stock/rooted)

Dunno if this is a common issue as I couldn't find any other mention of it.
Basically, if my O2X has been asleep for a while while I'm at home and I take it out of sleep, it doesn't automatically reconnect to my home network, even though it's set to "never sleep". I have to either disable and re-enable WiFi or leave network notifications on so I can establish the connection from the available networks list.
Has anyone else got this issue or know of a resolution for it?
At least while on MoDaCo Fr12 it seemed to reconnect more quickly but I'm getting 48 hours out of the battery back on stock so would rather start there.
Cheers
Sent from my LG-P990 using XDA App
Same here. I'm rooted, got CWM but still at stock. It is either being rooted or the freezing of a certain app.
Mine is rooted and from the moment i push the lock button it already is connecting after 2 seconds. Problem could me an app.
What apps did you install that require a wifi connection ?
kefjeuh93 said:
What apps did you install that require a wifi connection ?
Click to expand...
Click to collapse
None really. Auto-sync is usually off and everything else is "on-demand".
Might try a full wipe and just re-install a few apps at a time with titanium.
Hmmmmm.
Sent from my LG-P990 using XDA App
Hi,
Same prob here. Sometimes it reacts, sometimes it dont. And if it's stuck I have to reboot.
mcnob said:
None really. Auto-sync is usually off and everything else is "on-demand".
Might try a full wipe and just re-install a few apps at a time with titanium.
Hmmmmm.
Sent from my LG-P990 using XDA App
Click to expand...
Click to collapse
i have same settings, maybe a hardware fault ?
But try to wipe first and see what happens
try app, blade wifi fix from market you must be rooted
happens to my x10 as well sometimes. blade wifi fix does help a bit, although you can always activate/deactivate wifi manually but yes it is annoying.
try changing wifi sleep policy to never, it won't disconnect but you'll notice some battery drain.
This is a known issue with some access points. The G2X forum also has a thread about this.
Sent from my LG-P990 using XDA App
I have this problem too. LG? Bad, bad boys...

[Mini 2 GT-S6500] Reboots caused by wifi

No-one appears to have had this issue on this phone yet, and not for this exact reason, which makes me think it's only a small error somewhere. (I hope)
Ever since I got it about a month ago, even before I rooted it or did anything to it, it would randomly reboot with no particular pattern. I've since discovered it's specifically caused by the wifi being left on, and the phone left locked for more than about 15 minutes, regardless of whether any apps are open at all. All in all it only happens when wifi is on, and it's not charging or being used. When being used it never happens, and when it's plugged into USB or the wall charger it never happens, and never when just network data is on, no wifi. And I can leave it with both wifi and data off and it will happily standby for it's whole battery life with no issues.
What is the wifi doing when I leave it locked? does anyone know specifically why it causes this?
Anyone? I use wifi way way more than my data, i want to be able to put it down for 10 minutes!
Sent from my GT-S6500 using xda app-developers app
Try updating the firmware. This might help...
Sent via XDA Premium
There may be a corrupted apk somewhere that would be active only when Wi-Fi is on (note that there are some services that are still running in the background even if you think they are none , they are not that easy to find and will most likely restart if you kill them , but it's ok because they need to run) . Reflashing the stock firmware with Odin should do the trick.
Also I presume you haven't overclocked it . If you did , lower down the max frequency a little .
FInally , are there any heating issuses when this happens ?
i've had the same issue with the mini 1. it was gone after i have flashed the stock firmware on it.
my mini 2 has no reboot problems (yet).
Try setting wifi sleep policy to "never" of you have at option in settings>wifi>advanced.
Alternatively, it could be called keep wifi on during sleep, turn it to "always"
Sent from my GT-S5570 using xda app-developers app
tietganFTW said:
Try setting wifi sleep policy to "never" of you have at option in settings>wifi>advanced.
Alternatively, it could be called keep wifi on during sleep, turn it to "always"
Sent from my GT-S5570 using xda app-developers app
Click to expand...
Click to collapse
Yes! this fixed it! thankyou so much man, I hadn't ever discovered that there was an advanced section to the wifi, finally I can leave my phone unattended without worrying about it rebooting!

nexus 7 not killing wifi during sleep after updating to 4.2.1

I have selected to never keep WiFi on during sleep yet now the tablet continues to run the WiFi as you can see in the pictures. This has forced me to use airplane mode when I am on the go because otherwise the tablet just keeps WiFi on and burns the battery extremely quick. This has been a problem since I updated to 4.2.1. I am not rooted completely stock. A solution would be great because this sucks right now. I have tried clearing the cache in recovery but that didn't solve the problem.
I'm running the latest Paranoidandroid ROM and thought that was the problem. I can't yet post to that developer forum so I was just waiting for the next beta.
I guess it's a problem with 4.2.1 then.
-PMS
jetguy35 said:
I have selected to never keep WiFi on during sleep yet now the tablet continues to run the WiFi as you can see in the pictures. This has forced me to use airplane mode when I am on the go because otherwise the tablet just keeps WiFi on and burns the battery extremely quick. This has been a problem since I updated to 4.2.1. I am not rooted completely stock. A solution would be great because this sucks right now. I have tried clearing the cache in recovery but that didn't solve the problem.
Click to expand...
Click to collapse
If you don't find a solution you may want to try DataEasyPro from the market. It kills both 3g and wifi as soon as the screen is off and then runs a user defined schedule to turn on 3g or wifi every now and the for a few seconds to keep you upto date with your social world. Works great. There is even a widget so you can turn off the schedule when you are downloading or updating from the play store.
https://play.google.com/store/apps/details?id=cb56.dataeasypro
PsychoMcSatan said:
I'm running the latest Paranoidandroid ROM and thought that was the problem. I can't yet post to that developer forum so I was just waiting for the next beta.
I guess it's a problem with 4.2.1 then.
-PMS
Click to expand...
Click to collapse
I think it is a 4.2.1 problem. Its hard to say how wide spread it is though because I have only seen a handful of posts about this issue though. To me, this issue is unacceptable. I should not have to enable/disable airplane mode to conserve battery. Especially when the previous version of android prior to the 4.2.1 update handled WiFi sleep settings without a problem. Hopefully a fix will be here soon. My tablet used to have superb battery life without me constantly monitoring it. Now I feel like I have to keep double checking that I remember to use airplane mode so that I don't go to use the tablet and find a nearly depleted battery.
Dmwitz said:
If you don't find a solution you may want to try DataEasyPro from the market. It kills both 3g and wifi as soon as the screen is off and then runs a user defined schedule to turn on 3g or wifi every now and the for a few seconds to keep you upto date with your social world. Works great. There is even a widget so you can turn off the schedule when you are downloading or updating from the play store.
https://play.google.com/store/apps/details?id=cb56.dataeasypro
Click to expand...
Click to collapse
This app shows as not compatible for me when I used the link.
jetguy35 said:
This app shows as not compatible for me when I used the link.
Click to expand...
Click to collapse
I recommend automate it, I have a couple of rules set to turn WiFi of with the screen (with a 5min delay), then turn Wi-Fi back on when the screen turns on. There's plenty of other settings and rules to play with as well.
https://play.google.com/store/apps/details?id=AutomateIt.mainPackage
Sent from my Nexus 7 using xda app-developers app
In had the same issue. I found Google maps to be the culprit.
It defaulted back to location reporting.
Check Google now sync, maps and currents.
Sent from my Nexus 7 using xda app-developers app
It's not google maps itself, it's the android location service. It's always collecting data even if your phone or tabscreen isn't on. This is pretty anoying since google only let you choose between agreeing to run the service in the background or not using it at all. Stupid! How about collecting data only when the device is in use?
Same here. There is a bug report on Google about it.
Sent from my Nexus 7 using xda app-developers app
Ah this is interesting; as last night my battery was on 53% and I am sure I charged it fully previously...... Am on stock too but have rooted.
Might just switch the tablet off all the time for the time being.
I'm on stock rooted 4.2.1 and mine is fine. Strange.
Sent from my Nexus 7 using xda app-developers app
RKight said:
I'm on stock rooted 4.2.1 and mine is fine. Strange.
View attachment 1552034
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
WiFi turns off here also, which means its working as intended, what is strange is is it not working for some people, I'm also on stock rooted 4.2.1.
what is the OP using? Are there any apps installed/running on the OPs device that can keep the WiFi alive?
Sent from my Nexus 7
jersonf said:
what is the OP using? Are there any apps installed/running on the OPs device that can keep the WiFi alive?
Click to expand...
Click to collapse
I highly recommend using an app called Better Battery Stats. You can find the free version here on XDA. It'll tell you if there is an app causing a wakelock. I used it to troubleshoot my Rezound and I'm getting a solid 4-5 hours of screen on time with the extended battery on that because it helped me lock down the apps that were killing my battery.
Sent from my Nexus 7 using xda app-developers app
I'm stock rooted and mines don't turn off neither.
Sent from my Nexus 7 using xda app-developers app
Hmmm. Just checked PA beta 7 and it's doing it too. Wifi on always.
A custom kernel would probably fix that.
Sent from my Nexus 7 using XDA Premium HD app
RKight said:
I highly recommend using an app called Better Battery Stats. You can find the free version here on XDA. It'll tell you if there is an app causing a wakelock. I used it to troubleshoot my Rezound and I'm getting a solid 4-5 hours of screen on time with the extended battery on that because it helped me lock down the apps that were killing my battery.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Although my wifi is turning off I give thanks for pointing me in the direction of this app.
http://forum.xda-developers.com/showthread.php?t=1179809
Sent from my Nexus 7
I was having the wifi on issue as well. Just bought my N7, stock 4.2.1 and not rooted. I followed the tip in point four of this post, which details a simple set up using Tasker, where the unit turns the wifi on and off after the screen turns on or off respectively. The reason for the 10 second delay as is detailed in the link, is to allow for the turning on of your N7 to check the time or other reasons, and then quickly turn it off without the wifi on task being activated.
the screenshot below shows my wifi being stuck on while in sleep mode, even with it set to be never on during sleep in the settings, and the change in behavior once the 2 Tasker profiles we set up.
Cheers
Those of you having issues, have you tried the "only when plugged in" setting? Not sure if it would really matter but that's what I use and mine turns on and off just fine.
Sent from my ADR6425LVW using xda app-developers app
RKight said:
...have you tried the "only when plugged in" setting?
Click to expand...
Click to collapse
Testing that now. Turned off Tasker, and set wifi to the "only when plugged in" setting. It's only been about 30 minutes, but so far it looks like it's behaving the same as before, as in keeping wifi on while in sleep. I'll Let it sleep for a few hours and see what the chart shows.
Cheers
EDIT: So I let my N7 sit for about an hour after switching the above mentioned settings, and you can see in the screenshot below that the wifi is staying on while the unit is not awake. I've set my Tasker profiles to control the wifi once again.
I know it may be fixed by a factory reset, but frankly I'm more than happy with the way Tasker handles the issue.
Cheers
so 6 months later, I am still getting this problem. However it seems only to be with the last update. The tasker method seems to be working well though.

[Q] WiFi will not turn off

I have noticed that despite my Wifi sleep policy being set to keep on during sleep only when plugged in my WiFi is on absolutely all the time. I am sure that this is contributing to less than stellar battery life but I cannot for the life of me find an app or adb command that will simply tell me what the hell is keeping my Wifi on. I am rooted but my googling has led nowhere, so now I pose this question to XDA.
How do I figure out what is keeping my WiFi on/in general figure out what is draining my battery during standby?
HELP ME!
Thanks.
P.S. I find it hard to believe that this question has not been asked before, but all of the solutions I have found did not solve the issue for me or just did not work on my Droid turbo for whatever reason, sorry if this sounds stupid.
Post a screenshot of your settings screen please.
Wynnded said:
Post a screenshot of your settings screen please.
Click to expand...
Click to collapse
I posted four... I cannot think of any other pages that are relevant.
aka848 said:
I posted four... I cannot think of any other pages that are relevant.
Click to expand...
Click to collapse
Go to your app drawer, tap Settings, post that picture. It will be where you can turn on/off Airplane mode, Wi-Fi, and Bluetooth. We need to be certain that your Wi-Fi is indeed off.
Wynnded said:
Post a screenshot of your settings screen please.
Click to expand...
Click to collapse
Wynnded said:
Go to your app drawer, tap Settings, post that picture. It will be where you can turn on/off Airplane mode, Wi-Fi, and Bluetooth. We need to be certain that your Wi-Fi is indeed off.
Click to expand...
Click to collapse
Oh, Okay.
WiFi is on, my question is what keeps it from turning off when I am not using the phone despite the wake policy being set to "keep on only when plugged in"
For whatever it is worth advanced calling is off and network type is set to global.
Huh...
I've been playing with my settings trying to find an answer. I changed my settings to what you have shown in the screenshots. Additionally, I've turned off some others as well, Location in one case. It appears that if Wi-Fi is on, it's always on.
When I'm at home, or when I'm somewhere I trust the Wi-Fi network, I turn it on and leave it on with it set to stay on even while the device is asleep, because it's my understanding that the Wi-Fi radio uses less battery than the cellular radio. I would think that with your settings, once the device goes to sleep, it would disconnect from Wi-Fi and connect to the cell tower, using more battery and your data plan. I have my Wi-Fi set to Always on so that when my device is asleep I still get email, etc., and I can surf or whatnot. When I leave the house, I manually turn Wi-Fi off so that it's not searching for a network, that's gotta be a bit of a battery drain. I'm not a power user and I easily get a solid two full days from my device.
Had the same issue. Not sure of a permanent fix, but cycling airplane mode is a short term fix.
Sent from my XT1254 using XDA Free mobile app
papstar said:
Had the same issue. Not sure of a permanent fix, but cycling airplane mode is a short term fix.
Sent from my XT1254 using XDA Free mobile app
Click to expand...
Click to collapse
Thanks, I'm going to see if that makes a difference on what my device shows.

Categories

Resources