Need help figuring out what is causing wakelocks with Wi-Fi - Galaxy S III Q&A, Help & Troubleshooting

I have never been able to figure this out and it has been pissing me off. For some reason when I have Wi-Fi on I have a massive amount of wakelocks. With Wi-Fi off I did not. This has led me to try to disable Wi-Fi in sleep mode. I have it set to NEVER.
Even though it is set to NEVER, Wi-Fi but will active when I have a wakelock. It just reactivates itself even though I have it set not to do so. It reactivates and then my phone wakes up.
So is there any way to log what app is using Wi-Fi and waking up my phone all the time? I don't know why Wi-Fi won't sleep with my phone.

If you are rooted try BetterBatteryStats, otherwise it will be hard to find the reason for the wakelocks.

chrismast said:
If you are rooted try BetterBatteryStats, otherwise it will be hard to find the reason for the wakelocks.
Click to expand...
Click to collapse
Thanks. I have been using that. But I can't narrow down what is using my wifi. I even turn off location services.
This only happens because of wifi. Some services or apps are waking the phone up like crazy because they know Wifi is available. But if Wifi is off the phone doesn't wake up as much.

SlimJ87D said:
Thanks. I have been using that. But I can't narrow down what is using my wifi. I even turn off location services.
This only happens because of wifi. Some services or apps are waking the phone up like crazy because they know Wifi is available. But if Wifi is off the phone doesn't wake up as much.
Click to expand...
Click to collapse
did you check what apps do syncs for data? maybe you can check the period & wakelocks in betterbatterystats when wifi is turned on, the apps should show up or not?

What Router do you have?
Many times, the fault lies with your router.
Try changing Beacon interval and DTIM interval.

Can we have the specific name of the wakelock please?

Related

Auto-sync with wifi/mobile off, wastes battery?

Does having auto-sync enabled with wifi or mobile connection off wastes battery?
I've always wondered that... I'm always turning off auto-sync when I also turn off every data connection. Does it help saving battery or it's pointless?
It does save on battery yes. Disabling all the settings does. Unfortunately it's not practical to run your phone that way for long periods of time.
Why not?
I only turn on wifi/mobile data connection occasionally when I need it, not all the time so...
Nazgulled said:
Why not?
I only turn on wifi/mobile data connection occasionally when I need it, not all the time so...
Click to expand...
Click to collapse
If WiFi and mobile data are disabled it shouldn't make a difference whether sync is enabled then - however it may still send requests out to check for data connection and therefore drain battery.
I do exactly the same as you but for a business customer who needs e-mail on the go it is impractical and i'm sure there are other examples too.
Sure. In my case it's not though...
ive noticed that every now and again even with wifi/data disabled i see a flash in the top notification area of the sync logo. so i disable mine too when turning of data. i never saw it in 1.5 though

I have a problem with Wifi sleeping.

I have wifi set to NEVER sleep. But no matter what I do, the phone keeps turning off wifi every time the screen is off for more than a minute. Why? I tried doing a hard reset, it didn't fix the issue. I saved the Advanced Settings after I changed the sleep policy.
MultiKoopa said:
I have wifi set to NEVER sleep. But no matter what I do, the phone keeps turning off wifi every time the screen is off for more than a minute. Why? I tried doing a hard reset, it didn't fix the issue. I saved the Advanced Settings after I changed the sleep policy.
Click to expand...
Click to collapse
1. check ur battery profile
2. check to see if any other app is doing this. i had 'super power' on mine doing this for me; got this app when I restored my data from captivate to this phone. I had to disable the option in super power, and since then its not doing this.
Huh. I'll try performance mode.
But that still doesn't explain why it would turn off the phone's wifi capabilities completely after a certain time.
And the info for the battery profile doesn't mention wifi.
Whoops. posted twice accidentally
i've had wifi sleep issues rom day one with a wpa2 enterprise network. It refuses to join after the first time, and eventually sets the network to disabled. I'm far from impressed. I wish a hotfix for all 2.2 installs would be released
Well, that was it. The battery profile was the problem. Thanks.
Now if only I could figure out why the phone absolutely refuses to download apps from the market faster than around 200 kb/s, on 3G, 4G or on wifi.
Even on 'performance mode' I am facing this issue. It just keeps disconnecting from wifi. Even if I turn it off and on from widget it doesn't connect. I need to go through settings and to wifi, and then it says "connecting..." and connects.

[Q] Wifi sleep policy bug, wifi not turning off with screen off

Got the galaxy s2 running XWKE7
Under wifi settings>advanced>Wifi sleep policy. selecting turn off wifi when screen is off setting does not seem to take effect.
Tested by pinging it and continues to ping even 5-10 mins after screen is turned off.
anybody else having the same issue ?
Have the same issue, want my wifi to turn off when the screen turns off but wifi stays connected.
Only thing I can think of is that i restored my access point with titanium.
Can this cause any problem and if it can, can I delete the restored settings?
My sleep policy works fine when turning screen off. When i turn on the screen, the wi-fi icon appears after a few seconds. Also the battery usage shows that wi-fi is off when screen is off and phone inactive. Might be related to one of your apps that conflicts with the wi-fi policy. Happened to me when using an app that had options to turn on/off wi-fi scanning.
Sp1tfire said:
My sleep policy works fine when turning screen off. When i turn on the screen, the wi-fi icon appears after a few seconds. Also the battery usage shows that wi-fi is off when screen is off and phone inactive. Might be related to one of your apps that conflicts with the wi-fi policy. Happened to me when using an app that had options to turn on/off wi-fi scanning.
Click to expand...
Click to collapse
Weird, will have to check this up.
But as far as I know I don't have any other app that manages wifi.
As you can see in my screenshot, wifi is on at all time even when sleep policy is set to sleep when screen off.
Currently I'm not connected to any wifi since I don´t have any in range at work but it looks exactly the same when I´m connected to my home network.
Sp1tfire said:
My sleep policy works fine when turning screen off. When i turn on the screen, the wi-fi icon appears after a few seconds. Also the battery usage shows that wi-fi is off when screen is off and phone inactive. Might be related to one of your apps that conflicts with the wi-fi policy. Happened to me when using an app that had options to turn on/off wi-fi scanning.
Click to expand...
Click to collapse
Hi, I have the opposite problem, I don't want my WF turns off when is sleeping. I remember that a program ask me to turn WiFi in energy save mode but I cannot remember which app and I have no clue how to go back...
Any help?
Tks a lot!
Max
maxgajo said:
Hi, I have the opposite problem, I don't want my WF turns off when is sleeping. I remember that a program ask me to turn WiFi in energy save mode but I cannot remember which app and I have no clue how to go back...
Any help?
Tks a lot!
Max
Click to expand...
Click to collapse
Have you tried setting the sleep policy to 'never'?
Has anyone found a solution to this problem? I did a factory reset (XXKI4) and it was still the same. Screen off, policy set to turn off when screen is off but I can still ping the phone after a few minutes.....?!?
EDIT: I remembered ;-) Had the same thing on my original Galaxy over a year ago.
Needed to edit a database:
http://forum.xda-developers.com/showpost.php?p=7998204&postcount=459
Cant save sleep settings.....
I have a slightly stranger problem that's just started. I'm aware of the situation where wifi takes 15 mins to turn off after screen turns off was never bothered with that aspect.
However, since today I found wifi was staying on continuously - checked in settings & wifi sleep policy had reverted to 'never' - I always had it set to 'sleep when screen turns off'.
The problem now is that I change it to sleep when screen turns off' and 'save' this setting but it's not saving - when wifi goes off & then back on again or if I reboot phone, it reverts to 'never'.
Any ideas folks?
Back-up data and factory reset .
jje
Would like to know this too.
Wouldn't like to back up and reset everytime this happens.
Also couldn't find the files in /dbdata folder as indicated by the Galaxy S thread pointed to.
Is there any other solution?
someone says using static IP will solved this issue but It didn't...
Any news on that?
Sp1tfire said:
My sleep policy works fine when turning screen off. When i turn on the screen, the wi-fi icon appears after a few seconds. Also the battery usage shows that wi-fi is off when screen is off and phone inactive. Might be related to one of your apps that conflicts with the wi-fi policy. Happened to me when using an app that had options to turn on/off wi-fi scanning.
Click to expand...
Click to collapse
Thanks a lot !!! solved
ipkalgrp said:
Thanks a lot !!! solved
Click to expand...
Click to collapse
how did you solved this ?
I have the same problem....
PsyOr said:
how did you solved this ?
I have the same problem....
Click to expand...
Click to collapse
Me too! Any word on that?
Had the same problem, where the battery no longer lasted the whole day.
When I checked under "Settings/ Battery" and clicked on the graph I could see that whilst the phone was sleeping, WiFi was not.
I have done a few "factory resets." All seemed okay to start off with and then after a while I would notice the same problem.
This last time I found that "Google Now" is the culprit.
Just click on the blue Google Icon, under Applications, then bring up the menu, click on "Privacy and Accounts" then "Google Location Settings", then "Location Access" and make sure "Use wireless networks" is not checked. (also available from "Settings/ Location services")
That fixed it for me!!
David.T said:
Had the same problem, where the battery no longer lasted the whole day.
When I checked under "Settings/ Battery" and clicked on the graph I could see that whilst the phone was sleeping, WiFi was not.
I have done a few "factory resets." All seemed okay to start off with and then after a while I would notice the same problem.
This last time I found that "Google Now" is the culprit.
Just click on the blue Google Icon, under Applications, then bring up the menu, click on "Privacy and Accounts" then "Google Location Settings", then "Location Access" and make sure "Use wireless networks" is not checked. (also available from "Settings/ Location services")
That fixed it for me!!
Click to expand...
Click to collapse
Mine is not checked and its still keep 'on' for almost hour...
as far as I know its better to be on wifi instead of data, eat less battery... but anyway I guess its have its own wakelocks...

Keep WiFi on during sleep (Never)

Does anyone else have an issue with the WiFi sleep policy? My WiFi never turns off when my tablet is in sleep mode. I set it to 'never', turn off the screen and no matter how long I wait, it is still connected to WiFi while the screen is off (which destroys the battery now). I have been turning it off manually and putting it into low performance mode every time I turn off the screen, but would like this to be automatic. Any suggestions?
Wont turn off for me also... its killing my battery. I hope a fix is coming soon. .13 has made my perfect tablet a POS.
Wifi is on all the time with nothing turned off and I lost 13% battery over 7 hours. But Im still on .11. I have 5 emails, facebook and weather on push/update amongs other things. Iwould check if something is constantly running in the background and keeping wifi on.
Use Auto Airplane Mode (free on the market). Will disable wifi when asleep. Works well.
Mine never turns off either, I use Juice Defender.
d1ez3 said:
Does anyone else have an issue with the WiFi sleep policy? My WiFi never turns off when my tablet is in sleep mode. I set it to 'never', turn off the screen and no matter how long I wait, it is still connected to WiFi while the screen is off (which destroys the battery now). I have been turning it off manually and putting it into low performance mode every time I turn off the screen, but would like this to be automatic. Any suggestions?
Click to expand...
Click to collapse
eeehmmmm..... when you set it to 'never', it will NEVER turn off wifi. so what you are describing is supposed to happen!
or did i understand you wrong?
Blackwidowman said:
But Im still on .11.
Click to expand...
Click to collapse
And there's why lol
Just putting it out there, but my WiFi state while asleep doesn't seem to do anything one way or another. My battery drains the same amount if I don't actually disable WiFi, and connectivity is never there on wake (even if set to be).
js931 said:
eeehmmmm..... when you set it to 'never', it will NEVER turn off wifi. so what you are describing is supposed to happen!
or did i understand you wrong?
Click to expand...
Click to collapse
Actually its set to "keep wifi awake on sleep" never
The OP did not specify what FW he was on hence I mentioned mine. In your case assuming youre on .13 and got the bug, I think Gary mentioned they had pin-pointed the problem and coming out with a fix by early next week.
Blackwidowman said:
The OP did not specify what FW he was on hence I mentioned mine. In your case assuming youre on .13 and got the bug, I think Gary mentioned they had pin-pointed the problem and coming out with a fix by early next week.
Click to expand...
Click to collapse
Sorry its on .13
Sorry to revive an old thread but has this issue ever been solved? No matter how many times I set "Keep Wi-Fi on during sleep" to "Never", the moment I change wifi access points or turn off then turn on wifi, it reverts back to "Always".
I am running the latest update .21.
Furthermore under "ASUS Customized Settings", "Disconnect network during sleep" has been giving me similar issues as well.
Any input would be greatly appreciated, thank you!
Mine battery widget says that wi-fi is ON all the time when sleeping no matter what is ticked in option. So i turn off wi-fi manually to save battery.
Sent from my Transformer Prime TF201 using XDA Premium HD app
I use Tasker...
Screen on, wifi on.
Screen off, wifi off.
It's automatic, and works great.
I don't mind my wifi being on, with all the apps that run in the background they always on, notifying me of new emails and app updates.
I found out just recently that my tablet was still connected to Wifi, even though the last usage of my tablet was about a day before. I have the disconnect network during sleep enabled and keep Wi-fi on during sleep set to never and I still experience 96% battery usage according to battery widget. Idle is at 4% usage. So I went through the settings, unchecked/unselected, then rechecked/reselected the choices to make sure they're actually selected. BTW, I'm on the latest firmware - 9.2.1.24. I can say it hasn't rebooted for over 265 hours.
hoang51 said:
I found out just recently that my tablet was still connected to Wifi, even though the last usage of my tablet was about a day before. I have the disconnect network during sleep enabled and keep Wi-fi on during sleep set to never and I still experience 96% battery usage according to battery widget. Idle is at 4% usage. So I went through the settings, unchecked/unselected, then rechecked/reselected the choices to make sure they're actually selected. BTW, I'm on the latest firmware - 9.2.1.24. I can say it hasn't rebooted for over 265 hours.
Click to expand...
Click to collapse
9.2.1.24 ??
kevinm2k said:
9.2.1.24 ??
Click to expand...
Click to collapse
TF101, sounds like.
Peter Galbavy said:
TF101, sounds like.
Click to expand...
Click to collapse
in prime forum.. nice! nothing like confusion!
originalnabisco said:
Sorry to revive an old thread but has this issue ever been solved? No matter how many times I set "Keep Wi-Fi on during sleep" to "Never", the moment I change wifi access points or turn off then turn on wifi, it reverts back to "Always".
I am running the latest update .21.
Furthermore under "ASUS Customized Settings", "Disconnect network during sleep" has been giving me similar issues as well.
Any input would be greatly appreciated, thank you!
Click to expand...
Click to collapse
Check this out, I hope this helps a little http://forum.xda-developers.com/showthread.php?t=1674551

[Q] Notifications arrive during sleep

I'm running on stock 4.1.2 and mobile data is always turned off. "Keep Wi-Fi on during sleep" is set to "Only when plugged in" so the phone should only connect to Wi-Fi when it's in use. It seems that the phone periodically connects to Wi-Fi even though it's been idle for extended periods (e.g. an hour) because it's able to deliver notifications (e.g. gmail and hangouts). Other Android devices that I have, including Nexus devices with the same settings don't deliver notifications until they are "awoken".
This might also explain where a lot of battery goes. Does anyone else experience this and does anyone know if other phones/brands/models behave like this?
I presume you got an app that keeps waking the phone up every so often. Which then enables Wi-Fi to activate. Or an app stopping your device from sleeping properly. If phone is on charge then Wi-Fi on all time.
Wrong forum by the way Q&A forum.
Sent from my GT-I9300 using Tapatalk 2
Thanks for the reply and sorry for posting in the wrong place.
I installed Wakelock Detector and I can seen numerous "CPU wakelocks" and "wakeup triggers" but no "screen wakelocks", so I didn't expect a Wi-Fi connection to be made unless I turned the screen on and started using the phone? Perhaps I misunderstand the meaning of "Keep Wi-Fi on during sleep", especially the meaning of "sleep"? And, it still doesn't explain why other devices with the same apps installed don't behave this way. That's why I wondered if it was something to do with mods that Samsung have made to the software?
Markanski said:
Thanks for the reply and sorry for posting in the wrong place.
I installed Wakelock Detector and I can seen numerous "CPU wakelocks" and "wakeup triggers" but no "screen wakelocks", so I didn't expect a Wi-Fi connection to be made unless I turned the screen on and started using the phone? Perhaps I misunderstand the meaning of "Keep Wi-Fi on during sleep", especially the meaning of "sleep"? And, it still doesn't explain why other devices with the same apps installed don't behave this way. That's why I wondered if it was something to do with mods that Samsung have made to the software?
Click to expand...
Click to collapse
The meaning of "Sleep" in Android is when the CPU is in a mode called deep sleep, the device is set to a really low power setting so it will just run, apps can wake the device up ie take it out of deep sleep if they need to sync with a server, etc and this is what a wake lock up, an app waking the device up, and as the device is out of deep sleep for those few seconds it can switch wifi on, I personally keep wifi and mobile data on all the time so I don't know much about it.
Thanks, it looks like I have misunderstood the meaning of "sleep". I do have apps that would run periodically.
For example I use SugarSync, which I have set to only backup while on Wi-Fi and when the device is plugged in. I assume that it will have a timer set (or cron job in the old speak) so that the app can run and check for the required conditions before attempting to backup? I guess when this happens, Wi-Fi might connect and any other app that wants Wi-Fi (like Gmail or Hangouts) would take advantage of the connection? I suppose that my older devices (that run Android 2.3) might not have time to connect and so don't get the notifications that the Galaxy S3 does?

Categories

Resources