yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] bblzd:
Some have mentioned the Google restore causing issues, you could try without that step and see. I haven't heard of any issues restoring from custom recoveries however.

Interesting stuff though. I could definitely see how a device that is easily rooted and is running the latest, more security focused Android 6 would be beneficial to your line of work. Both of those seem to be weak points for Samsung devices which are unable to turn out timely updates and have their warranty voided upon tampering.
[Nexus 5X General] chris_banks2:
I'm seeing terrible battery life, worse than my old N4. I'm lucky to get an hour and a half SOT with only minimal light usage (no videos or games etc)

Left my phone over night and the battery dropped from 90% to 44% with no screen on use. The battery screen doesn't provide any information to as why either, only showing 2% for phone and 1% mobile stand by. (What about the other 43%!)

Already tried a factory reset with no luck. Any suggestions?

(Also suffering issues with poor screen responsive while charging, but that's another story)
[Nexus 5X General] snellm:
More battery woes

As many other people have reported, I am also seeing very poor battery life on my Nexus 5x recently (perhaps correlated to the 6.0.1 upgrade, but can't be sure) - the phone loses 50% charge when left untouched for 8 hours.

I've used Battery Historian to produce a report as detailed in an earlier message on this thread, but it doesn't seem to point to any culprits, or perhaps I don't understand it well enough? I do note from the report that 43% of the power use is "unallocated", and that apparently the phone is entering Doze mode for long periods, but still losing charge at a steady rate.

Battery Historian report: imgur.com/a/pJnJq (sorry about the link, XDA seems to prevent me from adding attachments or providing outside links)
[Nexus 5X General] EeZeEpEe:
Wow. Now that's really strange especially since it wasn't even awake most of the time. My only guess would be some kind of WiFi drain.
[Nexus 5X General] gizzmoffm:
I see permanent WiFi multicasts in that graph. Might be an IPv6 issue (router advertisements etc.) or some other network traffic which keeps the device awake

Gesendet von meinem Nexus 5X mit Tapatalk
[Nexus 5X General] snellm:
I notice the WiFi multicasts too. Does that mean something else on my network is sending multicasts? Is there any way to track down which device?

The battery monitoring does not report WiFi actually using substantial amounts of power - I see figures similar to what chris_banks2 reported. Perhaps this is a separate bug?
[Nexus 5X General] gizzmoffm:
Well, I think that multicast handling is done in the kernel, and any power wasted there might not be accounted correctly. Just a guess...

To find out the source of these multicasts, grab a PC and run wireshark on it.

In my case it is the WiFi router which is sending a lot of ICMP multicast packets due to IPv6 - that is how it works.

However, I lose only about 1% per hr on my network, maybe something is wrong on yours, or some device is going crazy...

Edit:

Have you tried disabling WiFi and checking battery drain?

You may have to go to Settings - Location - Overflow Menu: Searching (? dont know how it is labled in english) and disable WiFi Search in standby, otherwise it may stay active.

Edit 2:

You may also try disabling IPv6 on the phone, see this thread:

http://xdaforums.com/google-nexus-5/general/wip-simple-script-wi-fi-wakelock-t2836913

(needs root though...)
[Nexus 5X General] bobby janow:
Perhaps a few others, but certainly not many. Think about it for a second, if the problem was 6.01 as you suggest wouldn't everyone be having the problem not just you and a couple of others? There is no way a phone should lose 50% over 8 hours untouched no matter what you do. Do you have a screenshot of that? At this point I'd suggest to factory reset or flash the image again and then without restoring anything let it sit overnight. If it still loses 50% on a clean install I'd call Google because something is major wrong that no one else has on their device. I run all kinds of stuff and I've never had to plug the phone in during the day for a charge. Not huge SOT but still 15 plus hours with 50% left.
[Nexus 5X General] snellm:
Re kernel/battery reporting: I suspect you're right, and that may explain why other people here are reporting large unexplained battery drain - the wifi multicast doesn't show up at all on the battery monitor in Android, only in the bug report/Battery Historian.

Re Wireshark: I'll look at trying that, although thinking about it, I have other devices connected to the same network, eg a Nexus 9, and they don't exhibit the same battery drain problem, so it seems to me the problem is the Nexus 5x rather than the network.

Re disabling wifi and location scanning: I will try that tonight.

Re disabling IPv6: Also worth trying, but I think I will try a factory reset and clean reinstall of apps first.

PS code.google.com/p/android/issues/detail?id=188909 looks to me like it might be the same, or at least similar, issue.
[Nexus 5X General] jimv1983:
I have Bluetooth disabled unless I'm in my car. I leave NFC on all the time because I use Android Pay but from my understanding NFC shouldn't cause much battery drain when not in use but when I get around to it I'll disable for a wile and see if it helps.

I haven't restricted background data but I'll look at that.

I have Play Store auto download off as well. I have just the notifications like you do.

Touch sounds/vibrate on touch and vibrate on type are all off.

Auto date/time is on.

Emergency cell broadcast, day dream and Hangouts are all off.
[Nexus 5X General] snellm:
Did another experiment leaving the phone untouched overnight, but this time with wifi (and location scanning) disabled. Don't see any wifi multicast this time, but again lost 50% charge in 8 hours, battery discharging at constant rate despite the phone being in doze mode for long periods. Battery historian report shows 33% of the power use is "unaccounted".

Battery historian report: imgur.com/a/JyzWH

Unless somebody has other suggestions, my next steps will be:

1. Try factory reset and clean reinstall

2. If that doesn't work, return as faulty
[Nexus 5X General] gizzmoffm:
That's what I would do: factory reset, just basic configuration without restoring from other device, no app installation.

If it still drains like this, RMA it.

Gesendet von meinem Nexus 5X mit Tapatalk
[Nexus 5X General] Gairtial:
I'd try airplane mode. If your battery drains in airplane mode with the screen turned off and the CPU in power saving mode, it's certainly a hardware fault. If not, it seems it must be the cell radio or Bluetooth (those are the only things left).
[Nexus 5X General] chris_banks2:
Hate to eat my own words but...

After my third factory reset, taking care to make sure no settings and apps were restored I saw a huge and instant improvement. Doze finally seems to actually work and no longer loosing 40-50% overnight with no usage.

Like others have observed, my battery stats showed no wakelocks, and the 'used since last charge' only totalled 4% after dropping 50%. I have been unable to identify what caused the drain, (as after my second reset I had only stock apps installed) but it is now rectified.

Anyone facing issues I would definitely try booting in safe mode to see if there is an improvement, and if so factory reset until it works!
[Nexus 5X General] snellm:
I have now done a factory reset (from the bootloader), did not restore apps from backup, instead reinstalled manually. Battery life is now back to normal, only a few percent use when left unused overnight. This matches when chris_banks2 is seeing.

The only question now is: Since the cause of the problem could not be identified, either from the battery monitor or the more detailed Battery Historian report, will it reappear over time, and if so will I be forced to do another factory reset?
[Nexus 5X General] gizzmoffm:
I heard several times now that restoring a backup during setup may cause battery and performance issues.

Whatever setting this is - seems like android backup saves more than it should (some device specific configuration that is not user editable)

So if this was the actual reason for your issues, it should not reappear by itself. Also, if you activate backup now on this device and let it back up everything from your clean device, the issue should not reappear when restoring the next time.

I RMAd my first 5X device which was a clean setup and got a new one - restored backup from the other 5X and have zero problems.
[Nexus 5X General] F'n Amazing:
All of a sudden Android OS showing up as major battery drain. I basically lost 1-1.5 horus of SOT from normal out of the blue 2 weeks ago.

I"m not a heavy user so this doesnt bother me too much as I'm usually around a charger if I need it, but this is the type of thing that really annoys me and gets me thinking hard about trying iOS.
[Nexus 5X General] jordirpz:
What are the dimmensions of the battery please?someone know?

Thanks
[Nexus 5X General] ulxerker:
Its 2700 mAh, or what do you mean?
[Nexus 5X General] jordirpz:
Thanks, but i talk about milimetres

---------- Post added at 08:58 AM ---------- Previous post was at 08:17 AM ----------

Because i have a nexus 5, and i think maybe is possible put inside without many changes
[Nexus 5X General] snellm:
That could be the issue - when I first received the Nexus 5x I restored the setup from my previous phone, an original Moto X.

Since doing the factory reset without restoring the backup, I've resintalled apps manually and been using the phone as normal for a few days, without the battery life problem reappearing.

If it is a problem with restoring backups from other phone models, then it's something Google are going to need to address - I wonder if the poor review on http://www.digitaltrends.com/cell-phone-reviews/google-nexus-5x-review/ is due to the same problem?
[Nexus 5X General] rolling_thunder:
I'm pretty impressed with battery life so far
[Nexus 5X General] thegrants82:
Not really impressed too much because its almost all continuous use with WiFi. I think just about anyone's 5x can do this.
[Nexus 5X General] bblzd:
Isn't that the point? This isn't a competition lol.
[Nexus 5X General] ulxerker:
xaxaxa, you're right mate.
[Nexus 5X General] rolling_thunder:
Im comparing it to my nexus 9 which the 5x blows the doors off of in terms of battery life and performance. Under practically the same use the 9 gets a lttle more than half the battery life, and has all sorts of weird google play service app drain and other perfomance issues i dont understand.

Theyre both unrooted, im a noob and really have no intention of rooting, im just a fan of pure android. Im really happy with my 5x after having it 5-6 days now. Its snappy, battery is good, performance is good. Camera opens instantly. Build quality is nice, its plastic but feels great in hand, and size is perfect.
[Nexus 5X General] neo4uo:
I have been struggling with battery life on my Nexus 5x. I hope someone that is knowledgeable about battery life can take the time to help me. I am using custom kernels and using recommended profiles and I am lucky if I get 2 hours SOT. I have installed all the programs like better battery stats and gsam battery, wakelock detector to see what is causing my drain issues. I have lowered my screen brightness to about 20% still the same SOT time. I have read that people are getting 5-7 hours SOT with the 5 using custom kernels and different profiles. If someone could tell me what to look for and point me in the right direction, I know there is a lot of different variances.
[Nexus 5X General] 1234568:
Is this battery life typical? Mobile standby seems to be very draining, to the extent I can't get through a full day. Any help is appreciated.
[Nexus 5X General] 2x4:
NLPcollector wakelock is killing me as of today, not sure what I changed. recently started using greenify but i can't think of what else may be different. any ideas?
[Nexus 5X General] bblzd:
I can't say much for root level modifications or apps, but I can say that without any of that I'm seeing great battery and life and performance is smooth as well. At this point though there's no telling if you have a problem or not without any screenshots or other information. 2 hours SoT can be normal if your usage tends to be tasks that don't require a lot of screen usage such as phone calls, messaging, or simply idling on weak mobile data connection.

Definitely not typical. This could even be an issue with your SIM card or mobile network but no real way to tell as I can't even see what your signal was like without the graph screenshot. If you tap on mobile standby it might have more information there as well.

Possibly Greenify? It does itself run as a background process and there might be an easier way of achieving the same task.

I'm also sharing screenshots from 1 hour of WiFi browsing Reddit while streaming music with Spotify. Usual stuff: 50% brightness, all Google features Enabled, no root access or modifications. Started at 99% and ended with 89% with the device projecting 8 hours of usage remaining.
[Nexus 5X General] 1234568:
Thank you for the reply. So I have poor mobile signal where I work. Indeed, when I click on mobile standby as you suggest my phone had no signal for 58% of the day. Could this alone explain the poor battery life?
[Nexus 5X General] dmudd:
A poor connection like that absolutely destroys battery life.
[Nexus 5X General] EeZeEpEe:
I have terrible service like that at my job. Luckily I have WiFi so what I do is turn on airplane mode and turn WiFi back on. Has helped me a lot.
[Nexus 5X General] 1234568:
Can anyone suggest a good app to automatically toggle aeroplane mode on/then?
[Nexus 5X General] EeZeEpEe:
When would you like it to be triggered automatically?
[Nexus 5X General] ulxerker:
For example at night when you're asleep .... for me the best one is Timed Toggles (https://play.google.com/store/apps/details?id=uk.co.ergodicity.timedtoggles), root needed.
[Nexus 5X General] jimv1983:
Three months with the Nexus 5X and battery life is still very disappointing. After about 5 hours off the charger with 20% brightness, fairly good signal, wifi most of the time and 36 minutes SOT and I'm already down to 83%. The only 3rd party app I've used is Facebook and it has only kept the phone awake for 28 seconds. The item that has kept the phone awake the most is Android OS at 32 minutes.

Based on what I'm seeing in battery details I don't see anything that would be causing battery life this bad.

I have attached several screen shots. Maybe I'm missing something that someone else might notice.
[Nexus 5X General] EeZeEpEe:
I don't think that's terrible at all. At that rate you would have 29 hours on the battery and 2 hours of on screen time. Seems like plenty of total time on light use.
[Nexus 5X General] richyb86:
Anyone rooted and have gsam root app installed as well. Getting this process on a lot lately. Don't know whether it's supposed to be like this or not. Twrp and Franco kernal installed.
[Nexus 5X General] Azarin:
The System (Mediaserver) being reported by GSAM has cropped up in a couple of Nexus 5X/6P posts, but so far there hasn't really been a conclusive answer as to if it is just the way GSAM is reporting the data, or if there is a real underlying issue.

At least as far as my 6P goes I'm getting good battery life despite the reported Mediaserver battery drain.
[Nexus 5X General] ppaasseeii:
I've been having massive overnight drains in airplane mode, with NO wakelocks, and the phone DOZING. Historian 2.0 shows 31% of UNACCOUNTED battery. Check those out: http://imgur.com/a/4kfZC
[Nexus 5X General] bblzd:
Just a guess, but could it possibly be related to hotword detection always listening? Do you have that feature enabled? If so, try without for a day and compare.
[Nexus 5X General] richyb86:
Yeah i do just for on home screen though or in google app. Quite handy mind. Will disable to check for a bit. Cheers
[Nexus 5X General] marmikjoshi:
Guys if u have kernal than u can low the performance then ur battery backup will increase ..

Nd after download greenify
[Nexus 5X General] jimv1983:
Has anyone updated to the latest Facebook and Facebook Messenger app lately? Are you seeing those apps keeping the phone awake a lot?

This has only started happening since I updated the apps a few days ago. I have emailed Facebook support but I'm curious if others are seeing this too. I've tried uninstalling and reinstalling but no change.
[Nexus 5X General] Silvers91:
Same here.. I hate these 2 apps..
[Nexus 5X General] anepetersen268:
Always good to know the real battery life, still not sure if I will but one
[Nexus 5X General] toothbrush69:
Best sot ive got so far. Take note that this is almost a day of idle time and only 12% of app usage. Mostly youtube, kindle, facebook, chrome at 30% brightness.

Stock with ex kernel.
[Nexus 5X General] ulxerker:
Same here. For that reason I uninstalled these apps and put a chrome-shortcut to facebook on the homescreen. Its pretty much the same but without any battery drain in the background.
[Nexus 5X General] pross8002:
I've come from the Nexus 6P threads and those apps do the same darn thing. Good to know that those are the two apps that constantly wakelock the phone.
[Nexus 5X General] gizzmoffm:
On my Nexus 4 I just had disabled background data for the Facebook app... Bam! 50% more standby!
[Nexus 5X General] EeZeEpEe:
Wow that's super impressive! What were you doing when the screen was actually on? And were those flat lines basically doze working?

---------- Post added at 09:29 AM ---------- Previous post was at 09:25 AM ----------

Facebook

Facebook Messenger

Not me. And I've been off the charger for 2 hours.
[Nexus 5X General] toothbrush69:
Mostly youtube, kindle, chrome at 30% brightness. No gaming really. Maybe that's why..
[Nexus 5X General] EeZeEpEe:
YouTube kills for me. I can maybe get 4 hours SOT but that idle along with the SOT you got is crazy.
[Nexus 5X General] maderke:
battery life, sot

i have tried franco kernel, naptime, amplify, greenify, auto brightness, alltogether, but with my usage, 4 h sot was the max that i achieved

now i am using only the power saver profile of franco kernel (interactive governor), and a wifi auto onoff app from the play store and it seems much better, almost 6h sot, and much better idle time.

(i noticied that when i have wifi on, my phone is waking all the time)
[Nexus 5X General] Nethojs29:
Getting this after the 3rd full charge after getting the nexus 5x. Comparing to my old nexus 4 it's really impressive what I'm getting on sot and doze mode is amazing, you can see when I was asleep lol
[Nexus 5X General] RarePlatinum:
Moderate to heavy use

1 hr - Gaming

1 hr - Viewing docs

30 mins - Chrome

30 mins - Spotify browsing

All other - Twitter and news

Screen - 15%
[Nexus 5X General] moe.ze.chief:
sorry if it's off-topic, but how did you get that dark UI?
[Nexus 5X General] SoMeiBoL:
Nexus 5x? O.O
[Nexus 5X General] RarePlatinum:
It's a layers theme called Spectrum.

---------- Post added at 05:41 AM ---------- Previous post was at 05:39 AM ----------

Yes, 5X indeed.
[Nexus 5X General] bblzd:
Heavy usage scenario. Switching between gaming and streaming a live sporting event with Chrome, texting and emails in between. 40% brightness, no settings disabled, everything stock.

I'm impressed how games don't slow down to a crawl on this device even at its maximum throttled point, and the device stays quite cool as well. It has the perfect balance between performance, battery life and heat in these kinds of high load scenarios. In my experience this is a huge improvement over the N5 which was both hot and slow after 15-20 minutes of heavy usage.
[Nexus 5X General] shr33kant:
That battery life is pretty... Schwifty ^_^ Can't wait to get my Nexus 5X now!
[Nexus 5X General] jimv1983:
I've been thinking about doing the same but the app is so much better than the web UI. Plus, the web version doesn't give you notifications.

If you disable background data don't you lose notifications?

Are we maybe looking at different stats? Your screenshot shows it as "com.facebook.katana" with the standard Android icon instead of "Facebook" with the Facebook icon. Probably the same thing but I've never seen it listed like that. Do you have the latest version of the app? Mine is 59.0.0.15.313.
[Nexus 5X General] EeZeEpEe:
Maybe its cause I'm beta. It's what I see when I tap battery usage in the App Info screen.
[Nexus 5X General] bblzd:
Medium usage scenario. Mostly HD streaming and browsing Reddit and XDA. Brightness about 35% with everything stock.

Idle drain is a slightly higher recently but it might just be that I haven't rebooted in weeks.
[Nexus 5X General] EeZeEpEe:
That's crazy your phone is only awake when the screen is on. Turned off syncing and push notifications options?
[Nexus 5X General] jimv1983:
I was thinking the same thing. [MENTION=5530350]bblzd[/MENTION] seems to get way better battery life than most people based on other posts on this thread. That's 5.25 hours SOT over like 36 hours and that isn't even from a full 100%(looks like maybe 95%). If I don't ever leave the house where I have wifi and really strong cell signal I can get the 5.25 hours SOT doing non-power intensive things but I only get like 9 hours off the charger. That was, of course, before the Facebook and Facebook Messenger updates.

Also, I'm curious what you mean by "beta"? Beta of what? Are you running an unreleased Android update?
[Nexus 5X General] EeZeEpEe:
Facebook Beta:

https://www.facebook.com/notes/face...droid-beta-testing-program/10151529228878920/

I'm on version 60.0.0.13.76.

But again, as to the name showing up differently, it's probably because the way I got to the battery usage wasn't from the Battery info with the graph and percentage bars but straight from the App Info. Cause if I go through the graph and percentage bars page, I'm pretty sure it's shows "Facebook" and not "com.facebook.orca".
[Nexus 5X General] bblzd:
All my syncs and notifications are enabled. :good:

Locations on battery saver mode with location history, Google Now + on tap enabled, Ambient Display enabled, OK Google enabled but not trusted voice. There are visible wake periods in that screenshot when the screen is off, though the shorter ones tend to disappear as the graph stretches out beyond the 24 hour mark.

What tends to consistently wake a device are 3rd party background services and weak signal. However my signal was strong and my 3rd party background services are light weight. I find Google features to be quite frugal, ever since Android 5's "Project Volta" they wake to group sync only at opportune moments.

Lots of people have shown good battery life like this in a similar usage scenario, you say even you can with your device just that your idle drain would be high which is why it would only be 9 hours off the charger. So the difference is the background drain on your device versus mine, which typically comes down to which 3rd party background services you have running 24/7 as well as your signal levels.

Mostly people with problems tend to show up here, or those who want to display their new ROM/kernel results. However Usage, Settings, and Signal are the main determining factors for battery life; more so than any ROM or kernel adjustments.

BTW Facebook or Facebook messenger are known to not be very battery friendly applications, but I'm just basing that off what others say as I don't use those apps myself.
[Nexus 5X General] jimv1983:
I think it's probably the fact that it's Facebook Beta. I see "Facebook" title no matter where I go. It seems like maybe the newer update Beta version might fix the issue.

My stand by time has been pretty good(prior to the Facebook apps problems). The biggest problem is huge power drain during usage. The remaining battery lasts pretty good for stand by. The problem is that after that many hours SOT the battery is very low. Even under the best conditions using the phone constantly from 100% to 0% would still get like 5 hours SOT. Before the Facebook updates I was seeing about 2/3% per hour battery drain in standby so that isn't the issue.