yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] vboyz103:
regarding the wifi battery drain bug. I've been scouting the Internet and found different suggestions from:

1. Changing Wifi Frequency

2. Turn off High Accuracy mode for GPS

3. Use custom kernel

4. Use custom Rom with R7 code

5. Uninstall apps, by using WLD to detect.

Some of my own:

1. Turn down screen brightness

2. Change my Wifi channel to N-only mode (5Ghz)

3. Flash back to KK 4.4.4 and OTA to L (UPDATE)

But nothing seems to help the drain while USING the freaking phone. I mean I surf the web with Wifi on and the battery drains quickly. I can't turn off wifi because I need it badly due to the fact I have the T-Mo $30 plan.

So therefore, I'm giving up trying and just have to charge more.
[Nexus 5 General] ZacksBuilds:
I never had this issue:confused::eek:
[Nexus 5 General] Kartoffelrudi:
You could just try to live with it, i don't have this bug at all, but also i dont need wifi so much, have 15 GiB Data from Vodafone DE and just use it up like 90%..

You could also try to flash factory image and don't import ur apps, just go fresh
[Nexus 5 General] ronnienyc:
Out of curiosity, how much better was you phone on 4.4.4?

And, who can point me in the direction of how best to downgrade to 4.4.4?

Thanks.
[Nexus 5 General] AndrasLOHF:
Same here man. Here is what I've done so far to try to get back to Kitkat battery life.

I've fresh flashed the image at least 10 times using the flash all.bat on 2 different computers with matching MD5 downloads.

I've used it both stock/stock rooted, both unlocked/locked bootloader, both with/without user apps.

I've used several builds of Nexus 5 Experience, Slim , and Cataclysm ROMs.

I've used stock, Slim, Franco, ElementalX, Code Blue, Hellsgod, and Faux kernels.

I've used the setup as new device option at least 5 times on clean ROM flashes.

I've used Greenify and Lean Droid.

I've tried deleting all of but the most basic needed system apps.

I've turned off all battery drainers: Google Now, Location Services, Auto Brightness, Google Fit.

I've set mobile data to 2g only, set wifi to turn off while asleep, set wifi to 2.4 or 5 only, set it to device only GPS.

I've turned off auto brightness.

I've tried undervolting, tried underclocking, tried conservative governors.

I've tried doing a battery calibration.

.....there's probably a few more things I've tried as well but am not remembering right now.

I've tried quite literally every possible thing I can think of that I've picked up over the years as battery tips.

I'm still only able to get around 3 MAAAAAYBE 4 hours of combined usage on a good day which for me is listening to music over bluetooth and SOT combined. Compared to Kitkat that is about 2 hours give or take 30 minutes of less than before. Luckily I'm always near a charger.

Project Volta my patooty.:silly:
[Nexus 5 General] nickmv:
Did you flash via the OTA update or through adb sideload on stock recovery?

Either way, you're going to have to unlock your phone to downgrade to 4.x, because you'll need to flash the factory image for it. Here's a quick overview of the process:

1. Download the factory image for your phone at https://developers.google.com/android/nexus/images

2. If you haven't already unlocked your N5, you need to --- and back up anything important first, cuz it all gets erased. Google how to do it -- there are toolkits to do this quickly and painlessly (I think WUG's is one?). Look in the dev section for it.

3. Once you're backed up, unlocked, and factory image downloaded, you use fastboot to flash the factory image. Google how to flash nexus factory images, and substitute the image you have in place of the image any guides have.
[Nexus 5 General] Kartoffelrudi:
For unlocking your Nexus 5 Bootloader, you first need to boot into fastboot mode. This can be done by turning off your phone, holding vol down and power and wait till the screen responds.

Now you need to connect your phone to your pc, be sure you installed the google usb driver for full support of fastboot mode.

Now you can go ahead and install Fastboot/ADB, there are plenty of Tutorials in this section for this.

Now open your cmd, and type

fastboot oem unlock

On your phone you will now see a selection, which you have to answer with YES.

Voilla, you have an unlocked Bootloader.

ALL YOUR DATA IS NOW LOST

Now just flash Factory 4.4.4 with flash_all.bat
[Nexus 5 General] ironclad1911:
This is true the battery is not very good but when you are using custom kernels please tweak them and learn how to tweak them using several kernel tuning apps like synapse faux clock, kernel tweaker, trickster mod etc

And if after tweaking u still are not getting results please try changing your kernel settings to new ones keep testing until you find suitable settings

All the best
[Nexus 5 General] ronnienyc:
Anyone want to comment on how LL battery life compared to 4.4.4 on their nexus?

In any case, I see little improvement in LL.

IMO 4.4.4 was better. At least you didn't have to swipe away notification screen

every time

you power on the screen.

If all we are gaining is slightly "smoother" experience, and encryption, then who gives a sh!t.

---------- Post added at 09:26 PM ---------- Previous post was at 09:24 PM ----------

And yes, thank you. Fortunately, I have rooted tons of phones before, so I shouldn't get too lost ;)

---------- Post added at 09:28 PM ---------- Previous post was at 09:26 PM ----------

Just for comparison's sake, I have been using my iPhone 6 for the past 4 hours, and it reads 94% remaining battery.
[Nexus 5 General] tweaked:
You weren't using it full screen on and playing anything intensive....

Iphones drain just a badly when you use them. When screen off sitting, they have wonderful battery. But who cares? I leave my phones on chargers when Idle.
[Nexus 5 General] ronnienyc:
You're right - I wasn't using my iPhone 6 to "play" anything. I was using it to get work done: Emails, web, phone calls, SMS etc. It lasts two days for these purposes. My Nexus 5? 4-5 hours. :(

(and uh, no. It doesn't drain as badly. There's no contest there.. I prefer Android, but goddamn...I can't run around with a charger in my pocket. Not gonna happen)
[Nexus 5 General] Mairo:
2 days is my usual battery time. Same as kitkat, don't know what you r talking about wifi battery drain. Wifi is 90% turned on.
[Nexus 5 General] tweaked:
4-5 Hours? You should re-image it man. You have something wrong. I get 4-5 hours of game, email, and music stream time on battery. If I Only do internet, email and phone I get an entire day.

Lucky for me these are toys. I would never be beholden to my electronics. lol
[Nexus 5 General] xfortrenox:
I'm not seeing any of these issues on Lollipop. Battery life has increased for me over KitKat.

I've been using Stock rooted with Code Blue.

A couple questions though...

Do you only make one change at a time and then test?

After making changes, how long do you test those settings before making additional changes?

Why did you switch it to 5GHz only? 5GHz has more trouble with walls and has a smaller coverage area than 2.4GHz.
[Nexus 5 General] G1ForFun:
Never had any issues with the WiFi but I turned off Google Now listening and almost tripled my daily battery life.
[Nexus 5 General] ronnienyc:
I've just gone back to 4.4.4 - will see if battery improves or not.

I really did not see anything particularly better about LL anyway.
[Nexus 5 General] NotFromMountainView:
I'm having my share of problems with Lollipop (though things have been improving over the past week or two,) but the wifi power drain never hit me. Wi-Fi battery life is a bit worse than I had on Kitkat: idle drain is excellent, but SOT has gone from a comfortable 4 - 5 hr to 3 - 4 hrs (in a 12 - 15 hr day***), I can easily get well over 5 hrs, but that'll be at the cost of a significantly shorter 'day'. 3G, on the other hand, is chawing through battery rather aggressively compared to Kitkat & it hurts.

On both Kitkat & Lollipop I was/am running pure stock with everything on (Always listening, precise location, location reporting, bluetooth, etc. The only thing I've knowingly turned off is NFC (after accidentally setting my phone on a tag & tag-calling my mom at 4 AM ;) ) No gaming, but several hours of podcast listening or Tune-In radio listening every day.

*** Usual average day from full charge to ~12% but early on there were a few days that barely lasted 10 hrs with under 3 hrs SOT.
[Nexus 5 General] Neverendingxsin:
I've been using the stock factory image and haven't encountered this wifi draining bug.
[Nexus 5 General] vboyz103:
Update with reverting back to KK 4.4.4 from factory images and OTA to L in OP but only help with idle but not when using phone.
[Nexus 5 General] bblzd:
I'm not sure if you realize this, but you claimed you can get 66.6 hours of active usage on a single charge with your iphone 6. I don't think I need to explain how ridiculously impossible that is. Maybe you should stop exaggerating so much if you want people to take you seriously. Assuming what your battery life is and knowing, are two very different things.

I'd put money down the phone wasn't actively used for more than 1 hour in that time. 16 hours of usage is within the realm of possibility.

For the record, my colleague beside me right now has an iPhone 6 PLUS (more battery) and confirms that is impossible. You couldn't even read ebooks at 0% brightness for 66 hours. I'd ask for proof but your phone of choice has no way to do so and we all know it could never happen anyways.
[Nexus 5 General] ronnienyc:
That's not what I claimed. I didn't say that the screen was on the whole time, did I?

As of now (still on the same charge as my previous post you are referring to - and been using it off and on today for my business - 76% battery remaining at 4:06 PM Pacific time. Fabulous battery life.

And by the way, this iPhone 6 loses maybe 1% overnight in standby for 8 hours.

(I wish Android was better here - as I prefer it...)

Anyway, this thread is supposed to be about how bad the Nexus 5 is (not how good my iP6 battery is) so let's get back to that. ;)
[Nexus 5 General] bblzd:
Why would you say you've been "using it for 4 hours" if all you meant is "I unplugged it 4 hours ago"? See what I mean about exaggerating? You even compared it to your Nexus getting only "4-5 hours" (clearly SoT) so you might see why that would be misleading.

I find people love to state their battery life in very subjective terms. This is especially true for iPhone users since their battery stats don't actually tell the full story.

For the record, the Nexus 5 can also lose only 1% over 8 hours of idle. Simply disable the battery draining features that have no iOS equivalent (Google Now, Auto Syncs, Locations Services) and you will see the same thing. In other words, your iphone has less background functionality thus it drains less background battery.
[Nexus 5 General] ronnienyc:
I described what my normal usage is in an earlier post. All I know is End of day today I'm around 75%, yesterday on the Nexus with about the same usage I was at 15% and draining fast..There's obviously a problem there. My Galaxy S5 also lasts WAY longer than the N5.

Anyway my Nexus is now on craigslist, in case you want to pick up another one :)
[Nexus 5 General] nednednerb:
Reminds me of buying a phone off craigslist: "oh it works fine, I'm getting a new phone/ I don't need this one/ etc" and then it started rebooting constantly and had horrible signal. It was totally stock. Luckily I rooted it and it kind of worked, especially with an extended battery and new antenna. And it never did work again very well with original battery and antenna....

Seems like you just have a defunct N5. Maybe dropped it once badly or stressed out the battery and cpu by intense flashing and "wifi" treatment that stressed things worse. Tech can destruct easily with a few random problems and exacerbation.

Poor craigslist buyers out there :-$

Haha
[Nexus 5 General] jayRokk:
THIS!!!!!!

If people would just understand that not everyone ;

1. Uses their phone at the same time, for the same amount of time.

2. Have the same number of apps installed.

3. Have the same number of apps that sync in the background.

4. Have Google location, google reporting on or off

5. Have same brightness levels.

6. Have tweaked kernel/system

(And tons of other variables)

They would stop with these ' I want my battery to last like yours' post.

Why is everyone so damn obsessed with having 'great' battery life. The Nexus 5 has mediocre battery life. Everyone and their moms known this!!! If you wanted a phone with great battery life, that person should of bought something else. These battery post are getting ridiculous.

I never had any WiFi bug, or any bug for that matter when I first flashed lollipop. If you do have bugs. 80% of the time its on your end. Figure it out.
[Nexus 5 General] GldRush98:
Flash the 4.4.2 radio.
[Nexus 5 General] patkylie:
Hi there,

I am using nexus 5 with Lollipop since it officially released. Of course I am using a custom rom with custom kernel (AOSP 5.4 LRX21T+ ElementalX). Yet, the battery drainage is not bad. At least a bit better than Kitkat. I can have 3 hours On screen time with HSPDA and over 3.5Hrs OST with Wifi. When I am using Kitkat (Purity ROM), the OST usually less than 3 hours and sometimes even worse.
[Nexus 5 General] vickyjusme:
maybe before you give up try cataclysm rom and elemental x kernel. no battery drain and the rom is write stable. I get ~5 hr sot. WiFi 60% and 3g 25% of the time. just give it a try. you will like it.
[Nexus 5 General] ronnienyc:
Re "poor craigslist buyer out there "

I put 4.4.4 back on the phone today, so it's back to normal!
[Nexus 5 General] rayiskon:
You never had any bugs on lollipop because you chose not to see them.
[Nexus 5 General] jayRokk:
I can say with a lot of confidence that the number of people who have bugs, appose to those that don't, is a very small number.

I know of 3 people I work with who have Nexus 5, all who didn't have any issues, and all stock, they're not into rooting.

Your comment is the same as saying; I chose not to believe in the Illuminati because I chose to ignore the signs everywhere.

Things don't work like that ;)
[Nexus 5 General] wifesabitch:
5.0 is great for me. Zero Wi-Fi issues, battery life is normal, it's fast and fluid.

My only problem is the silent mode and the new interruption settings.
[Nexus 5 General] EddyOS:
What I've wanted to say for months but couldn't find the words without sounding rude!

To the OP, have you run the phone in safe mode for a day? Might be worth trying, if not already, as I'm pretty certain you'll find it's an app not yet updated for 5.0 causing the issues as my phone runs just as good as it did on 4.4.4
[Nexus 5 General] AndrasLOHF:
There is definitely something wonky in the code. I believe it only effects certain people with certain wifi setups honestly. Not sure what changed from 4.4.4 to 5.0 but something has in regard to the CONFIRMED BY GOOGLE THEMSELVES miscellaneous wifi bug. I don't think the fix they implemented worked or all they did was hide it somewhere else in battery stats. As I've stated previously I have gone so far as to run the flash all batch script, relock the bootloader, set the phone up as a new device so it would not restore any data, and run the phone for a day or two with absolutely no user apps or changes to the system settings and still have not gotten anywhere near Kitkat battery life. Maybe it could be the memory leak problem and sometimes apps get constantly stuck in a restarting cycle. Something definitely is not right.
[Nexus 5 General] datallboy:
Run your phone in safe mode for the day, if it still drains it's your battery. Troubleshoot, come on.
[Nexus 5 General] yutada:
Yup, me too. 5.0.1 is coming, everything will be OK.
[Nexus 5 General] rayiskon:
What i meant to say was, just not seeing a bug doesn't necessarily mean it's not there.

- Random apps appearing in recents (after swiping all cards away)

- Slowdowns and possible memory leak after a few days of use without reboot.

- If you take a more scientific look at battery usage (that doesn't include relying on stock battery stats), you'll find out that battery % used by all your apps and processes (including radio stats and idle state etc..) doesn't match the % of battery dropped. The Misc. draining bug still exists, but instead of solving the issue, Google just masked it and removed it from battery stats.

- The back button bug that opens a previously used app (that used to exist even on kitkat) is still there.

- There is a sound glitch that occurs every now and then, especially when using headphones. It might be device specific though and present only on the nexus 5.

..and there are many more, but these are the ones that interfere with my daily usage and affect the RL user experience

Now, a lot of people don't encounter certain bugs, either they don't have the habit of clearing recents, or rarely use the headphone jack (some just don't pay attention to the sound glitch, but trust me, after you hear it once and you know what it sounds like, you'll hear it every time).

Furthermore, some people exit apps using Home instead of tapping Back quickly several times...

Again, not encountering a bug doesn't mean it's not there.

p.s. i have a few friends too that are not tech savvy and have never rooted a phone, and most of them are complaining about bugs in Lollipop (mostly redraws after a few days of use and battery drain issues). I mentioned it in a post some 10 days ago.
[Nexus 5 General] jayRokk:
I literally don't have ANY of those issues.

My wife did have the memory leak "issue" but re flashing everything and wiping everything properly fixed this.

They keyword is MY from your post. You and me both do not have exact set ups. Other things can cause those issues.

My wife's friend also had the memory bug. I took her phone and flashed everything properly thru ADB and she no longer has that problem at all.

It can also be device related like you stated, since no one phone is alike. All we can hope for is that this new AOSP code fixes things for those users.
[Nexus 5 General] rayiskon:
You can't convince me you don't have this bug

i'll give you a few ways how you can reproduce it:

1- install any .apk from outside the Playstore (unknown sources), clear everything in recents, enter recents again, you'll see a "package installer" card.

2- Set alarms with the default Google clock app, as many as you like, let them all go off , then go to your recents, swipe everything away, enter recents again, you'll find a clock card, swipe it away, again enter recents, you'll find a clock card again. Basically, you'll keep getting a clock card for each alarm that had gone off.

3- In certain occasions you'll get "Android System" , "App Info" and similar cards...

This behavior is not normal, and it affects ALL devices. Again, it may not be annoying for people who don't have a habit of clearing recents. The point is, it's there.
[Nexus 5 General] jayRokk:
This is an annoyance, not a bug. It doesn't effect how the device runs, it isn't a bug for me.

What's the point of clearing everything? The device runs perfectly fine every single day with a LOT of apps in the recents. And isn't android designed to run efficiently while multitasking.

You needed a bug and found an excuse for one.
[Nexus 5 General] rayiskon:
I thought my English was bad enough that you might have not understood the points that i raised in my posts, but now i see where the problem is.

Here, let me help you out
[Nexus 5 General] jayRokk:
Like I said its an annoyance, not a bug.

There is no point in clearing the recents.
[Nexus 5 General] cpvm:
So why we can clean it?
[Nexus 5 General] jayRokk:
Read this article.... One of many behind this

http://www.androidpit.com/why-clearing-recent-apps-is-a-waste-of-time

I imagine people closing their apps in recents creates a psychological pseudo effect that makes them believe they are saving battery life, and increasing performance in turn making them much happier with their phones/roms.

Straight from the article and also the developer of 'Greenify'

"Most people don't quite get the mechanics of how caches work and why they are actually a good thing. Take Android L's ART (Android Run Time), for example: by pre-compiling apps once and keeping them stored in RAM, you'll notice significant increases in app launches and responsiveness. This is a good thing, and there are several reasons why Google is making ART the default runtime in the next version of Android.

This is also why the dev behind Greenify, Oasis Feng,*decided to illuminate us with the following pearls of wisdom:

Swiping away apps from recent tasks frequently is not a good practice, since it reduces the efficiency of process cache mechanism in Android, thus impact the performance of your device.

Swiping away apps from recent tasks kills the process of those apps, thus prevent them from being cached in memory. When you launch them later, it takes longer time and much more CPU cycles to create the process and re-initialize the app runtime.

Clearing recent tasks does free much memory, at the expense of later performance and battery consumption for launching those apps again. So if you have a device with 2G RAM, it gains no benefits in practice.

"
[Nexus 5 General] rayiskon:
It's irrelevant to our discussion whether or not there is a point in clearing recents, that's a different topic.

The system is acting in a way that was not intended, and that is considered a bug. Period.
[Nexus 5 General] jayRokk:
Because its not intended to clear the recents?
[Nexus 5 General] peeweew:
It's not the System. It's the usage.

All hail Greenify!

BTW, is turning on Gmail and Contacts sync always have much effect on my battery usage?
[Nexus 5 General] rayiskon:
Aha, so the messed up behavior in recents is a feature now. I wonder why it was not present on previous Android versions.

If Android Police, and every other tech site, call it a bug, then it's a bug.
[Nexus 5 General] _MetalHead_:
Welcome to the club, OP! Both my N5 and 2014 Moto X are on 4.4.4, and there they shall ever be.

http://xdaforums.com/google-nexus-5/general/staying-kit-kat-t2941924
[Nexus 5 General] pcphobic:
[MENTION=295778]vboyz103[/MENTION]

Android 5.0.1 (build LRX22C) has just landed in AOSP - http://androidandme.com/2014/12/new...to-aosp-several-factory-images-available-now/

Hopefully it will fix that mysterious battery drain.
[Nexus 5 General] vboyz103:
Thanks, I saw this couple of days ago but just checked again and didn't see any factory image for our Nexus 5. Hopefully devs will put together a build soon out of 5.0.1.
[Nexus 5 General] gee2012:
Unofficial CM12 and Rastapop roms are 5.0.1 based now;)
[Nexus 5 General] pcphobic:
The developers are already doing it. U can find some custom ROMs in the other threads using it. One of them is CyanogenMod.

I am at the moment using N5X paired with Code Blue Kernel and battery life is better compared to when I was on stock Lollipop.

I am just waiting for N5X to release a new build soon based on Android 5.0.1

So please don't give up hope. I was like you too during the Google Play service battery drain period during the KitKat days. Eventually Google fixed it by releasing a new update to their Google Play service app.
[Nexus 5 General] vboyz103:
5.0.1 came just in time heheh..I'm on SaberMod Rom now with 5.0.1 and will see how this new update fare in the battery department comparing to Stock L.
[Nexus 5 General] pcphobic:
[MENTION=295778]vboyz103[/MENTION]

OK cool! Hope it will restore the faith in you in Lollipop.

Btw, do try Code Blue Kernel.
[Nexus 5 General] MrObvious:
Maybe look at this:

http://xdaforums.com/google-nexus-5/help/to-disable-lollipop-t2959828

It's a little list of stuff I've disabled to try to help. It seems like it does help as long as I have good signal. SOT seems better.
[Nexus 5 General] b1bub4bu:
I think you should give phone day or two, to settle when chaning kernel or ROM. Sometimes it needs 3 or even 4 charges until you can see battery improvement with new kernel/ROM. Well that is my opinion.
[Nexus 5 General] asd246810:
The battery will be better after one or two charge cycle, so just give it a try.