yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] DirkBelig:
They should've called Doze "Insomnia" because it's keeping my Nexus 7 awake all night!

Unlocked, but not rooted; stock recovery. Was running 5.1.1 and pushed OTA via ADB. (Full wipe + factory image is NOT an option, so no one suggest it, please.) Performance has been janky and laggy with sometimes a second or more gap before reaction to taps. But the power drain has been INF*CKINGSANE!

First it was the Google App atop the battery stats pile, guzzling more power than the display and holding it awake for hours. It drained 15% in 100 minutes of sitting unused! Uninstalled the updates and it appeared to be better when the WiFi item leaped to the top of the charts. (Google around today and see it's a known bug as referenced here.)

Last night I took a fully charged tablet to record my podcast and after nearly 3 hours of SoT I had about 63% left. Seems nominal. When I went to bed a few hours later, it had dropped to the 30s. Woke up 3-4 hours later and it was D-E-A-D.

Charged it up at work, unplugged it, put it in my bag and when I get it this evening, it was at 99% after 6-8 hours idle. Hmmmm. Update a couple of apps, use it for 5-10 mins and close the cover showing 97%. CPU Spy Plus - Free reports ~90% in deep sleep. (Since I'm not rooted, I can't use BBB or WakeLock Detector.)

Just checked and now I'm at 82% power, SPU Spy shows it's been running at 1512 MHz for 100 minutes, 12.5% of the time and Deep Sleep is down to 79% The moment you wake it up, Insomnia takes over and I wouldn't be surprised if it was dead again in the morning.

I have Wi-Fi Scanning off and Keep Wi-Fi on during sleep set to only when plugged in.

People looking to blame this on a reporting bug are embarrassing themselves by attempting to paper over a REAL problem like something mercilessly guzzling power. We've been told over and over that task killers, etc. are unneeded and counter-productive because Android can sort things and Doze was supposed to be the secret sauce to tame rogue apps.

The problem is that, thanks to Insomnia, the rogue app is now the OS and we can't do anything but helplessly watch our devices become permanently tethered to power cables in order to minimize the disconnected time that will rapidly bleed your reserves faster than an emo hemophiliac. It was better when we just had to worry about Facebook holding your device awake. At least it didn't wipe out your battery overnight.
[Nexus 5 General] ethanfel:
Report back

So tonight i tried with the same settings (previously everything on except Wifi and Scanning), this time Wifi and scanning were on. The drain was lower (as expected, Wifi reception consume less energy than LTE)

The wifi drain was reported lower, it's now 8 day of standby battery life vs 6 day previously.
[Nexus 5 General] thunderdepo:
[MENTION=4997933]occtec[/MENTION] interesting read, can you pm me your thoughts..
[Nexus 5 General] migueldbr:
Thats all theory, real life tests were made on our device. Continuous 3g browsing vs 4g browsing. Full signal on both. On 3g it lasted 6 hours. On 4g it lasted 6h30. So you can see that even on a much less congested network like 4g(because there are much more people using 3g than 4g) the improvement is small. Lower the 4G signal compared to 3g and you lose all that improvement. I dont know a single person that has better battery life on 4g than on 3g. You are 100% correct in saying that with a similar cell reception, 4g is more efficient than 3g. But with lower signal you will probably have worse battery.

So unless you are in a completely congested area where you cant even send a text message, you will probably have worse battery life on 4G

Cant remember which website made these tests, but i think it was anandtech or gsmarena
[Nexus 5 General] jordanl17:
so my wifes N5 fully stock 6.0 (manually flashed, erased userdata too) has the HUGE drain. I do see wifi at the top. I just disabled the location services scanning as suggested. I'll let everyone know the results. ALSO, maybe I will kill 5ghz wifi as in the official bug report someone mentioned that was an issue.

edit: still sucks. just turned off all Location. I'll let you know. it's crazy drain! like the CPU is on FULL the whole time or something!
[Nexus 5 General] bart.found:
Yes, I think it's a wrong stat too! my phone just drained 2% overnight.. but wifi was at 13% which is ridiculous!!! I also tried to sum all partial percentages.. and they give almost 99% so the "famous" misc (hidden in official builds) stat is only at 1% or probably 0% (because processes under 1% aren't shown in battery stats and the difference could be the sum of those processes).

I think that what was under misc, in lollipop builds, now is under wifi (it's clearly an error)

---------- Post added at 09:49 AM ---------- Previous post was at 09:46 AM ----------

No problem so far on my Flo... try to perform a factory reset! ;)
[Nexus 5 General] phstrat:
Guys, I think I've solved the battery drain issue do to Wi-Fi. I too was having the problem with battery being at the top of the charts on my battery stats and it was upwards of 30% of the total usage. I thought about doing a battery reset / calibration by running the battery all the way down until the phone shut itself off, charging it up, with the phone off until it was at 100% and then turning it back on. BTW, while doing so, I had over 5 hours of SoT even with the Wi-Fi drain showing up in my battery stats.

I've had the device running for about an hour and a half now and Wi-Fi is completely gone from the battery stats and I'm at 88% battery with over 1 hour of SoT , mainly running Tapatalk and reddit is fun and looking at the battery stats in the settings.

I side sideloaded 6.0 by doing a fastboot oem unlock, to wipe the device, then ran the flash-all.bat using my PC with the device in download mode. If this holds up, I'm going to have to really give it up for 6.0 as this is the best my Nexus 5 has ever ran and my batteries are fairly old. At this rate I may now I may get 6 hours of SoT.

So you might want to try the battery reset / calibration and see if it works for you... so far it seems to have work for me.

Update: after going in to doze / sleep mode for 7 hours its back but it didn't seem to lose too much battery during that period, before it would show up almost immediately after a full charge which it didn't do this time, only showed up after dozing???
[Nexus 5 General] tebore:
Don't let stupid ads fool you. 4G is not LTE. LTE is LTE 4G is the crap Americans cell providers call HSPU/DA+. The technology is more similar to 3G (HSDPA).

LTE is in the real world 50% more efficient. It'll be more on LTE-A

I'm in Canada one thing I miss when traveling in that states is the high quality LTE networks we have across the nation (we get ripped off on the bill for it) versus the poor quality of networks in the states (except for the big red its a consistency issue). Its worse in many parts of Europe. High quality LTE is deployed in very small pockets.

Your case is anecdotal to me just as mine maybe to you but at least mine has science and research to back it up.
[Nexus 5 General] migueldbr:
I'm not fooled by ads lol don't just assume you are smarter because you know your stuff. I do too. We have Lte on the biggest cities in Portugal. Hell, Vodafone is testing voLTE here. I don't know anyone here that has better battery on lte(I called it 4g because it's what everyone calls it) because Lte has worse signal quality compared to 3g. No point in continuing this conversation, you may have "science" backing you up, but I know a lot of cases here in my country where that is not true. It is if the signal is similar as I said before. If it's worse then it will have worse battery life. It's not just me, all of my friend experience the same(on Lte, I told them to test against 3g). You are also forgetting that when you go into buildings or places where Lte reception is poor, the phone has to keep switching from Lte to 3g or even 2g in some cases. And that wastes battery too;)
[Nexus 5 General] tebore:
Here they've refarmed most of the 2G (well CDMA that used the spectrum) for LTE and LTE A. Since you're in Portugal. Im going to assume that the 3G spectrum just wasn't that congested. Major North American cities have population larger than all of Portugal sometimes crammed in a smaller area. This is where LTE technology and its derivatives shine.

Can't argue the network switching but as I said a stable low signal vs strong congested. LTE doesn't have anything to do with wall penetration, so I don't see the point of what being indoors has to do with anything.
[Nexus 5 General] migueldbr:
That may be the reason yes. I still think that in many countries they have a lot to improve regarding lte. Here on my country its still not worth using over 3g(only talking about battery life) because on 3g i get really good cell signal. Maybe in Lisbon(capital) they have better 4g reception and it might be better to use 4g. And if you move out of the big cities LTE is almost non existent
[Nexus 5 General] jordanl17:
factory reset phone

I think we are a minority with the battery issue. It seems most of us did a fully clean install of the OS. I think I'm going to do a Factory Reset.

I'll let everyone know.
[Nexus 5 General] bellanano:
This step solved the problem for me:

Restart in safe mode, then after a while, restart normally.

Remove all widget from all the pages and re-add all it like new widget.
[Nexus 5 General] jordanl17:
How to you boot marshmellow into safe mode? I tried getting Power Off dialog up, then holding power, doesn't work.
[Nexus 5 General] bellanano:
You have to hold the "shutdown" pop-up, not the power button!
[Nexus 5 General] msgfromside3:
FYI, I have no battery issue (even reporting) with sideloading without wipe. I did it for 2 nexus 5 and nexus 7 (WiFi), but not seeing the issue at all. Maybe ppl with the issue had M preview installed before? Factory reset is good to try though.
[Nexus 5 General] SKYLINESSUCK:
The drain is very real for me. Unlocked but unrooted with a stock bootloader. I let it OTA and immediately noticed shorter battery life. Thought it a fluke so I restarted are recharged. I got about 8 hours of very light use and pocket standby out of it until it buzzed me for low battery. Charged it up and used it a little, then went to bed with 44% left. Woke up and it was dead! I then did a factory reset, but I haven't noticed much of any improvement. I basically have to charge it twice a day. It's horrid. I am seriously considering going back to 5.1.1

Good LTE signal and scanning unchecked btw.
[Nexus 5 General] phstrat:
Try sideloading it from the Google developer page, that's how I did it in my battery great.. best I've ever had... even with the Wi-Fi bug...

https://developers.google.com/android/nexus/images?hl=en
[Nexus 5 General] cescman:
This works for me.

I have tried switching off Wi-Fi scanning for location, Wi-Fi off, location off, and I still have that Wi-Fi consumption on top of the list. None works.

With your method, now I can continue location service and Wi-Fi scanning for location, and there is no battery drain (whether real or apparent)
[Nexus 5 General] bellanano:
Do you have Chronus weather widget on your smartphone?
[Nexus 5 General] cescman:
No, I don't use any widgets. Most of the things I really need, such as weather and calendar, are in Google Now.
[Nexus 5 General] tikkalamt:
I did a clean flash with factory images. Rooted (had been too long without hoping to get OTA to M preview) and the first charge was great. Got 3 hours SOT, 50% increase. Since then the Wi-Fi bug is there and I'm back to 2 hours SOT. Will try the Wi-Fi scanning off now.
[Nexus 5 General] rawimage:
Thanks! This solved it for me too.

If someone else is trying this trick and is using the standard analog clock keep an eye on it. The font under the time changed for me after adding the widget again. Other widgets used were Simple Calendar and Google Keep.

Before this trick I was looking at a 4-5% battery drain per hour. All from WiFi even though I had WiFi Off, Scanning Off and Location set to Device only. Only thing showing in the battery monitor was WiFi and it was running all the time.

After the trick I have 1% battery loss in 3 hours and now Location is set to High accuracy. Battery use is showing Play services, Instagram, Screen and OS but no WiFi at all.
[Nexus 5 General] nashy10:
Just to add, if you change your build type to enable multiwindow, the miscellaneous category will skyrocket to the top of the battery stats, so that's still there. When I originally flashed a deodexed version of official 6.0 WiFi did not even show up in battery stats, now after switching to odexed rom, its top stats again. Just my 2 cents.
[Nexus 5 General] FreemanAMG:
It's only one hour since I did this, but it seems to have solved the issue for me too. I have The wifi turned on (but not connected) and Scanning on. So far, the problems seems to be gone.
[Nexus 5 General] Nakebod:
Thank you, this looks very promising so far!

Not sure if there is any logic in this, or that re-adding widgets is enough, but it sure looks like it does something positive again :)

The first day after upgrading I didn't notice WIFI drain, battery life was even improved! So the problem started later.

On an average day, with Android 5.x I had somewhat near 30% over at the end of the day, with Android 6.x the first day near 60%, the last few days it was below 40% and after this, hopefully one time fix, it is now at 61% and approximately 24 hours remaining, and I only applied the fix 6 hours ago.

My battery graph is now almost horizontal again, instead of a ski slope :laugh:
[Nexus 5 General] cloney:
My day usually gets to 50% at around lunch time with low usage. Here's the stats right now, it is definitely not just a display issue.

35% battery life

WIFI - 30%

Wifi - Running 7H 55M

Computed Power Use 622 mAh

Going to try this and also turning off scanning. Will report after tonight when I leave it off the charger.

Edit: I did a clean flash via Fastboot erase boot/system/etc. then flashed the images from google's dev site with marshmallow and restored apps via the google backups.
[Nexus 5 General] nx1977:
Another with battery drain.

What annoys me most is that this has been on going since the L preview and is STILL happening in Marshmallow release.

Are Google hell bent on killing Android?
[Nexus 5 General] phstrat:
I don't know if this will work or not, but this is what I did, and I'm getting some of the best battery life I've ever gotten on the N5, even with the Wi-Fi bug. I side loaded 6.0 over 4.4.4 after doing A fastboot OEM unlock to wipe, and my battery life stellar. So maybe it's worth a shot to install 4.4.4 then install 6.0 and see if that helps your battery life for those that are getting bad battery life..
[Nexus 5 General] jordanl17:
I'm doing safeboot method right now. I had latest 5.1.1 installed. did a full manually install of the 6.0 factory image, wiped EVERYTHING. crazy! I'll report back on the success of the Safeboot method. How long are people leaving the phone in Safe mode before booting back?

edit; crazy! first obersvation; battery was at 5% when I began safe mode boot. BOOM, battery is at 87% immediately after booting safe mode. ?!?!? IT MUST BE A CALIBRATION ISSUE as someone said before. I'll leave it in safe mode until it reaches 100%. a few more minutes. nuts.
[Nexus 5 General] phstrat:
You can reset / calibrate your battery by letting it fully discharge until it turns itself off, then letting it charge up while off, until it reaches 100% then turning the device back on
[Nexus 5 General] nx1977:
Doing this knackers modern batteries.

There is no need to calibrate a battery, it's a placebo effect.
[Nexus 5 General] localbus:
Works !

Not sure what is the rationale but this work for my Nexus 7 2013 LTE.....

Instead of 5 hours drop 25% doing nothing.... now to 5% for 5 hours doing nothing.. which is still not good but better... and now the scanning wifi is on.... location is set to accurate.
[Nexus 5 General] matitorres07:
Ive silvestre, installing the rom that I want and then making a factory reset from settings, try that with a clean flash first ;)
[Nexus 5 General] nashy10:
Yeah really baffled but this worked for me as well, wtf Google?
[Nexus 5 General] gabrielelucci:
Most likely a calculation bug

I've been getting over 50% of WiFi usage in battery stats these days, but I also had decent battery life. What if it is a calculation error? It seems very unlikely to me that WiFi drains so much, how much it has to be ****ed up?
[Nexus 5 General] jordanl17:
ok, so all methods have failed to fix the amazing fast battery drain. I still think the OS has lost touch with the battery capacity, or something like that. I'm going to flash 5.1.1. I'll revist 6.0 when 6.0.1 comes out in a month or two. I'm just a bit worried that it seems like only 1% of N5's are affected.

Anyone who has the super fast drain issue try to put a new battery in?

edit: I just Ebay ordered a new battery. I just finished flashing 5.1.1. When I get the new battery in i'll flash back to 6.0 and post results.
[Nexus 5 General] nx1977:
I had it in Lollipop and Google replaced my Nexus 5.

Replacement initially set up without restoring account and did exactly the same, so I reset again and restored the previous device backup.

Just a thought. When they introduced multiple accounts on the Nexus 7 under kitkat, battery took a hit until Google patched.

Lollipop brought multiple accounts to mobiles, and battery suffered. You cant delete the guest account, but is it running something in the background?

Possible link?
[Nexus 5 General] nx1977:
Battery drain was initially ok after the safe boot suggestion but started creeping up.

So I binned almost my widgets last night, and today Wifi usage and battery drain is even worse!
[Nexus 5 General] Artimid:
Same happening

Same issue here, right after the update I went 3 days on a charge. I would have gone more, but I was reading and watching videos.

First time I charged it, I took it off the charger and 5 hours later was at 30% with wifi taking up like 60% of all usage. Since then, I've been averaging 3-5 hours battery life, versus the 12-16 I had before on 5. I've swapped to 2Ghz wireless, same issue. Turned location office, same issue. Turned off all applications with notifications, same thing. Now I'm uninstalling any I have. This went from "Whoa! Android 6 rocks" to a half week later "Wow.. this .. this is horrible. My phone is useless."

And I am fully stock.
[Nexus 5 General] Tuga2010:
The same here .

Enviado do meu Nexus 5 através de Tapatalk
[Nexus 5 General] zaq:
This method works for me, wifi usage bar gone from the list, battery from 7AM to 4PM is remaining at 72% with moderate usage in office: some phone calls, a lot of messages and push emails.

Thanks [MENTION=2329317]bellanano[/MENTION] :good:

Edit: to be more specific, I'm using stock 6.0, rooted with ElementalX 6.01 kernel.
[Nexus 5 General] FreemanAMG:
Definitively the Safe Boot method works. The question is, why? I'm a little skeptical about the widget deletion part. For me, it seems like the Safe Boots resets some settings and / or disable some services. Have somebody tried just to safe boot? Or just to delete and re-create the widgets?

For those saying it's just a display / calculation issue, my experience is telling me that the wifi drain is very real. Here is what I did:

Replaced the battery for a new one about one week before the update

Manually flashed the Factory image, without the user partition (my data was not erased)

Flashed the stock modified kernel / Super SU with the Chainfire root method

The Wifi drain was not present, vut battery life was not spectacular, so I decided to do a factory reset

Wiped data/cache with TWRP

Recover my applications / Settings with the default Google restore

Restored my user apps data with Titanium Backup

The wifi drain became present. Battery lasted about 8/10 hours of normal usage

Rebooted in safe mode. Deleted all widgets from safe mode

Rebooted normally, recreated all widgets

Wifi drain not present anymore. Battery life is now spectacular (battery lasts around 24 hours of normal usage. Battery drain overnight is around 2%
[Nexus 5 General] maheshmaf:
wht shall i say?

wifi wtf
[Nexus 5 General] jordanl17:
Back on 5.1.1 battery issue still exists!

My new battery hasn't arrived yet, but I have a new theory: for a very few N5 users the upgrade 6.0 has killed their battery. As in; our batteries were already getting pretty crappy, and the upgrade pushed it over the edge ?!?!?!?!?!?!?

I put 5.1.1 back on my wife's N5 totally clean manual install. Her battery is STILL ****! She says it was way better before we went from 5.1.1 to 6.0. now back on 5.1.1 it's horrible!!! ?!?!?!?!?!?!?!?!?!?!?!!?? I guess flashing the stock rom was the hardest I've pushed her phone... so it happened to kill the battery ??! crazy theories.

new battery should be installed tomorrow night. I will report back.

again, it seems like only a very small handful of people have this issue, right?
[Nexus 5 General] Crepusculi:
So I'm only seeing this issue reported on...ahem...enthusiast sites, such as XDA et al. I'm curious if anyone else is using Greenify's experimental feature "Aggressive Doze." I only recently turned it on, and started seeing the Wifi issue. I've just turned it off, and will update tomorrow to see how it goes.
[Nexus 5 General] bycrash:
Turn off wifi scanning and location via networks.

Connect to charger, charge to 100% and reboot device before unplug, disconnect charger after reboot. Wifi is "gone".
[Nexus 5 General] nolook:
I'll give this a try have tried most other suggestions in this thread and still am getting wifi as the top battery drainer....i even switched to a new battery...

edit - this did work for me... do not see wifi as the top drainer anymore...
[Nexus 5 General] invisible_touch:
I can not explain these differences :confused::confused:
[Nexus 5 General] telekenetix:
I haven't noticed this, but it does seem more apt to hop off Wi-Fi.

I remember that there used to be a setting somewhere in the Wi-Fi area that you could check...something along the lines of "Disconnect from flaky connections". Which, I had un-checked because often, at home, I want to be on my Wi-Fi even when it has low RSSI.

Any idea where that setting went?
[Nexus 5 General] ethanfel:
Worked 3 hours and WiFi back again.
[Nexus 5 General] nx1977:
Because Google ignore reports on their own forum. People have realised posting on there is a waste of time. The only replies are from their rising stars
[Nexus 5 General] anz563:
google just forgot about us.
[Nexus 5 General] BlackJack2012:
This Bug sucks .... i have the same problem and i try something :( I cant post screens now because im a new member ;/
[Nexus 5 General] jordanl17:
ok, so I replaced the battery in my wife's n5. pulled it off the charger at 3am.... 9 am it's reporting DAYS left of standby. OH, I OTA flashed from 5.1.1 to 6.0. anyway, standby time is awesome. BUT seems like SOT will still be about 2hrs, which is better than it was.

more later as I get more feedback.

but overall, changing the batter seems to have helped. OH, and the OTA update was a wildcard variable, I probably shouldn't have done that to have good troubleshooting, sorry.

image attached. (typical girl phone... many game notifications, and facebook messenger..etc)
[Nexus 5 General] BlackJack2012:
Ok the only working method for my nexus.

The complete discharge of the battery, and then fully recharge helped.

(wifi scanning and location via networks are disabled)

And now i have no WiFi in my battery list.
[Nexus 5 General] vaibhav.ravi:
Tried this, will report back with status after a few hours