Related
So I've noticed that wifi prevents my device from sleeping thus going through battery much faster than it should. According to spare parts, the time without sleeping with wifi on is usually around 70% no matter the screen on time. With wifi off, the time without sleeping is close to the screen on time.
Does this happen to anybody else? Anybody know why this is or if there is anything that can be done about it? I suppose it is not such a big deal, I can just leave it off and only turn on when needed and I am definitely glad I figured out what it was that kept my device from sleeping. But if anybody knows why this happen and how to fix it, it would be greatly appreciated.
Thanks
Isn't there a setting which allows wifi to sleep under menu--advanced? I turned it to always on under 2.1 Eclair because it never seemed to wake up fast enough, but maybe under Froyo it's better.
WiFi sleep setting should always be set to "Never" on the Epic. Any other setting is known to cause system sleep issues.
mattallica76 said:
WiFi sleep setting should always be set to "Never" on the Epic. Any other setting is known to cause system sleep issues.
Click to expand...
Click to collapse
That is what mine is set to.
Hi guys,
I have no data plan, and I use wifi at home. I have a Tasker script that turns wifi on when at home, but turns it off overnight to save battery and avoid cooking my delicate brains. At 6.30am, Tasker switches on wifi and normally the phone would then fetch email etc. whilst sitting on my bedside table, so when I wake up later and check the phone, everything is there waiting.
Recently, this has stopped working. Tasker is switching on wifi as normal, but wifi will not connect whilst the phone is asleep. If I wake the phone, wifi still won't connect however many times I wake it until I unlock the phone. Wifi then connects immediately. I have no problems holding a wifi connection at any other time of the day whilst the phone is asleep, and my wifi sleep policy is set to "never". It is only first thing in the morning I have this issue, so I assume it is related to Tasker switching wifi on whilst the phone is sleeping.
Anyone have any idea what could cause this? I changed from CM7.0.3 to CM7.1.0 recently, but I can't be sure if that coincided with my problems starting.
Thanks.
UPDATE:
I solved my own mystery in the end. I forgot to mention that in Tasker, as well as checking the time I am also doing a "cell near" check. When I remove that check everything work correctly. Tasker help mentions that cell location updates sometimes don't work reliably when the phone is sleeping, and that this is a bug in Android. I can only assume that updating from CM7.0.3 to CM7.1.0 introduced that bug for me.
Edit: Use at your own risk, it worked for me but people seem to be saying it's not true.
I figured I would share this tip because it worked so well for me. When I first got the Nexus and connected it to my WiFi, the battery was draining at an absurd rate, even at idle. I want to use WiFi because we don't have LTE out here, so turning it on and off was a pain. Then I remembered the Sleep Policy, and there it was set to keep the WiFi on, even during sleep. I'm assuming Verizon did this to help reduce congestion on their network and save them money. After changing this to "only when plugged in" my battery graph at idle flatlined.
Hopefully it will help someone else!
Steps:
1. Settings
2. Wifi
3. Menu -> Advanced
4. Keep WiFi on during sleep
5. Pick an option best for you. I chose Only when plugged in.
From what I have read, keep wifi on during sleep was always the most power efficient. Maybe you have a weak wifi signal?
I'd like to hear what other people have to say on this one.
That's definitely interesting to hear. I'm usually one floor away from my wireless-N router which yields 3 or 4 out of 4 bars consistently. I guess I'll have to see if this works for anyone else then.
This is wrong.
You should set it to Always.
http://www.androidcentral.com/android-101-save-battery-keeping-wifi-alive
Because initiating wifi connection every time you turn on your phone will consume more power.
compywiz said:
I figured I would share this tip because it worked so well for me. When I first got the Nexus and connected it to my WiFi, the battery was draining at an absurd rate, even at idle. I want to use WiFi because we don't have LTE out here, so turning it on and off was a pain. Then I remembered the Sleep Policy, and there it was set to keep the WiFi on, even during sleep. I'm assuming Verizon did this to help reduce congestion on their network and save them money. After changing this to "only when plugged in" my battery graph at idle flatlined.
Hopefully it will help someone else!
Steps:
1. Settings
2. Wifi
3. Menu -> Advanced
4. Keep WiFi on during sleep
5. Pick an option best for you. I chose Only when plugged in.
Click to expand...
Click to collapse
Well it significantly reduced my idle battery use (like at night), so I'll put a warning at the top but I'll keep mine the same.
I guess you haven't turned on the mobile data cause if you do, then this consumes more power than wifi for sure.
Sent from my Galaxy Nexus
Generally, radio management on the Nexus sucks. I want a setting where if it's in standby, ALL RADIOS ARE OFF except for base phone and text messaging. So this helps a little.
Sure, it uses more power initially to turn whatever on, but no where near as much if you don't use your phone for hours, and don't constantly need to be in sync with everything (like when you're at a computer all day, and you can check your gmail, yahoo mail, have gchat and skype and whatever).
I'd even like a setting policy which only turns on data or wifi when you have an app open that uses them.
I may be using my "phone" (my wife said about her Stratosphere, "I forgot I could use this thing as a phone") differently than most people with smartphones. I need it to be my computer and social device when I'm away from a computer, and only when I take it out of my pocket and turn it on.
Wifi set to always on, while at home. Slept for 9 hours, went down from 100% to 94%
andy2na said:
Wifi set to always on, while at home. Slept for 9 hours, went down from 100% to 94%
Click to expand...
Click to collapse
Same here, with WLAN on my Nexus Prime drops about 6% over night.
Interestingly I just lost about 10% in 2 hours with the phone in stand-by but then I remembered I had to change my IP ~7 times in this time frame which likely caused a lot of WLAN activity and used up quite some energy.
I have set the Wifi policy to "Always on".
Many times (but not every time) when my One X goes into sleep mode, all data connections don't work. I notice it because I feel so strange there is no notification from Whatsapp and Line as usual. So, I press the power button and see no data connection at all. After a few second, 3G data connection appears but no wifi. Wifi then replaces 3G a few second later.
It usually happens and I feel so annoyed as I lost communication with my colleagues when One X is sleeping.
Is there somewhere in "Setting" that can override the "Always on" in Wifi policy? If I miss it, please let me know.
I feel very disappionted with my One X as it contains a lot of bugs.
jackie_jerk said:
I have set the Wifi policy to "Always on".
Many times (but not every time) when my One X goes into sleep mode, all data connections don't work. I notice it because I feel so strange there is no notification from Whatsapp and Line as usual. So, I press the power button and see no data connection at all. After a few second, 3G data connection appears but no wifi. Wifi then replaces 3G a few second later.
It usually happens and I feel so annoyed as I lost communication with my colleagues when One X is sleeping.
Is there somewhere in "Setting" that can override the "Always on" in Wifi policy? If I miss it, please let me know.
I feel very disappionted with my One X as it contains a lot of bugs.
Click to expand...
Click to collapse
It's happening to me too, it's very frustrating because when turned on it show as connected while it's false.. and i'm unable to browse/etc without re enabling wifi manually.
Same issue on the One S. This is most likely a driver related problem or something. I think the next firmware update should fix this, but if anyone of you can provide a hotfix or something I wouldn't be sad
Getting the exact same problem.
I have not noticed this so far.
same problem with wifi....and in the nights my Data also gets switched off after sometime of inactivity...couldnt find any setting related to that....do any of you know any hidden setting for it?
Yeah it happening to me as well. It could be kernel related.
Same Here
Mine is opposite, I want it to sleep on screen off but it keeps reverting to always on. Quite frustrating as it is the major cause of my battery loss
Sent from my HTC One X using XDA
Mine uses less battery with wifi on then normal 3g/4g
vallandil said:
Mine uses less battery with wifi on then normal 3g/4g
Click to expand...
Click to collapse
yeah same here, i've tested both over night and less battery used on wi-fi than 3g
I cant connect to my home wifi, it show connected then disconnect immediate
it no usaable now in my house
I just noticed this, too. Really annoying when you suddenly stop getting any notifications for E-Mails etc.
This is also not fixed in 1.28 :/.
I seem to only have this during the night hours, though. Like there is some sort of "Quiet Hours"-function but they forgot to put it in the settings >_<
I think this is the special Sleep Mode kicking in, and the WiFi Always-On is overridden by it.
When I turn the screen off, I can still ping my One X over the network. However, after some time (maybe 5-10 mins) it no longer responds and has dropped its WiFi connection.
The Always-On WiFi option has only ever applied to when the screen is off. The sleep mode thing is new and not related to android itself - an HTC hardware thing by the look of it.
Maybe it's fixable in the driver software, but I believe the "WiFi always on" function is behaving correctly - it's the new sleep state that is breaking it.
I could be wrong, but that's what it looks like.
If someone has the time, try setting up a PC to continuously ping the One X and see if it keeps it from going in to sleep mode.
Dave Trouser said:
I think this is the special Sleep Mode kicking in, and the WiFi Always-On is overridden by it.
When I turn the screen off, I can still ping my One X over the network. However, after some time (maybe 5-10 mins) it no longer responds and has dropped its WiFi connection.
The Always-On WiFi option has only ever applied to when the screen is off. The sleep mode thing is new and not related to android itself - an HTC hardware thing by the look of it.
Maybe it's fixable in the driver software, but I believe the "WiFi always on" function is behaving correctly - it's the new sleep state that is breaking it.
I could be wrong, but that's what it looks like.
If someone has the time, try setting up a PC to continuously ping the One X and see if it keeps it from going in to sleep mode.
Click to expand...
Click to collapse
Hello Dave,
Your analysis is quite impressive,
I also started dealing with this from "Special Sleep Mode" perspective.
I have got the FOTA, find data in my signature, and still suffering from the same issue.
To summarize my findings let me brief it:
When I first got the update, the problem seemed to be solved
I kept connected to my home WiFi router for several hours and got notifications from Whatsapp and Twitter
I thought the problem was solved and the bug was fixed, as I kept seeing my OneX on the WiFi Client on my router's managing interface on my PC
I shut down my phone, WiFi was on, and turn it back on
WiFi kicked in and connected with no problems,
An hour after, I sensed something wasn't good, notifications were silenced
I unlocked my phone and checked the status bar to find there were no DATA connections at all, nothing, no WIFi no Mobile Data, the usual bug
Now I started to think,
I Have got this problem after a full shut down, and at a battery below 15%
One thing to add,
I turned my phone off with WiFi enabled and when turned it on WiFi kicked in.
Now I am monitoring on the following basis.
I clicked all WiFi hot spots previously saved on my OneX and chose to "FORGET"
Connected to my preferred hotspot
Monitoring the WIFI, with battery over 15%, seems to be very healthy, more than an hour on sleep mode, and WiFi is on, uninterrupted and VERY CONNECTED
I will keep monitoring the behaviour till battery fall under 15% and will report back
I'll make sure to turn off WiFi before shutting down my phone if I have to, this is to eleminate the other variable and keep concentarting on one variable "Battery percentage"
A point to add:
On my previous Gingerbread SensationXE, there was an option on Settings> Battery to control phone's behavior and stop background sync and other activities when battery fall below a pre-defined percentage.
Default was 15%
I can't find this option on my One X, IceCream Sandwich
That's why I started to analyse the problem from the perspective of "Special Sleep Mode - Below 15%" bahaviour.
I will report back as soon as I have results.
Thank you
Update:
Started to experience same issue when battery falls below 50%.
All DATA gone down, no WiFI and no Mobile Data.
Charged my phone to 73%, "Forget" all WiFi network.
WiFi off
Monitoring Mobile Data only.
Mobile data gone down after 30 minutes sleep mode, 73% battery
Connecting to WiFi, and started monitoring WiFi
WiFi + Mobile Data gone down after 30 minutes.
Power down phone, and then on, 73% Battery, WiFi off
Monitoring Mobile Data only.
Failed, and disconnected
Failure
I've done a Factory Reset !!!
Update:
No problems on WiFi, nor Mobile data whatsoever for the whole day until battery falls below 10% !!!
WiFi disconnected after exactly 15 minutes, Mobile data kicks in, then disconnected as well !!!
I turn on the screen after 20 minutes to find NO DATA CONNECTION of any kind.
Mobile data kicks in, WiFi replaces mobile data, and start receiving all data dependent notifications!!!
I have the same problem, wifi is turned off sometimes when screen is locked.
Pabson said:
I have the same problem, wifi is turned off sometimes when screen is locked.
Click to expand...
Click to collapse
Hello Pabson,
Thanks for sharing.
Would you provide more information about your phone's software number, your location (Region, not specific).
Thanks again.
Same here, tried several roms and the same happens with every ROM out there. What is more, I cannot connect to WIFI at work (WPA PSK) but I can connect perfectly to my home WIFI network.
Hopefully this is not a hardware fault and will be fixed.
Monrad said:
Same here, tried several roms and the same happens with every ROM out there. What is more, I cannot connect to WIFI at work (WPA PSK) but I can connect perfectly to my home WIFI network.
Hopefully this is not a hardware fault and will be fixed.
Click to expand...
Click to collapse
If it happens on every single rom you you installed, then apparently this is a hardware fault.
What "Base" do the Roms, you installed, created on?!
I mean based on what version of RUU?
same problem here.
I mis the "power saving mode" options like in android 2.3
It might idd have something to do with power savings mode kicking in.
I've got a brand new unlocked Moto Z play with the Offgrid battery mod. This morning I was disappointed to see my wifi, despite being disabled, had nearly drained my battery mod. I have the wifi configured to only maintain a connection while asleep and plugged in. The toggle for background location via wifi is absent from the advanced wifi menu.
Why is my wifi constantly on, despite it being toggled off?
I've attached a screen shot of the battery screen.
Edit: found the wifi scanning toggle in locations. I've just switched that off.
fourpointsix said:
I've got a brand new unlocked Moto Z play with the Offgrid battery mod. This morning I was disappointed to see my wifi, despite being disabled, had nearly drained my battery mod. I have the wifi configured to only maintain a connection while asleep and plugged in. The toggle for background location via wifi is absent from the advanced wifi menu.
Why is my wifi constantly on, despite it being toggled off?
I've attached a screen shot of the battery screen.
Edit: found the wifi scanning toggle in locations. I've just switched that off.
Click to expand...
Click to collapse
That's strange. Android Marshmallow comes with Doze functionality, and if the user is not using or moving the phone, it cuts down all background app activity that may eventually drain your phone, thus preserving your battery. You'll still receive notification about emails, and messages in social apps, as they're considered priority, if I'm not mistaken.
I'd say the source of your mod losing battery is your cellular reception. By the print you've posted, the Cellular Network Signal bar is most of the time red, orange or yellow. Poor cellular coverage eats up your battery.
I thank you for saving me the trouble of creating this thread, also did turning off the wifi scanning help?
keep wifi during sleep?
Wi-Fi has been switched off most of the day, wifi location scanning is disabled, and wifi connections while asleep are set to never. Still, it's almost ALWAYS on. Even when my ATT connection is strong it's still sucking down my battery. Wi-Fi remains my largest drain. Larger than cell standby, play services, and the screen.
Edit, looking at my images again, it appears my Z Play is treating the battery mod as a charger. Once the main battery drops to 80% and it switches to the mod battery, the wifi never turns off (despite my settings).
I also have similar problem with my moto z play. I haven't used wifi but still showing top ahead of others. Pls help to resolve this issue.
I had a Moto X Play before for a good while. this problem also showed up there (on Marshmallow as well), but I did find out my battery did not actually get drained, it was a reporting error in Android.
I am not sure if that is the case here with you, is the total battery life definitely lower or is it hard to tell?
Battery is still good but it could be better without the wifi drain. Mine is also more than the total energy the screen consumes and I have battery saver on with wifi location scanning off and wifi on only while plugged in. Not sure what would cause this.
Well, this is interesting. Flew to Boston today around 8:30, and as you can see, toggling airplane mode for the relatively short duration of my flight seems to have fixed my wifi drain. Although the phone did reboot in my pocket around 1530. At the time of this screenshot my internal battery is at 80%, and the battery mod is at 55% with only ~2.5 hours screen on time.
Out of curiosity, when you go into settings>location>3 dot menu>scanning, is wifi scanning turned on or off? Not sure about exact menu location as I don't have a Moto Z play, so working off a custom ROM on my Moto E2. Not sure if it would make a difference, but....
Wi-Fi location scanning is disabled.
Interesting, 24 hours after my flight (both legs visible in the chart) I'm showing no more wifi drain. This is with ~3.75 hours SOT. I am disappointed to see the Offgrid mod lost ~30% over night though. I'll still easily get 2 full days out of one charge, but I was hoping for 3-4. Hopefully Nougat's improved doze helps.
I am thinking my phone is also suffering from the same issue. Take look at my other post:
http://forum.xda-developers.com/showpost.php?p=69486349&postcount=77
Mine is even worse. Even when i activate the airplane mode, wifi does not turn off. It is open literally 24 hours. Seems like it drains the battery but I still have 9-10 Hours of SOT, depending on usage this can go up to 13-14 hours.
I fixed mine by following this:
http://androiding.how/how-to-fix-wifi-battery-drain-on-marshmallow/
emailrob said:
I fixed mine by following this:
http://androiding.how/how-to-fix-wifi-battery-drain-on-marshmallow/
Click to expand...
Click to collapse
Didn't work for me, but I stopped caring. I computed total power usage, wifi does not seem to have that portion
Guys, you must confirm if the WiFi actually drains that amount of power. 8/10 times it is a reporting error in Marshmallow, experienced it myself as well. Gsam battery monitor could tell you more.
This solution is for the MotoZ, a similar issue, maybe it could help us a little
http://forum.xda-developers.com/moto-z/help/extreme-wifi-battery-drain-solution-t3476579