Battery drain and wakelocks - OnePlus 7 Pro Questions & Answers

Hello!
At this moment I am getting really bad battery on my device.
I am using xXx magisk mod with Smurf kernel on battery profile.
I think problem is with my phone not going to deep sleep for most of the time...
Can anybody help me find the cause?

silverkin said:
Hello!
At this moment I am getting really bad battery on my device.
I am using xXx magisk mod with Smurf kernel on battery profile.
I think problem is with my phone not going to deep sleep for most of the time...
Can anybody help me find the cause?
Click to expand...
Click to collapse
My first guess would be the stock battery optimizations are being overridden by the custom Kernel. Custom kernels typically come with default governor settings- in most cases set to performance. Try lowering your overall CPU loads, voltage loads, or setting up an interactive governor to improve battery life.
I have seen some custom Kernel users use Greenify (XPosed mod) with some measures of success.
Cheers,

Get Greenify and add to the list the apps that drain battery and you don't open that often

Related

Overclock Question

I am using the Clemsyn Kernel now, but have never done any overclocking before.
What is the effect on battery life if I went to around 1.4ish?
What is the effect on the lifetime usage of my unit if I overclock?
After I download SetCpu, what settings do I use? Do I have to change anything in voltage?
I read something where people sometimes underclock when the screen is turned off. How can I do this?
Thanks for any help. I am a noob when it comes to overclocking.
deadhead85 said:
I am using the Clemsyn Kernel now, but have never done any overclocking before.
What is the effect on battery life if I went to around 1.4ish?
What is the effect on the lifetime usage of my unit if I overclock?
After I download SetCpu, what settings do I use? Do I have to change anything in voltage?
I read something where people sometimes underclock when the screen is turned off. How can I do this?
Thanks for any help. I am a noob when it comes to overclocking.
Click to expand...
Click to collapse
Start off by setting your main profile to 1.4GHz and tick set on boot. And theres your overclock... I think interactive gov. is the most useful, you can try others if you want.
If you would like to limit the speed when screen off, add a profile under profiles select screen off and set your wanted frequency when screen off.
reidar.ostrem said:
Start off by setting your main profile to 1.4GHz and tick set on boot. And theres your overclock... I think interactive gov. is the most useful, you can try others if you want.
If you would like to limit the speed when screen off, add a profile under profiles select screen off and set your wanted frequency when screen off.
Click to expand...
Click to collapse
+1 This is exactly what I've done
If you set the max speed to 1.4 GHz and set the governor to performance it will drain the battery faster than if you had it set to the others. You'll most likely have already upgraded the TF by the time it dies due to overclocking. It does shorten the life, not dramatically though. You can set up underclocking in profiles.

NSTools and SetCPU Set on Boot

If you have specific profiles in SetCPU and a set CPU frequency NSTools, is there anyway to keep the profiles working without having to disable set on boot for NSTools? NSTools seems to overtake CPU settings on boot.
Sent from my Nexus S 4G using Tapatalk 2
why do you even want use SetCPU ? it seems to be useless with NSTools because what ever it can do is to be done by NSTools , if you say you wanna do something like change frequency while screen off , then the governor will do it automatically if you choose appropriate CPU governor
Jamin13 said:
If you have specific profiles in SetCPU and a set CPU frequency NSTools, is there anyway to keep the profiles working without having to disable set on boot for NSTools? NSTools seems to overtake CPU settings on boot.
Sent from my Nexus S 4G using Tapatalk 2
Click to expand...
Click to collapse
CPU Profiles aren't worth it for day to day use. Constant ondemand is perfectly fine and won't steal any extra battery from you.
However, setting NSTools to set on boot should still allow SetCPU to work fine, as long as CPU settings are set the same on boot time. If not, use init.d scripts but remove CPU parameters from them (find them in /system/etc/init.d/xx-xxxxx), keeping the other settings as you prefer. Might want to remove NSTools after this though as it may undo your changes after opening again.
i guess setcpu makes it easier to change cpu frequencies quickly through the widget, ns tools doeesnt have a widget so its "harder"
qtwrk said:
why do you even want use SetCPU ? it seems to be useless with NSTools because what ever it can do is to be done by NSTools , if you say you wanna do something like change frequency while screen off , then the governor will do it automatically if you choose appropriate CPU governor
Click to expand...
Click to collapse
SetCPU won't control the Backlight Notifications and Dimmer.
Harbb said:
CPU Profiles aren't worth it for day to day use. Constant ondemand is perfectly fine and won't steal any extra battery from you.
However, setting NSTools to set on boot should still allow SetCPU to work fine, as long as CPU settings are set the same on boot time. If not, use init.d scripts but remove CPU parameters from them (find them in /system/etc/init.d/xx-xxxxx), keeping the other settings as you prefer. Might want to remove NSTools after this though as it may undo your changes after opening again.
Click to expand...
Click to collapse
I'm just a bit OCD about battery life some days. I'd rather use the app than making my own scripts. I kinda derped with the profiles earlier today. All is good now.
I wish the two would play better together too - and I don't see how "just don't use them both" or saying SetCPU is no longer needed is acceptable answers. Especially since many of us actually paid for SetCPU...
Now that it looks like we'll only get two governors in MathKids kernel (what a crock)... saying you are picking the wrong one is a bad answer too. Ondemand certainly isn't the best for battery life, and for those of us who have tested and measured battery life we know just picking one isn't a solution either.
So what is the actual answer? Because setting the governor parameters at boot isn't the problem. It's switching between profiles - and the governors that give you the best battery life and giving acceptable performance need to be tweaked from their defaults.
With OnDemand I'm looking at using over 16% battery per hour under 4.1, even with considerable screen off time. Not being able to set it to Wheatley on screen off is killing the battery.
I will say the problem seems to lay directly with SetCPU and I'm going to contact the dev and see what I can find out. I don't see why it should be changing the parameters back to default on profile change.
But people who use neither or just one probably just not comment. Not to flame, or fight, but it's not helpful to add nothing.

(8hours) Maximum Battery with NoteIII(Exynos) with Dr.Ketan,Pekaka Kernel and SetCPU.

This is the complete guide for the maximum battery even with power usages.
First of all i am really sorry for my bad English
ROM
Dr. Ketan ROM l21 http://forum.xda-developers.com/showthread.php?t=2519897
Applications
TW Launcher frozen with titanium backup both TW Home and TW easy mode.
Using Nova Laucher as my primary laucher.''
Usning SnapLock instead of Built in Lockscreen. (set Built in Locksreen to none from the setting).
Uninstall the useless or bloatware apps like group play, google now, g+ samsung store etc.
Greenify
Added all apps to greenify except WhatsApp, viber and Sayhi.
Setting
All air and motion functions are off.
Power saving mode on for 24 hr.
Brightness auto -5
Kernel
This is the important and main part to save more battery recently i found Pekaka kernel for my Note III. Their are many comments about drain and getting device too HOT.
So i decided to play with kernel setting. And install setcpu setting thats work for me like a charms.
So after flashing the kernel do worry about getting device too HOT even with Playing Heavy Games also i have attached the setting for the SetCpu... Match your setting below and let me know if this setting also work for you.
The first three setting are to cool down the device if the device gets to hot, it will automatically scale the processor down to allow it to cool.
The other four are to save battery while the screen is off. This will lock the CPU between these lower frequencies when the screen is off, using less mv, resulting in less battery usage.
Thanks to Dr.Ketan for such a wonderful ROM
Thanks to Pekaka for the Great Kernel for Lollipop
Thabks to the developer of SetCPU app.
Give it try and let me know by your comments if this setting work with you or not.
samymarboy said:
This is the complete guide for the maximum battery even with power usages.
First of all i am really sorry for my bad English
ROM
Dr. Ketan ROM l21 http://forum.xda-developers.com/showthread.php?t=2519897
Applications
TW Launcher frozen with titanium backup both TW Home and TW easy mode.
Using Nova Laucher as my primary laucher.''
Usning SnapLock instead of Built in Lockscreen. (set Built in Locksreen to none from the setting).
Uninstall the useless or bloatware apps like group play, google now, g+ samsung store etc.
Greenify
Added all apps to greenify except WhatsApp, viber and Sayhi.
Setting
All air and motion functions are off.
Power saving mode on for 24 hr.
Brightness auto -5
Kernel
This is the important and main part to save more battery recently i found Pekaka kernel for my Note III. Their are many comments about drain and getting device too HOT.
So i decided to play with kernel setting. And install setcpu setting thats work for me like a charms.
So after flashing the kernel do worry about getting device too HOT even with Playing Heavy Games also i have attached the setting for the SetCpu... Match your setting below and let me know if this setting also work for you.
The first three setting are to cool down the device if the device gets to hot, it will automatically scale the processor down to allow it to cool.
The other four are to save battery while the screen is off. This will lock the CPU between these lower frequencies when the screen is off, using less mv, resulting in less battery usage.
Thanks to Dr.Ketan for such a wonderful ROM
Thanks to Pekaka for the Great Kernel for Lollipop
Thabks to the developer of SetCPU app.
Give it try and let me know by your comments if this setting work with you or not.
Click to expand...
Click to collapse
What version of pekaka kernel you use? Could you share screenshots of battery usage?
satslu said:
What version of pekaka kernel you use? Could you share screenshots of battery usage?
Click to expand...
Click to collapse
the latest one 3.2 and screen has been attached above.
samymarboy said:
the latest one 3.2 and screen has been attached above.
Click to expand...
Click to collapse
I can see it now. According to ur ss, usage all over wifi or 3G?
@satslu Usage over WiFi.
WiFi remain always ON in my device I'm mostly indoor user so never OFF the WiFi even not in Use.
Here. Is New Results according to which you can use Almost 8hours with screen On.
Because this result are estimated from 92% battery not from 100%.
Your screen on time is quite impressive. I was on L21 up until the last few weeks. It was much better than stock TW, but still not what I wanted. I was thinking about switching kernels, but ended up on cm12.1 and couldn't be happier. djmax81 is finishing up a kernel for it that should improve battery, and it is incredibly smooth, even compared to Dr. Ketan's rom.
@mwbuss8 can you post the screens with djmax8 kernel ?"
samymarboy said:
@mwbuss8 can you post the screens with djmax8 kernel ?"
Click to expand...
Click to collapse
I don't have his new one. he said it should be done pretty soon

[Q] "Android OS" keeps my device awake.

I just flashed the CM 12.1 Nightly and the AK Kernel. And after that I found a STRANGE SITUATION.
Usually, before sleep, I would turn my phone into Airplane Mode and just sleep. But I found the battery will reduce from approx. 100% to 92% in 5hrs.
How ever, during daytime with LTE signal, the battery seems not to drop.
Here's the battery history.
ww1.sinaimg.cn/large/49977c5dgw1es9g4ztzh8j20u01hcq7j.jpg
(Sorry I don't have the permission to put a direct link.)
SunsetYe said:
I just flashed the CM 12.1 Nightly and the AK Kernel. And after that I found a STRANGE SITUATION.
Usually, before sleep, I would turn my phone into Airplane Mode and just sleep. But I found the battery will reduce from approx. 100% to 92% in 5hrs.
How ever, during daytime with LTE signal, the battery seems not to drop.
Here's the battery history.
ww1.sinaimg.cn/large/49977c5dgw1es9g4ztzh8j20u01hcq7j.jpg
(Sorry I don't have the permission to put a direct link.)
Click to expand...
Click to collapse
Go to Privacy > Privacy Guard > Advanced > Google Play Services > Switch off Keep Awake, Auto Start and Wake Up.
Hope this helps
SunsetYe said:
I just flashed the CM 12.1 Nightly and the AK Kernel. And after that I found a STRANGE SITUATION.
Usually, before sleep, I would turn my phone into Airplane Mode and just sleep. But I found the battery will reduce from approx. 100% to 92% in 5hrs.
How ever, during daytime with LTE signal, the battery seems not to drop.
Here's the battery history.
ww1.sinaimg.cn/large/49977c5dgw1es9g4ztzh8j20u01hcq7j.jpg
(Sorry I don't have the permission to put a direct link.)
Click to expand...
Click to collapse
Install BBS+ / GSAM or Wakelock detector to see what keeps your device awake. Other than that hard to tell only from the default battery screen.
Meuuks13 said:
Go to Privacy > Privacy Guard > Advanced > Google Play Services > Switch off Keep Awake, Auto Start and Wake Up.
Hope this helps
Click to expand...
Click to collapse
davebugyi said:
Install BBS+ / GSAM or Wakelock detector to see what keeps your device awake. Other than that hard to tell only from the default battery screen.
Click to expand...
Click to collapse
I do installed BBS and switched off Keep Awake, Auto Start and Wakeup. But it turns out the unusual wakelock mainly appeared in Kernel Wakelock. (ww4.sinaimg.cn/large/49977c5dgw1esakwxo781j20u01hc45o.jpg) Does that means I have to change a kernel or a system?
BTW, do you guys think OxygenOS is better than CM12.1? And do you have a recommended Kernel or ROM for both power-saving and performance ?
Thank you for any suggestions.
SunsetYe said:
I do installed BBS and switched off Keep Awake, Auto Start and Wakeup. But it turns out the unusual wakelock mainly appeared in Kernel Wakelock. (ww4.sinaimg.cn/large/49977c5dgw1esakwxo781j20u01hc45o.jpg) Does that means I have to change a kernel or a system?
BTW, do you guys think OxygenOS is better than CM12.1? And do you have a recommended Kernel or ROM for both power-saving and performance ?
Thank you for any suggestions.
Click to expand...
Click to collapse
One thing in your Image. PowerManagerService.Wakelocks are detailed under > Partial Wakelocks.
Besides that I do not see anything abnormal.
As for Oxygen - I did not try it, because I am favoring the customisations and custom kernels. Maybe this will change with the new Hydrogen OS (28 May announcement?)
davebugyi said:
One thing in your Image. PowerManagerService.Wakelocks are detailed under > Partial Wakelocks.
Besides that I do not see anything abnormal.
As for Oxygen - I did not try it, because I am favoring the customisations and custom kernels. Maybe this will change with the new Hydrogen OS (28 May announcement?)
Click to expand...
Click to collapse
So, what's the best ROM and kernel? Or, in the other word, what's your current ROM and kernel?
从我的 A0001 上通过 xda Forums PRO 发送
SunsetYe said:
So, what's the best ROM and kernel? Or, in the other word, what's your current ROM and kernel?
从我的 A0001 上通过 xda Forums PRO 发送
Click to expand...
Click to collapse
Best ROM and kernel does not exist Everyone has a different taste.
Mine is: OnePlus One | CM12.1 Temasek - Boeffla Kernel v16 - Deep Darkness Theme - V4AFX - SLIM GAPPs full
davebugyi said:
Best ROM and kernel does not exist Everyone has a different taste.
Mine is: OnePlus One | CM12.1 Temasek - Boeffla Kernel v16 - Deep Darkness Theme - V4AFX - SLIM GAPPs full
Click to expand...
Click to collapse
I tested for the other time, it turns out that the major wakelock was PowerManagerService.Wakelocks. and PowerManagerService.Display. In Partical Wakelock, there's almost nothing.(Less than 1h in partical wakelock and about 3h in kernel wakelock.)
从我的 A0001 上通过 xda Forums PRO 发送
SunsetYe said:
I tested for the other time, it turns out that the major wakelock was PowerManagerService.Wakelocks. and PowerManagerService.Display. In Partical Wakelock, there's almost nothing.(Less than 1h in partical wakelock and about 3h in kernel wakelock.)
从我的 A0001 上通过 xda Forums PRO 发送
Click to expand...
Click to collapse
PowerManagerService.Wakelocks. > All the wakelocks accumulated (found in Partial Wakelocks)
PowerManagerService.Display > Display turned ON/Screen ON
So if you get 1h of PowerManagerService.Wakelocks, there must be something under Partial And TBH, 1h is not that much.
SunsetYe said:
I do installed BBS and switched off Keep Awake, Auto Start and Wakeup. But it turns out the unusual wakelock mainly appeared in Kernel Wakelock. (ww4.sinaimg.cn/large/49977c5dgw1esawxo781j20u01hc45o.jpg) Does that means I have to change a kernel or a system?
BTW, do you guys think OxygenOS is better than CM12.1? And do you have a recommended Kernel or ROM for both power-saving and performance ?
Thank you for any suggestions.
Click to expand...
Click to collapse
I just use CM 12.1 Nightlies with AK kernel setting the cpu frequency to 223-1113 mhz and governor to conservative and some other variations provided by the kernel. At the end of the day the battery is about 30% with 4+ hrs SOT

Which ROM should I install for best battery life and stability- help

I have now stock COS 12.1YOG4PAS3JL with root, unlock bootloader, Boeffla Kernel and TWRP recovery.
I uninstalled unnecessary google apps, done factory reset, and installed Greenify+Xposed.
But on this ROM I have only 4h SoT, in the night battery falls from 80% to 70% but wakelock detector didn't show anything process draining battery.
Phone have lags, and sometimes soft reboot.
I'm searching for best package(ROM+Kernel) for best battery life and system stability. Can anyone help me?
Don't install XenonHD. While it is fast and smooth, I am encountering random reboots of up to 6 times per day. It also sometimes fails to wakeup properly and reboots instead. I'm still searching for a good rom, just like you.
I'm on the snapshot channel of CM, and everything works just superb. I have 5+hrs of SOT, and I'm happy with that.
Try brokenOS, 6h SOT.
I only manage 4.30hours display on with the same rom as op, being from a nexus 5 I'm having trouble finding that rom
Tried broken os, I couldn't find the option to disable the capacitive buttons yet.
Rebeluch said:
I have now stock COS 12.1YOG4PAS3JL with root, unlock bootloader, Boeffla Kernel and TWRP recovery.
I uninstalled unnecessary google apps, done factory reset, and installed Greenify+Xposed.
But on this ROM I have only 4h SoT, in the night battery falls from 80% to 70% but wakelock detector didn't show anything process draining battery.
Phone have lags, and sometimes soft reboot.
I'm searching for best package(ROM+Kernel) for best battery life and system stability. Can anyone help me?
Click to expand...
Click to collapse
I use stock cos12.1 with stock kernel
Nothing you describe affect mine
I have disable google administator and play service usage from security settings
I do not use grenify or amplify
I use lean droid and i have easy 5 hours sot
I have now Resurrection ROM 5.5.9 and works fine. I have 5h SoT now.
But I'm looking for camera app with fast autofous, becouse stock camera app is terrible.
I need fast autofocus and nothing else
Rebeluch said:
I have now Resurrection ROM 5.5.9 and works fine. I have 5h SoT now.
But I'm looking for camera app with fast autofous, becouse stock camera app is terrible.
I need fast autofocus and nothing else
Click to expand...
Click to collapse
Me too since 3 months now,its stable you made the right choice try changing your governor to smartmax eps.
any 4.4 KitKat rom, 8h SoT easily.
Notor1ouS- said:
any 4.4 KitKat rom, 8h SoT easily.
Click to expand...
Click to collapse
This. If you want good battery life, any 4.4 Rom will do you fine.
Yes, they are right about K.K ROMs but if you must move up Slimsaber 5.1.1 rock solid good battery life and fast and smooth. Than for 6.0.1 DARKOBAS best damn ROM out right now.
And which KK custom ROMs had best battery life and smooth system?
I would recommend SlimKat for best battery life.
I had even 6hour SOT. Probably it isnt a lot, but keep in mind that my phone has a touch screen issues so fix drains my battery a bit more.
Not in any particular order,
Lollipop Rom's- CrDroid 5.1.1 (favourite ) ,sultanxda CAF rom, Dirty Unicorns. TipsyOS ( favourite ) BrokenOS 5.1.1 - enable all the init script options available under setting, , Resurrection ROM.
kitkat- Defiantly better battery life but you probably struck with systemupdateservice bug. I tried all the available fixes but no success.
Gapps- slim
kernel - inbuilt (Do not change it unless Dev specifies ) .You can always tinker with kernel options to suit your needs.
Heavy Battery draining apps: whatsapp, facebook.
Custom roms are already optimized for better experience and sleep like a baby when it is not in use and it doesn't need any battery saving apps.
If you still face any issues with battery drain, use betterbatterystats.apk to find the root cause and fix it or find alternatives.
My setting:
Remove unused apps: email, nfc, live wallpaper picker,..
Alternative- Dual boot patcher (snapshot)
Primary rom with all required apps - home use,
secondary rom without gapps - office use ...(no drain whatsoever )
Hope i had answered your question to some level. Have a nice day.
I use exedus 5.1.1 with AK kernel and loads of changes , most importantly:
under clock to 1420
on demand governor
1420mhz input boost all cores
Suspend Max frequency 729mhz
268mhz under volt to 630mhz ( on my phone)
462mhz gpu undreclock
This has input lag than stock or cm nightlys and 9 hour SOT with Facebook ,WhatsApp and mostly chrome use.
When you want to game just take off the 1420mhz undreclock and its super smoooooooth

Categories

Resources