yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] nx1977:
The only fix is that when the battery is fully discharged the cache partition is automatically wiped on reboot.

Next time, to save damaging your battery, just reboot into recovery and clear the cache partition :)

However about 3 days after I last cleared mine, Wifi is back at 55% usage and battery at 8% with almost no use since taking off charge around 7am.

Wifi was also manually switched off, and all apps in the app tray closed. But mobile data was left on when I usually disable it.

On the Google support forums still no acknowledgement by Google of the issue in Marshmallow
[Nexus 5 General] BlackJack2012:
The battery is not damaged in this process. And its the only working method for me. I have no more problems for a few days.

Try it.
[Nexus 5 General] Guntov:
I have the same problem on my Nexus 5 since the Android 6.0 update. WiFi drains most of my battery, which seems a bug to me because:

- WiFi is always turned off

- WiFi scanning for improved location is also turned off

Anyone who can help me?
[Nexus 5 General] nx1977:
Lithium ion batteries should not be fully discharged as it does damage them and lessens their life.

See - http://www.howtogeek.com/169669/debunking-battery-life-myths-for-mobile-phones-tablets-and-laptops/

There is no such thing as battery calibration with a lithium ion battery.
[Nexus 5 General] BlackJack2012:
Oh no the Wifi error is returned. :crying: Please Google Fix this!
[Nexus 5 General] vaibhav.ravi:
Hi,

I tried the recharge to 100% then unplug trick. It didn't work for me.

What did work was this:

Factory reset

Flash from marshmallow 6.0 to Lollipop 5.1.1

Factory reset

I already had the OTA update notification waiting so did that

Factory reset

Worked like a charm. Now I have good battery life - Gets through a day without problems.

I think the problem was that I dirty flashed the 6.0 Image on top of the Dev Preview 3 without any factory reset. Word of warning if anybody has done that- maybe the cause of the issue.
[Nexus 5 General] Crepusculi:
You make a good/intersting point about "dirty flashing." I manually did the update from a factory image, but did not wipe user data.
[Nexus 5 General] maheshmaf:
https://drive.google.com/file/d/0B0aYA_W2M01oNFVydmE4TVJ3ajA/view?usp=docslist_api

Help me.....
[Nexus 5 General] vaibhav.ravi:
Yeah,

So I think that the best way to update to MM is to perform a factory reset from whichever version of Android is currently present and then flash lollipop 5.1.1 and then wait for the OTA - which should be out to everyone by now. A perfectly clean install seems to handle this issue (whoever is facing it at least)

I have been using it for 2 days since the clean install and I have really good battery life. No wifi drain at all.
[Nexus 5 General] nx1977:
But an OTA is still a dirty install.

If you are going to do all that, why not just install the Marshmallow factory image?
[Nexus 5 General] tigid:
I full-flashed on a N5, didn't have this problem for several days, now suddenly I do. Absolutely nothing has changed in my environment or use of the phone in that time.
[Nexus 5 General] murtazac:
Solved - Google play services is the culprit

This has nothing to do with Scanning as suggested by [MENTION=4942685]jineshpatel30[/MENTION] or 2.4 or 5.0 Ghz.

Yes they do improve slightly but they are not the root cause of this problem.

If only I had rooted my devices I could have found out about the wakelock.

But relying on my intuition and past experiences, I uninstalled the updates of Google play services and Google playstore.

It solved the damn problem. Yes there's a bug but not in Marshmallow but in Google's pathetic play services.

Wifi usage was raised to a 13% while screen was just at 4%. After uninstalling the updates wifi is still same at 13% even after 7hrs. and screen has climbed up to 12%. Soon screen will over take it and latter wifi usage will further go down.

It is the indication that surely it was play services that were causing this issue.

Now if you do go with this method please be advised that in Android M, uninstall updates option is hidden at the 3 dots menu on top right corner. Also you will need to select "show system apps" option as well.

I am not going to install Google play services or playstore updates until I root my device so that I can view wakelocks with Better battery stats or wakelock detector.
[Nexus 5 General] emerica243:
That still doesn't seem like an accurate answer. I see no real evidence or proof, could just all be placebo. What about all the people that have the latest play services updates and are not having the issue? Your theory is disproven. I've monitored wake locks with BBS when I had the issue and oddly enough nothing stood out.

Here's my contribution on this.

I had a custom rooted rom 5.1.1.

I did a factory reset through TWRP

I flashed OTA 6.0

I rooted \ flashed custom kernel ( all standard practice for me on my phones )

ran through android setup, restored from my backup, restored all apps etc etc.

FIRST night for my phone it showed a 1% idle drain over 8 hours.

The next week it experienced the wifi \ battery drain problem chewing through 10% a night. With WiFi always showing to be the culprit and Play Services never on the stats.

Recently I factory reset and flashed Cataclysm rom 6.0.

Kept the stock custom kernel with the rom

ran through android setup, restored data from backup as well as apps

No wifi issue has existed for the last 3 days. The idle time still isnt as great as ive had it narrowed down with 5.1.1 ( 2-3% a night). But its averaging around 5% a night right now. HOWEVER, Google Play Services has been keeping my phone awake now as per the stats, but WiFi has not been seen.
[Nexus 5 General] murtazac:
Battery Stats of Android is not accurate. If you want to see accurate results, you will have to check out wakelock detector or better battery stats. It will most probably show a service related to google play service.

Its 2nd day of uninstalling updates of google play services and wifi usage is still tamed.

I believe when user install fresh marshmallow they see improved battery life, thanks to doze.

But latter the google services update comes in and ruins everything
[Nexus 5 General] springy:
Yo, I have been getting the same issue with Reported Wifi draining the battery.

The thing is, I am not really sure if it is actually draining... the reason for this (and I am not sure if other people has experienced this) is that the battery percentage starts the creep up after a while even when it isn't charging. So it looks like the way the battery stats is being presented to the end user might be incorrect.

But overall the battery life I think is slightly worse than lollipop, which is disappointing.
[Nexus 5 General] madiweb:
Someone says that solved uninstalling Google play services... But how can I do it?? In settings - app - Google play services of my nexus didn't appear unistall update!
[Nexus 5 General] Pilsor:
Good question :angel:

Have same batterydrain caused by "wifi" . :crying:

I want to try this "google play service trick "before factory reset and re-install of MM again

Thanks in advance,

Phil.
[Nexus 5 General] phstrat:
I used twrp to wipe everything and even formatted my N5 and reflashed 6.0 and so far Wi-Fi hasn't gone over 1 or 2% where it used to be 30+%. Hopefully it stays that way, as it took me 2 hrs to go through the process and get everything back the way it was minus my text messages.
[Nexus 5 General] Pilsor:
For the moment I'll wait to root this device / so no TWRP.

I'll stay with the Nexus5 and wait for "official announcement" of a bug-fix or 6.01 to solve this issue ... LOL , MM should be a battery saver build ... :eek:
[Nexus 5 General] GiantAxe:
Hmmm I had to update play services due to android wear requiring it.

Since I updated it to latest version (from 22nd of October, 3 days ago) my battery life has improved significantly

It now drains 10% or so over the course of 10 hours, but thats because android wear also has a constant bluetooth connection wich also eats some battery.

(Battery life is better if you dont have a smartwatch but thats a personal choice you make)

Still 1% an hour compared to like 8% an hour is a massive improvement for me.
[Nexus 5 General] Ekril:
Which battery calibration/reset app did you use?
[Nexus 5 General] mainicia:
No sure if it work or not, but wifi drain gone after I turn Adaptive brightness off.
[Nexus 5 General] akenis:
I cleared cache in factory recovery. I've never seen it take so long...like 5 minutes!

But Wi-Fi drain is gone from list...for now at least.
[Nexus 5 General] phstrat:
I cleared everything and even reformatted the memory, 2 days ago and it was fine until today when I got out of the Wi-Fi umbrella and went to work and was on cellular data, now its back on top of the list and is back to being the number one battery consumer. (20% and 700mAh) I've done everything I can think of. I give up, I think 6.0 is just a bad port for the Nexus 5 and hopefully Google will fix this with the next update... or they're trying to persuade us into buying the 5x..
[Nexus 5 General] GeraldRudi:
Works, thanks a lot!
[Nexus 5 General] akenis:
What clearing cache?

Mines back. Lasted 24 hrs. I started from a full flashall factory image.
[Nexus 5 General] leonardob:
thanks

Hey guys, I just want to share with you my experience.

I was having a terrible battery life after updating from 5.1.1 to 6.0.

I'm an advance user,but by no way have the knowledge you guys have. So I waited for the OTA update and update as a simple human.

After the update if I forgot to plug my phone overnigh, next morning the phone was empty and suffer 2 o 3 random reboots.

i1155.photobucket.com/albums/p558/leonardob0880/Screenshot_20151027-101350.png

Then I started to read post and try different things, like wifi drain, etc.

But the only thing that worked for me, was wiping the cache.

i1155.photobucket.com/albums/p558/leonardob0880/Screenshot_20151028-094933.png

So, I cant remember who sugested it, but thanks a lot.

(sorry about images, but since I'm new the system dont let me post outside links)
[Nexus 5 General] mc-paulo:
I had terrible battery life after a clean update (factory reset and factory image) from 5.1.1 to 6.

Usualy at this time of day I would have about 50% battery left, after having my phone unplugged at 7:00am, with Wifi at the top of of consumers.

Yesterday I cleared cache and right now I am at 75%, wifi nowhere to be seen. But I have the point "over-counted" at the top.

As I am quite happy with battery life today, I would really like to know, what this new point means.
[Nexus 5 General] yashu88:
waiting

did wipe cache partition from recovery mode, safe mode restart and reapplying the widgets on home screen, fingers crossed and waiting to see if this really saves my battery....:confused:
[Nexus 5 General] nx1977:
Seems Google play services has updated and my battery drain isn't as severe, but the Wifi wake lock STILL exists.
[Nexus 5 General] GeraldRudi:
nope, only with the settings of the first post + reboot:

now i use a "custom doze [root]" and akku seems to be doubled :)
[Nexus 5 General] gauravraw:
Mine was on. Turned it off, thanks for the tip.
[Nexus 5 General] cescman:
Is the problem solved by Google? I have tried turning off Wi-Fi and blue tooth scanning and Wi-Fi always on during sleep, but the Wi-Fi was still on top of the battery consumption list, until yesterday. Now it has gone down to about 1% consumption. I turned everything back on and so far it has not climbed up.
[Nexus 5 General] maddoxmarius:
I had the same issue. I have disabled all possible WIFI usages but still the battery drain was present. What i`ve done, but not on this purpose, is to encrypt my phone. Then voila, the wifi drain is gone.
[Nexus 5 General] Disastorm:
I'm getting this issue on my Nexus 6P. Seems like people have been doing different things to fix it? What is the best and easiest workaround? I'm basically already stock since I just got my phone a few days ago.

*edit nevermind looks like rebooting my phone fixed it.. at least for now. Hopefully it doesn't occur again, but it definitely seemed to be the same issue. Wi-fi was taking all my battery even when it was completely disabled as well as location services were completely disabled.
[Nexus 5 General] EddyOS:
Wonder if this is still present in the new MRA58N build?
[Nexus 5 General] nx1977:
What version number is it?

Assume it'll OTA soon
[Nexus 5 General] migueldbr:
that and the annoying delay in connecting to wifi through quick settings or widgets...knowing google, my guess is that it is exaclty the same lol
[Nexus 5 General] EddyOS:
6.0.0

Factory image is already out :)
[Nexus 5 General] Guegs!:
Getting this on both of my N5's. Will try for a few hours and see how it works out. Thanks for the tip. :D

https://i.imgur.com/ywGBoNn.png

EDIT

Ended up trying this instead and it seems to have worked.
[Nexus 5 General] Paget96:
I didn't checked if some answered already, but I found a fix. That is not a bug.

Drain are cause from apps like Viber,telegram,whatsapp who use wifi or data. What to do, inside every app you have wifi sleep policy, and change it. I'm using telegram and viber, see here what i did.

This helps me :)
[Nexus 5 General] jineshpatel30:
Personally i use only WA and apparently it doesn't have this setting.

But Turing off wifi scan working okay for me..i haven't seen this drain for more than a month now.

Btw which theme/rom is this ? & which app is that in 2nd SS ?
[Nexus 5 General] Paget96:
Cataclysm rom + timber wolf layer ;)

Android M support layers natively, rom doesn't need to be patched ;)
[Nexus 5 General] jineshpatel30:
I suspected it's a layer that's why i asked :p ;)

I'll try it soon..looks cool, thanks :D
[Nexus 5 General] fabio_v:
In past weeks I tried all the workarounds described in the thread, without success.

Yesterday I received a Google Play Services update and the wifi battery drain seems to be disappeared. After 3 hours of connection only 1%. I've everything enabled (wifi scan, geo localization, auto band).

Did somebody else notice it ?
[Nexus 5 General] jineshpatel30:
Yah..

Play Service 8.3 is better & helps in drain but i'm not sure it counts as workaround so i didn't add it in OP.

Though people who still facing issue update it from apkmirror (8.3.xxxx-438)
[Nexus 5 General] LucidSomnia:
Well, i got the 8.3 services but the bug is still there.
[Mi 3 General] TheDj408:
Even though MIUI is still based on 4.4.4 for Mi3 and Mi4 marshmallow ROM is out for the device!

UPDATE-

Marshmallow for Mi3/Mi4 is out! and here is the guide to install it with mini review! with Working GAPPS!!!

Rom is pretty smooth for me ! DOZE works, play store works! Lil Gaming is also done in the video which was nice too!

All the links are in the video and you can tell me any bugs if you find!

Video- https://youtu.be/PKJWlYNnwXE

[YOUTUBE]PKJWlYNnwXE[/YOUTUBE]

Downloads-

--ROM- http://bit.ly/1LKYHfR

Mirror of ROM on Mega- http://bit.ly/1kl9BQ3

--Gapps- http://bit.ly/1Wsp8d9

--TWRP recovery- https://dl.twrp.me/cancro/

Its been just a few days since Google announced its latest Android 6.0 Marshmallow version. But developers have already started working on the new update for existing devices.

According to the new Weibo post from the active Chinese developer, Ivan, we could see the first developer version of Android 6.0 Marshmallow on Xiaomi Mi3 real soon.

Of course, you may have to wait for a few more weeks until the first usable version is available, but its still good to see that thanks to such active developers, you can try out the latest Marshmallow Android update months before the official release.

Ivan notes that he’s still fixing bugs on his Xiaomi Mi3. And once he’s done with the Xiaomi Mi3 model, he will move on to the flagship Xiaomi Mi4.

So, Mi4 users also have something to cheer about. Further, he adds that he will also try to install it on the three year old Xiaomi Mi2 model as well (if possible) and finally move on the the Xiaomi Mi Note standard edition.

Check this for Updates- http://en.miui.com/thread-170774-1-1.html
[Mi 3 General] pratyush997:
Source
[Mi 3 General] mig0r:
just hope that camera will work better than in lollipop
[Mi 3 General] Skar3:
I hope Ivan will release also the kernel source, but that will never happen :(
[Mi 3 General] carmos:
there is not camera app?
[Mi 3 General] Fikshun:
it does show up in 2nd screenshot

Sent from my MI 3W
[Mi 3 General] ankushgautam:
[MENTION=5504720]TheDj408[/MENTION] hi bro.. Follows your videos on youtube.. I am facing a bug on all the custom roms except ivan aosp nd miui. The bug is that whenever i call someone with loudspeaker on, the other person is not able to hear anything.. Infact my voice comes back to me.. Can you help me with this bug?? I have tried everything but nothing is helping me. I have mi3
[Mi 3 General] Nyqi:
Any news?
[Mi 3 General] morpheus620:
see here: http://en.miui.com/thread-170774-1-1.html
[Mi 3 General] Armin_van_buuren:
New info from Ivan Weibo:

http://m.weibo.cn/page/tpl?containerid=1005051697247850_-_WEIBO_SECOND_PROFILE_WEIBO&itemid=&title=%26%2320840%3B%26%2337096%3B%26%2324494%3B%26%2321338%3B
[Mi 3 General] Hsmetric181:
Internal beta testing for android 6.0 started(19-oct)

Only issue still left are

Data connectivity

Camera connectivity
[Mi 3 General] GhostWANTED:
can you post download link ? :D
[Mi 3 General] Armin_van_buuren:
UPDATES: 19-Oct, He released his beta testing to his internal testing group ! There is no major issues but the CAMERA and DATA CONNECTIVITY is not working though.
[Mi 3 General] pra300:
Thanks for updates
[Mi 3 General] GhostWANTED:
ahn ok..he write international so i think he wrote wrong..
[Mi 3 General] Hsmetric181:
Ops!! My bad,corrected now?
[Mi 3 General] Armin_van_buuren:
New info:

Great News!

22-Oct, He managed to resolve the data-connectivity! And he is left with camera-issue only!
[Mi 3 General] mig0r:
fingers crossed, keep us updated!
[Mi 3 General] morpheus620:
This weekend there are the first preview version. Camera takes still problems.
[Mi 3 General] pille1:
Wow! Can't wait for it!!
[Mi 3 General] iSaurabh:
Its showing me H+ but net not working? Any solution? :(
[Mi 3 General] Fortinho:
Works on Mi 4W, but I can't get to work SuperSu.

Tried to flash the zip provided by [MENTION=4747963]Hsmetric181[/MENTION] just after the ROM but I can't see no root access.
[Mi 3 General] Fikshun:
If data is not working ,turn off the data from switches ,dial a number and hang up ,turn data on again ,it should work now
[Mi 3 General] Hsmetric181:
Did you open the supersu app and installed the binary??
[Mi 3 General] Fortinho:
There was no SuperSU app. I installed it and gave me error (no root access).

I will try again.
[Mi 3 General] GhostWANTED:
A temp fix for 2g/3g switch

Open dial pad -> type *#*#4636#*#* -> then will open a "secret" menu -> tap on phone information->scroll down until see a option called "set preferred network type", click on that and select gsm only (for 2g) or WCDMA (for 3g).
[Mi 3 General] vineshbalan:
Great, Thanks! This would definitely save some battery for me.
[Mi 3 General] gingerboy92:
or just toggle airplane mode on and off. works for me.
[Mi 3 General] Abhi142:
Do not disturb

Can turn off dnd
[Mi 3 General] vineshbalan:
Short review

I've been using this ROM for 4 days now, and I'm happy with it so far. Battery usage is decent with SOT around 3.5 hours. Couple of issues I have are with the mobile networks and wifi battery drainage.
[Mi 3 General] Dev Null:
Mi4 LTE here.

Camera doesn't work at all. (I guess someone will reply that the devicee is not supported.)

Longpress on menu button closes the system UI.

Mobile networks menu closes in Settings/More

Otherwise nice work, I hope one day it will work on my device as well!
[Mi 3 General] morpheus620:
Have you the newest rom installed?

Gesendet von meinem Nexus 5X mit Tapatalk
[Mi 3 General] vineshbalan:
Enable Nav-bar buttons in settings. Try Google on Tap, and then disable Nav-bar buttons. Now Longpress will work

I think most of them face this. There is a workaround if you want to switch to 2g(to save battery). Dial #*#*4636*#*# and change preferred network type in Phone information. Camera works fine on MI3 though.
[Mi 3 General] Dev Null:
I think so. Version of 16th of November.

Adding any function to "longpress menbu" solves the system UI, and I can use other method to setup the 2G/3G/LTE networks,

but camera doesn't work at all.

LTE version of Mi4 has a totally different one, than the other modells. It was really a problem with the 5.1.1. version, and also with the official CM nightly - but only gave a 180 degree rotated image, not just an error message.
[Mi 3 General] mig0r:
thats all fixed in official CM 12.1, even HDR works. It's superstable now and everything works.
[Mi 3 General] ajitkatte:
Guys very good news,

Ivan has released his source code of marshmallow (Device Tree, Common and Kernel) on GitHub.

It means now camera bug can be fixed and we will get a lot new marshmallow roms. ;)
[Mi 3 General] Sachin Thomas:
He has released device tree and vendor tree. But kernel source has not been updated after June 13th.

Edit:

Mi2 kernel source has been released
[Mi 3 General] morpheus620:
Android M with MIUI 7.
[Mi 3 General] pratyush997:
source?

Edit

Nvm

http://www.gizmochina.com/2015/11/23/the-xiaomi-mi-4-is-getting-android-6-0-marshmallow/
[Mi 3 General] deepakpillai8:
Will there be an update to the rom? If yes then when can it be expected?
[Mi 3 General] ajitkatte:
Maybe in the next week.
[Mi 3 General] RohMish:
Running on latest release as of today, tried flashing 2.52 superau zip but still getting bootloop. Also, I have reformatted system partition but it still shows only 629MB of internal.
[Mi 3 General] Nigam666:
No idea about the bootloop, but regarding the partition size, take a nandroid backup with TWRP and restore the backup. You'll again get the 1.2gb partition. Backup and restore did the trick for me.
[Mi 3 General] Enter Sandman:
I install rom and gaps (benzo). Then boot and set up rom and install apps. After that flash SuperSU without problems. Stock partition. Only minor problem is data connectivity.. But use airplane mode to trick. So far rom is stable and good.
[Mi 3 General] RohMish:
I have tried flashing Super su with fresh install and with existing image, it crashes while boot and switches off if I install anything. I have tried SuperSU, 2 Kernels, V4A MOD.

Flashing Zeurion kernel causes it to always boot to recovery. On GK (and when I flash SuperSU) it gets stuck on starting apps after clear and then on subsequent boots shuts off during boot anim.

And thanks for the Backup-Restore trick totally forgot about it. I suppose it happens because the Rom zip patches the system partition by block and the image in zip is for a 614 MB partition.
[Mi 3 General] Enter Sandman:
I used twrp 2.8.7.0 maybe this help..
[Mi 3 General] RohMish:
Using 2.8.7.0 twrp.
[Mi 3 General] Jongla:
It only says mi4.

That means mi3 won't have it? :/
[Mi 3 General] 33HdA:
Is anyone facing sensor problems? Proximity, Compass, Light, Accelerometer, Magnetic sensor, nothing is working for my Mi4. Whenever i place a call the screen does not even turn off.. I have now flashed the latest Stable MIUI7 on the phone and the sensors are still not working, any help would be greatly appreciated.
[Mi 3 General] pratyush997:
Mi3 and Mi4 shares same codename. Cancro.

The stuff is compatible.
[Mi 3 General] gary138.138:
It seems that everything works fine on Ivan's 16/11 build.

This build should be the best of 6.0 roms for cancro for the time being.:good:
[Mi 3 General] Enter Sandman:
It's good but battery drain on marshmallow is very nice feature ;)
[Mi 3 General] RohMish:
Were you able to flash custom kernel and/or SuperSU? Running on 11.16 and flashing anything causes it to bootloop.
[Mi 3 General] gary138.138:
SuperSU - successfully flashed

custom kernel - can't flash