Battery stat shows wifi ON although actually off: Help required - Nexus 5X Q&A, Help & Troubleshooting

Since yesterday, all of a sudden, having this weird issue. Wifi is continuously draining battery although it's actually switched Off. Rebooting didnt help. Safe mode didnt help.
In wifi settings, 'Keep wi-fi on during sleep' is set to Never.
In location settings, wifi scanning is turned off.
Didnt make any changes in the past few days. Non-rooted, stock (MTC19V).
Anyone, please HELP.

Ignore

thenessus said:
Disable wifi scanning (search "scan" in system)
It's not draining your battery, your battery stats look great.
Click to expand...
Click to collapse
I already wrote it, scan is turned off.
It appears i am just UNABLE TO TURN OFF WiFi..

Android is a strange fella..
Even the smallest person (object) can change the course of the future..
Forced stopped Clock app and Wifi finally agreed to give up.
It's back to normal after 3 days of agony.

Possibly its just a batterystats issue bro
Try deleting batterystats.bin from root
It may help

Related

[Official 4.0.4]Wifi suspension police problem

Hi, I have updated my GNEX with the full system image and now, whith the wifi suspension selected as 'Turn off wifi when screen off', the wifi doesn´t go off when the screen is off, like it did with the 4.0.2.
¿Someone noticed that?
You are correct, I'm also having this issue in the battery stats display, however, I'm not sure if this is a report fault to the battery stats or actually a fault with the wifi actually not turning off at sleep. Try searching http://code.google.com/p/android/issues/list for the issue. If not, report it there.
EDIT: Opened a new issue: http://code.google.com/p/android/issues/detail?id=28158&thanks=28158&ts=1333358894
Please star if you have this issue.
fregor said:
You are correct, I'm also having this issue in the battery stats display, however, I'm not sure if this is a report fault to the battery stats or actually a fault with the wifi actually not turning off at sleep. Try searching http://code.google.com/p/android/issues/list for the issue. If not, report it there.
EDIT: Opened a new issue: http://code.google.com/p/android/issues/detail?id=28158&thanks=28158&ts=1333358894
Please star if you have this issue.
Click to expand...
Click to collapse
Voted
taylerdurden said:
Hi, I have updated my GNEX with the full system image and now, whith the wifi suspension selected as 'Turn off wifi when screen off', the wifi doesn´t go off when the screen is off, like it did with the 4.0.2.
¿Someone noticed that?
Click to expand...
Click to collapse
This is normal. Wifi will go off 15 minutes after the screen is turned off, no matter if there's traffic or not. The phone also won't suspend before that timeout.
As for battery stats, I think it reports when wifi is turned on (the switch in the settings) instead of if it's actually connected or not.
zapek666 said:
This is normal. Wifi will go off 15 minutes after the screen is turned off, no matter if there's traffic or not. The phone also won't suspend before that timeout.
As for battery stats, I think it reports when wifi is turned on (the switch in the settings) instead of if it's actually connected or not.
Click to expand...
Click to collapse
The first night I left my Gnex on all the night, and when I woke up, I saw the battery stats and wifi was off around 10% of the time, and on the other 90%. So, the battery stats doesn´t report the status of the switch...
zapek666 said:
This is normal. Wifi will go off 15 minutes after the screen is turned off, no matter if there's traffic or not. The phone also won't suspend before that timeout.
As for battery stats, I think it reports when wifi is turned on (the switch in the settings) instead of if it's actually connected or not.
Click to expand...
Click to collapse
The battery stat display should show gaps in the wifi bar when it is turned off, that's the whole point. It was like that in 4.0.2.
I've come to the conclusion that the fault is in the reporting to the batterystats. My wifi actually turns off when in sleep, but it doesn't show up in the battery stats display.
fregor said:
The battery stat display should show gaps in the wifi bar when it is turned off, that's the whole point. It was like that in 4.0.2.
I've come to the conclusion that the fault is in the reporting to the batterystats. My wifi actually turns off when in sleep, but it doesn't show up in the battery stats display.
Click to expand...
Click to collapse
How do you know your wifi is turning off when in sleep?
taylerdurden said:
How do you know your wifi is turning off when in sleep?
Click to expand...
Click to collapse
Well, mainly because it's not connected when I wake the device up again. I've checked this with my router.

wifi goes sleep even setting policy to "Always On"

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.

Wi-Fi turns off when phone in deep sleep

Hi, I saw many posts related to this topic Wi-Fi turns off when phone in deep sleep but not able to find a single working solution.
My phone runs on 4.2.1 with wi-fi sleep policy set to NEVER ( that means always on ideally ) , and tried turning on / off wifi optimization, avoid poor connections is not ticked.
Even after doing everything the wifi is turned off after sometime and when i turn on Screen it turns it back! How to do I solve this?? I am using STOCK rom, with just root.. No other battery saver etc. app installed.
emptyragnarok said:
Hi, I saw many posts related to this topic Wi-Fi turns off when phone in deep sleep but not able to find a single working solution.
My phone runs on 4.2.1 with wi-fi sleep policy set to NEVER ( that means always on ideally ) , and tried turning on / off wifi optimization, avoid poor connections is not ticked.
Even after doing everything the wifi is turned off after sometime and when i turn on Screen it turns it back! How to do I solve this?? I am using STOCK rom, with just root.. No other battery saver etc. app installed.
Click to expand...
Click to collapse
Set it to Never instead of Always. Its ass backwards.
scottx . said:
Set it to Never instead of Always. Its ass backwards.
Click to expand...
Click to collapse
OP stated its already set to never
Sent from my Vivid 4G using Tapatalk 2
well i have this problem too on every jelly bean rom. the only rom without this problem in cm10 stable. now i'm with cm10.1 hoping they'll fix it like in cm10.
when that problem comes out just toggle on and off airplane mode and it should disappear until next wifi toggle off and on.
I hope google will solve it in key lime pie
CM 10.1 has only just started doing this in the last week or so, it was fine before. Was wondering if it was just me with this issue or not...
emptyragnarok said:
Hi, I saw many posts related to this topic Wi-Fi turns off when phone in deep sleep but not able to find a single working solution.
My phone runs on 4.2.1 with wi-fi sleep policy set to NEVER ( that means always on ideally ) , and tried turning on / off wifi optimization, avoid poor connections is not ticked.
Even after doing everything the wifi is turned off after sometime and when i turn on Screen it turns it back! How to do I solve this?? I am using STOCK rom, with just root.. No other battery saver etc. app installed.
Click to expand...
Click to collapse
Am i correct in understanding that you don't want it to disconnect? The option in the settings is "Keep wifi on during sleep". If you have it at Never, then it will disconnect when the phone goes into sleep. It should be placed on Always because you want it to be on even during sleep
Flowed and Tapped from my Nexus
fixed the wifi problem
Heya! My first post!!!
So, i had the same problem on my Allview P5 Quad.
The guys from Allview released an update for my phone based on 4.2.1 and i thought the problem was from them. I had WiFi turned on and after a few minutes from entering sleep mode, the WiFi got disconnected, both WiFi and data. I have installed the last update again and again, rooted, unrooted, tried every option from WiFi and i still had the same problem.
So i timed the time when the WiFi disconnects and it was exactly 6 minutes. So i thought that it must be an option that does this. So i unchecked the Quick Power Saving icon from Switches and ... SURPRISE! My WiFi stays on continuously. So, the problem is from the system power saving settings. I hope this helps all of you.
P.S. Love this forum! Thanks for all your help!
I believe I found the problem, some how it is not the phone but my wifi router (and all routers) is the problem. Go into your router settings and look for the "Beacon Interval" and set that number to 50. I'm not going to explain what the beacon interval is, go google it and you will see. I switched mine and now the wifi on my phone does not switch off when in deep sleep.

I don't think Doze mode is working on my phone...

Hi there,
Please look at the attached screenshot. The red area shows the time I was sleeping. The phone was stationery all night long. It shouldn't decrease like that, right? It should show something more horizontal if Doze is actually working, right? I believe I read something about this somewhere on these forums.
Yes, I do have "WiFi: Always On" enabled. Is that the problem?
My thinking is that I want WiFi always turned on, but I also want Doze. Meaning, if the phone is stationery, not doing anything, it should kick Doze in (which will periodically check for stuff, temporarily turning on/off the WiFi). Is this thinking wrong? If I have "WiFi: Always On" disabled, will Doze work properly and I'll still be notified of any push notifications and whatnot?
What am I missing here?
First off, there are no screenshots. Doze mode is supposed to remove wifi scans and wifi connection regardless if wifi is on. You will get a periodically sync with emails and push notifications( they will be delayed). You will also still recieve sms and mms. How steong is the network connection? Maybe with a weak connection that is what is draining battery.
schmeggy929 said:
First off, there are no screenshots. Doze mode is supposed to remove wifi scans and wifi connection regardless if wifi is on. You will get a periodically sync with emails and push notifications( they will be delayed). You will also still recieve sms and mms. How steong is the network connection? Maybe with a weak connection that is what is draining battery.
Click to expand...
Click to collapse
Sorry, just keep forgetting attachments... Please check the first post again. No, I don't think my connection at home is a weak one. I am connected to a 5GHz network instead of 2.4GHz one. Not sure if that's relevant.
Nazgulled said:
Sorry, just keep forgetting attachments... Please check the first post again. No, I don't think my connection at home is a weak one. I am connected to a 5GHz network instead of 2.4GHz one. Not sure if that's relevant.
Click to expand...
Click to collapse
i think wifi on does prevent from doze and gives wake locks for many... tried by turning off wifi for a night to narrow down the issue?
i might be wrong here but that was afeedback from many users the battery leak/wake locks with wifi always on
SacredDeviL666 said:
i think wifi on does prevent from doze and gives wake locks for many... tried by turning off wifi for a night to narrow down the issue?
Click to expand...
Click to collapse
Not yet, I'll have to try that... However, it doesn't make much sense to me to have it off. I mean, if it's off, even in the doze open windows, wifi will be off, and I won't get any notifications at all unless I turn the screen on. Not a very good user experience. But I'll test it nonetheless to narrow down possible issues.
You may be suffering from the bug discussed here: http://forum.xda-developers.com/htc-10/how-to/wifi-constant-suspend-resume-leading-to-t3392562
At the last page is a kernel that has a fix that seems to be working.
Try out GSam Battery Monitor for some stats.
tkoreaper said:
You may be suffering from the bug discussed here: http://forum.xda-developers.com/htc-10/how-to/wifi-constant-suspend-resume-leading-to-t3392562
At the last page is a kernel that has a fix that seems to be working.
Click to expand...
Click to collapse
Based on your post these seem are most likely the same issue. I just flashed the fix from that thread and it helped TONS. It is still being tweaked before it goes to elementalx officially, but it is working great for me so far!
Yeah, it might be that issue, or not, I'm not really sure. But I used the GSam Battery Monitor app suggested above and I don't think the problem is Doze.
I used that app and start monitoring just before I went to sleep. I've also used ForceDoze just to be sure Doze kicks in (this app will force Doze immediately on screen off instead of just stationery and waiting 30mins). Look at the screenshots. Something is not right, my phone doesn't deep sleep, it's awake all the time.
schmeggy929 said:
..... Doze mode is supposed to remove wifi scans and wifi connection regardless if wifi is on. You will get a periodically sync with emails and push notifications( they will be delayed). You will also still recieve sms and mms.
Click to expand...
Click to collapse
What? Doze is supposed to remove wifi Scans?
If you take a look at the blue "WiFi Scan" line you see the same pause between intervals before doze kicks in as while doze is active.
Doze Mode hasn't really helped me getting less Wakelocks or less battery drain on this device. I just get the feeling there are way to many system/kernel related wakelocks due to HTC's crappy software which ignore doze mode
Oh yeah, the Wifi signal strength was really bad there.... simply because the phone decided NOT to switch to the stronger Network with the same SSID.... well thank you android....
I've used Greenify (which has a notification for Doze mode statistics) and other battery stats apps and I've realized that Doze is in fact working... So, my battery problems are something else.
I just don't get that flat battery graph when doze mode is active, but it must be due to something else...
Thanks everyone that pitched in Save​
Nazgulled said:
I've used Greenify (which has a notification for Doze mode statistics) and other battery stats apps and I've realized that Doze is in fact working... So, my battery problems are something else.
I just don't get that flat battery graph when doze mode is active, but it must be due to something else...
Thanks everyone that pitched in Save​
Click to expand...
Click to collapse
To me it look as though a rouge app could be the culprit.
Have you tried a removing all apps, or doing a clean flash of whatever ROM your on, and if not rooted, an RUU flash and then see if the phone works as should, then this sucks, but you install apps 1 but 1 until you find out which on is the bad apple.
Your phone is def being held awake though by that Gsam battery chart.
I haven't done that and I'm not going to. I don't have time for debugging this issue like that, I need a working phone with the apps I use.
Not trying to sound rude or anything, I know you're just trying to help and I appreciate that. But I just can't do what you're suggesting.
Anyway, shouldn't some battery app help with that. I'm now using BetterBatteryStats. If there's a rogue app, that should allow me to pinpoint the sucker...

Wifi drain battery

I have a problem with wifi. In battery stats wifi has more consumption as screen.
I never seen it on any other android smartphone in my house.
Somebody with this behavior? I am using latest stock.
Check Location>Wifi Scanning
any other idea
thx, i disable scanning in location, reboot, after week still wifi 1st in battery consumption, it's not big problem, battery life on this phone is excellent, but can be better
It's a wrong report from Android, your WiFi is not draining your battery (a few of us have the same problem, me included). I don't know where it comes from but you can just ignore it (there's no real way to fix the issue I'm afraid)
Mine was doing the same - and I use Chrome a lot for web surfing
Disable Location permissions in Chrome (Settings->Apps->Chrome->Permissions->Location Off)
ok, i just ignoring it, not big deal, battery life is fine, i just was wondering if can be even better everybody know android is quite tricky
Some screenshots would be great, so people can help.
That's the kind of problem he is having, which is just a bug from Android ?
DadOudidOuda said:
That's the kind of problem he is having, which is just a bug from Android ?
Click to expand...
Click to collapse
Can you also post how much mah does that use(by clicking on WiFi). And also the battery map clicked.
Thanks
bharatshaan said:
Can you also post how much mah does that use(by clicking on WiFi). And also the battery map clicked.
Thanks
Click to expand...
Click to collapse
Here you go
DadOudidOuda said:
Here you go
Click to expand...
Click to collapse
I hope you have your WiFi scanning and WiFi network notification off.
I faced same problem in the starting.
I switched above settings off and cleared cache and then switched off WiFi and restated phone.
Now it is gone. Hope it helps.
bharatshaan said:
I hope you have your WiFi scanning and WiFi network notification off.
I faced same problem in the starting.
I switched above settings off and cleared cache and then switched off WiFi and restated phone.
Now it is gone. Hope it helps.
Click to expand...
Click to collapse
Everything has been off for a while, the "problem" appeared afterwards but I personally don't mind, I know that's just a bug
DadOudidOuda said:
Everything has been off for a while, the "problem" appeared afterwards but I personally don't mind, I know that's just a bug
Click to expand...
Click to collapse
Are you guys only seeing this reporting when wifi is on but not connected? Or all the time?
Only had the device 2 days, but no sign of it for me - wifi on, background scanning and network notification also on. Only been out of wifi coverage for a few hours though.
dandrumheller said:
Are you guys only seeing this reporting when wifi is on but not connected? Or all the time?
Only had the device 2 days, but no sign of it for me - wifi on, background scanning and network notification also on. Only been out of wifi coverage for a few hours though.
Click to expand...
Click to collapse
It's when the WiFi is on (connected or not).
OK, some say it's a bug, others say it's no biggie since the large battery, but.... I used to get home after a 12 hr days work, and have 4-5 hrs sot and still 20-30% left. Now I need to keep the phone charged, because it's down to 10 % halfway... That IS a BIGGIE.... And for those who say it's just a stats thingie, well, if this thingie shows 0%: your phone WILL shut down!
Ive tried ALL tips, NOTHING works. Period. What bugs me most is that I don't know why! I turned off scanning, cleared cache, reboot, etc, heck, I even did multiple factory resets, NO GO on any of those!
Believe me I'm happy for those that have solved the issue, but this should have never happened.
After consulting Motorola's customer services I was advised to send it back for repair, and so I did. I need to get it back still, but if this really is a bug, than:
SHAME ON YOU MOTOROLA/LENOVO.
You need to fix this asap, because it really IS a BIGGIE!
Even when it was disabled all the time.
you have to disable location scanning for bluetooth and wifi. I've had the same issue. I also dont use high accuracy location. I use device only to save battery and prevent wifi from turning on. It drains crap ton of battery.
Yea! I had also disabled it and made one thread for this so let other knows the solution.
SOLUTION FOR THE PROBLEM
https://forum.xda-developers.com/moto-z-play/how-to/guide-prevent-wifi-draining-battery-t3612123

Categories

Resources