yashsingh1/xdaforums huggingface dataset:
[X Style (Pure) General] zohar_ml:
I have "com.google.android.gms/.checkin.EventLogService$Receiver" as it came from your xml file.

But in Amplify I only see " com.google.android.gms/.checkin.EventLogServiceReceiver" (with out "$") I added it.

Chomp sms don’t have any advertisements (I also have AdAway). Added this limit.

Stopped News+ updates from it's settings (was wrongly set to each 1hr)

Did a new night run with tasker + Bluetooth + wifi off: just the same -1.4%/h with only 1.2% awake with screen off.

I see that google download manager and whatsapp where a bit active. my signal was moderate all the night.

I think that tomorrow I will try and set the phone in flight mode for the night.

Could you explain a bit on how you select which alarm/wakelock can be limited?

Does Greenify also allows the phone to enter doze faster? If I understand, the default is minimum of 30min?

Zohar
[X Style (Pure) General] mahdif62:
I did everything mentioned in OP but I'm hardly getting 4:30 of SOT with 50% brightness and no gaming.. can someone please help me track down the issue.
[X Style (Pure) General] zohar_ml:
Something very wrong with my phone, 6hr test in flight mode, deep sleep for 99.4%, awake only 2m and still -1.3%/h!

some thing is eating my battery and I don't have a clue what.

After replacing my rom & kernel what more part can I change in order to try a fix?

How do I restore the phone to its totally factory state?

4:30 SOT is very nice!

In order to find whats using your battery you must do an over night test and post your BBS log.
[X Style (Pure) General] rehpyc:
Definitely something going on behind the scenes, as nothing indicative to BBS is showing as the culprit to your battery drain. Do you use Xposed? Perhaps it's a module that you use? One thing you could definitely try is create a nandroid of your current build and flash the ROM/kernel again. Don't install anything except BBS and run the same process to test battery drain overnight. *Hopefully* that leads to indicating that its something with your current build that is causing drain and not a faulty battery. (Btw, today I noticed Google must have updated their services and changed the nomenclature for EventLogServiceReceiver.. so good catch. Seems they've added additional alarms as well :rolleyes:)
[X Style (Pure) General] zohar_ml:
In xposed I have: Amplify, GravityBox(mm), Greenify, Power Nap, Secure Settings.

I'm thinking to do the full wipe of the phone, including /boot and all.

Just downloaded the Motorola firmware (CLARK_RETUS_MPH24.49-18_18_retus_US) from http://xdaforums.com/moto-x-style/development/pure-firmware-tuff-wip-t3224833 and from Motorola site.

I will be 100% sure that this is the correct file and I will clean the phone.
[X Style (Pure) General] Mr.Crocodile:
I used kernal 0.12 with rehpyc script(tweak, govn). Lower Screen resolution to Full HD. Follow everything in this post (1st page). Run GeekBench battery test: 4h40 SOT (Dim Screen). I feel a bit weird. Any thought?
[X Style (Pure) General] zohar_ml:
At last, I'm on the right way!

I was on a -2 to -1.5%/h when phone idle.

Replaced rom, did all the tricks of rehpyc but nothing helped. Even with tasker disabled & flight mode I was still on -1.3%/h

I did a total clean install:

Cleaned my SDcard: there was allot of staff in /android, so I deleted everything but my music folder.

fastboot all the phone with https://drive.google.com/file/d/0B3gPYUZ4nRLwVW1rYjVCZnA5ZGc/view?usp=sharing

(Including bootloader, modem etc,) + fastboot erase userdata & fastboot erase cache.

Logged into google account and installed as new phone.

Only installed BBS (even without root) and did a night test in flight mode: 0.2%/h !!! :D

Turned on the cellular network, and now in normal daily use with some phone calls got ~1.2%/h (over 2.5hr)

Now I will try to restore my twrp backups and test battery along the way.

I will keep updating in this post on my findings.

Zohar
[X Style (Pure) General] mahdif62:
Here's my BBS log. Thanks much.
[X Style (Pure) General] zohar_ml:
Some things that I see:

You are using older version of many program (don’t know if this will change anything) you may update:

TruPureXMM -> 2.8.2

FrankenClark ->0.12 (I use the 300hz)

BSS -> 2.2.0.0B6 (found on the second post on the XDA BBS page)

(Don't forget a full backup before...)

You have -0.6%h batt usage, with long awake (screen off) 24m = 6.2%

I currently have 3% awake and -0.3%h

I don’t see any doze info in your log, maybe this is due to old BBS.

You have high locationService wakelocks. Have you set all the stuff as rehpyc described (I don’t have this wakelock item)?

Your wlan_wow_wl kernel wakelcok is high 16m 4.1%. I have 6m 2%. I don't have a clue what to do with this. There is no Amplify settings for this by rehpyc.

I also see some network activity from your shadowshock. I see this is some kind of proxy?

You may try and limit it abit in Amplify

I think that my high battery drain was because I use the S2W. I will do the final test tonight.

Zohar
[X Style (Pure) General] rehpyc:
[MENTION=6622407]zohar_ml[/MENTION] I take it from your post in the frankenclark thread that your heavy battery drain that couldn't be found in BBS was due to S2W? If so, gj locating the culprit, and enjoy the better battery life!
[X Style (Pure) General] zohar_ml:
Yep, S2W is my main battery drain.

I will start adding my tasker and xposed back in and test them.

I realy hope that he could fix this....

I don't understand this.
[X Style (Pure) General] rehpyc:
gj = good job! happy you're able to get good battery life again
[X Style (Pure) General] Mr.Crocodile:
Are you using TruePure or Stock Rom? I found True Pure drain battery quicker than Stock?
[X Style (Pure) General] fakitol:
I'm getting ~2:30hrs tops with full stock 6.0.1... Very ****ty results...
[X Style (Pure) General] chris23445:
I get about 2.5 to 3 hours with stock 6.0. Power Nap, Greenify, Naptime, and I had Amplify but it didn't do much so I uninstalled it. My phone is in deep sleep about 87% of the time. This phone just has awful battery life. It's about the same as my Nexus 6. I hope my next phone will actually have good battery life, and not stutter like hell like this phone does. The RAM refreshes and stuttering drive me nuts sometimes.
[X Style (Pure) General] fakitol:
I bought this phone, because reviews gave good battery life score... When I had Nexus 5 with KitKat it was running blazing fast... After 5.x.x **** began to happen.
[X Style (Pure) General] mahdif62:
Thanks Zohar. Dear [MENTION=3004396]rehpyc[/MENTION] can you please advise what value i should use for locationService?
[X Style (Pure) General] fakitol:
Phone is always awake? Bug or ftw?
[X Style (Pure) General] rehpyc:
Can't see the details of which alarms are firing.. try downloading a newer BBS here and provide another log.

Hard to really say without some logs. While WiFi appearing on though it's actually off is a known bug in the battery stats, haven't ever seen the awake bug, so I'm inclined to say your phone was actually awake due to a rogue app in the background.

Sorry for late replies.. gearing up for a 2 month business trip soon here. Though, this business trip will lead to plenty of free time for testing and compiling scripts for you all to run :)
[X Style (Pure) General] mahdif62:
Thanks [MENTION=3004396]rehpyc[/MENTION]. Just to make sure: the steps are I update BBS, fully charge the phone, leave it with screen off overnight and share the BBS log with you. Correct?
[X Style (Pure) General] rehpyc:
Correct!
[X Style (Pure) General] chill145:
I implemented your settings but when I unlock the screen it freezes on the lock icon and I have to hit the power button to unlock and get to the home screen. Any idea on what might be causing that?
[X Style (Pure) General] chris23445:
Are you talking about on Moto Display? If so, do you have Power Nap? Cause Power Nap screws up Moto Display. I had to switch to AcDisplay cause I wanted Power Nap more.
[X Style (Pure) General] kakabobo:
i getting whatapps delay issue with the OP set up.
[X Style (Pure) General] mahdif62:
I don't have some of those Alarms/Services!! Is something wrong with my phone?
[X Style (Pure) General] mahdif62:
Hope this one works.
[X Style (Pure) General] zohar_ml:
You need to redo the test :(

The log is for "Boot to current". it even logs the time you had it charging (went from 49% to 97%).

You should fully charge the phone, plug it off, let it sit for the night, and first thing on the morning make a log of unplugged to screen on.

This will put in the log only the time the phone was "doing nothing".

(if your phone screen turns on from notifications you probably need to make from unplugged to current)

I also see very long wake due to "smbchg_wake", I could not find any info on this.

Zohar
[X Style (Pure) General] mahdif62:
I did this exactly. I fully charged and then unplugged the phone. Didn't touch it at all till the morning. In BBS settings i have "default stat type" to "since unplugged".

However in BBS main view I only see BOOT and CURRENT.
[X Style (Pure) General] zohar_ml:
You should have these options.
[X Style (Pure) General] mahdif62:
Weird. Here's my BBS screenshot
[X Style (Pure) General] zohar_ml:
BBS only shows relevant options.

Try to plug the power cord in and out and the plugged / unplugged will show.

You can also press the 3 points-> set custom ref to add the custom option.
[X Style (Pure) General] rehpyc:
Remove the following from Amplify:

» android.content.syncmaster.SYNC_ALARM (43200)

» com.google.android.gms.gcm.ACTION_CHECK_QUEUE (43200)

» com.google.android.intent.action.GCM_RECONNECT (43200)

» com.google.android.intent.action.MCS_HEARTBEAT (43200)

Can add one at a time to see which directly affect Whatsapp from delaying the notifications.

Not at all. Marshmallow brought on new alarms in place of others. I'll be updating the OP soon with a new list (and providing an .xml file to easily use) once I'm on a 2 month business trip I've been busy preparing for.
[X Style (Pure) General] mahdif62:
By the way when leaving the phone untouched overnight should the data connection be turned off? [MENTION=3004396]rehpyc[/MENTION] recommended turning wifi off but said nothing re data.
[X Style (Pure) General] rehpyc:
Go ahead and leave wifi on. Can first do a test in airplane mode, which will indicate the lowest possible battery drain you can ever achieve. Then with leaving data/wifi on, we'll be able to see which things you need to block in amplify.
[X Style (Pure) General] mahdif62:
Thanks. Will do.
[X Style (Pure) General] zohar_ml:
If you turn it off it will save some battery. I keep it on, it is still a phone.... [emoji2]
[X Style (Pure) General] mahdif62:
My latest BBS log is attached. Hope this one works! ?
[X Style (Pure) General] zohar_ml:
Perfect!

0.3%h, 2% in 6h.

This means that your phone is not wasting battery when doing nothing.

It uses battery only when you work with it.

Do you have S2W or DT2W on?
[X Style (Pure) General] mahdif62:
No both are off.
[X Style (Pure) General] rehpyc:
[MENTION=6409377]mahdif62[/MENTION] as [MENTION=6622407]zohar_ml[/MENTION] has pointed out.. your stats look good. While it won't make a huge difference, you can add the following regex under the Alarms in Amplify (hit the + symbol at the top): CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]+
[X Style (Pure) General] mahdif62:
Thank you both. So there's nothing more I can do to reach say 6 or 7 hours of SOT? With the current setup I'm getting 5 hours which is very good and I'm really grateful to [MENTION=3004396]rehpyc[/MENTION]
[X Style (Pure) General] mahdif62:
Also can you please confirm these settings are correct. And How can i make sure my kernel settings have been correctly applied?
[X Style (Pure) General] rehpyc:
Do you play games, watch videos, stream music? Is your signal always green under battery stats? There's a lot of factors in play that affect SOT, and no two phones/batteries perform alike unfortunately.

Those are correct. Which kernel/settings?
[X Style (Pure) General] zohar_ml:
Can you make a night test with S2W on and flight mode?

I have high batt usage with S2W and I wish to know if it's only with my phone.

---------- Post added at 09:49 AM ---------- Previous post was at 09:33 AM ----------

Just found out "prepn profiler" a nice app that can display online the CPU and GPU normalized load.

With this app I saw that when I play 3D games (Mekorama for example) the phone GPU goes to 100% load @ max rate and the CPU load is quite low. This makes the phone to go over 45 degrees Celsius very fast. I've tested it and even with GPU max frequency =300 the game runes great and the phone is kept at lower temperature.

[MENTION=3004396]rehpyc[/MENTION] is it possible to add some setting in which GPU max frequency will be set to low value if the GPU load is >90% for 5sec?

Is it possible to change the max GPU frequency using some shell command with tasker?
[X Style (Pure) General] rehpyc:
It's definitely possible/not all that hard, but why not limit the GPU to 300 entirely? If the game(s) you play run fine at that max freq, non-gaming isn't ever going to need the GPU to run beyond that.
[X Style (Pure) General] mahdif62:
I mean your scripts that I copied in SD card /frankenclark folder. Never mind i think they are applied correctly.
[X Style (Pure) General] mahdif62:
I can but flight mode is not possible as I'm on call most nights.
[X Style (Pure) General] zohar_ml:
Without flight is allso good.

A log of a night without phone calls is best as it only logs the phone (and you :) ) in ideal mode.
[X Style (Pure) General] zohar_ml:
For the last three days I've set my max GPU frequency to 180, and my phone work great!!!

I totally don't understand how this is even possible.

All the GUI is smooth, I play intense 3D games like Air Attack 2 and Mekorama and I don't see much difference from when it was set to 600HZ. Only now the phone runes much cooler and uses much less battery.

So what more does the GPU do when it run at 600HZ? More FPS? But I don't feel this.
[X Style (Pure) General] -sandro-:
OP do you get these SOT with LTE data only? No WIFI? Also are you sure blocking these wakelocks don't block notifications from apps like Gmail or FB messenger/whatspp?
[X Style (Pure) General] helpme364:
I've followed every detail of this thread (minus adaptive brightness, but I usually keep it around 40% brightness), and I still have to scrape to get past 3 hours of SOT. How do you guys do it?

Should note that I'm using TruPure 2.9, with Frankenclark, running all of your scripts, rehpyc.
[X Style (Pure) General] -sandro-:
Wi-Fi or data? Do you play games?
[X Style (Pure) General] aybarrap1:
What apps do you use regularly? Are they heavy on data? As mentioned, do you play games? While the screen is definitely a heavy battery user, data requirements and heavy cpu/gpu apps can bring down battery life therefore your SOT. Another question is at what point do you charge your phone, and how long does it take to get there (I.e. Once you charge your phone, how long before you put on the charger again and/or at what percentage of battery)?
[X Style (Pure) General] helpme364:
-don't play any games whatsoever

-data usage is always less than 2gb per month

-on WiFi and data an equal amount

-only battery eating apps I use are Instagram and Snapchat but they're greenified, and with most wake locks controlled in Amplify

-battery charging usually begins when I get down to around 20 percent, or less, and it seems like it takes around 45 minutes to charge

-signal strength never gets anything below yellow

I've attached a BBS log of an airplane mode overnight test. I'll likely share another towards the end of the day, but I'll be on WiFi most of the time
[X Style (Pure) General] aybarrap1:
How long are you lasting between charges on average? When I use my phone very lightly I can go two days and still have 40% battery+ but there is no way I can push over 3 hours SOT usually at that point.
[X Style (Pure) General] helpme364:
I usually charge overnight, so between the time I take it off of the charger, and then put it back on, it's maybe about 15 hours.
[X Style (Pure) General] aybarrap1:
In order to determine what is your power draw across the board, a screenshot of BBS immediately before charging would help. Specifically look for wake locks, deep sleep, and any apps/services keeping your phone awake for long periods of time.
[X Style (Pure) General] azeem40:
Here is my bbs after following all the rules in the original post. Look good?
[X Style (Pure) General] -sandro-:
What happened to OP? Still trying to understand if these screen times can be achieved on LTE only.
[X Style (Pure) General] zohar_ml:
You have a strange log.

The phone had 1hr of wake with screen off which is huge. I usually have ~10-15min, all with high cpu frequency, but still only 0.7% hr.

Could you re test and please keep the txt format.

You bettel allso update the BBS app, its in its xda thread, on the secound post.
[X Style (Pure) General] azeem40:
I did what you asked.
[X Style (Pure) General] zohar_ml:
You have a high batt usage of 1.2%/h probably due to high wake up time of 31m = 6.1%

The load is coming from the first wakelock: ModalityService (com.motorola.slpc.Motorola Modality Services): 26 m 12 s Count:56 5.1%

I see that this is some app from Motorola https://play.google.com/store/apps/details?id=com.motorola.slpc so can you try to uninstall or freeze it?

Your cpu is doing all this 31m at 1.44Ghz and not at 384Mhz. you can try and use frankenclark kernel.

Do you have S2W or SW2W?
[X Style (Pure) General] azeem40:
When I click the link, it gives me this error message, even though I am logged in. Also, I don't know what s2w or sw2w is. I think I am using Frankenkernel.
[X Style (Pure) General] zohar_ml:
The link works on my PC. It just a link to "Motorola Modality Services" on the play store.

s2w= Swipe To Wake, DT2W (had it wrong before) Double tap to wake. if on, you can wake the phone using the touch screen.

From your log file you use some other kernel. (my log have "OS.VERSION: 3.10.101-frankenclark-0.12-300hz+").

You can find it here: http://xdaforums.com/moto-x-style/development/kernel-frankenclark-t3289939

And don't forget to backup before flashing....
[X Style (Pure) General] azeem40:
I'll try again tonight with the new kernel. I use neither double tap or swipe to wake. I use only double tap home button to sleep.
[X Style (Pure) General] winpooh:
Hi, I cannot access the AFH website to download Frankenclark. Could someone upload it to mega so I can get it? Thanks!
[X Style (Pure) General] helpme364:
Alright, so here's a log taken from BBS. I was mostly off of WiFi for the better part of the day, and I did use Google Maps quite a bit. I also have not fully discharged the phone, but for the most part, all things as far as wake locks, alarms, etc. look the same as they usually do. If this isn't good enough, I'd be happy to share a log once my phone is fully drained.

So anyway, what's going on here?
[X Style (Pure) General] zohar_ml:
We use BBS to see whats running while the phone is "doing nothing". If you take the battery usage at this time to the minimum you will have more power to use when you relay need your phone.

So the BBS test should be done over night when you don't use your phone at all.

You should charge the phone to full, plug it off and just let it sit on the table. first thing at the morning you should make a log from unplugged to screen on. This way you will only log the time the phone was doing nothing.

If you have <0.5%/h then you have good settings.

Please upgrade your BBS. look at the second post in the BBS tread in XDA.
[X Style (Pure) General] hbar98:
tl;wr: com.android.bluetooth.Bluetooth Share refuses to let my phone go into deep sleep.

So I've been working on this problem for a while now, and it is driving me crazy.

I have the 2015 Pure on Verizon, currently using v.12 of Frankenclark. The phone will run great for a few days, then start to stutter and bluetooth streaming will start to cut in and out. Restarting may or may not fix the issue. After dealing with this for a while I started to see what was causing it. Installed BBS and started looking at the battery graph, and noticed that the phone was not going into deep sleep. It was always awake. Did a little more digging and saw that the culprit was Bluetooth Share. If I leave BT on but not connected to anything, it drains my phone pretty quick. But when it it connected to a BT device, such as my car's head unit, it cuts in and out, and takes a while to connect.

I tried a few things, but the ONLY thing that seems to make it better is to reset the phone, then fastboot flash the system, boot, etc... Then I'll let the app store reinstall all the apps that I had been using, then use TiBU to restore the data for the apps that don't sync. Then everything seems to be good for a few days, then BT will start keeping the phone awake again.

I'll attach my latest BBS, but it is only for the past couple hours. I can't really do an overnight test since my phone is my ISP for my house (grandfathered UDP, no other internet where I live besides satellite which I refuse to use).

I've also tried rebooting into safe mode, and that seems to work, but I can't seem to pinpoint any certain app that causes the BT share to go wonky.

Any suggestions as to what else I could try?

Quick list of what I've done:

Stock *everything*=BT bug

Stock + root=BT bug

Stock + root + Frankenclark=BT bug

TruPure 2.9=BT bug

Safemode=No BT bug

Attached: BBS log that I took this morning.
[X Style (Pure) General] -sandro-:
So the op also underclocked the CPU? That would explain the long SOT
[X Style (Pure) General] winpooh:
I'm having trouble getting WhatsApp messages to come through. I have the same setup as the OP. It seems PowerNap is the culprit, i denied it root privileges and messages started coming through. WhatsApp is whitelisted in PowerNap. Any ideas?
[X Style (Pure) General] -sandro-:
A few pages back he listed the wakelocks to not limit.
[X Style (Pure) General] winpooh:
I removed those but still getting delays.
[X Style (Pure) General] unitz0mbie:
hey rehpyc and whoever wants to reply, do u guys lower your resolution to 1080p?
[X Style (Pure) General] EPayne123:
Bone Stock I am getting around 5h SoT. Much much better than my N5X I also use
[X Style (Pure) General] Henryy97:
Holy ****. That is amazing. I'm using 6.0.1 RetAsia port and I get 6.0.1. I'm running xposed, root, etc. I'm using greenify, L speed, etc to make optimizations but I can only get 3.5 SOT max
[X Style (Pure) General] EPayne123:
I'll post screenshots when I have some again

---------- Post added at 03:02 AM ---------- Previous post was at 03:02 AM ----------

I disabled plenty of things and turned off all Auto Sync outside of Gmail as well
[X Style (Pure) General] Henryy97:
Does anybody know what the following wakelock is for?

-PowerManagerService.Display

-PowerManagerService.Wakelocks

They're my major wakelocks..
[X Style (Pure) General] unitz0mbie:
do animations affect battery life?
[X Style (Pure) General] unitz0mbie:
not sure what is going on but when i stream music, doesnt matter what app. my music skips when the screen is off
[X Style (Pure) General] fakitol:
What the hell! After I unplug moto from charger, phone keeps awake... No deep sleep until I reboot it...
[X Style (Pure) General] skyred5:
Wow! [MENTION=3004396]rehpyc[/MENTION]!

This is some settings you have there! May I bluntly ask if you use any IM apps, whatsapp, line, etc? If so, does your settings affect receiving messages? I myself am following the main amplify settings thread, but somewhere somehow my messages are delayed.

Anything with *facebook* is set to 9999999? Would it be better not to install it at all? Are there any negative effects to this setting?