yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] dbal:
I understand what you say but:

1. People who come to the thread for the first time don't have any idea about what you clearly state in the post with the description of your issue (p. 42) that I quoted before. Thus, when you later post "not fixed" they do get confused because they think you refer to the thread's bug.

2. The statement that these two (?) issues are related is absolutely your assumption and we all know how "dangerous" this is in the computer world...For example, I never heard of your issue when searching the web at the beginning - why not then this be a user/device related problem?

3. In the latest AOSP changelog for the latest update, it states as fixed "WIFI scan reporting" which clearly refers to the crazy stats error - this, you say, has nothing to do with your issue, so why post here?

Anyway, don't get me wrong but I really think your issue is sth different from the original bug in here, thus any posting about it is clearly misleading and not enlightening to the desired solution. Just my 2 cents anyway :)
[Nexus 5 General] pgoelz:
I'm pretty sure I have seen posts about the "official" bug that reported that the in addition to a WiFi reporting issue, there was also abnormal battery drain. THAT is more in line with the issue I am concerned with.

But OK. Just thought I was helping get our collective hands around an elusive bug. Never mind.

FWIW, I DID start a new thread on the Google bug reporting page where I specifically described "my" issue (same as here).

Paul
[Nexus 5 General] Pastorelli's:
I am having this issue also, battery is draining overnight and is related to Wifi transitioning to cell data and back.

Battery statistics give no indication what is the cause of the drain. It is not like before that it was indicating as WiFi drain.
[Nexus 5 General] pgoelz:
I suggest that you (or anyone else with this unreported heavy battery drain issue) join me on the Google issue tracker page where I have created am open issue for this problem.

So far, only one other person has posted. I am still trying to capture a bugreport so I can get some traction on the issue. I captured one two days ago but didn't realize that apparently when I rebooted the phone to clear the issue, it also deleted the bugreport. I accept that the issue may be unique to me or a specific configuration, but it has been present through MANY FDRs and many firmware revisions. I even reverted to KK 4.4.4 once and it was present there as well. I only have a small handful of apps installed and none of them do anything in the background that I know of.

Paul
[Nexus 5 General] amnher:
Maybe it has something to do with google play services
[Nexus 5 General] pgoelz:
Very possible. But....if so, it has been going on for many MANY revisions of Google Play Services and the OS itself. And of course by its very nature, whatever IS responsible is not getting reported in the battery percentages so not possible to pinpoint it that way.

I have considered the possibility that it is something unique to me but A) I don't have any apps that are doing things behind my back (no Facebook, no Whattsapp, no WX apps, no Skype, none of the known culprits etc.) and B) it has done it after a FDR with NO apps restored.

Paul
[Nexus 5 General] nx1977:
Although Wifi doesn't show at the top in the battery stats, it is still on pretty much constantly when you look at the 2nd graph.

Something is definitely running on overdrive as I'm now regularly getting slow charging messages since the latest update.

My emergency battery charger drained (should charge my N5 1.5x) but only went up 10%. Plugged into the wall charger and it showed 3 hours+ to charge.

Reboot and everything was back to normal.
[Nexus 5 General] Kuarinfou:
Seems fixed on MOB30H
[Nexus 5 General] jrdatrackstar:
I'm on MOB30H too and I think the problem is still there. Wifi doesn't show up on the stats, but when I click the graph that shows radio details and such, Wifi is still a full bar with no splits in it (as in, it was running the whole time). My wifi was off the whole time but it shows full as if it was on the whole time. I get a similar screen of wifi run-time (5 hours or so, for example), even though my wifi was off

Was your wifi really on for 4 hours, and is that report accurate?
[Nexus 5 General] dbal:
If you have wifi scanning set to ON, this bar behavior is normal.

If not, then you fall in another minor bug that you have to switch wifi off BEFORE you leave the coverage area, otherwise the graph keeps going regardless your setting.

But this is a totally different bug and minor, that is not related to any battery drain or to the fix for the crazy reported stats we suffered, mentioned in the AOSP changelog since MOB30D (check 2-3 pages before)
[Nexus 5 General] nx1977:
This is what I'm seeing.

Wifi's not on the list, but wifi is still on constantly, device keeps waking itself, and drain is less than before but still higher than it should be.

Certainly we're making progress though!
[Nexus 5 General] jrdatrackstar:
Are you on MOB30H? I saw the same thing on MOB30D...
[Nexus 5 General] nx1977:
Thought I was, but installing 30H now.
[Nexus 5 General] nx1977:
Anyone else noticed play services acting up again since the recent play services update? (new icon in battery stats)
[Nexus 5 General] jineshpatel30:
yah every one noticed it ( not just N5 owners..all devices are affected )

and there is no easy fix for it..wait till tomorrow's factory image release and wish it fixes it :p
[Nexus 5 General] harsh2193:
I clean flashed June security image (full ROM, not OTA) and this issue has started bugging me, although it never did before. Wifi scanning is off and GPS is almost always off...

Edit - I can notice the battery draining faster than its supposed to. Although the battery settings doesn't show that WiFi is consuming battery, I can see that WiFi is on in the battery graph, despite it not being on at all
[Nexus 5 General] jineshpatel30:
it's due to latest Google Play service 9.83 culprit...which is causing lot of battery drain & always ON wifi state ...it's not related to factory image/rom/device..it's universal to all having latest G.P.S and there is no easy fix for it so we need to wait for google to fix it in next G.P.S update .
[Nexus 5 General] nx1977:
This issue has been around since lollipop.

You'd think Google would have sorted it after 2 years!
[Nexus 5 General] amnher:
So you mean kitkat is still better?
[Nexus 5 General] nx1977:
Kitkat was by far the best version of Android for battery life.

Why did Google ruin android battery life?
[Nexus 5 General] apon97:
I don't know what you are talking about... I have personally always had decent battery life (apart from the first 5.0) and i think the last 6.0.1 has the best battery life i have ever had on my n5 (10/2013 with original battery)

Inviato dal mio Nexus 5 CAF utilizzando Tapatalk
[Nexus 5 General] zvi8875:
Is there any news about this topic?I have tried all the written solutions here , yet with the last update issue still occurs...
[Nexus 5 General] jineshpatel30:
[MENTION=535343]all[/MENTION] latest issue is not related to this bug, it occurs due to latest crappy google play service 9.xx.xxx , and there is not much we can do to fix it until google fix it in future google play service releases. it's not just N5, all Nexus devices are affected with same problem and only possible solution is to remain on GPS 8.73.xxx and it's not easy solution bcz we need to stop it's force update via disabling some app services :(

you can visit below thread for more details & possible solutions...go through last 4-5 pages.

http://xdaforums.com/android/general/info-cataclysm-mod-dead-t3307703
[Nexus 5 General] zvi8875:
I feel pretty blind but i can't find the possible solutions you were talking about, can you please reply with the page/answer?

Thanks in advance.
[Nexus 5 General] ilciumbia:
See Post #922

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 General] ilciumbia:
However, I still see the Wi-Fi bug even if I have upgraded to July fix (with June kernel). I am also using Cataclysm January mod, can it be the culprit? Can anyone confirm the Wi-Fi bug is gone even with Cataclysm mod applied? With Wi-Fi bug I mean Wi-Fi on, scanning off, leave Wi-Fi coverage, return to Wi-Fi coverage, boom, battery drain begins.

Thanks!

Sent from my Nexus 10
[Nexus 5 General] dbal:
Don't know about the cataclysm mod, but I can confirm that in the exact scenario you describe and fully stock, no Wifi drain is present or reported in stats since it was fixed back in April
[Nexus 5 General] springy:
Unfortunately I still get the Wifi bug and I am on the July patch. I remember it disappeared in the May patch but reappeared in the June patch. The way I solve it is just to restart the device every day.

But I do think it may have something to do with Play Services as I do see that often as the app consuming a lot of battery
[Nexus 5 General] jineshpatel30:
Then it's Not wifi bug due to ROM..it's entirely related to Play Service.

Work around for it is to disable 4 receivors indicated in below post.

http://xdaforums.com/showpost.php?p=67254249&postcount=922

PS: u can use free tool, "My android tools" from playstore.

& disable these 4 things under "RECIEVER" tab from play services
[Nexus 5 General] springy:
It isn't. Under the battery drain Wifi is the biggest offender. I also get play services as one of the offender but it always the case.

Only way to prevent it is a daily reboot.
[Nexus 5 General] jineshpatel30:
Then, idk.

These 2 workaround solved almost everyone's battery drain.

My suggestion is try "clean flash rom" if you are rooted / factory reset (non-root) & apply these workaround.

Ps : you will lose all your contacts, msg, pics , personal & app data entirely in clean flash/ reset , so backup every thing !
[Nexus 5 General] ilciumbia:
What do you mean "2 workarounds"? I only know about disabling the play services receivers... Which is the second one?

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 General] jineshpatel30:
"Wifi scan" off in location, only needed if you are still facing wifi drain ;)

[MENTION=535343]all[/MENTION] OP is updated with both of them. Take a look if you are still facing drain
[Nexus 5 General] toybxb:
Thank´s ! Solved this problem on my G4 !

Went to Location - Search - and disable Search WiFi and Bluethoot
[Nexus 5 General] Lutzkhie_15:
disabled everything related to wifi fixed it, the computed power use stopped at 568mAh and it only run for 1m 48s, thats when i disabled everything

but the battery stat percentage for wifi is still increasing, probably just a stat error, ill observed my battery again when its fully charged again
[Nexus 5 General] jineshpatel30:
Well it's better than lollipop but battery drain is surely there as you can see from SS wifi eats most power...so even though battery life is more than lollipop it can be even better if that drain wasn't there..and I though it was just stats problem before confirming bug (at that time title was different & thread was in QA section) but as I experience that it's not just stats it's actual drain (after using one more entire charging cycle) then only I changed title of thread.

So to me it's appropriate title (though I didn't change all OP details much bcz I didn't want to write all discussion/comments again in OP)

Hoping I explain it properly :)
[Nexus 5 General] luckana:
You guys must have gotten sth wrong. I have never had wifi in my battery tab, considering it's on like all day long
[Nexus 5 General] eddiehk6:
You're still missing the point slightly

Actual battery 'drain' is when your battery is decreasing at an abnormally fast rate. Yours is not draining, it's better than what it was before.

Just because the screenshot shows WiFi at the top, does not confirm any drain. The battery stats may be reported incorrectly <- and this could potentially be the actual bug, though not confirmed either.

What you could do to investigate further is install only an app like CurrentWidget, to log the standby battery draw with the screen off in mA. Let it create a log over long period of time (a few hours) with the WiFi connected. Then perform the exactly same test with the WiFi off and compare.
[Nexus 5 General] jineshpatel30:
No problem.

Actually I disabled High accuracy location & all extra wifi scan & anonymous reports and right now I don't see wifi in my list..give me some time I'll change OP properly with cause & solution & better title as well after I get proper results :)
[Nexus 5 General] Soul_Raider:
Attached screenshots, Wi-Fi was ALWAYS off, updated to M via OTA sideload.
[Nexus 5 General] Mairo:
Settings>Location>Scanning(top right)>Wifi Scanning ( disable it ). ( bluetooth also if you want)
[Nexus 5 General] jineshpatel30:
OP updated as well ;)

With WiFi connection problem i'm facing and workarounds for both :p
[Nexus 5 General] ethanfel:
I'm at 755 mAh for 8 hours with Wifi Off. Clean flash with wipe. Something is wrong :D more than 1/3 of the battery drained by the wifi.

I have setup the workaround, i'll see.
[Nexus 5 General] hybrid2102:
unfortunately for me turning off scanning and entire location settings does not fix it!
[Nexus 5 General] Evo_Shift:
Disabling the scanning has dropped wifi off my battery list today and I honestly see no difference in how my phone behaves. I am not sure what the point of even having it on is...
[Nexus 5 General] jineshpatel30:
Keep them turned off and charge till 100% and check after 4-5 hrs of use..use will surely see difference

There is literally no meaning to keep them on...it's description is also weird !! How scanning will help when there is no net connectivity at all !
[Nexus 5 General] ichundu:
Wifi scanning helps location accuracy. I keep it on cause i leave location settings on battery saving mode and without wifi scanning it's not so accurate, personally i can notice the difference. I'm satisfied with battery life on M although Wifi is at the top of the list, battery life is definitely better for me than on L. I'm guessing it's just a bug in battery stats.

Sent from my Nexus 5

---------- Post added at 03:39 PM ---------- Previous post was at 03:27 PM ----------

Also this depens on wifi scanning being on or off. If ON wireless networks show instantly under WiFi quick tile. If OFF it takes some time for networks to show.

Sent from my Nexus 5
[Nexus 5 General] jineshpatel30:
it doesn't depends on wifi scanning ( one which we turned off ) atleast not till lollipop i used 2.3 to 5.1.1 with this allow apps to scan wifi always off and never had this delay before. this is 1st time on M and enabling that WiFi scan don't affect that delay ( i just tried it and i'm still facing 15 sec delay )

for me M is very buggy ( even though over all performance & battery life better then ever before ), i faced 1 more critical bug 2 hr ago...ALL sound gone silent ( no ring/notification/music any kind of sound became silent ) without changing any setting and after reboot it become okay..i don't know how it occurred so i can't reproduce it ( But if anyone else also felt it plz report here )

i hope Google soon sorted out all this bugs and push updates to fix it ( it happens with every major release and it's not that big deal for me bcz i believe as we get glory to use 1st release we have to ready to some bugs :p )
[Nexus 5 General] ethanfel:
well something is definitively weird. Wifi Off, scanning off : Wifi drain still present.
[Nexus 5 General] m52 power!:
So I did nothing different and today MYSTERIOUSLY my WiFi is back down to 1%......... odd...
[Nexus 5 General] Op15L:
Same problem, now I try to disable wifi scan

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 General] !@ndre@!:
Is it possible that this is only a bug in the stats?
[Nexus 5 General] CSX321:
I feel like we do this every time there's new firmware. For a couple of days afterwards, battery use is high and/or erratic, then it settles down and improves. I don't know what, specifically, it's doing during this time. I remember in the past seeing some talk about Android's scan for media files taking a really long time after first boot, really long as in days. I don't know if that's what's happening now or not. In any case, my battery use has been erratic but not super-high since this update, and I expect it will improve in the coming days, as it always has before.
[Nexus 5 General] Yaz75:
Stop making sense! Don't you know that you're supposed to declare that the latest release is garbage and that Google should feel shame for releasing this OS on the world? This is XDA after all!
[Nexus 5 General] ethanfel:
i'm prety sure it is. i left my phone wifi off and scanning off (everything else on) overnight without power cord. Result ?

[IMG="screenshot autonomy"]https://lh3.googleusercontent.com/eewhfgJQKf3kIKS58U_m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muNO1LDQnqv9aVvkE0SzZceFuc1rze6mBFM1FdePhEuQY8bcB2haIVQo-DBho=w560-h995-no[/IMG]

92% left, 6 days of standby remaining (awesome doze) and 1/3 of the battery "consumed" by the wifi ? It's not a real drain. It's only a bug in the stat.
[Nexus 5 General] Mairo:
And You think you have a problem witb battery drain. : )

Yesterday evening i turned gps on for a few minuts turned on maps an then turned off gps and maps again.

Battery drain was 1% sense 00:00 to 07:30 last night/morning. But looks like gps are turned on this morning. Invisible on, because in settings and statusbar and under quick settings bar gps was off.

Strange thing is also that wakelock detector can't work. Lets see what happens after reboot
[Nexus 5 General] migueldbr:
thats not just a bug in stats, thats bad battery life. In M, i lose about 2% in 9 hours overnight. I see that you have very good cell reception(same as me). And you lost 8% in how many hours?9?

---------- Post added at 02:41 PM ---------- Previous post was at 02:39 PM ----------

that happens to me only when i enable wifi scanning. maps causes wakelock. Let me guess, you have wifi scanning on?
[Nexus 5 General] ethanfel:
11hours. I don't think it's bad. I never had more anyway. 1.5% per hour.
[Nexus 5 General] migueldbr:
8% lost in 11 hours of standby with very good cell reception is bad lol. How can you not see that? Im assuming the screen was not turned on
[Nexus 5 General] ethanfel:
Because I never had better with any smartphone.
[Nexus 5 General] tebore:
Bad is relative. It depends on what he has running and how old his phone is. If you've disabled everything like most people on XDA trying to earn a gold star by getting the highest SOT possible sure it's terrible.

If you use it like an average joe that's not bad. Cell Reception using those bars is also a 'feel good' reading(read: means nothing). I can get way better battery life on a stable low congestion 1 bar of LTE verses a 'full bar' congested 3G/4G area.
[Nexus 5 General] Mairo:
nope. wifi scanning is and was always off.
[Nexus 5 General] migueldbr:
Never heard of such thing and never experienced anything like that. With a low signal the phone has to "work harder" to get reception, causing more drain. Never heard of anyone saying that 1 bar 4G gave better battery life than a full 3g signal...

That's strange...i only get the maps wakelock when I turn wifi scanning on
[Nexus 5 General] ethanfel:
Except Wifi and wifi scanning, everything else was ON and "localisation" on GPS. My Nexus is a day one model, so 2 year old. I wanted

I'm not, i find that turning my phone into a lifeless brick and claiming that the battery life is amazing not helpfull.

Still weird that wifi is reported to use battery, when it's deactivated.. I will try tonight with Wifi On and Wifi scanning ON and compare with my previous screenshot.
[Nexus 5 General] and313:
It's because the pre calculation is efed up... These are not actual stats
[Nexus 5 General] ethanfel:
It calculate wifi battery consumption when it's not activated ? that's dumb :D
[Nexus 5 General] and313:
Yes so there is no actual drain... Just wrong stats
[Nexus 5 General] tebore:
Move to a big city and go to a huge gathering like a baseball game or rock concert and you'll see.

LTE was design to allow more efficient use of airwaves. Its not just for raw speed its also for congestion.

Congestion is as or if not more deadly than weak signal. A strong congested signal means dropped packets and many retries. So radio might be spending less power in a standby state but more time in an active state which is always higher than standby (some times magnitudes higher mA vs uA). A weak LTE signal can transmit significantly more data in a moment of active radio time. So the radio can finish what its doing quicker and go back to sleep quicker. And not all LTE radios are equal eg N5 vs LGG2. The N5 is more efficient.
[Nexus 5 General] emerica243:
This is NOT just a reporting issue. There IS actual drain. I came from 5.1.1 LP custom from. Did a Factory reset and flashed the 6.0 stock ZIP. Resetup my phone and apps. ( Wifi settings were all default at this point .) Went to bed the first night with phone at 100% off the charger and woke up 8 hours later to a phone with 99% battery. A drainage of 1% overnight! Holy great battery life. Day 2/3....Phone is draining 10% overnight with WiFi showing as the big culprit. Even with Wifi off, on, connected not connected, phone is still physically draining 10-12% overnight. So something clearly is up.