WiFi not turning off during sleep - Nexus 4 Q&A, Help & Troubleshooting

I'm on stock 4.2.1 and was trying the options to turn wifi off during sleep (settings>wifi>advanced) to measure battery life. However if I set that option (tried both - only on when plugged in and always off) and later check the battery stats, it shows that wifi was on the whole time. Seems like a bug - anybody else have this issue or is it just me?

Related

[Q] Sudden battery drain

Has anyone else experience sudden battery drain on their A500?
I have three instances -- one I forget which ROM, one with Taboonay, one with stock ROM (3.1); all with HV kernels (2.2 x 1 and 2.5 x 1) -- where I leave my A500 and return some hours later (not more than 12) with the tablet off and the battery at zero. The battery stats show a slow drain for a few hours, and then a line straight down to zero. The breakdown doesn't show any suspicious app usage (majority is tablet idle), no "mobile data drain" or anything like that.
Anyone else run into this. I've tried a search without any luck.
I am having the same problem on a stock tab.
I have rooted and used Titanium to freeze unwanted apps - bit otherwise it is a standard tab. I suspect that wifi is not turning off even though I have it set to turn off with the screen (airplane mode is always on). I am trying to confirm that wifi staying on is causing this....
In the wifi settings you can choose to
1) leave wifi always on (default) or
2) only leave on while charging or
3) auto off, when display goes off
I'm using the 3rd one, and battery consumption improved!
But you have to wait some seconds after switching on again, until wifi is available.
This isn't slow wi-fi type drain that I'm seeing. It's rapid, from something to zero, straight line down on the battery use graph type drain.
Hopefully, with a change of kernel and slightly less OC'ing, it will disappear...

[Q] Bluetooth GPS Disconnecting when screens off

Running a Nook Color with CM7.1 stable. Kind of an odd issue here, I have two different Bluetooth GPS devices, and when they are paired to the Nook and I turn my screen off and then back on, it loses the connection. The only way to reconnect the devices is to restart the Nook, as it fails to connect after the screen is brought back up. I have found that if I have the Nook plugged in for power, this issue does not happen. I have tried multiple GPS apps, reflashed CM7.1 multiple times, but still have no success unless I have the Nook plugged in, or I just ensure the screen doesnt go to sleep.
I really need this to work, as I'm using this as a pilot, and I can't have the screen on the entire flight as it will drain the battery quickly. I swore it used to work before, but I know I had issues with it, and maybe now realize what was causing those issues. On a side note, my friend has also tested everything I have done, but his works consistently and reliably regardless if he leaves the screen off, or turns it on and off repetitively. Hopefully someone may have an idea!!
Thanks in advance.
So noone has any thoughts or ideas at all?
Well seeing as it doesn't happen when your plugged in that would make me think that it has something to do with the fact that WiFi turns off when the screen is turned off. The Bluetooth and WiFi are on the same module i do believe. The default setting for WiFi is to stay on all the time while plugged in and turn off when the screen is turned off while on battery.
My suggestion would be to turn the WiFi to stay on all the time and see if that changes anything. Go to WiFi settings --> menu --> advanced --> WiFi sleep policy -->never. That would be my suggestion, hope that works for ya!
jgore43 said:
Well seeing as it doesn't happen when your plugged in that would make me think that it has something to do with the fact that WiFi turns off when the screen is turned off. The Bluetooth and WiFi are on the same module i do believe. The default setting for WiFi is to stay on all the time while plugged in and turn off when the screen is turned off while on battery.
My suggestion would be to turn the WiFi to stay on all the time and see if that changes anything. Go to WiFi settings --> menu --> advanced --> WiFi sleep policy -->never. That would be my suggestion, hope that works for ya!
Click to expand...
Click to collapse
That's what I was thinking too. It seems that when NC goes into deep sleep Bluetooth will lose connection. By removing deep sleep you should be able to stay connected, although your battery will drain faster than with deep sleep on, it should have a better life with screen off than on.
Well I appreciate both of your responses. However, I should have mentioned that I do already have Wi-Fi set to always stay on/never sleep. Any other suggestions?

baseband_xmm_power kernel wakelock drains my battery!

Hi, I don't know what to do, I'm running 4.2.1 stock on my 32 3G N7. The tablet cannot go in deep sleep because of constant baseband_xmm_power kernel wakelocks. I tried factory reset, but the problem persists. For example with 5h the screen off, there are >4 hours partial kernel wakelocks.
Same here and I'm sick of it. Sometimes my Nexus manages to enter deep sleep but I still see a significant percentage of that kernel wakelock. It also happens that wifi won't shut off on sleep, and I'm talking about when it truly enters deep sleep, and it's correctly configured.
I have the same problem. Battery life is really poor due to this. My LP core is running at full tilt for at least half the time the screen is off, preventing deep sleep.
I found a suggestion that turning on flight mode and then rebooting might help, but I think the problem recurs pretty quickly if not immediately.
Saw a post that said it's due to the modem switching power levels when radio reception is poor. That would definitely make sense in my case — 3G reception fluctuates a lot at home and I am constantly losing connection. I have removed the SIM and will check it in the morning to see if there's any improvement. (Using BetterBatteryStats).
Hope this bug gets fixed in the next update. Almost thinking I should have got the vanilla wifi model
________________
EDIT: Removing SIM overnight doesn't help. Over the course of 8h screen off, baseband_xmm_power was active for 7h 46m!
I'm having the same problem, only when mobile reception is poor. Unfortunately, my mobile coverage at home is currently near-zero, which makes using my tablet as an alarm clock a dicey proposition unless I plug it in overnight.

Wi-Fi Not Allowing Deep Sleep

So I posted this in a different thread but figured I would post it here to see if anyone could duplicate my findings. I have a Note3 from T-Mobile and for whatever reason leaving the Wi-Fi on will not allow the phone to go into deep sleep mode. I noticed when I was down to 40% battery after 10 hours with only one hour of screen on time. After running some tests I had only 2 minutes of deep sleep those entire 10 hours (tested using BetterBatteryStats) I tried setting "Keep Wi-Fi on during sleep" to Never and unchecking "Always allow scanning" under advanced network settings but neither of them fix the issue. In fact, after several tests I concluded that setting never for "Keep Wi-Fi on during sleep" wasn't even functioning as my access points still showed the client connected while the phone was asleep.
Can anyone else confirm this issue is actually a bug and not just my phone being defective?
Here's my original post on the topic regarding how I found the problem and what I have tested so far:
OK so after only 2 days of owning this phone (got it late Monday night, the T-Mobile variant) I finally figured out why I'm getting such bad battery, and I suspect the same thing may be happening for the other people in this thread. Hopefully this information helps at least one person.
My battery stats was almost identical to all the other users in this thread that had bad battery, I would get barely around 10-12 hours on the phone with less than 2 hours of screen on time. After using multiple apps to track down the issue I finally got what it was.
Wireless. Yes, wireless was my cause. But the thing is Wi-Fi didn't show up at all in any of the battery apps so I assumed it was a non issue. I've had other phones and have always kept the wireless turned on the entire time without problems. The basic problem is not that Wi-Fi is using power itself but it's that by default the phone cannot enter deep sleep while connected to Wi-Fi. This is why trying to use apps like BetterBatteryStats will lead you nowhere initially (though they were useful in finding out what was causing the issue) You can discover this by turning on Wi-Fi and connecting the phone to a charger, then disconnecting it so your BBS information will reset. Then power off the screen and power it back on after 10 minutes. You'll notice in the other section that deep sleep will have less than a minute time while awake probably has close to 9 minutes, if not more. This is with everything else turned off, almost no apps, and no special Samsung stuff enabled.
Under Apps > Settings > Wi-Fi > Menu > Advanced there are two options that should help this: "Keep Wi-Fi on during sleep" and "Always allow scanning" I set the "Keep Wi-Fi on during sleep" to Never and unchecked Always allow scanning and rebooted the phone. And low and behold...nothing. Yes, these options don't work (at least not to fix this problem) The phone still won't enter deep sleep mode while the wireless is enabled. Based on my company's wireless devices I can see that even with the screen off for well over 10 minutes it still shows connected as a client meaning the wireless is not turning off properly while it's in sleep mode. Or perhaps it can't go into sleep mode because the wireless is on which stops it from going into sleep mode and turning off the wireless. My guess is that it's a Samsung bug.
The reason why there's so many people here to get good battery usage is because they're either used to turning Wi-Fi on only when needed and keeping it off. You'll also not notice it if you have more than 6 hours of screen on time because you could easily assume that it would make sense that you phone would only last 10 hours total with that much screen on time, even though it should have technically lasted 20+ hours with only 6 hours of screen on time if the phone could have entered deep sleep.
So what's the real fix for this? Unless it's by design my belief is that it's a bug and won't be fixed until Samsung/T-mobile notices. I can't test to see if the same thing happens on other carriers so if someone feels like testing this theory out it would help.
For now, I guess we're just left to manually turning Wi-Fi on only when needed and leaving it off in all other cases. For those that have the T-mobile variant, make sure you also go into Settings > General > Backup and reset > Collect diagnostics and uncheck the "Allow Diagnostics" as that will probably be the highest offender of Partial Wakelocks (it'll show up as com.carrieriq.tmobile.wakelock or System Manager Application)
If anyone wants more information on my testing let me know!
Click to expand...
Click to collapse
That's because the 'Keep WiFi during sleep: Never" setting only disconnects, it doesn't shut down the WiFi radio.
You're going to have to use a manager (Like Deep Sleep Battery Saver).
Or just hit the toggle yourself... If you're going to keep it disconnected in sleep anyway, just swipe down the notification bar and hit the bloody toggle.
ShadowLea said:
That's because the 'Keep WiFi during sleep: Never" setting only disconnects, it doesn't shut down the WiFi radio.
You're going to have to use a manager (Like Deep Sleep Battery Saver).
Or just hit the toggle yourself... If you're going to keep it disconnected in sleep anyway, just swipe down the notification bar and hit the bloody toggle.
Click to expand...
Click to collapse
The problem is that it doesn't disconnect, the access point 100% shows it is connected and transferring data every now and then. But the real issue isn't weather it disconnects or not but it's the fact that Wi-Fi will not allow the phone to go into deep sleep mode. For now I am fine with switching Wi-Fi off and on as needed, but with no other phone have I needed to do this before and definitely seems like a bug.
But regardless, what I'm trying to figure out if this is a legit bug that I should submit to Samsung/T-mobile or if it's just my phone and I should ask for a replacement. If anyone has BetterBatteryStats and could test this with their Note3 that would help.
My stupid phone has just started this same issue!!!! Freaking annoying, after only 8 hrs from 100% charged state, the battery is at 46% with only 26 mins screen ontime, I checked out that the phone never goes into deep sleep. What is going on and what can be causing this? Did you manage to resolve your issue?
PS I checked out wakelock detector but doesn't tell me a thing, as what program is keeping the phone awake all the time. Starting to hate this phone and miss my S3
What is your GPS accuracy setting set to? GPS, Wifi or Networks? Try setting it to GPS only.
GameBoiye said:
So I posted this in a different thread but figured I would post it here to see if anyone could duplicate my findings. I have a Note3 from T-Mobile and for whatever reason leaving the Wi-Fi on will not allow the phone to go into deep sleep mode. I noticed when I was down to 40% battery after 10 hours with only one hour of screen on time. After running some tests I had only 2 minutes of deep sleep those entire 10 hours (tested using BetterBatteryStats) I tried setting "Keep Wi-Fi on during sleep" to Never and unchecking "Always allow scanning" under advanced network settings but neither of them fix the issue. In fact, after several tests I concluded that setting never for "Keep Wi-Fi on during sleep" wasn't even functioning as my access points still showed the client connected while the phone was asleep.
Can anyone else confirm this issue is actually a bug and not just my phone being defective?
Click to expand...
Click to collapse
Well, your issue looks pretty similar to mine, which I solved with this Xposed mod (you could give it a try if you're on KitKat): http://forum.xda-developers.com/xposed/modules/mod-wi-fi-deep-sleep-t2752947. I was experiencing that even when "Keep Wi-Fi on during sleep" is set to Never, Wi-Fi still was awake most of the time according to battery stats.

WiFi always on Problems for 6.0.1

So I was using PA and now on PN. FK then and now EX kernel.
I still have the same problem. The Wifi is ALWAYS ON even after I turned it off or after I placed it on airplane mode.
Now before you all say turn off Wifi Scanning, Bluetooth scanning and keeping WiFi on or off.
Like in Pictures:
-Bluetooth and Wifi Scanning is off
-Keep Wifi ON during sleep only when plugged in
The only way I can turn it off is to restart my phone or reconnect to a network and disconnect.
I notice if I exit the house and turn off Wifi some time later the WiFi will be off but seen in detail battery stats and stays that way till I connect to another network and disconnect properly, Or I leave & turn off the Wifi properly before I exit the Wifi range.
WHAT IS THIS PROBLEM?
It''s kinda that I need to always do this. If I forget and I have a large bar of WiFi and need a restart. -_-
I have average battery life 4hours SOT and get 12hours of Battery life. Clean flashed PN but flashed a back up of my Apps from Titanium.
Thanks guys in advance!!
Hope someone can give me a solution for this!
Have a nice one!:good:

Categories

Resources