yashsingh1/xdaforums huggingface dataset:
[Android General] Culateralligator:
Thanx a lot :) And what about deleting batterystats.bin file?

Other question. When I'm charging the phone and I boot it, always appears 5-6% more than before I restarted. Obviously Mi phone can't charge that fast. I've tried some battery calibration's methods but stills the same. Is this normal?

Anyway, now I'm charging the phone and will try what you told me.

Sent from my GT i8160 4.4.4 AOSP
[Android General] Portgas D. Ace:
Unblock the *alarm* wakelock and report back.
[Android General] usvimal:
I don't block the *alarm* wakelock yet Android system and Android OS uses a lot of cpu. More than 1h over a period of usage even
[Android General] wah00kid:
My Battery Stats

So I found the guide and have been very pleased so far with the results.

I tried to run the log over night the last two nights and two nights ago I got around 1.5%/hr ... last night though it was around 8%/hr.

I know I still have the location still enabled.. I am willing to go down that route...

Let me know what other logs I could provide.

I will appreciate any help anyone offers!!

Nate
[Android General] usvimal:
Power manager service is the reason for the cpu usage. How do I reduce it?
[Android General] Portgas D. Ace:
I haven't responded to you, but the quoted user. According to his screenshots he has blocked the *alarm* wakelock with integrated wakelock blocker, but this wakelock keeps running wild. Unblocking might solve his issue.

Could you upload your BBS dump file? This way I am able to help you.
[Android General] v7:
[MENTION=6718552]amruthpradeep7[/MENTION] Do you have any other Browser with Sync?

Have you tried a different ROM/Kernel?Does it happen on other ROMs too?

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=4456689]Harpratap[/MENTION] Unblock *alarm* wakelock.Read FAQ in post #4 and post me a dump later.

FYI *alarm* wakelock appears on all Lollipop ROMs.Even though it shows up in the battery stats,it doesn't drain much battery.

Tapped from my furious dogo ;)
[Android General] usvimal:
Here you go
[Android General] v7:
[MENTION=6542205]Culateralligator[/MENTION] I had this issue on my dogo some time ago.A charge cycle fixed it.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=4222861]wah00kid[/MENTION] Location Service is killing your battery.Follow the OP and limit the Location alarms in Amplify.Report back later.

There's some issue with the Kernel too.Next time when you post the dump keep mobile data off and WiFi On.

Tapped from my furious dogo ;)
[Android General] Portgas D. Ace:
Well, we need an idle dump to help you. Refer to the FAQ in post #4 to pull an idle dump.
[Android General] Purerawenergy:
First of all I want to say thank you for this thread, its very informative and your reply rate is impressive. I followed the OP and applied all recommendations except for power nap (as it caused some crashes) but I may try it later. I'm getting decent battery life other than the fact I have poor reception and is constantly searching. And even when set to "never" in advanced WiFi settings, my WiFi shows 100% during deep sleep and I'm not sure why. I had it set to "always" for this test to see if it helped overnight signal issue. I also forgot to disable ambient screen last night, but wanted you to take a look and suggest further options if you don't mind. Thanks again for your help and here's my dump.

https://www.dropbox.com/s/0nooyghc5t1e3f1/BetterBatteryStats-2015-07-08_103115105.txt?dl=0

Sent from the slippery slope.

---------- Post added at 10:42 AM ---------- Previous post was at 10:36 AM ----------

Not sure if this helps as well but.

Sent from the slippery slope.
[Android General] v7:
[MENTION=5956955]Purerawenergy[/MENTION] Can you take a look at the FAQ on post #4 and post me a dump?

Tapped from my furious dogo ;)
[Android General] amruthpradeep7:
Deep sleep

To test that only i installed other roms and tested with default kernel and with tangerine kernel.

But stilll same suspend_backoff is consuming more not even 1 second i saw deep sleep in my phone since lollipop:(:( but in kitkat i used to get deep sleep.
[Android General] v7:
[MENTION=6718552]amruthpradeep7[/MENTION] Does the wakelock show up when WiFi is off?Can you turn off "Scanning Always Available" in WiFi settings and post me an idle dump with Mobile Data on?(Keep WiFi off during the test)

Tapped from my furious dogo ;)
[Android General] Purerawenergy:
So do you prefer "not" using the drop box link I provided?

Sent from the slippery slope.
[Android General] v7:
[MENTION=5956955]Purerawenergy[/MENTION] In the dump you've posted,it seems that you've used the device for a few minutes.I need an idle dump to comment on your battery life.
[Android General] Purerawenergy:
That usage time was literally the time it took me to upload the link to drop box and post what I wrote to you, but I guess I'll try and do it faster than that tomorrow.

Thanks

Sent from the slippery slope.
[Android General] amruthpradeep7:
By the way scanning always available turned off from starting only.

Done:good: Tonight i will put mobile data on and wifi off and get you dump.

Get you dump tomorrow.
[Android General] v7:
[MENTION=5956955]Purerawenergy[/MENTION] Charge your bacon to 100% before you leave it idle.Keep Wifi ON and leave the phone idle for atleast 4 hours before you post the dump.
[Android General] daniel2744:
amplify not blocking

So I'm using amplify on my HTC One M9 and I set it all up and on the picture it shows that its not blocking anything. Any thoughts?

edit: also what services or wakelocks should i leave if I use a moto 360?
[Android General] PIRATA!:
Hi again [MENTION=5867207]vaisakh7[/MENTION] !!

I practically do this always as I charge my batteries with stock Samsung external battery charger that came with my device with two batteries.

I just charge batteries with external battery charger and then replace them when device turns off.

Never quite charge device with wall charger plugged directly in device, but when that happens, I fully change the battery and leave the device plugged for much longer then 10-15mins. It happens always overnight, so it remains plugged for some hours.

Should that be considered a full constant battery calibration??

Tnx.

Ps: I'm about to but third stock Samsung battery to optimize more my foo charging with external charger.
[Android General] usvimal:
Here is my idle dump
[Android General] haseogu:
Hi vaisakh can you help me with my device. I can't go to deep sleep although i use deep sleep battery saver xposed module. How can I provide you a good log for my device ?
[Android General] v7:
[MENTION=2562010]daniel2744[/MENTION] Is all other modules working fine?Can you try reinstall Amplify? If it doesn't work,please report this in the Amplify thread.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=3278619]PIRATA![/MENTION] Leaving the device plugged overnight is okay,but it eventually degrades the lifespan of the battery.Overcharging and heating can cause much damage to the battery.

Another thing you should remember is that Charge cycles can drastically reduce you battery's lifespan.Charging from 0-100 once in 3-4 months is fine.But if you do it weekly or even once in a couple of days,you're definitely destroying your battery.Try to avoid such a situation whenever possible.

Calibration should be done only if there's some misbehaviour from the battery like in the case of [MENTION=6542205]Culateralligator[/MENTION] or once in 3-4 months.It is always advisable to charge the battery when it reaches 10-15%.Do frequent charges rather than one single charge up at the end of the day.It helps in the long run of the battery.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=5647774]usvimal[/MENTION] From the dump,I can see that you have WiFi turned off.With no data connection on the phone,I'm is unable to track down alarms/wakelocks since most of the alarms and wakelocks are triggered during an active connection.Post me an idle dump later with WiFi running.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=4863289]haseogu[/MENTION] Read FAQ in post #4.I've it explained there,how to report logs.

Tapped from my furious dogo ;)
[Android General] daniel2744:
Yeah other modules are working fine. I will reinstall and report back

edit: So apperaly this is an issue with One M9s at the moment. I went to the amplfiy thread to post and I saw someone comment that a few M9 owners are currently having this problem sadly :(
[Android General] amruthpradeep7:
Deep sleep

@ vaisakh7,

Here is my dump...please help :(
[Android General] v7:
[MENTION=6718552]amruthpradeep7[/MENTION] suspend_backoff wakelock is a very difficult one to nail down.You'll have to do thorough tests to identify the culprit.You said that you've tried different ROMs and Kernels.So I suspect your home WiFi for the issue.

This wakelock is caused when your phone wants to sleep, but a running process blocks it from doing so

Before moving on to the debug process, help me with the Q&A below.

1)Does this wakelock trigger when you have data and WiFi off?Try it on Aeroplane Mode and report.

2)Does this happen on all WiFi AP you connect?If you haven't tried,try a different WiFi connection and see if the wakelock appears.

3)Do you have "Keep WiFi during sleep" set to "Always" in Settings?If you haven't,set it to Always.

Report back later.

Tapped from my furious dogo ;)
[Android General] gregferns:
New to MOST of this

Hi [MENTION=5867207]vaisakh7[/MENTION]

I am using Greenify from a long time now. It works fine. I want more juice out of my YUPHORIA and hence decided to use the apps in your thread. I read the OP and most of the thread and i'm still reading up.

I have attached my idle dump from overnite and after using it from 6 am till now (10.30 am).

Please see and advise what all i can do to use your guide to the maximum.

Right now in Greenify following apps are allowed :

AMPLIFY

BATTERY HOME ICON

BUSYBOX PRO

CALL LOGS BACKUP & RESTORE

CPU TUNER (although not using this much because Kernel Auditor is doing good so far)

CUSTOM STOCK LOLLIPOP

DAILY BIBLE

DEVICE MANAGER

GOOGLE PLAY GAMES

GRAVITY BOX (LP)

KERNEL AUDITOR

LOCK SCREEN CLOCK MODS

POWER NAP

SMS BACKUP AND RESTORE

SWIFTKEY KEYBOARD

SWIPE UP TO SLEEP

TRUECALLER

TRUEDIALER

WHATSAPP QUIET HOURS

In POWER NAP

Endurance Mode is on and whitelisted apps are as below :

ANDROID SYSTEM

BATTERY HOME ICON

BUSYBOX PRO

CALL LOGS BACKUP & RESTORE

GOOGLE PLAY SERVICES

GOOGLE SERVICES FRAMEWORK

GRAVITY BOX (LP)

GREENIFY

GREENIFY (DONATION PACKAGE)

KERNEL AUDITOR

LOCK SCREEN CLOCK MODS (LP)

SMS BACKUP & RESTORE

TITANIUM BACKUP

TITANIUM BACKUP PRO

AMPLIFY is a bit scary :D and so far i have just changed the alarm in

com.oasisfeng.greenify.CLEAN_NOW to what you have suggested in OP.

1. Please advise and help how to get maximum battery life.

2. Also as i mentioned i've been using Greenify a long time and i even hibernate whatsapp so i'm not disturbed all the time by notifications. But since i've started using POWER NAP and AMPLIFY Whatsapp notifications have started coming again.

3. Another thing, since i started using POWERNAP and AMPLIFY titanium Backup is not doing the regular scheduled backups.

Thanks in advance.

Greg
[Android General] Portgas D. Ace:
Try to de-greenify Titanium Backup, as it can not perform its scheduled backups while it is hibernated. Maybe check if you have enabled the Deep Hibernation option in Greenify, as this causes issues with waking up apps.

Second, whitelist Amplify in Power Nap. This way it is able to run even when screen is off.

According to your idle dump file, you have charged your device during this time.

Battery Info

============

Level lost [%]: Bat.: 9%(91% to 100%) [-34.6%/h]

Check post #4 about how to set appropriate references and upload a usable idle dump after 7 hours idle time.
[Android General] PIRATA!:
[MENTION=5867207]vaisakh7[/MENTION] , so to my treatment I should only integrate the thing of:

1) switching between batteries when they reach 10-15% instead of zero so to charge them (with external charger) when they haven't reach the zero,

2) and do this for most of the times, so to do a full 100%-> zero->100% only once every 3/4 months (or only when I get stuck with last battery and drain it till zero because I need to use the phone till it),

3) and reduce the times I leave the phone plugged in charging inside battery after it reaches 100%.

Right? :)

Tnx.
[Android General] gregferns:
Thanks Orville.

I've now degreenified TB, lets see how it goes. And i'me not using the DEEP HIBERNATION option.

I'll whitelist Amplify in Powernap.

And for the dump this is what i had done.

1. Charge to 100%

2. While it was charging i had setup BBS.

3. Unplug the charger from socket.

4. After waking up in morning had taken the dump.

MAYBE i have to setup BBS AFTER I REMOVE THE CHARGER and NOT SET IT UP WHEN CHARGING......

Let's see.

Also need to know from you or even OP what to do about wakelocks and alarms and services etc...

Tx in advance.

Greg
[Android General] v7:
[MENTION=3278619]PIRATA![/MENTION] 1,2&3) Right! :)

Also do frequent top-up rather than one daily charge up.This is healthier for the battery.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=2035300]gregferns[/MENTION] Yes to what [MENTION=5901790]orville87[/MENTION] said.About BBS,read post #4.I've mentioned about the "reference".Take a look at that and post me a dump later.

Tapped from my furious dogo ;)
[Android General] gregferns:
Hi.

I had read the POST 4 before doing this... And the references were as what are in the screenshots also... But maybe i need to set BBS up AFTER UNPLUGGING and NOT SET IT UP WHILE CHARGING.....

I'll try tonight...

regards

Greg
[Android General] Jamalsid:
[MENTION=5867207]vaisakh7[/MENTION] can you have a quick look at my BBS log. I can't see where I can improve, not too happy with 0.9%/hr was hoping for better.

thanks in advance.
[Android General] Hungryhacker:
Thanks

Yes this guides really helps me for improving battery life.
[Android General] v7:
[MENTION=3080204]Jamalsid[/MENTION] You are having a Kernel Issue.How about switching the Kernel?

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=5888281]Hungryhacker[/MENTION] Good to know :)

Tapped from my furious dogo ;)
[Android General] robertocd:
Hi, thank you for this awesome thread. I have managed to reduce my battery consumption using the advice found here. Anyhow I post my dump file here just in case anyone can help me improve it even more.

Thank you for your time and help!
[Android General] v7:
[MENTION=4133190]robertocd[/MENTION] Do you have bad cell reception in your area?How old is your battery?

Tapped from my furious dogo ;)
[Android General] robertocd:
The battery should be eight or nine months old and I think the reception on my area isn't bad (GSam battery usually says something like 7-8% of the time on 3 and 92-93% on 4).

Thank you for your quick reply!
[Android General] v7:
[MENTION=4133190]robertocd[/MENTION] Mind trying another kernel/ROM? I assume that you're on stock.Is there any good Kernel available for the Moto X?

Tapped from my furious dogo ;)
[Android General] Jamalsid:
I'll give a new kernel a go and report back.
[Android General] robertocd:
Yeah, I am on stock 5.1. On 4.4.4 there were a few kernels/stock based ROMs that were really good batterywise, but none of those are compatible with 5.1 yet (the kernels I mean). There are a bunch of 5.1 AOSP/CM12.1 based ROMs, and a few kernels, but I have tried to stay on something based on stock for the Moto X specific functionality (and on 4.4.4 they were really the best performing in my opinion).

I haven't really got to look at or try kernels compatible with 5.1 yet as we got stock lollipop the last couple of weeks, and I was seeing how it performed. I guess it is time to start checking them out!

Anyhow I have gone from around 2.2%/h to 0.9%/h (which is a great improvement) thanks to this thread.

Thanks again!
[Android General] mab71:
Thanks for OPs guide
[Android General] v7:
[MENTION=3517247]mab71[/MENTION] 6 hrs+ SOT is really awesome :) Glad I could help :) ;)

Tapped from my furious dogo ;)
[Android General] closee91:
Just wanted to say thanks for this amazing guide! :D I attached a BBS dump just wondering if there's anything else I can do or anything? Thanks again!!

https://drive.google.com/file/d/0B2zBuxe-QvzgVFlyWnhaYzVyeGM/edit?usp=docslist_api
[Android General] v7:
[MENTION=5268098]closee91[/MENTION] Your quest for better battery life ends here.This is perfect :)

Tapped from my furious dogo ;)
[Android General] mab71:
Wow!! What phone are you using sir? Oh, ok.. Lg g3... Can you share your setup from the OP?
[Android General] Stupifier:
He's using an LG G3......says it in his battery dump stats. Whatever it is...wow.....0.0% loss per hour.....for over 6 hours......amazing
[Android General] Portgas D. Ace:
There is one thing you can do, indeed: relax, grab a cold beer and enjoy your amazing idle time :) :good:
[Android General] closee91:
Ill screenshot my amplify/powernap and post screenshots

Thanks! Its all from the OP :D

I love it. I'm gonna grab a new battery tho, just for that extra oomph :p
[Android General] closee91:
There are SO many that I limited in Amplify. If anyone wants to know specific then PM me. I don't wanna waste space on here :p

Edit: I also use Servicely but I think I'm gonna get rid of that.
[Android General] v7:
[MENTION=5268098]closee91[/MENTION] I request you to move all these screenshots to a folder and upload it to a file sharing site/drive and post the link here.Just to avoid conflicts with the OP.Thanks :)
[Android General] Stupifier:
After glancing through your limits I wanted to verify a few things.

1. you ARE limiting GSM stuff......therefore, you are NOT getting push notifications from things like Facebook and such? True?

2. You are limiting GPS stuff......therefore, you are NOT using your phone for any type of Navigation/Location stuff? True?

Just wanted to clear up what you may be sacrificing here in order to get such outstanding battery life. Correct me if I'm wrong.
[Android General] closee91:
1. Yeah Facebook twitter and Instagram I'm not getting instant notifications (because I don't want my phone blowing up :p ) works fine when I go on them tho, when I wanna check them manually.

2. My navigation stuff (maps, google now, hound, etc...) Works fine when I have navigation on (high accuracy and battery saving, not device only) those work fine. That idle drain was with high accuracy ON :)
[Android General] Purerawenergy:
Good morning. Uploaded my dump file to drop this morning, but didn't have time to post it here until now. I normally sync my phone manually, but left it on last overnight, should I have done this? Thanks for your help in advance.

May need to find a solution for poor data signal as well.

https://www.dropbox.com/s/mmu390hp3egej84/BetterBatteryStats-2015-07-09_084221694.txt?dl=0

Sent from the slippery slope.
[Android General] v7:
[MENTION=5956955]Purerawenergy[/MENTION] I've answered your post on the BBS thread too :D You can limit android.appwidget.action.APPWIDGET_UPDATE to 3600 sec in Amplify if you don't depend too much on widget updates.Limiting this will let the widgets update every 1 hour

Everything else looks good :)

Note:Next time when you take dumps,pull the dump from BBS as soon as you turn ON the screen after the sleep.This will allow you to get the complete Idle dump with minimum SOT.This one is fine though :)

Tapped from my furious dogo ;)
[Android General] Purerawenergy:
Alright, thanks for your time and suggestions.

Sent from the slippery slope.
[Android General] v7:
You can either use Amplify or MyAndroidTools to disable service.In this case I've used both although there's no difference.:D

The services mentioned in Amplify post refers to the AnalyticsService of GooglePlayServices.It sends personal data to the Google servers frequently.It is safe to disable.The Analytics.AnalyticsService runs in background as long as GooglePlayServices is active.So blocking that Service is effective.

Tapped from my furious dogo ;)
[Android General] v7:
You can use all the apps listed by me together as given in the OP.It is tested by me,and found effective in saving juice.

Tapped from my furious dogo ;)
[Android General] v7:
I don't understand what you mean by "Not connecting".You're talking about PUSH Notifications,aren't you?

Tapped from my furious dogo ;)
[Android General] Ramer:
Yesterday I went through the OP and set up almost everything per OP. Some alarms weren't on my phone or tablet (assuming it's because they're both Samsung). I'm waiting on Moderator approval to get Power Nap. Here's the strange thing: BBS on both my GS5 (custom de-odexed rom and themed) and my Tab S 8.4 (custom de-odexed rom, no theme) present me with these screens when I run BBS (Blue is phone, white is tablet). I do have some Xposed mods as well. Any ideas, start by disabling Xposed mods?
[Android General] v7:
There should be some MODs causing this.I'm pretty sure that it's not any app mentioned in this thread.You better try disabling some modules.

Tapped from my furious dogo ;)
[Android General] pakitos:
Yes, kinda of.

After I used Amplyfi my WhatsApp app stopped giving me push notifications and I have to manually open the app in order to receive and check if I got any message.

BUT...

If Im connected to WiFi it takes a lot to receive any message if there is any. It takes a few seconds if I do this on mobile data. So for me is also a "connection" issue.

IE: A person Im working with sent me a message at 6:20PM and I didnt notice because I had no notification. I opened WhatsApp at 10:30PM using WiFi and noticed it wasnt giving me "last connected ..." so I switched to LTE and 2 seconds later I received the message that was sent 3 hours earlier.
[Android General] v7:
Try Push Notification Fixer- Root and see if it helps.(Read "Known issues" in OP)

Tapped from my furious dogo ;)
[Android General] cornelito:
I should really ask this question in Power Nap section but will try here as well. Im trying to put Email Exchangle app onto the whitelist but I cannot see it on the list?
[Android General] AvidPhisherman:
This is a great breakdown... tagging for ease-of-access later. Thanks OP!
[Android General] donkim0822:
Great guide, thank you! Since upgrading to Lollipop, I've become obsessed with battery life. I've been looking for a guide like this for a long time. I've done Amplify+Greenify and really like the result. Hope Power Nap has a positive effect when my request to join is accepted.

I also UV, downclock CPU and GPU. I don't game. I was about to pull a trigger on a OnePlus One for its larger battery. Not so sure about that now. :D
[Android General] Traxex_:
I'm getting many *alarm* wakelocks from SwiftKey :/
[Android General] v7:
Don't worry about *alarm* Wakelocks.It is present in almost all LP custom roms.It doesn't consume much battery although it shows up in BBS stats.:)

Tapped from my furious dogo ;)
[Android General] v7:
It would be nice if the Dev himself answers the issue :)

Tapped from my furious dogo ;)
[Android General] Ramer:
Disabled all but Greenify and Amplify. Now go. I'm getting some outstanding idle time though. Had my phone sitting screen off for 2 hours and stayed at 91% the whole time.
[Android General] v7:
Did that solve the BBS issue?

Tapped from my furious dogo ;)
[Android General] uchiha_sasuke:
Those who are using these how much increase in avg battery life is there.
[Android General] sttw1fa:
Mostly the same situation for me. Using LeeDroid's latest ROM for the HTC One M8 and Lollipop 5.0.2. Was remotely thinking of an LG G4 for the bigger battery and swappable....but after following the OP so far....things look very nice and may save me some $ until later in the year....
[Android General] Ramer:
No, weird.
[Android General] v7:
Can you try reinstalling BBS from PlayStore or from the BBS thread?

Tapped from my furious dogo ;)
[Android General] Ramer:
I'm using the paid version from the Playstore. I'm going to uninstall it and get it from the XDA thread.