yashsingh1/xdaforums huggingface dataset:
[Moto X General] abuttino:
Tasker is by far the most useful tool for handling GPS with the caveat that you must be rooted to take advantage of the best options to turn GPS on/off.

You can automatically activate GPS when opening certain programs then turning it off after the program exits.

If anyone wants help with this, make sure you have 2 things: Tasker and Secure Settings. Then contact me by PM.

I know Tasker is daunting. With a quick walk through, you'll be safe and secure knowing that your GPS is only on when you need it
[Moto X General] :
If I used it more than once a week....that's exactly the route I'd go. ;)

The problem is many aren't rooted, or don't wanna learn or pay for tasker... cause they feel location should just be fine out of the box...and yes, it should......but it isn't. At all. Its terribly designed.
[Moto X General] abuttino:
I was reading it's because Google would take a serious hit (monetarily) if they made GPS "better"

Ad money
[Moto X General] SanD-82:
Yep... For some reason Google Play Services went south on me today... It consumed 15% of the battery in about 1:15 hours (phone was idling)...

It seems it tried to sync something, could not reach google servers, and then kept looping... strange thing: internet on the phone was ok, I was able to browse... Market didn't work either...

Enabled wifi, disabled wifi and reconnected 3g, and everything went back to normal...

I understand most of the times apps are the one that get to be blamed... But I ran JB during months prior upgrading to kk...

I've the exact same apps, exact same usage... And battery life is just awful...

3g coverage has not change, it's as bad as before...

It just seems kk does not handle *something* quite right... not sure if it's the 3g thing, or some other factor...

I'd go back to jb if I could...
[Moto X General] Markmaster:
I don't think this is helpful much, because there must be less battery eater over Wi-Fi then 2G/3G/4G.
[Moto X General] abuttino:
It's back again.. Really bad..
[Moto X General] tekanina:
I've been having some crazy battery life. At first I thought I was getting pretty bad standby time but for some reason my phone stays at 1% for hours. I read somewhere to let the battery die and recharge while the phone is off to calibrate the battery. I did this the other day and my phone was at 1% for about 4-5 hrs while streaming Netflix at high brightness just trying to kill it. I thought I was doing pretty good until 1% but now its doing it again. It just keeps going.

Does anyone know why this is happening and how to fix this? I would like my phone to die at 1% so I know how long it will actually last not just stay at 1% for hours.
[Moto X General] ram130:
From my testing. Let it die and charge while off every time. If on, make sure its more than 20% before plugging in. Moto is aware of this but is not focusing on it.
[Moto X General] tekanina:
Okay thanks for the quick reply. I wasn't sure if this was common or not. I'm just glad that my battery life is better than I had originally thought. I usually put it on the charger before it dies I've never let it completely die before.
[Moto X General] ram130:
Yea after a few cycles it starts to push the charge down to 1% and builds up. The algorithm is off when charging on. Sucks.
[Moto X General] abuttino:
I lost 9% (screen off too) in an hour this last charge.. My patience is growing very thin with this phone, it seems like I'm always chasing after something

How is this possible.. It keeps awake longer than CPU time?
[Moto X General] oeusr:
Are you on stock? My android os problem went away when I returned to stock ROM
[Moto X General] abuttino:
Yup

I am giving deep sleep battery saver (xposed) a try
[Moto X General] Soldier 2.0:
Try charging your phone then boot into safe mode and use it normally. If it doesn't happen again then you know it is something you did to your phone.
[Moto X General] abuttino:
How do you boot into safe mode?

By the way.. Woke up and there were like 30k wakelocks from Tasker even with the xposed module.
[Moto X General] oeusr:
Hold down power off in power menu and it should pop up
[Moto X General] abuttino:
Not on the gravity box power menu..

Besides.. From reading the wakelocks, and turning Tasker off for a night, I know that Tasker is the strain.

I am just trying to figure out why this service is completely unstoppable. Wakelock Terminator, DS Battery Saver, none have been able to tame it.

What I can't figure out.. Why so much Android OS time.. If anything, Tasker should be getting those numbers, not Android OS
[Moto X General] oeusr:
I use the gravity box power menu and it works for me
[Moto X General] Wutang200:
I've had this issue since I bought the phone.

Tried this now 10+ times but it's still there. Yes, I've been charging whilst it's been switched off. Battery still sticks on 1% for hours.
[Moto X General] Chris123NT:
Android OS = Kernel, there's some serious kernel issues with this phone relating to wifi being connected. See if it goes down when you turn wifi off.
[Moto X General] biggiestuff:
Been getting good to great battery life but since the update to google play services I've been getting the cast socket multiplex wake lock that usually lasts about 2 hours and won't let the phone sleep.
[Moto X General] abuttino:
I downgraded my faux kernel to 007u (from 008u) and hoping that helps. Also, in the middle of discharging my battery to 00 and will charge it to 100% while it's off.

Hopefully these things will help. As I understand, these hybrid kernels are made from the stock kernel, so, wouldn't be surprised if it didn't work.

India got 4.4.4 and they are saying battery life still sucks :)
[Moto X General] devilsdouble:
Not a single person I know who has got the 4.4.4 on the X mate. If someone said that he / she is a filthy liar.
[Moto X General] abuttino:
Check the Google+page for the moto x.. They said India has it
[Moto X General] RogerPodacter:
I know I tried 3 different store units and only one had excellent currentdraw like around 190 mA with screen on, and under CPU load it wouldgo up to 400 mA. This was the good unit. The other 2 were always reading 300-400 mA no matter what. Something is going on either hardware or software. And it didn't make a difference LTE or HSPA. Weird. This would explain why people are seeing different results.
[Moto X General] jayboyyyy:
I noticed you said you were using current widget to do these readings. I have two questions: (1) current widget says it doesn't work well on a lot of Motorola and Samsung devices, could it be that you had such various readings because of this (2) is the CPU load test you ran just an option to click in the app or how did you do a CPU load
[Moto X General] RogerPodacter:
That's interesting with moto devices, I thought either it works or it doesn't. Either the kernel outputs the sysfs files or it doesn't, nothing in between. But if true then I guess you could say their worthless. However they seemed pretty accurate to me. I tested for like 45 min each device. Just run some benchmarks, load web pages, etc and increase the current widget sample rate to 3-5 seconds or whatever you wish. Maybe 10 sec is better. Too frequent readings then cause the current widget to account for actual CPUddrain. So gotta be careful.

It sometimes spikes up to 600 mA too. Just install and play around. I know it was easily better than what my nexus 4 pulls. this thing pulls 1 amp easily, usually 800. I dunno, just try it out. Im curious what idle screen off pulls cause store units cannot shut the screen off, so i just did min and max screen brightness comparisons.

I know current widget doesn't work well on Samsung phones because typically they only output current readings during charging, not on battery, so its useless on Samsung. Maybe some Motorola phones are the same. But moto x looks to be fully compatible from what I see. Dig thru the kernel files and see if all the battery files are showing up. Current and voltage is certainly there since its reading SOMETHING.
[Moto X General] jayboyyyy:
my phone comes in tomorrow and ill run some tests. I don't know if it works or doesn't work type of thing. Just noticed the first note under description said it could have some issues. I was just throwing that out there in case it wasn't a work or doesn't work thing. I saw some htc one reviews that said they had weird spikes or something, but Ill see tomorrow and report back sometime. Hopefully I dont have bad idle drain. Truely the only thing I am worried about.
[Moto X General] RogerPodacter:
I see that warning under current widget for Samsung and Motorola devices. That was just for those that didn'thave the kernel support like it stated, nothing more. So the x is fully supported no worries.
[Moto X General] anotherfiz:
Using currentwidget my moto seems to get around 70ma-ish idle, and 180-300ma sitting with screen on doing nothing

edit- saw it as low as 6mA now..
[Moto X General] FatBoy_Seconds:
My battery life for yesterday

Sent from my awesome All White Moto X
[Moto X General] Hardcore73:
What was your on screen time?
[Moto X General] alhadee12:
I've gotten 14-15 hours out of mine easily, but I have not really put in a lot of time with it. I have been going between 2-3 different devices depending on what I have to do with my jobs. I think I will test drive it more this weekend to see how it holds up.
[Moto X General] RogerPodacter:
That's decent in itself but nothing crazy. My n4 will sit around 1-2 mA in deep sleep overnight. But with the screen on doing nothing it often hits 500-600 mA as the CPU ramps up in background. Spikes up to 900 mA. So I think Motorola really did some type of tweaking cause even at peaks its staying around the 500 area which I haven't seen other phones so consistently low.

You guys should log overnight readings and see what's up with this idle drain. If it is around 6 mA then that's not bad, but not class leading either. But it shouldn't drop 15% over 8 hours.
[Moto X General] jayboyyyy:
what kind of battery life are you getting? im just curious if the battery drain could be related to current draw or not. if it is then it would be simple for those getting knew phones to check and see before spending a week trying to figure out why their battery drain is so low
[Moto X General] robstunner:
I'm certainly having battery level reporting issues, look at that spiking going up, that was just with me restarting the phone. Never touched a charger.
[Moto X General] scorpion667:
How are people still failing at getting good battery life on android. The OS has been out for years and there are literally HUNDREDS of guides regarding battery life.

This is what I do and I consistently get better battery life then 95% of users for any given android phone I use(I also have the best recorded battery life in this thread):

[wifi]

-off when not using

[bluetooth]

-off

[Wireless Networks]

-nfc off

[Active notifications]: ON, off during sleep hours

[Touchless controls]: ON (was off for the battery test results below as I forgot to set it up)

[Sound]

-Touch Sounds off

-Screen lock sound off

-Vibrate when ringing off

[Display]

-Daydream off

-Brightness: AUTO

[Location Access]

-Access to my location ON

-GPS OFF

-Wi-Fi & mobile location ON

[Backup and reset]

-everything off

[ACCOUNTS]

-disable push on all accounts, manual sync ONLY. If you need email for work etc set it to 30 minutes to an hour instead of PUSH.

-disable facebook sync from inside the app, disable chat availability, location reporting, notifications

-basically all your apps have to be set up this way unless it's whatsapp or whatever which has to sync

[Date and time]

-Auto date and time OFF

-Auto time zone OFF

[When you go on the underground subway]

--airplane mode on

[Freeze pointless bloat]

-as per my guide here http://xdaforums.com/showthread.php?t=2432729&highlight=titanium+backup
[Moto X General] bso44:
I can't get CurrentWidget to work. When I try to add the widget to a homescreen, it just takes me to the CurrentWidget settings.
[Moto X General] scorpion667:
... then you press back on navbar and it sets your widget

advanced alien technology eh
[Moto X General] bso44:
Gotcha...thanks.
[Moto X General] chaoslimits:
Pretty much how I set up my GNex. Do you find that account backup makes that much of a difference?
[Moto X General] rmead01:
Had most of this done already. but mimicking the few things I didn't. Will see how it goes.
[Moto X General] bso44:
Mine seems to be around 10 mA idle and 150-280 mA with screen on.
[Moto X General] anotherfiz:
I have no trouble making it through a 12 hour day with plenty left on battery when I get home. I would say my phone "averages" a 24 hour with 4-5 hours of on screen time with 2/3 wifi 1/3 LTE. That usually includes roughly 30mins - 60 mins of phone calls, and 60-120 mins of audiobook playing , and sometimes some mytracks GPS stuff. As for my settings, i have all antennas firing (BT/WIFI/GPS/CDMA/LTE), google now which checks traffic and weather/stocks/news, two gmails set to sync EVERYTHING via push (chrome from my PC, email, calendar, contacts, mytracks, everything.), active notifications and touchless control both on. Battery saver off

I am overall happy with the battery life, it is better than any phone I've ever owned. As i said in a previous post, I think my phone drains about 1-2% per hour depending idle consistently, and 4% per hour of me using it like i use it +-.5% given how hard im pushing it that given day. Its the perfect phone for a single day of use, but given the higher than average idle drain i wouldn't trust it to survive an entire weekend even on really light use... at least not without some battery saving measures.
[Moto X General] jjl468:
There's also a thread on this sub forum discussing 4.4.4 rolling out to the Moto X with decent evidence that it is currently being rolled out.
[Moto X General] abuttino:
Well.. It was certainly WiFi.. 59s of keep awake with it off compared to 20-30m with it on.

Now. I just remembered. I have a machine pinging the phone constantly and will start by using a fresh IP address in the class a range...

I will try to keep this post updated, or if it gets buried, I'll make another one if I have a change in news.

Edit: Sure enough, fresh IP address, 49s of CPU, absolutely no keep awake.. So VERY glad I figured this out. It was really beginning to piss me off. Just wish I thought about it before.. Back to the battery life I was having in the hospital..

Pics:

Ping On

Ping Off:

Both stats are from 100% charge for about 45 minutes off charger. Enough screen on time just to check elapsed time off charger.

In essence.. Problem solved. However, that was with Xposed disabled.. I enabled xposed and all hell began to break loose again.. Now, I have to nail it down to specific modules.. Not fun, but at least this post will serve it's purpose to inform people.

Xposed module DS Battery Saver or Greenify was the root cause after the WiFi ping from a computer on my network.

After about 6h:

MUCH BETTER Deep Sleep time. Location in high accuracy too.
[Moto X General] Soldier 2.0:
You guys take this battery life deal very seriously. Just buy additional chargers or get an external power block.
[Moto X General] abuttino:
9% in an hour is pretty serious.
[Moto X General] MickyMax:
The promise of Motorola was "24H of battery lifetime". ;)
[Moto X General] a1exus:
update to latest 4.4.4, you'll get your 24hours back..
[Moto X General] abuttino:
When it is released, I'm sure I'll be doing that
[Moto X General] MickyMax:
I hope you've true. :D
[Moto X General] :
24 hours is easy.....but it depends on setup, usage and other things. I can get 6 hours screen time over 10 hours or 24 hours or more.

No one just gets 24 hours no matter what guys. ;)

---------- Post added at 12:51 PM ---------- Previous post was at 12:48 PM ----------

That's why we tend to compare screen times instead of total time. Total time will be different for everyone, by a lot. Screen time is a better comparison.... Tho lots of factors can affect it too. Still, a closer comparison than total time.

A heavy user will never get 24 hours screen time. Not when you have 5 hours screen time after 9 hours.
[Moto X General] abuttino:
I can usually get about 6 straight hours of screen on time if I'm going from 100 to 0 with a couple breaks no more than 5 minutes.

I use my phone a lot :)
[Moto X General] jayboyyyy:
so i went to make sure that my google framework was the most updated version. It was. When looking for this i noticed that my google search for some reason when i looked at the Play Store under my apps said that it was up to date. But if i went to "all" instead of my apps and scrolled down to google search it showed up that it needed to be updated. I had it set to autoupdate so idk why it didn't do this on its own. Maybe bc im on eclipse instead of stock. So i went and updated it manually. Anyway, the most my battery life used to get was about 1 day 6 hours with one hour or maybe two screen on time. Now my phone is getting 2 days with more use than i normally use it. so here are some SS.
[Moto X General] SanD-82:
Ok guys...

I'll debrief...

This time,without screens... I have them, but I don't feel like uploading them right now... Will do if you like, but it's the same as I describe here

Without a doubt, the issue with KK's drain is realted to mobile networks... (this was not an issue on JB)

Forcing to get only 3g helps a bit, but drainning is still present...

During the last weekend, I almost didn't use my phone... it was left at home, using wifi...

These are the facts

- 1 day 17 hours 45 minutes on battery (2505 minutes)

- 63% battery remaining (consumed 37%)

- 1 hour 17 minutes screen-on-time

So, MotoX consumed 1% every 67 minutes... Excellent standby...

I started charging the phone at the office, and unplugged it when it was at 100%...

This are the stats for a mixed usage of 3g and wifi back at home:

- 7 hours 22 minutes on battery (442 minutes)

- 46% battery remains (consumed 54%)

- 1 hour 3 on screen time

- 55 minutes on WiFi

So phone consumed 1% every 8 minutes 20 seconds...

8 minutes, yep...

And those 55 minutes on wifi with limited use, took about 4-5% battery...

So since it's under 50%, I'm going to recharge again...

I was able to charge only once with JB, at the office... then I would go to work the next day, and I would be between 40-50%...

Also, I was able to get 2 hours of screen time on JB... Now I'm only getting 1 hour, and need to recharge if I don't want to get below 40%...

KK is just sad =(

Cheers.
[Moto X General] chrisp6825:
Theory here:

I know it's obvious that running any app would contribute to increased battery drains. I've been running my X rooted using the (temporary) PIE root method, along with xposed and a few modules. Most notably gravitybox, crappalinks, and activityForceNewTask.

This caused quite a bit of increased battery drain, without showing any notable app drains in stock battery stats, or wakelocks that I could see (without system write permissions).

More on this later, if anyone cares.

tapa'd on my moto x
[Moto X General] SanD-82:
I don't know...

I mean, I'm an end user... I do not modify my phones, no root, anything like that... I just use them...

And I find that my user experience with kk as diminished... from a 10 on jb, to a 7 on kk...

You could argue that there's some app that's draining, but that's questionable... I am not using any fancy app, all well spread out and known ones...

And some of them are not even active...

Enviado desde mi XT1058 usando Tapatalk 2
[Moto X General] :
Did you clean flash your firmware yet? And run without any apps for a couple days?

In your case....that's the only way you're gonna narrow it down. If its bad with zero apps installed....its a system setting or feature.

If its fine....then you install like 5 apps a day. And if one day battery stinks again, you know its one of the 5 you just installed.

If you don't do this.... You may never track it down. Its not Kit Kat alone.....cause many, most I'd say, have just fine battery life.

Try it....be patient, and you'll find the culprit. ?
[Moto X General] Soldier 2.0:
I totally agree with everything you said. This also applies to any phone, including iPhone. I highly recommend uninstalling apps you rarely use. Don't be an app hoarder.
[Moto X General] tu3218:
This really is spot on. If you're having battery issues, this is definitely the one for sure way to narrow it down. It just takes patience if you have a lot of apps. I've tried it before, but ended just installing my apps because the reality is, what I have on my phone, I need. So even if it hurts my battery more than other apps, I have to deal with it because I need the app. But I can make it through the day just fine without needing a charge so I've been content. Whenever my phone's battery tanks, it's always because poor signal. That destroys this phones batter, and it will do so for any phone.
[Moto X General] jayboyyyy:
fyi i believe i read that the new Android L will have better features of identifying which apps are draining your phone because i think they got a little ticked when "android os" showed up as a high battery drain or "kernel" or whatever when in fact it was app developers that didn't create battery friendly apps. Facebook won't care about battery drain in their app until google figures out a way to show users that FB is the one draining their battery or other well known apps that just have poor development. There is a price to pay for allowing such flexibility and open source with little supervising by google in the android apps. But im getting 2 days with an hour of talk and a couple hours of SOT wihtout doing anything fancy. At least since i made sure that google search was ACTUALLY updated and my framework was as well. Some glitch caused it not to and so i was a few updates behind, almost doubled my abttery life.
[Moto X General] abuttino:
Why does keep awake time go down on Android OS as the battery continues to drain? (Not plugged in)
[Moto X General] abuttino:
Are you speaking of Google Services Framework or Google Play Services?
[Moto X General] aledex:
Well, the first case was way too good, how did you managed to achieve such low power consumption?

Your second case however is very similar to mine.

With 3G connection on, automatic brightness and synchronization off I've lost 3% of battery in 15 minutes.

I'm now at 34%, with 1d 1h 30m of battery life and 2h 20m of screen time. I've even turned off services I don't use like moto care, GPS (and hence moto assist), and so on. On overakl it remains a good battery usage, but I don't understand why it suddenly drains so much battery. Could it be the keyboard haptic feedback?

EDIT: LOL I'm now at 32%
[Moto X General] tekanina:
Still staying on 1% but not nearly as long I'm on my fourth full charge now. Here's the stats from yesterday.
[Moto X General] aledex:
Wow, 6h20m of battery? I've never let my phone discharge below 10%, should I try? I hope you manage to solve your 1% problem... I will check if I have it too.
[Moto X General] tekanina:
Believe me before I did I was pretty upset with the battery life on this phone. Coming from a Nexus 4 that was getting 5hrs sot and 16 hrs on a charge. I was getting like 2 hrs sot and like 10 on a charge before I let it die. It stayed at 1% for about 5 hrs before it died.

Just let it die and fully charge while the phones off for a few cycles and you should see better battery life.

This screen is from my first night of doing this it still lasted another hour or so before powering off.