"Wifi off during sleep" but frequently turns on/off even during sleep? - Nexus 7 (2013) General

Noticed in battery settings that my Wifi turns on and off frequently even when my device is sleeping. Doesn't seem to be affecting battery life but I'm wondering why it does this. It happens on both my Nexus 7 (stock rooted) and my Nook HD+ (CM11). I do have the "always scan for networks" settings off.
Attached screenshot is after I didn't really use my Nexus 7 for about a week.

I would imagine this is caused by certain apps requesting data. For example, your Gmail app may be set to refresh every one hour, which means it needs to use the WiFi to search for new data and download it, if needed. Other apps are similar to that as well, depending on your settings.

If it really miffs you, you can always use tasker and create a task that shuts the wifi (I have it put it in airplane mode since it does several things in one shot) off when the display goes off and back on when display comes back on...will need to be rooted.

Related

Tasker setting for battery saving

Hi,
I thought that I could use Tasker (https://play.google.com/store/apps/...EsIm5ldC5kaW5nbGlzY2guYW5kcm9pZC50YXNrZXJtIl0.) to save battery life. So, what I did was to prepare the following profiles:
a) Disable autosync, enable it to 3 minutes every 30 minutes. Sync only between 6:30 and 23:05.
b) Enable autosync while on AC power, disable when not.
c) Disable wifi, enable it for 15 seconds every 15 minutes so the system would have time to connect to a known wifi if available. Then disable wifi unless its already connected.
d) When a wifi connection starts, do nothing. When it gets disconnected (like when I leave home), disable wifi.
I only use EDGE. I only sync gmail, contacts and calendar.
Before this, I had autosync and wifi on all the time so I believed this setting should conserve battery. Everything works, Tasker app itself is not draining much from the battery (according to Betterbatterystats its really negligible) but still, I have a considerably higher energy loss than with default setting.
Do you know whats the reason for this? Is is caused by the wifi enabling and disabling - taking more power? Is it caused by the fact all sync gets done at the same time? Or why is that?
Im generally happy with the Nexus S battery life but this outcome makes me curious ...
EDIT: My advanced wifi system setting always was "never disable wifi when screen is off". Also, for the purpose of this test, I disabled wifi AP on my router to check just for the outcome of the wifi search.
Check out your Awake time (can find this in BetterBatteryStats), you'll probably notice the phone stays awake for longer than it would normally. Normally the phone would go into a practically permanent "sleep" state, powering nothing but your radio, when the screen is off and doing nothing. It would just wake up every X minutes to autosync or for other alarms (exchange sync, etc) and then go back to sleep. I wouldn't be surprised if it is solely the wifi option.
Depending on the advanced setting in the wifi options, it keeps the connection indefinitely or drops it after a certain amount of time, i think around 15mins - 30 mins. This may need to be changed to fit the circumstances.
Overall though, benefiting from the use of Tasker or similar program for battery life purposes doesn't gain much over what android already does (albeit still with alot of room for improvement).
Well, I should've mentioned this: My advanced wifi system setting always was "never disable wifi when screen is off". So thats not possible reason.
Also, for the purpose of this test, I disabled wifi AP on my router to check just for the outcome of the wifi search.
I basically believed that before, the phone had wifi on and checked around every now and then. And with the new setting, it would check less often, therefore saving battery.
Awake time is about 40 minutes in 7 hours sleep.
EDIT: Maybe it would help to adjust the times better.

[Q] Phone doesn't go into deep sleep + wifi always stays on

This is very annoying, I have spent the whole morning trying to find a solution for this issue. The battery runs out already fast as it is, and now the phone is not
Battery drained about 20% at night by itself. Currently draining about 1-2% per 5 minutes when idle. What do I do? I have looked on various different threads for a solution, but did not find anything to fix this issue.
How do I fix this?
Thanks, in advance.
Also some details.
I had my phone at home, I prefer the phone to use WiFi networks when syncing and updating, but to have phone turn them automatically off when not using them, that is when the phone is locked and not syncing and updating anything. But apparently it doesn't do that, it has WiFi on at all times for some reason. And I don't know if its related to WiFi, it doesn't appear to go to "deep sleep"
Yukicore said:
This is very annoying, I have spent the whole morning trying to find a solution for this issue. The battery runs out already fast as it is, and now the phone is not
Battery drained about 20% at night by itself. Currently draining about 1-2% per 5 minutes when idle. What do I do? I have looked on various different threads for a solution, but did not find anything to fix this issue.
How do I fix this?
Thanks, in advance.
Click to expand...
Click to collapse
Yukicore said:
Also some details.
I had my phone at home, I prefer the phone to use WiFi networks when syncing and updating, but to have phone turn them automatically off when not using them, that is when the phone is locked and not syncing and updating anything. But apparently it doesn't do that, it has WiFi on at all times for some reason. And I don't know if its related to WiFi, it doesn't appear to go to "deep sleep"
Click to expand...
Click to collapse
For me, it was the last Google Maps update. Try to disable "Reporting Location" and "Location History" under Location settings on Google Settings app(the one with the green icon). I had around 25% drain over night and half of it came from this.
Try it and see if this can help you.
:fingers-crossed:
Like above say, disable location, especially if you keep wifi on.
Leaving wifi on while sleeping itself is not good for our health anyway, so if you have data switch to 2G, its at least enough to keep internet messages coming while saving battery. And if its wifi wise, apply pm.sleep_mode=1 in your build.prop. AND, scroll up a little, wifi_supplicant_can_interval(something like that, from its SHOULD BE 15 change to 300-600).
Disable unused apps and use greenify.
Galaxo60 said:
For me, it was the last Google Maps update. Try to disable "Reporting Location" and "Location History" under Location settings on Google Settings app(the one with the green icon). I had around 25% drain over night and half of it came from this.
Try it and see if this can help you.
:fingers-crossed:
Click to expand...
Click to collapse
Thank you for the answer, but sadly it didn't seem to do it. My WiFi is still always on, even though I have it set to turn off when phone is sleeping at WiFi advanced settings.
Although the phone entered deep sleep mode when I manually turned WiFi off, but I'm not sure if that was the case.
KiD3991 said:
Like above say, disable location, especially if you keep wifi on.
Leaving wifi on while sleeping itself is not good for our health anyway, so if you have data switch to 2G, its at least enough to keep internet messages coming while saving battery. And if its wifi wise, apply pm.sleep_mode=1 in your build.prop. AND, scroll up a little, wifi_supplicant_can_interval(something like that, from its SHOULD BE 15 change to 300-600).
Disable unused apps and use greenify.
Click to expand...
Click to collapse
I understand, but I forgot to do so, I actually have an app that turns on air plane mode at certain time. But that still doesn't fix the issue that the phone doesn't enter sleep mode with WiFi on and doesn't turn it off, even though it's set to do so.
Also I did not quite understand what you were telling me there, as I got the phone last week and it's my first android phone. The app you suggested could cut it, but that means that whenever there will be an auto check for news sequence I will be downloading it with mobile data? Is there an app that could cause this?
I was about to update on this, but I just got notification about 4.3 update. :laugh:
I will update this post, if this problem still exists.
UPDATE : Of course, still the problem persists, Phone goes to sleep when I have Wi-Fi turned off. But when on, even though I have it set to turn off during sleep mode, it keeps the phone wake and drains the battery.
Restart your router?
Sent from my Nexus 4 using Tapatalk 2
Ulver said:
Restart your router?
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
How is it related to my router exactly? My iPod disconnects from Wi-Fi no problem.
Thank you for trying though.
I had left my phone this night with Wi-Fi off, but mobile data and 3G was on, Lost 7% in 7Hours from 47%. Does this seem okay, or a little bit too much? By the time I answered 2 emails and made 1 short phonecall and checked on battery logs from 2 different apps, and changed my wallpaper, battery has dropped to 33%. I'm not proud.
The answer to your problem is JuiceDefender Ultimate, available from Play Store.
Yukicore said:
I had left my phone this night with Wi-Fi off, but mobile data and 3G was on, Lost 7% in 7Hours from 47%. Does this seem okay, or a little bit too much? By the time I answered 2 emails and made 1 short phonecall and checked on battery logs from 2 different apps, and changed my wallpaper, battery has dropped to 33%. I'm not proud.
Click to expand...
Click to collapse
Unfortunately this is normal, the battery life is not the best feature of nexus 4. How many screen on time hours do you get averagely?
This fixed the Wifi always on issue for me.
Turn WiFi on: Settings, WiFi, Menu (3 dots upper right hand corner), advanced, uncheck scanning always on.
Hope this helps.

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.

[Q] Wifi doesn't want to be turned off

Hi
I recently noticed that my battery life has been better then recent days
I opened up the battery screen and found out that it shows as if the wifi is always turned on (picture attached)
Doubled checked that the wifi symbol is grey + checked the wifi section on the phones' settings
Have any idea what can cause the problem?
Thank you
Open wifi settings/ menu /advanced settings/ and check the wifi sleep state. I have mine always on as I spend most of my time in a wifi environment.
If you set it to sleep when screen off you will see it in the battery state screen you've referred to.
I personally don't find any battery benefits from sleep when screen off but try it for yourself. Your situation might be different.
Sent from my Galaxy S5 running NeatRom 0X1
Prof Peach said:
Open wifi settings/ menu /advanced settings/ and check the wifi sleep state. I have mine always on as I spend most of my time in a wifi environment.
If you set it to sleep when screen off you will see it in the battery state screen you've referred to.
I personally don't find any battery benefits from sleep when screen off but try it for yourself. Your situation might be different.
Sent from my Galaxy S5 running NeatRom 0X1
Click to expand...
Click to collapse
This will turn off the wifi while sleep if the wifi is on generally. What I'm referring is that my wifi stays on (with no connection, just drains part of my battery) even after I turn it off
There are several settings menu settings that pertain to wifi. Disable the settings that allow Google to check wifi status even when wifi is off, automatically search for new access points and never sleep.
.

No deep sleep and high battery usage

Hi everyone,
most of the time, my Axon 7 eats the battery absurdly fast, when only lying around (Standby). I opened a different thread that I caught it once discharging the battery even when turned off, but several other times, it did not do that again.
I noticed that BetterBatteryStats tells me that there is almost 0 time for "Deep Sleep" (3s) while it is "Awake (Screen Off)" almost all the time. Since I have no root, I do not know how reliable the data is (100% Awake + 21% Screen On + 0% Deep Sleep = 121% = lol).
I have checked the power management for all apps. All have "Allow deep sleep" activated.
The battery discharging is so heavy that one charge is not enough for one day of usage (with some hours screen on time).
Do you have experienced something like this, even with a different phone? Any ideas are welcome.
Regards,
Puni
You must have some app eating your battery. Try to remove some latest apps and reboot. If that doesn't work clear cache.. After that is only factory reset left...
FATPunisher said:
I noticed that BetterBatteryStats tells me that there is almost 0 time for "Deep Sleep" (3s) while it is "Awake (Screen Off)" almost all the time.
Click to expand...
Click to collapse
Okay, this is not really specific to the Axon 7, but it will work anyway. I precise I'm NOT ROOTED as well.
First :
- you better also install Gsam Battery Monitor, you'll have access to a better looking stats for Doze Mode. However, under Battery Manager (sorry, doesn't know how it is in english) / Battery Usage / Time battery used, you should have "Awake time" and monitor it here as well
- install Greenify as well, to try to apply Doze mode asap.
Second:
- Wifi on the axon, even when "turned off while screen is off", isn't. Manually switch the wifi off if needed.
- The same is for the GPS/Location services. Even when the toggle is OFF, you are still being tracked. Long-clic on the toggle, and make sure location is disabled (unless you need it). It will reset if you 'allow' Google Maps to enable location for yourself. Don't do it.
Third :
- Fiddle with Energy management, and learn about the 4 available toggles (disallow at startup, force close when screen is off, delay wake up, do not allow wakeup when in doze mode). Be careful about notifications tho, activating some switches might remove or delay them
- Go to security, administrators : do you have an app that shouldn't be there (which can wake up the phone)?
- Go to acessibility, same
- Do a reboot
- Watch what happens next
- Please report back here with BBStats + Gsam + Energy manager screenshots at least
Thanks a lot!
I will try your hints.
But disabling Wifi and GPS/Location is not really useful for me, because I need both all of the time. Could try it for seeing if it helps though.
Activating Air Plane mode allows Deep Sleep. Not useful, but nevertheless interesting.
I noticed that my Medion tablet with Android 4.4.2 (!) has the same issue. Must be an app installed on both I guess.
Wakelock Detector says it's Android System, AlarmManager. That is not too helpful.
On my Axon 7, Bluetooth triggers the Wakelock. It's 100% reproducible. Cannot be the whole story though, there must be more. The battery lasts at least twice as long without Bluetooth.
Solved!
Solved it!
It was the app MeinVodafone. It causes Wakelocks when Bluetooth is enabled.
I found a forum posting by somebody else confirming that.
Very nasty.
Thanks everybody!
P.S.: My tablet is a different story. Bluetooth is never active there. The wakelock vanished, but I have no idea what happened. Doesn't matter, unrelated.

Categories

Resources