yashsingh1/xdaforums huggingface dataset:
[Moto X General] scorpion667:
I am going to write a comprehensive battery life guide for rooted users. May possibly help non-rooted users also.

I will make it a goal to finish it sometime this weekend, or even tonight if I have time.

I get great battery life on 4.4.2 stock ROM/Kernel. I'm not even freezing that many things with Titanium. Just 6 or 7 motorola services like Moto ID.

Either 30+ hours standby with 6.5hour screen on time (sometimes 7 hours SOT if the standby is less) or 28+ hours and 5 hours+ screen time with a crapload of syncs running.

my syncs:

Hotmail Push

Gmail Push

Facebook

Facebook Messenger

Whatsapp

Viber

Skype

BBM

Telegram

Tapatalk

Google Now

Contacts

Keep

Tinder

Dropbox

Obviously because of all these syncs I have a lot of wakelocks and my Android OS usage is high but I still get 5 hours screen on time and 24+ hours standby easily.

Sneak peak (with some syncs disabled, but still two email accounts set to fetch every hour):
[Moto X General] :
I hope people read it. I made an informal thread....but it didn't help stop the battery life threads. And it got buried in the archives. :)

http://xdaforums.com/showthread.php?t=2561392

Good luck!! Maybe once its tweaked and the critiquing is done, they'll make it a sticky. ?

---------- Post added at 05:58 PM ---------- Previous post was at 05:47 PM ----------

My write up is kinda dated. And now more than ever....location services seems to number one on the battery drain hit list. And poor signal on data.

I've only just started this thread in the N5 section....

http://xdaforums.com/google-nexus-5/help/battery-life-help-troubleshoot-battery-t2785128

Have lots of formatting to make it simple, and a guide is coming for post number 2 this weekend.

Was gonna polish it and make one here, since 99 percent of issues are universal....but if you do up a good one, I'll leave it to you and keep mine in the N5 section. :)
[Moto X General] Markmaster:
Going to stage to. Put phone on the gharge. Try to use it (lay down on the table) without Wi-Fi...
[Moto X General] abuttino:
What app are you using to track location calling? Gsam and BBS don't seem to work for that, that well

Sent from my Moto X
[Moto X General] :
I haven't fully looked it all over, but android tuner free looks interesting.

Tho I think you need xposed and the KK battery stat module to see the wakelocks. That's why I like gsam....it has its own root companion app....no xposed needed.
[Moto X General] ram130:
Funny. I was gonna write a battery guide for non rooted users. But too much testing came in the way and seeing inconsistent results delayed me to put it on pause. Not sure what to do.

- Ram
[Moto X General] :
In my N5 thread when I create the guide/tips....I'm welcoming others to add to it or disagree.....and I'll update it. Unless I absolutely believe, or don't believe in something suggested to be added or removed. Lol

So hopefully in the coming weeks it will really take shape. Hopefully it helps many out. I know the N5 section isn't slowing down anytime soon. So a good guide/troubleshooting thread will be good. :)

I just really don't like how battery threads keep popping up all over. There should be one place for it all. Much easier to find help and advice that way. Instead of thread after thread repeating the same advice/help.
[Moto X General] scorpion667:
Yeah likewise I'm not like an Android expert or something I've just been playing around with Android for a few years and I experimented a lot, learned a few things here and there. I usually always have good battery life regardless of phone so I guess I'm doing a thing or two right.

I'm positioning it as, here's my findings, feel free to contribute, we're all here to help eachother out.
[Moto X General] abuttino:
Best battery life ever..

I restored a lot of stock frozen apps, put faux's kernel on there with his suggested settings and that was what I got.

I am in the hospital with WiFi everywhere but was on my phone most of the day suffering f

from boredom.. 7h of screen on time matter of fact.

Think I've found the answer, will have to wait till wed to find out if it works that good at home.

Most of the day, location was on as well.

Sent from my Moto X
[Moto X General] scorpion667:
I got through 90% of my setup guide but I realized there is a LOT to cover so formatting will have to be key in order not to intimidate readers.

The setup guide is peanuts compared to the troubleshooting guide, that's gonna take me quite some time. I'm gonna wait until everything is ready, proof read and 100% formatted before I make the thread. That way hopefully it sparks maximum interest, if not at least people can reference people with battery issues there.

Anyway a pro tool that ALL of you rooted guys should be using is App Ops [Root] which lets you set permissions for each app. When you are in APP ops it will show you the last apps which used the particular tab you're in (i,e Location, Personal) and if you click on that app not only can you change each permission but ALSO view the last time the app actually used that permission. This is an insanely good tool.

Go to your top draining apps as reported by WLD and disable all non essential permissions. I have Location permissions disabled for all my messaging apps. For Facebook I disabled a crapload of permissions. Swype keyboard was RAPING my battery even with all Swype syncs disabled until I disabled location Permission for it and now it's like at the bottom of my WLD list. It used to be #2 in terms of drain. SO yes App Ops is bloody amazing with getting User Apps sorted. Just make sure if you mod permissions for an app you verify it's functionality afterwards to make sure everything is working still.

And the best part: you don't need Xposed at all for it. I hate Xposed.

Technically xPrivacy is a little more advanced than App Ops but its dependent on Xposed.

Anyway, the guide will be ready when it's ready but once it is you're all invited to contribute!

[MENTION=336570]abuttino[/MENTION] hope you make a quick recovery man! We're all gonna make it brah

Good screen on time. But keep in mind with Faux kernel your active notification (well, the auto screen-on part of it) wont respond as fast when you pick phone up or out of pocket. It's a very small delay that some people may not even notice. But for me I'm sort of a speed freak when I use my phone. I love Faux's kernel but every version I tried with all various settings always produced this negative effect for me. Even if I just flashed Faux and left all the settings in his app to stock. I would honestly use his kernel religiously if it wasn't for that. I will never sacrifice device responsiveness for anything. The quicker I can end my interaction with the phone, the better.
[Moto X General] abuttino:
I have not noticed my active notifications popping up any slower or faster. They seem to be as soon as the phone vibrates. I just saw your reply using them.

I will have lots of time to test whatever you write, they aren't doing much until Monday.

Sent from my Moto X
[Moto X General] Soldier 2.0:
Very satisfied with this. I am fully stock. Mostly on 5Ghz Wi-Fi if that matters. Google now and location history and reporting off. Auto brightness on.
[Moto X General] scorpion667:
Apparently if you run Xposed you can kill the NlpCollectorWakeLock completely via Wakelock Terminator. The OP said Google Now, Maps etc still works!
[Moto X General] Markmaster:
Who is your Service Provider? Looks like your 4G LTE has as bad quality like most in Russia...
[Moto X General] abuttino:
Great find!

Sent from my Moto X
[Moto X General] Soldier 2.0:
Att USA
[Moto X General] Markmaster:
Aha!

This is wiered.
[Moto X General] Markmaster:
Battery life

Without Wi-Fi it seems like all ok. So the problem in my Router? If I don't want to change (by this moment) the firmware to the Merlin's. What can be wrong in the settings?
[Moto X General] abuttino:
What is weird about it?

Sent from my Moto X
[Moto X General] vikramkhalsa:
Looking forward to your guide, man.

In the mean time i'll try this wakelock killer thing..
[Moto X General] jayboyyyy:
nothing can be changed in the settings. either try to use guest network on your router to see if that fixes it. Or you can try flashing merlin. if that doesn't work you can try guest network while using merlin. If that doesn't work you would need to flash another kernel. if you can flash another kernel i would do that first. there are no settings that will fix the router issue.
[Moto X General] Markmaster:
Router

Tryed to change different settings like:

Optimize AMPDU aggregation
Optimize ack suppression
Turbo QAM
802.11ac Beamforming

Maybe something from this?
[Moto X General] jayboyyyy:
beamerforming might be affecting it but its doubtful. There is a post on smallnetbuilder that discuss android phones and wakelocks. The guy tried many different settings to know avail. You could try setting the phone to 2.4ghz only as well but i doubt that will do anything. i have tried many many things and never figured it out. Other people on the forums tried everything under the sun as well. I mean maybe you will come across something but I enver did when tweaking things for a month or two.
[Moto X General] :
Wouldn't a new router do the trick? Pretty cheap fix. Tho....I don't know which ones are safe.

My old Linksys is fine.

Also, before spending money....can turning everything else off that's in the network prove if another device is messing with the phone?? That's the cause, no? Something on the network spamming the phone.

Then if so, look into a new router. Or is it the other devices fault?

Just tossing things out there based on what I've read. Never actually had the issue myself. :)
[Moto X General] abuttino:
My stats today:

Not as good as I did yesterday, froze all my unneeded moto apps along with the wakelock terminator and will try again tonight.

Sent from my Moto X
[Moto X General] Markmaster:
What can it be?

Start to connect to my guest 2,4 GHz network. All my nighty ON/OFF different features didn't helped.
[Moto X General] jeasbe:
I am getting a Good Standby as well as Usage Time from my One month Old Moto-X

However I have noticed One CHARGING ISSUE from Day One.

( Pls Note It is Not Discharging Issue. It gives me around 5 hours Plus with Screen ON Usage..)

Please See Attached Screenshot

Till the Graph Shows 90% of charge, the Graph is Normal...I mean in the Rise Angle.

But from 90% till 100% It rises Steeply.( In Less than 2-3 mins).

The DISCHARGE rate is However Normal and Usage and backup Time is Good :)

On the Other hand if I put it back again on Charger...when it is around 90%

This Time The Charge from 90% to 100% takes a Decent 25 to 30 minutes and in a smooth Curve...﻿
[Moto X General] abuttino:
I jumped from 96 to 100 yesterday charging, so, I understand what you are talking about... Could be a few things about the battery chemistry, or it could be a bad battery

Sent from my Moto X
[Moto X General] Markmaster:
Little info

I found some info about Asus routers and Wakelocks in home Wi-Fi which seems me vulnerable to. I post thread on the Russian Asus official forum, try to catch up what is the mess about this. If they don't help, I'll try to post on the main Asus International (or maybe USA) official thread.

Here is the links for the SmallNetBuilder topics with this problem. http://www.smallnetbuilder.com/forums/showthread.php?p=125503 and http://forums.smallnetbuilder.com/showthread.php?t=10048

I tested on the guest network and there are the same issue. From one topic the explorer of that probles uses Merlin's firmware. It's vulnerable too as I see. Not matter what firmware is.
[Moto X General] jeasbe:
Thanks Abuttino

I guess I shall discharge the battery till 0 and fully charge in off mode as they all advice.

As such because I am getting a very good backup I am not too worried. .
[Moto X General] abuttino:
Today's battery life was pretty good..

All unnecessary Moto and Verizon apps frozen or greenified. Location off, half the day (I turned it back on when I saw it wasn't effecting battery life and wanted to make sure of it)

Again, custom kernel with the developers suggested settings.. NO overclock.

I can finally see the light at the end of the tunnel.. I am using the hell out of the phone, I decided not to bring my laptop with me, so it is the only thing I have to do all damn day..

So, if you want to try the things I have, start with that kernel.

Sent from my Moto X
[Moto X General] ram130:
Location won't do much damage unless Google now is on.
[Moto X General] abuttino:
It is.. Plus geofences

Sent from my Moto X
[Moto X General] ram130:
Then enjoy then. Sorry most users of the X won't get that with stock. I got this today compared to this yesterday:

Only changes? I used wired headphones today instead of Bluetooth and switched to ART. I'm mainly outside so screen is usually on full brightness. I've never been able to crack 5hr screen more than 2 times since getting this phone. Must admit, the worst stand by ever. Bluetooth also sucks CPU more than a Nexus.

Anyway. I'm happy for you...for me and others. This is dumb avg unless I magically find uses that impresses me to root.
[Moto X General] abuttino:
Ya, rooting your phone is the only way to get decent life out of it to at least terminate that wakelock.

Sent from my Moto X
[Moto X General] devilsdouble:
Umm, which wakelock exactly? And how do you terminate it?
[Moto X General] abuttino:
The nlpcollector wakelock. It's terminated by using an xposed module called wakelock terminator downloaded from the play store. The info is back on the previous page for whom discovered it

Sent from my Moto X
[Moto X General] jayboyyyy:
ya its not a device on the network spamming the phone. It is the router doing the spamming. Markmaster finally found the post i referenced that describes the issue.

glad you finally found that post but as i told you at least twice or maybe it wasn't you but someone asking the same thing as you recently, i have posted that link in this thread twice. Glad you finally found it though. Saw your post over there earlier. hopefully that guy can give you some help. but a new kernel is just as easy a fix as anything. And if you don't have an unlocked phone, now is the time to make the switch.
[Moto X General] kenosis:
How to use Wakelock Terminator? Just select app and check "Prevent wakelock"?
[Moto X General] abuttino:
And fill in the filter from the items in the post

Sent from my Moto X
[Moto X General] kenosis:
There is nothing in Filter Wake Lock box. I select Google Play Services
[Moto X General] abuttino:
Read directions from the thread that you linked to.

Sent from my Moto X
[Moto X General] abuttino:
Best ever..

I had surgery and a lot of visitors yesterday, not using the phone all day, but still got a decent amount of use..

I really don't remember a time when my RAZR HD Maxx gave me that kinda usage time.

Sent from my Moto X
[Moto X General] gsusx:
silly question but am i gonna have to root to get the best out of this. so far my battery life is woeful, losing nearly 6% an hour on standby. admittedly i am on 4g, but thats full strength signal. this is with location on.
[Moto X General] abuttino:
6% sounds just like I was dealing with.. The ways you can fix this at limited to how much access you have to your phone..

Sent from my Moto X
[Moto X General] gsusx:
Hey

Access ??? What do you mean by that

6% just seems a lot, infact i'd go as far to say its the most drain ive ever had on any phone ever. Got to be be honest, i had this phone before and got rid of it on the strength of the battery life, then recently a too good to be true offer came up for one and ive gone back. I won't lie, i think this phone is pretty close to perfect, i can live with the camera and lack of storage, the battery life though, jeez .... i just hope it gets better ....
[Moto X General] abuttino:
Look at my battery screenshots through the last week.. 6-7 hours to after tweaks, 1day 3 hours.

Access, bootloader unlocked, permanent root?

Sent from my Moto X
[Moto X General] theremix:
I read a few days ago that someone was going to write a detailed guide on what to greenify and how to get a better battery life. Any updates on that? Not pressing anyone but just wanted to make sure I did't miss anything if they already posted the guide.
[Moto X General] gsusx:
i have an x1052,

im happy to unlock bootloader if possible .... no problem with rooting, will be a bit gutted to lose sky go but i reckon i can live with that ....
[Moto X General] abuttino:
Have you unlocked the boot loader? If so, immediately root your phone and try the xposed module wake-lock terminator with this input:

Remember that unlocking your phone WILL result in a complete reset, even the internal storage card.

Sent from my Moto X
[Moto X General] samwathegreat:
6% an hour equates to over 16 hours uptime. Whats so bad about that? 15-18 hours is normal unless you have screen off the entire time...
[Moto X General] gsusx:
6% an hour is with screen off..... no usuage, just sitting there idle

im just not used to seeing that kind of drain..... my htc one / nexus 4 were about 2-3% an hour

lg g2 1%

just find it a bit weird thats all ....
[Moto X General] abuttino:
It is massive.. There is no reason a battery should be drained that fast.

Google has got to fix network location services

Sent from my Moto X
[Moto X General] :
Try Gsam from play store and get us some screen shots. ;)

Otherwise nothing but guesses will be given to you! ?
[Moto X General] ram130:
6%/hr in stand by is high.

- Ram
[Moto X General] gsusx:
thanks all

let me see if i can get some screenshots uploaded
[Moto X General] SanD-82:
My battery life in KK just sucks... 40 minutes of screen, 5:25 hours on battery, and I only have 65% battery left...

I miss JB so much...
[Moto X General] :
Same advice as above. Get Gsam , run a full discharge and do some gsam screen shots before plugging in your charger.

Don't reboot during the day at all. ..gsam resets its stats. ;)
[Moto X General] SanD-82:
Will do, thanks.

Enviado desde mi XT1058 usando Tapatalk 2
[Moto X General] mawells787:
Just a quick FYI . !maybe it will help someone. I've had really bad battery drain with idle. My wife's moto x with Facebook and accuracy on high is always really good. Over 3hrs SOT with 35-40% left and I just couldn't figure it out. I however, use Google wallet a lot and decided to get rid of it. Just because I know its always searching for deals nearby ECT. So far after I uninstalled it battery life is much better. I have to give it a few days before I know for sure. But its worth a try if someone else uses wallet.
[Moto X General] abuttino:
Just so you know. You can remove the "get location" app op and do the same thing by uninstalling it

Sent from my Moto X
[Moto X General] tu3218:
I will try this and post back results.
[Moto X General] SanD-82:
I already have screens from a half full discharge...

What screens would you like to see?

I'll complete next time battery runs low after 100% charge...

Right now I'm at 12%...

Enviado desde mi XT1058 usando Tapatalk 2
[Moto X General] abuttino:
Partial wakelock, kernel wakelock is among the most telling of all the data.

Sent from my Moto X
[Moto X General] SanD-82:
I was able to find the kernel wake locks part in gsam app...

But I'm not finding the partial ones... Are they listed on GSAM as well?

Thank you.

Enviado desde mi XT1058 usando Tapatalk 2
[Moto X General] Markmaster:
Are your phone rooted? Kernel wakelocks (in the right way) are present in root working mode.
[Moto X General] abuttino:
Also. Make sure you install the root module for gsam.. Pretty important

Sent from my Moto X
[Moto X General] SanD-82:
No, I'm not root...

That's OK though...

Enviado desde mi XT1058 usando Tapatalk 2
[Moto X General] :
Post the main screen for starters then, since you don't have root. And app screen. :)
[Moto X General] SanD-82:
I raged flashed 4.4.3...

I'll see how it behaves... I've already installed gsam...

Enviado desde mi XT1058 usando Tapatalk 2
[Moto X General] prakashr85:
My battery idle drain is bad it consumed 10% in 4 hours that too in night mode with unroofed stock 4.4.3

Sent from my XT1053
[Moto X General] eeshlikhith:
My battery life went to trash on its own. Had a lot off apps -> Bad battery life (about 17hours with 3 hours SOT until power off) -> uninstall games and Viber and apps I don't use -> Battery life increases (1 day total with 4 hours SOT until power off) -> 2 days later bad battery life (about 15.6hrs with 3hours SOT) wtf moto?

Keep in mind I use from 100% to power off and charge until 100% + extra and then boot up like [MENTION=4036181]KJ[/MENTION] suggests. So my battery is fine. I hope motorola started building their ROM from scratch for L release and fixes this.

EDIT: I switched to ART last night after being tired of the stupid battery life I'm getting. Lets see if it makes a difference for me.
[Moto X General] slyd0997:
My stand by drain improved with art. 1℅ per hour now (was 2-3% per hour). Not that great but I keep google now on and location on too. Art greatly reduced my android os usage.
[Moto X General] :
1 percent per hour seems quite average on the X. Not too many people have got much less. Some have, but I never could no matter what I tried. Even in airplane mode. ;)
[Moto X General] abuttino:
I don't understand how switching compilers would help save battery but thanks for reporting this.

Sent from my Moto X
[Moto X General] chaoslimits:
My rudimentary understanding and anecdotal experiences bears it out.

Dalvik's compiles the code on a per use basis (Just In Time) when you run the app. ART pre-compiles the code ahead of time (AoT). The performance gains are obvious but there should be slight gains in battery from not having to compile app code multiple times over time. The battery gains will most likely get better when ART is fully finalized/optimized but I doubt it's worse than Dalvik.
[Moto X General] abuttino:
I guess we'll see in the next 7 or so months

Sent from my Moto X
[Moto X General] SymbioticGenius:
I have always expressed my belief that ART is beneficial to battery life. I ran it on my nexus 5 and on the MotoX and the gains were significant. Usually at least another hour screen time and 2 to 6 hours standby, usage dependant of course.

I'm currently on Dalvik cause I'm helping a friend setup his phone (per my recommendation) and he's running (and I) am running Xposed. I can't wait to get back on ART. Xposed makes my life lazy and allows me to automate things and kinda gets me to the Cyanogenmod feel minus the daily flashing and bugs.

Nonetheless I prefer ART for the smoothness and battery life. Here's a screenshot of my current battery life on Dalvik with Xposed. Compare it to my old screen shots and you can see how much worst it is.

Edit: the app is giving me trouble adding the shots. Give me a few.

Had to use Firefox...
[Moto X General] eeshlikhith:
Here are the results of post #2871
[Moto X General] abuttino:
That's almost what my results would look like after 22 hours.. Which I would call a "good day"

Sent from my Moto X
[Moto X General] strikeir13:
I read about wakelock terminator here a few days ago, installed it, and I can't believe how much of a difference it makes. Over an 9 hour span at work, the drain was easily 20% less, probably 2-3%/hr difference at least. Using xposed is worth it just for that module.
[Moto X General] eeshlikhith:
Lucky for you. I don't want to root my phone.
[Moto X General] abuttino:
Ya, that module with the 4 blocked wakelocks is amazing.. Glad someone else has had the opportunity to try it out.

I might put the stock kernel back on to test if it is only the module saving battery or the module and the kernel.

Sent from my Moto X

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

Why? You know it isn't illegal right? Cut your nose to spite your face, "this phone should work good from the factory no matter what"..

Here is another thing that performs horribly from the factory/showroom floor.. TVs.. Most of the TVs today require a calibration of some type, usually in the system menus.. Otherwise known as ISF calibration. So, no matter what kind of item you are buying, chances are, it can always be tuned up for optimal performance.