[GUIDE] ROOT - Extreme battery life with 8-10h SOT & Opt for MIUI - Custom ROMs - Xiaomi Redmi Note 7 Guides, News, & Discussion

Hi everyone, this is a guide based on my personal tests, which I have the pleasure to share with the whole community, for experienced users and not. Regardless of whether you prefer to use a MIUI stock or a custom ROMs, these are a series of tricks, Tweaks, passages, let's call them what we want, to get the maximum in terms of battery life, without sacrificing performance. First of all, we talk mainly to have the better experience for MIUI and PRINCIPALLY for ROOTED users, and custom ROMs too. No rooted users cannot expect miracles because there are modifications that mainly affect the entire operating system. I also hoped to find the Holy Grail, but unfortunately it still hasn't happened.
Anyway,: If you want to use a MIUI (preferably GLOBAL, I will explain later why this is the case); the first thing I recommend in addition to a backup (just in case), it's a pretty safe Debloat using the complete Saki tool:
https://saki-eu.github.io/XiaomiADBFastbootTools/
After giving our device a nice cleanup from Bloatware (obviously you choose which ones to remove or not, personally I removed almost all of them leaving only Gallery, Phone and Messages without any problem), the best part comes, and that is to apply all the settings for a better user experience in every aspect. The MIUI is obviously not optimized as a custom ROM, so we should do it ourselves. Personally I am a root user, so first of all I flashed Evira Kernel and Magisk (with which I am wonderfully) and put modules that I personally recommend: LKT (or others similar modules), Syconfig Patcher (they are the ones that interest us), but of course the appearance rooting is optional.
But back to optimization; for each application that we will install, we will have to configure its type of activity in the background based on how much you want the app to act in the background. For example, the "MIUI Calculator" app, which I almost never use, will have set "limit app functions", otherwise applications that we will use more often will suffice "MIUI optimization", such as "Youtube", and what more important, for apps for which notification is essential (such as Whatsapp or Gmail), remove the limitations.
But it's not over. Write in the settings menu "change system settings", then a list will open with all the apps we have installed. Clicking on one of them, a menu will open, where clicking on "battery and performance", we will choose whether to put the limitations in the background or not, same speech as before, limit everything that is not necessary, inverse speech obviously goes for app important to us (gmail whats etc), which we will leave free to act in the background.
Still in the "battery and performance" menu, click on "battery optimization" and optimize everything you can, except as usual, the apps you don't want to be limited as in the previous two steps.
Now we can activate the "Battery saving" mode, which will obviously work on the whole system, except for all the apps that we have NOT optimized before. They will absolutely not be touched. (A nice break of *** optimize the MIUI , Doh!)
Remember that at the beginning of the guide I told you "better to focus on the global rather than the ROM developer?" well, using a third-party tool like Kernel auditor (personally I use EX Kernel Manager with which I am wonderfully), in the dashboard the developer rom had higher CPU peaks than the Global.Il that involved higher consumption. And it is a tool like this "Ex Kernel Manager etc" that we will now configure.
Step 1 Configure the Governor.
The mode and the speed with which the processor passes from the maximum frequency to the minimum one is regulated by the so-called * "Governor"
There are more than 100 different types of Governor for kernel, more or less different; but not all Governors are present in the Kernels. In case you are using Evira Kernel, my advice is to set the CPU to the "Alucardsched" Governor which offers an excellent compromise between performance and battery life.
EDIT: Recently tested zzmove gov with Evira Kernel: little performance is lost compared to alucardsched, but the battery benefits. Personally i have chosen profile 3 (ybatex).
Step 2 I / O scheduler
It is precisely a program in the form of an algorithm which, given a set of requests for access to a resource, establishes a temporal order for the execution of such requests, privileging those that respect certain parameters, so as to optimize the access to this resource and thus allow the completion of the desired service / instruction or process. In this case, I recommend setting it to noop or Zen, for an approach closer to the battery.
In the GPU section, if you don't use particularly heavy games, (personally I play every now and then in clash royale and I don't have any kind of lag at all) you can also set up your own governor here, setting one like Powersave, but in any case this is completely subjective .
Once everything is set up, all that remains is to talk about the last aspect,
the Doze.
Originally introduced with Android Marshmallow, it allows applications and various activities in the background to "sleep" when the device is screen off. Of course over time it has been increasingly perfect, which is why: In a Stock MIUI you can afford to download Naptime, Servicely or Greenify if you want (personally I use Nap & Serv) to enhance Doze or hibernation as in the case of Greenify (excluding as always the apps we want to be in the whitelist).
IMPORTANT: different words must be made for Custom ROMs, which being already optimized, and having a definitely more effective Doze than the basic stock, DO NOT NEED third-party apps like Naptime or Greenify. In this case, even setting everything as the guide, notifications will not arrive when the screen is off, except when you unlock the device.
so as far as custom ROMs are concerned, you just need to limit the apps as in the guide, leave in the background those you don't want to be touched, and always remove the optimization for these "important" apps, I always repeat "whatsapp gmail etc". In this way you will be able to activate energy saving quietly, the apps you prefer will not be touched, and you already have a Doze optimized like the rest of the system. The only thing that applies to Custom ROMs, is always to set the Governors as described above.
That's all at last :fingers-crossed:.
Attached here are my screenshots, with 8 hours of SOT, DIVIDED IN THREE DAYS, so sometimes the phone was idle as during the night or at work. With these configurations, in a single day, or in a day and a half, you will easily arrive even at 10 hours of SOT and maybe even beyond. I hope you fell asleep while reading, but I wanted to make a guide (even if long), to explain to those who may not be very practical, some things that can always be useful. A simple "thanks" is always welcome!
Greetings .:good:

Two more things: for more battery saving, u can disable automatic sync in settings menu (so sync when u want), and probably after some rebooting, it is possible that the governors will reset itself to the default one. So I suggest you check it out.

Really thanks for your concern about battery life stuff, and yup indeed on custom ROMs sometimes we can get up to 10hrs SoT without any mod or even a custom kernel (my experience)!
I'm looking forward to see how long the battery will last when we get Android Q update from MI..

AbboodSY said:
Really thanks for your concern about battery life stuff, and yup indeed on custom ROMs sometimes we can get up to 10hrs SoT without any mod or even a custom kernel (my experience)!
I'm looking forward to see how long the battery will last when we get Android Q update from MI..
Click to expand...
Click to collapse
Thank you very much! If I am not mistaken, beyond the various new functions, the "Extreme battery savings" will return. With an adequate optimization, as above (also to be as clear as possible with any type of user), we hope to see many beautiful new performances :fingers-crossed::fingers-crossed:

LionHeart90 said:
If I am not mistaken, beyond the various new functions, the "Extreme battery savings" will return. With an adequate optimization, as above (also to be as clear as possible with any type of user), we hope to see many beautiful new performances :fingers-crossed::fingers-crossed:
Click to expand...
Click to collapse
I hope that MIUI 11 will bring some new battery saving techniques as well!

Thanks for the guide, with it you cleared some doubts that I had, I just have a question, for battery/performace Anxiety can be better than Zen? For what I read the past days is an optimized version of Maple wich gives good balance between battery and performance.
:good:

Eddywarez said:
Thanks for the guide, with it you cleared some doubts that I had, I just have a question, for battery/performace Anxiety can be better than Zen? For what I read the past days is an optimized version of Maple wich gives good balance between battery and performance.
:good:
Click to expand...
Click to collapse
Thanks bro; Zen and Anxiety are so similar as they are also different. Each I/O scheduler we choose can be the most indicated according to what we do with our device. Let me clarify: Anxiety is better in term of battery saving comparing with Maple, "It prioritizes reads over writes but tends to starve writes more".
Zen is based on noop and deadline, very stable and have a great balance, for this reason i choose it. But as mentioned there are no schedulers better than others. But better according to our needs. My advice is to try them both, and see how you are in your daily use of the device :fingers-crossed::fingers-crossed:

LionHeart90 said:
Thanks bro; Zen and Anxiety are so similar as they are also different. Each I/O scheduler we choose can be the most indicated according to what we do with our device. Let me clarify: Anxiety is better in term of battery saving comparing with Maple, "It prioritizes reads over writes but tends to starve writes more".
Zen is based on noop and deadline, very stable and have a great balance, for this reason i choose it. But as mentioned there are no schedulers better than others. But better according to our needs. My advice is to try them both, and see how you are in your daily use of the device :fingers-crossed::fingers-crossed:
Click to expand...
Click to collapse
Thanks for your answer and your work.
:good:

Battery life is not the only thing I look for. Stock rom batter life is good enough after debloat in many crapps using saki. Stability, functionalities, security.. overall stock rom is the way to go for me at the moment. Did you mention restricting permission on apps?

Welp, after playing Free Fire for 1:20:00 and PUBG for 4:00:00, a little Browsing, my battery usage was of 76%, I don't use LKT because last time I try it my wifi started working weird, only use Snaptime. Evira 2.2.
:good:
I would like to know what do you think about zzmove governor that was added in Evira 2.3. Thanks.

I tried to use your settings but at reboot all configuration change to interactive or schedutil for CPU, msm-adreno-tz for GPU e anxiety for Scheduler I/O. I guess there are some conflicts with LTK.... I don't kwow how you have 8 hours of screen on your device...

Eddywarez said:
Welp, after playing Free Fire for 1:20:00 and PUBG for 4:00:00, a little Browsing, my battery usage was of 76%, I don't use LKT because last time I try it my wifi started working weird, only use Snaptime. Evira 2.2.
:good:
I would like to know what do you think about zzmove governor that was added in Evira 2.3. Thanks.
Click to expand...
Click to collapse
Sure bro, i just flashed it few minutes ago. After a complete recharge cycle, ill tell u my opinion :highfive:

empedocle86 said:
I tried to use your settings but at reboot all configuration change to interactive or schedutil for CPU, msm-adreno-tz for GPU e anxiety for Scheduler I/O. I guess there are some conflicts with LTK.... I don't kwow how you have 8 hours of screen on your device...
Click to expand...
Click to collapse
Mate, if u read with more attention, i wrote about it in my second post..
Just reconfig Governor already. It could be happen, is normal

Im going to test darknesssched with zen without sysconfig patcher (Had mobile data connection issues), alucardsched give me a little lag in PUBG, when I use darknesssched that dont happen, zzmoove dont convince me, it is based in conservative and hasnt been updated since 2015, for what I know cpu governors schedutil based are more "smart".
:good:

Nice guide, bro :fingers-crossed:

@LionHeart90 thanks for your useful guide!
just a curiosity, you dont use miui? from your screenshot you have a aosp rom?

iaio72 said:
@LionHeart90 thanks for your useful guide!
just a curiosity, you dont use miui? from your screenshot you have a aosp rom?
Click to expand...
Click to collapse
Yes man, i use the MIUI 10.3.3.0 If u see, the 2 screenshots about battery life have been taken from it :cyclops:

MIUI 10.3.3.0 instead of latest 10.3.5.0?

iaio72 said:
MIUI 10.3.3.0 instead of latest 10.3.5.0?
Click to expand...
Click to collapse
Yep

Hm, i am locked...and have no kernels installed. And I'm not planing to do it.
Did restrictions and debloat and this is what I get.
Since I am on 10.3.5. my battery is weaker..
On 10.2.7 I had 2 sims with lousy signal, and I was having about 7,8 h of sot and same use.
Now before this tweaks I was hardly getting 5h in 24h
Yesterday I had weaker use then ussual but still, this isn't very good..but I think it is better.
I dont like this 10.3.5.
Spoiler
Sent from my Redmi Note 7 using Tapatalk

Related

[CM10] (5Feb13) NC Performance (and) Placebos

After getting a little annoyed at the runty, poorly mapped-out, scratchy thicket of real and imagined performance tweaks, I decided to embark on a semi-long term project to determine what's real and what's "zomg mega-booster performance pills".
First project was to evaluate existing performance options on stock CM10 for actual gains using experimental design. (tl;dr: for those geeky enough to want to know, it was a main effects only d-optimal design with 32 design points for the 16 parameters listed, including several lack-of-fit and pure-error replicates. I could go on, but do you really want me to?). I ended up with a list of 16 parameters all together, from the Developer Options and Performance settings, based on their showing up in various performance tweaks discussions.
The main challenge was finding a way to measure actual performance instead of perception. I settled on several benchmarking tools: Antutu, Quadrant, SQL Benchmark, and Chainfire's benchmarking app. One of the parameters being tested ("don't keep activities") actually breaks Antutu at the graphics testing step, so I'm not reporting anything from Antutu.
All told, out of the 16 parameters tested, only 9 showed any kind of effect whatsoever, and combining best settings for all 9 simultaneously, total performance only boosted by ~20%, of which fully half was due to switching max speed from 1000 to 1100. this means the other 8 settings combined for a total boost of ~10%, meaning individually they're peanuts. The remaining 7 settings that showed no effect are only so much fluff and unlikely to do a thing for you performance-wise.
Results are summarized below for your reading/teeth-gnashing pleasure:
Max Speed (1000 versus 1100): Very clear, notable difference between the two settings on all benchmarks. This is the expected result, about 10% improvement in all benchmarks on average. Recommendation: set max speed at 1100.
Governor (convservative vs interactive vs ondemand): This only had any impact on Quadrant benchmark, no other benchmarks appeared to care. In Quadrant, conservative was the worst overall, while interactive provided an ~ 5% boost and ondemand gave ~6% boost. Recommendation: use ondemand.
Scheduler (BFQ, CFQ, noop, deadline): I don't know what schedulers do or the differences between these settings, but the only place they had any effect at all was in the SQL benchmark. There were clear differences here though: BFQ was by far the worst. CFQ and deadline were about the same with a 17% increase in SQL activity performance. noop was the best with ~ 20% increase in SQL activity performance. Recommendation: use noop. [update: some have reported stability issues with noop. If thus us the case for you, CFQ would be the next best choice]
Zram (disabled, 18% default, 26%): Zram effects only showed up in Chainfire's benchmark app, specifically for Java activities. Default 18% setting performed worst but disabled setting wasn't significantly different. 26% setting gave a 4% boost, but again, only for the java-specific benchmark. Recommmendation: use 26% setting.
16-bit transparency (off or on): Turning on the 16-bit transparency setting gave a smallish 3% boost to Chainfire's java benchmark. It did not have a measureable effect anywhere else, and I did not visually see any differences anywhere during testing. Recommendation: turn on 16-bit transparency.
Kernel same-page merge (off or on): This had a *negative* effect when turned on, resulting in a 1% performance hit on Chainfire's native benchmark. It did not have any measurable effect anywhere else. Recommendation: Keep off.
Don't keep activities (off or on): This was very problematic: it provided a distinct improvement in quadrant score (+8%) when turned on, but behaved poorly with other apps (Antutu being one). Since it didn't seem to help anywhere else outside of Quadrant and didnt' play well with others, recommendation is to keep off:
The following list are the settings that had no measureable impact anywhere. Any attempt to claim they have "zomg" status should be summarily whipped with placebo pills, or else they should let me know the exact details in which they supposedly work and I can test.
Placebo hall of shame:
Surface improvement (since it had no effect anywhere, why not just set it on banding/blur and have the best pictures?)
Background process limit
Disable HW overlays
Force GPU setting
Any of the animation scale settings (although they look snappier at lower settings, so it at least *feels* faster)
minimum speed (seriously? people think this has an effect? keep at 300 for best battery life)
Allow purging of assets
Hope you like this, y'all! Let me know if there's any other mad-scientist experiments you'd like to see.
Nicely done. How many times did you run each test? Or perhaps the results were very consistent.
FYI; regarding the governor, scheduler and the like, you may want to have a look at this thread;
http://forum.xda-developers.com/showthread.php?t=1369817
I think gives your tests / results some perspective as well.
Re: [CM10] NC Performance (and) Placebos
NCKevo said:
Nicely done. How many times did you run each test? Or perhaps the results were very consistent.
FYI; regarding the governor, scheduler and the like, you may want to have a look at this thread;
http://forum.xda-developers.com/showthread.php?t=1369817
I think gives your tests / results some perspective as well.
Click to expand...
Click to collapse
Thanks for the link. Very informative.
How familiar are you with factorial designs? All parameters were tested simultaneously in such a way that their individual effects can be partitioned out mathematically. That's what allows me to test all those settings with just 32 runs and still get solid estimates of their effects, and more importantly, the amount of variation around them (a requirement for distinguishing real effects from noise).
I suggest googling "factorial design of experiments" if you're interested.
skwalas said:
Let me know if there's any other mad-scientist experiments you'd like to see.
Click to expand...
Click to collapse
Here are some others you could try gauging:
Seeder
http://forum.xda-developers.com/showthread.php?t=1987032
V6 Supercharger
http://forum.xda-developers.com/showthread.php?t=1191747
Lagfix
http://forum.xda-developers.com/showthread.php?t=2104326
OOM/Sysctl tweaks
http://forum.xda-developers.com/showthread.php?p=34123854#post34123854
http://forum.xda-developers.com/showthread.php?p=34448792#post34448792
Re: [CM10] NC Performance (and) Placebos
Good suggestions. Before trying these third party tweaks would be good to know a few things from actual users:
Has anyone tried any combinations of these tweaks simultaneously? If yes, did they all play well together? If no, details please!
Some of these appear to have device specific settings, can anyone share settings being used on the NC?
I intend to sandbox these, as i have little desire to use then in real life just yet. Can anyone confirm that if i restore my current setup, the restore process will clean out whatever settings these tweaks out in place?
Speaking for all scientists, thank you kindly!
skwalas said:
Good suggestions. Before trying these third party tweaks would be good to know a few things from actual users:
Has anyone tried any combinations of these tweaks simultaneously? If yes, did they all play well together? If no, details please!
Some of these appear to have device specific settings, can anyone share settings being used on the NC?
I intend to sandbox these, as i have little desire to use then in real life just yet. Can anyone confirm that if i restore my current setup, the restore process will clean out whatever settings these tweaks out in place?
Speaking for all scientists, thank you kindly!
Click to expand...
Click to collapse
Have only used V6, from my experiences, restoring a Nandroid or flashing a new nightly will clean out everything it changes other than the files you store on the SDcard. This post details how I set it up http://forum.xda-developers.com/showpost.php?p=34991382&postcount=1234
I never really noticed a huge performance boost from V6, it did reduce the lag that was in the Beta's and early nightlies, mostly seemed to keep memory available and avoid the lag issued in the early builds. Have not used for the last few weeks since performance has improved on the newer builds.
Re: [CM10] NC Performance (and) Placebos
I set all recommendations. I get back to you in a couple of days. I am running 20130120 nightly
Sent from my NookColor using Tapatalk HD
Thank you!
Thank you for your measured and logical approach and recommendations! It is appreciated. I have experimented a little with the third party tweaks and haven't found any that fascinating, honestly.
When I install CM10.1, I also flash a script I made to customize to my preference and delete stuff I don't use like language modules, ringtones, quicksearch, boot animation, etc to free up some RAM. Between that and killing memory hungry apps when I'm done, my old Nook is still holding on reasonably well.
Re: [CM10] NC Performance (and) Placebos
Skwalas:
Got to tell you, your suggestions on settings are paying off. My nook is smooooooth. Is working ok there is sometime that lag liittle bit, but my p3113 also doing the same. I will stay with this 0120 nightly for a while with your settings on perfomance. .
I will report later how i am doing
Sent from my NookColor using Tapatalk HD
Re: [CM10] NC Performance (and) Placebos
performance is ok....
Sent from my NookColor using xda app-developers app
Re: [CM10] NC Performance (and) Placebos
Sometimes mook freezes and I have to leave it until it settles. The rest of the time works good
Sent from my GT-P3113 using Tapatalk HD
Re: [CM10] NC Performance (and) Placebos
Ok. Today my nook wakeup crazy. Rebooted, but it stays changing from settings , battery and some icos. It llok like it retains some touches i did to the screen and created like a loop. I have to rebooted again. Then i change the io scheduler to cfq.
Sent from my NookColor using Tapatalk HD
Re: [CM10] NC Performance (and) Placebos
Lakland said:
Ok. Today my nook wakeup crazy. Rebooted, but it stays changing from settings , battery and some icos. It llok like it retains some touches i did to the screen and created like a loop. I have to rebooted again. Then i change the io scheduler to cfq.
Sent from my NookColor using Tapatalk HD
Click to expand...
Click to collapse
Would be hard to know what is settings specific and what is hardware or OS specific. I've had no issues with the settings as described, so let us know if you are able to resolve your issues.
Re: [CM10] NC Performance (and) Placebos
skwalas said:
Would be hard to know what is settings specific and what is hardware or OS specific. I've had no issues with the settings as described, so let us know if you are able to resolve your issues.
Click to expand...
Click to collapse
I know and I am using your settings as a baseline, rigght now I change de io scheduler to cfq. Is working fine. Keep you posed and thanks!
Sent from my GT-P3113 using Tapatalk HD
Lakland said:
I know and I am using your settings as a baseline, rigght now I change de io scheduler to cfq. Is working fine. Keep you posed and thanks!
Sent from my GT-P3113 using Tapatalk HD
Click to expand...
Click to collapse
I have had erratic behavior from schedulers also, especially BFQ, NOOP is not bad, but have had better luck with CFQ.
skwalas said:
Zram (disabled, 18% default, 26%): Zram effects only showed up in Chainfire's benchmark app, specifically for Java activities. Default 18% setting performed worst but disabled setting wasn't significantly different. 26% setting gave a 4% boost, but again, only for the java-specific benchmark. Recommmendation: use 26% setting.
Click to expand...
Click to collapse
I'm surprised that zram enabled IMPROVED things. So between disabled, 18%, and 26% (no idea what default really is without digging in the code), 26% was the best option?
Interesting. I thought zram would improve multitasking (maintaining background activities) at the expense of potential slowdowns (compressed swap to ramdisk).
khaytsus said:
I'm surprised that zram enabled IMPROVED things. So between disabled, 18%, and 26% (no idea what default really is without digging in the code), 26% was the best option?
Interesting. I thought zram would improve multitasking (maintaining background activities) at the expense of potential slowdowns (compressed swap to ramdisk).
Click to expand...
Click to collapse
It might have that effect, but wasn't apparent in the benchmarks i used. It could be that a different benchmark is needed to detect it, or it could be the negative effects are too small to be measurable compared to the normal "noise" of operation.
Any ideas how we could measure this more explicitly, if there is any interest?
skwalas said:
It might have that effect, but wasn't apparent in the benchmarks i used. It could be that a different benchmark is needed to detect it, or it could be the negative effects are too small to be measurable compared to the normal "noise" of operation.
Any ideas how we could measure this more explicitly, if there is any interest?
Click to expand...
Click to collapse
Good question, I'd think it'd require some way to switch activities around and somehow measure their switch rates, but the environment would be quite difficult to keep consistent.
BTW thanks for the scientific work on this stuff, MUCH better than "OMG THIS TURNED MY TABLET INTO A UNICORN" posts we see a lot on tech forums.
skwalas said:
Any ideas how we could measure this more explicitly, if there is any interest?
Click to expand...
Click to collapse
Since it would help most when memory is low (like it ever isn't), running two memory hogs simultaneously should show an effect if there is one. A custom memory-hog app built under two different names, perhaps?
I have a shell script that creates a swapfile and enables its use that would also be well tested this way, since zram creates an in-memory swapfile. I was never able to see any tangible results except for the output of "free", so I don't use it anymore, and haven't tried it under CM10.1.
Sent from my NookColor using xda premium

What's the best gaming ROM for you?

Guys kindly share your opinion on what's the best gaming ROM for our Xperia Z.
Sent from my C6603 using XDA-Developers mobile app
There is no such thing as "best ROM".(not to mention there is rule to not post such questions)
basically, there is too much variables, every user have different behavior, they use different apps, different setup. Their phones have different quality and performance after all those years(especially battery). They have different habits, like enabling background synchronization, different brightness, they use different features(NFC, BT, LTE)...
And all that make every phone different even if they would use the same model with the same ROM.
Not to mention that most of ROMs that you can find on XDA are nothing more than stock roms with few addons for look, few external apps putted as system ones, and few removed stock apps, and some typical copy-paste build.prop functions that are the same in most of them. Its all placebo effect in terms of performance, or its small change of 5-10% boost, and for most of time its only for few first days of usage, after that it all work the same because of different behavior that I mentioned (sorry if someone feel offended by this but this is obvious truth).
Different story is for kernel modification but I never had luck with it so I cant say anything good about it even if some changes can boost performance.
All what I could recommend, is enabling airplane mode and using some manager like L speed or Kernel Adiutor for enabling "performance" for CPU/GPU instead of "ondemand" + some app that force close background services and apps. Disabling all of that release some resources and enabling airplane mode give some battery boost because phone doesnt need to keep that features active all the time(also phone doesnt heat that much).
You cant jump over older hardware of Xperia Z and most important, you can jump over tragic optimization of most of games(especially unity engine) so there is no simple way to deal with it.

CPU load with custom CM13 kernels

Guys.. With every Android since the 2.x, you could activate the "Developers Options" and activate an option called "Show CPU usage".
"The numbers show the average load of the CPU in different time intervals. From left to right: last minute/last five minutes/last fifteen minutes"
My doubt: When I install any CM13 ROM (now I'm with Exodus) on my S5 (G900M), the load, after some minutes, are always near 10. Now I'm staring at it, with many apps installed (whatsapp, facebook, uber, maps, messenger, firefox, mx player, es file explorer, foursquare, traceroute, wifi analyzer, gmail, imo, os monitor, tinder, fing, poweramp, mindroid, remote desktop, 99, youtube, andsmb, diskusage, soundhound, photos, dropbox, goseek, instagram, juicessh, google now, picsplay, speedtest, skype, swiftkey, stabilitytest... just to name some...) and it's 11.32 / 14.37 / 23.11
Now the problem: whenever I install Boeffla Kernel or CrazyKernel, the load is ALWAYS higher.. always nearing 20. With default options, or trying to tweak the cpu options in both kernels.. and the bigger problem is that I SENSE that. The phone seems to RUNS SLOWER.
ps: If you LOCK your device (or let it lock by the timeout), this "load" value will raise because the cpu will also run slower.. it doesn't mean it's working more, just that more work is queued to the cpu, as it doesn't NEED to work on it (because it's locked/screen turned off, etc)
Hi,
I guess everyone will have that. So the poll is quite useless.
The reason for it, as I tracked down:
Two governors (intellimm and slim) are adding overhead to the system, even when they are not used.
Why? I do not know, as I am not the developer of these governors.
But for a test, I removed them from beta11 and compiled it as a beta11test1 version, attached here.
Let me know if removal of these governors lowers the cpu utilization for you down to stock levels almost.
Andi
Lord Boeffla said:
Hi,
The reason for it, as I tracked down:
Two governors (intellimm and slim) are adding overhead to the system, even when they are not used.
Why? I do not know, as I am not the developer of these governors.
But for a test, I removed them from beta11 and compiled it as a beta11test1 version, attached here.
Let me know if removal of these governors lowers the cpu utilization for you down to stock levels almost.
Andi
Click to expand...
Click to collapse
Wow that was fast. I'm testing right now and yes, the CPU load is *finally* down to ~11 like it were with vanilla CM13 kernel (which I think is what Exodus uses).
Still I get a little lag here and there mostly when "loading" stuff (like when clicking in a group chat on whatsapp, which needs to open a huge .db to display the history.. I think).....
But nice work.. I wonder what more could be optimized.. it's strange to a vanilla kernel be snappier than a custom .. given the experience you have..
Thanks
fbs said:
Wow that was fast. I'm testing right now and yes, the CPU load is *finally* down to ~11 like it were with vanilla CM13 kernel (which I think is what Exodus uses).
Still I get a little lag here and there mostly when "loading" stuff (like when clicking in a group chat on whatsapp, which needs to open a huge .db to display the history.. I think).....
But nice work.. I wonder what more could be optimized.. it's strange to a vanilla kernel be snappier than a custom .. given the experience you have..
Thanks
Click to expand...
Click to collapse
I am not sure vanilla stock kernel is more snappy. I feel it is the other way round personally. But this is about expectations and perception. Also it is about what is important for one. A custom kernel gives you many other goodies that might of course compromise in other areas. Nothing is for free.
And I personally prefer some other features over pure performance.
But well, that's it. I will not do more, having in mind the s5 kernel is only my #5 kernel in terms of priority. Sorry.
Andi
Lord Boeffla said:
I am not sure vanilla stock kernel is more snappy. I feel it is the other way round personally. But this is about expectations and perception. Also it is about what is important for one. A custom kernel gives you many other goodies that might of course compromise in other areas. Nothing is for free.
And I personally prefer some other features over pure performance.
But well, that's it. I will not do more, having in mind the s5 kernel is only my #5 kernel in terms of priority. Sorry.
Andi
Click to expand...
Click to collapse
Now I'm on boeffla-config trying to tune "interactive" governor and it says it's not tunable. it was before this test version. Maybe the removal of that other governors screwed up boeffla-config listing of whats tunable or not.. ? check this out too please..
fbs said:
Now I'm on boeffla-config trying to tune "interactive" governor and it says it's not tunable. it was before this test version. Maybe the removal of that other governors screwed up boeffla-config listing of whats tunable or not.. ? check this out too please..
Click to expand...
Click to collapse
Well, not such an issue here. I can enter tunable mode.
Reset your app via the apps maintenance menu.
But you know, you are on a completely unsupported test kernel. Just to say that again.
Andi
Lord Boeffla said:
Well, not such an issue here. I can enter tunable mode.
Reset your app via the apps maintenance menu.
But you know, you are on a completely unsupported test kernel. Just to say that again.
Andi
Click to expand...
Click to collapse
Right, but given the test was a success, you'll remove these governors for good, right?
fbs said:
Right, but given the test was a success, you'll remove these governors for good, right?
Click to expand...
Click to collapse
Yes, already announced everywhere (here on xda, as well as on Twitter and on my site).
Andi

12 Hours of Screen On

AFTER DOING EVERY SINGLE ONE OF THESE INCLUDING THE OPTIONAL ONES YOU'LL GET 12 HOURS OF SCREEN ON TIME
IF YOU EXCLUDE OPTIONAL ONES YOU'LL GET MINIMUM 7+ HOURS OF SCREEN ON TIME
First,obviously, you need a rooted OP3 or OP3T
If your device isn't rooted check this out.
There is several steps to achieve this results,
TAKE A BACKUP
This is the most important. In case you mess something up or this guide doesn't quite work for you, you can always go back to your old setup.
Pick a ROM that works best for you in terms of battery life (I am using this ROM)
Pick a kernel that works well with your requirements and the ROM (I am using Boeffla Kernel)
So the key to achieve the best amount of screen on time is underclocking your CPU and GPU. An average user shouldn't have any problems underclocking but some users that play games or care about benchmarks shouldn't underclock. There is optimal values that I found while messing around in the config app.
After flashing ROMs and kernels don't boot yet! We have more to flash!
Download AKT profiles and flash!
After you've done these you can boot up your OP3/OP3T
Now we have several things to do on the device:
First thing's first, let's tweak the frequencies! The optimal values are around 844 MHz for the little and 1324 MHz for the big CPU and minimum frequencies should be at lowest possible. For the GPU the best value seems to be 401 MHz and again minimum frequency is lowest possible.
Next! Let's set our ROM's battery profile to performance! Wait hold up there wasn't I talking about longer screen on time how is performance profile is going to help? Here is the answer: Since we have already underclocked our CPU and GPU setting this profile to performance will allow things to be used up a little more. And it will make you feel good
Now remember when we flashed AKT Profiles? Now we'll set that to performance.. Oh wait what? Performance again? YES! But we'll pick the most smooth one. Set it to Fusion Performance!
(Optional) Now we have things to do with apps. Download Greenify to hibernate things when you aren't using them. Select apps according to your preferences and hibernate.
(Optional) Now we'll play with some wakelocks. Download a wakelock detector app and monitor the wakelocks. After some amount of time you'll see some useless apps waking your device every now and then. Go to your ROMs wakelock disabled and disable those wakelocks! Show them who is the owner of the phone! (For example you can block The File Manager HD's wakelock since it has no job when screen is off and MX Player's wakelock because again what can a video player app do when you aren't watching anything.)
After this point if you see more lag increase the CPU and GPU frequencies or reduce them if you see no lag and if you want more battery!
This method might not turn out the same for everyone! You might disable some wakelocks that are important for the device and mess up things so be CAREFUL and when hibernating note that all the hibernated apps will stop pushing notifications! So don't hibernate WhatsApp, Messenger etc.
There is a screenshot below as a proof.
I know I've done nothing but writing this but still if you want to donate here it is LOL
*UPDATE*: Blocking the useless wakelocks allow OP3 to survive 24 hours (if you aren't using it at all) only 3G on (no wifi, no GPS ONLY 3G)
what io scheduler and readahead values you use ?
tadessi said:
what io scheduler and readahead values you use ?
Click to expand...
Click to collapse
cfq and 1024 the defaults that came with Boeffla

[KERNEL][FORK]Radioactive Kernel V2.2.5 [2021.07.28][OOS/CUSTOM ROMS][UNIFIED OP8/OP8Pro/OP8T] 295-920Mhz GPU + WL Blocked + Adreno Boost

str8str said:
Can I get a link to try this? Tia
Click to expand...
Click to collapse
Updated 7/31/2021 rebased on Acuicultor's v2.2.5 rebase (OOS) and rebase_custom (custom ROMs).
[NOTE: Bug reported - with a Magisk Module I created to fix it. For some strange reason (code looks fine), some systems are setting the default GPU frequency to 920mhz and default power level to 0 (max). I have posted a small Magisk Module that waits 5 seconds then corrects these values (295mhz default and power level 8). It's on the GitHub release page - MOD-GPU-Set-Min-Freq.zip. Just install with Magisk Manager as a module / install from storage after downloading.]
This is a tweaked version of RadioActive kernel by acuicultor modded for higher performance and lower idle drain. All source commits and releases are on my GitHub fork:
https://github.com/mrslezak/Radioactive_kernel_oneplus8/releases/tag/v2.2.5-MOD
PLEASE read the Readme as well as the disclaimer. Whenever you flash a custom kernel, you do so at your own risk. I recently rebased on the dev's work (GPU_OC OOS branch, never released) and set the wakelock blocks up myself (lower idle drain, tested over a week with no loss in functionality), dropped the base GPU frequency to 295mhz and raised the top ones (800/920mhz) acuicultor you're an awesome dev, great to have you around! All credits should go to him other than my tweaks.
I also merged all the same changes into the Custom ROM branch which didn't have GPUOC or AdrenoBoost - several people are using it now but it's marked as a BETA since I am on OOS (latest Global) and can't test it myself. NOTE: many people on the TG channel I posted to have tried it and have had no issues on Op8, Op8 Pro, and Op8T.
Note if you are one of the rare people who see artifacts in games or benches, the easiest fix is to go into your kernel manager and set the max GPU frequency to 800mhz and apply on boot. Not all 865 Adreno GPUs are created equal. I haven't seen one that couldn't handle 900mhz to date, but enough people have had no issues at 920mhz so that's where I put it.
Be sure to flash Magisk before installing, then use EX Kernel Manager or FK Kernel Manager to Flash the kernel zip. It has all the same optimizations of RadioActive kernel, just modded for really nice performance and low battery drain. Adreno Boost is set to low on default which makes it react faster as the GPU scales. If you already have Magisk installed, there is no reason to reinstall it - the AnyKernel 3 zip installer will use what's installed already.
I put one out there you can just flash from: fastboot flash boot 4.19.110.RadioActive-WL-295_UC-920-GPU-2.2.5.img (OOS only) as it saved my a$$ a couple times when flashing or trying to apply an incremental update when rooted (no success, although I posted the incremental update on TG, the payload just won't extract properly to update using fastbootd scripts)... Maybe I'll post it here on XDA and see if anyone can extract the latest Op8T update.
Also someone sent me a PM about using KonaBess app to change frequencies even more, or change regulators, or change the DDR clock speeds. Yes, it works. Note you probably should only play with that if you have a fastboot image available in case it doesn't boot! I did just upload one for OOS to the repo as I mentioned above. Be warned, you're on your own there.
Hope you all enjoy!
- MattOfTheDead / Red Magic 5G MOD kernel (Q) / Xiaomi Mi9 / Mi9T Pro MOD kernels (Pie/Q) / next in line is probably a 2022 device - 888s didn't make the cut
mslezak said:
Join the Telegram group called OnePlus 8 | 8T Series and you'll find that and my modded versions there as well. Just search for 920 the latest one will pop right up. Actually about to rebase on the dev's excellent work and set the wakelock blocks up myself, dropping the base frequency and raising the top one. acuicultor you're an awesome dev, great to have you aboard! - MattOfTheDead / Red Magic 5G MOD kernel (Q) / Xiaomi Mi9 / Mi9T Pro MOD kernels (Pie/Q) / next in line is probably a Realme GT.
Click to expand...
Click to collapse
Kernel for custom A11 or OOS only?
jamescable said:
Kernel for custom A11 or OOS only?
Click to expand...
Click to collapse
I built both just moved some commits over from the GPU_OC branch and added my own to custom. I have no way to test it but several others did already. All I've heard is great feedback and running faster than OOS. Of course it depends on the ROM.
mslezak said:
I just built the OOS one... custom I don't think there's a GPU_OC branch to rebase on. I deleted my other repo with changes and just switched to the dev's work since it was nicely done. I'm always running OOS I don't really care to run a custom ROM. Although I imagine it would be pretty easy to add his commits from the OC branch to the custom one, you never know what issues you'll encounter when doing so... And I don't really feel like building a kernel I won't use. I already converted it over from a carrier locked phone. Happy enough it runs on Global OOS ROM. I've run a few custom ROMs before like Lineage, Evolution-X, I always end up back on OOS. Just like having a fast phone with no lag where I can open any number of apps and get work done quickly without waiting for anything to load.
Click to expand...
Click to collapse
Thanks for this man. Will be looking for your kernel edit on telegram.
jamescable said:
Custom kernel for A11 or OOS only?
Click to expand...
Click to collapse
mslezak said:
I just built the OOS one... custom I don't think there's a GPU_OC branch to rebase on. I deleted my other repo with changes and just switched to the dev's work since it was nicely done. I'm always running OOS I don't really care to run a custom ROM. Although I imagine it would be pretty easy to add his commits from the OC branch to the custom one, you never know what issues you'll encounter when doing so... And I don't really feel like building a kernel I won't use. I already converted it over from a carrier locked phone. Happy enough it runs on Global OOS ROM. I've run a few custom ROMs before like Lineage, Evolution-X, I always end up back on OOS. Just like having a fast phone with no lag where I can open any number of apps and get work done quickly without waiting for anything to load.
Click to expand...
Click to collapse
I mainly wanted the wakeloxk blockers, and other battery saver stuff lol. Don't care about OC
jamescable said:
I mainly wanted the wakeloxk blockers, and other battery saver stuff lol. Don't care about OC
Click to expand...
Click to collapse
You can also underclock.
str8str said:
Can I get a link to try this? Tia
Click to expand...
Click to collapse
Release Radioactive Kernel V2.1.4 OOS Op8/Pro/8T Modded (+Custom BETA) · mrslezak/Radioactive_kernel_oneplus8
GPU underclocked to 295 base frequency, overclocked to 670/800/920mhz. Default Boeffla Wakelocks blocked to reduce idle battery drain. Default Adreno Boost set to low. A personal build based on ...
github.com
Just anyone who uses the modded kernels please read the disclaimer first. Readme on GitHub and releases page.
Modded Custom BETA is out with the same features of the OOS kernel in the post above. 295/800/920Mhz GPU, Adreno Boost with Low default, default Wakelock block list. Go to the same location to download if you'd like to try it out. And please, please read the DISCLAIMER there. Whenever you flash a kernel, you do so at your own risk. I am liable for nothing. If you want to see what I changed, switch to the custom branch. So far I have 5 people that have said "it's awesome" on Telegram, no issues reported as of yet.
Release Radioactive Kernel V2.1.4 OOS Op8/Pro/8T Modded (+Custom BETA) · mrslezak/Radioactive_kernel_oneplus8
GPU underclocked to 295 base frequency, overclocked to 670/800/920mhz. Default Boeffla Wakelocks blocked to reduce idle battery drain. Default Adreno Boost set to low. A personal build based on ...
github.com
mslezak said:
Modded Custom BETA is out with the same features of the OOS kernel in the post above. 295/800/920Mhz GPU, Adreno Boost with Low default, default Wakelock block list. Go to the same location to download if you'd like to try it out. And please, please read the DISCLAIMER there. Whenever you flash a kernel, you do so at your own risk. I am liable for nothing. If you want to see what I changed, switch to the custom branch.
Release Radioactive Kernel V2.1.4 OOS Op8/Pro/8T Modded (+Custom BETA) · mrslezak/Radioactive_kernel_oneplus8
GPU underclocked to 295 base frequency, overclocked to 670/800/920mhz. Default Boeffla Wakelocks blocked to reduce idle battery drain. Default Adreno Boost set to low. A personal build based on ...
github.com
Click to expand...
Click to collapse
RadioActive-WL-295-920GPU-custom-2.1.4-BETA.zip is the file for custom ROMs BTW if you don't read the notes (which you should). As I mentioned to the unhappy user you can always drop the max GPU in any kernel manager to 800mhz and set on boot if you got an inferior 865 although artifacts have only been reported by 1 person period. A more productive approach rather than bad mouthing someone trying to provide a free service is "can you build a version that maxes out at 900mhz?"... Respect please in the forums.
jamescable said:
I mainly wanted the wakeloxk blockers, and other battery saver stuff lol. Don't care about OC
Click to expand...
Click to collapse
Well I put up custom and OOS just use a kernel manager to set the high frequency you want it to stop at on boot. But before you do, here's a day of basically using the phone a lot at 120hz with many apps open. Note someone here didn't look at the SOT DRAIN which is 100/8.27 = 12hrs SOT. I didn't start it with a full battery. I do that on purpose start at 60% or so to see how it drains in the middle of the discharge. So I'd advise those that are quick to criticize, make sure you actually calculate something before saying it's "horrible" when it's as good as stock.
mslezak said:
Well I put up custom and OOS just use a kernel manager to set the high frequency you want it to stop at on boot. But before you do, here's a day of basically using the phone a lot at 120hz
Click to expand...
Click to collapse
That's horrible, considering auto gives me 9-12 hours screen on time, depending on what I am doing obviously
jamescable said:
That's horrible, considering auto gives me 9-12 hours screen on time, depending on what I am doing obviously
Click to expand...
Click to collapse
What is your setup I can only dream of these nos
jamescable said:
That's horrible, considering auto gives me 9-12 hours screen on time, depending on what I am doing obviously
Click to expand...
Click to collapse
You do realize that this is 12 SOT if you never let it sleep and use it all the time, look at the stats and do some math. 100%/8.27% = 12hrs SOT. Idle went up because I was on phone calls for an hour, and the screen turns off. It's usually 0.6%/hr if you're using it (on WiFi), 1%/hr on cell, turning it on and off every few minutes will cause more drain. I was using my phone a lot today that way. I would say that's amazing to get the same SOT on a modded kernel. I haven't optimized a thing in the ROM or notifications, just used the kernel. I don't care if you use it, do as you wish.
The best way to get help, or to find me is on the TG group. There are people there that can help you out if need be.
mslezak said:
You do realize that this is 12 SOT if you never let it sleep and use it all the time, look at the stats and do some math. 100%/8.27% = 12hrs SOT. Idle went up because I was on phone calls for an hour, and the screen turns off. It's usually 0.6%/hr if you're not using it, turning it on and off every few minutes. I was using my phone a lot today that way. I would say that's amazing to get the same SOT on a modded kernel. I haven't optimized a thing in the ROM or notifications, just used the kernel. I don't care if you use it, do as you wish.
Click to expand...
Click to collapse
mslezak said:
Anyway I'm tired of people requesting things and then getting completely incorrect information and yelling at me because they either can't do math or they don't know how to use a kernel manager. I can be reached on the TG group but you all are on your own now. All I hear are complaints for doing free work for people I don't even know, some of you need to learn some manners.
Click to expand...
Click to collapse
Ignore the haters and complainers...
I just flashed (RadioActive-WL-295-920GPU-custom-2.1.4-BETA.zip) over CR_Droid (CR 03/08 and 03/26 builds 8Pro) and it made a HUGE difference in smoothness, snappiness and performance. I don't worry too much about battery drain as we can top off our phones in less than 20 minutes a day. The under-clocking is also wonderful. I remember back in the G2 days we not only underclock, but would under-volt ALL the frequencies just a few ticks away from unstable for more battery life (dependent on the cpu bin ver), but not really that necessary anymore with larger batteries and super quick charges.
Much respect and appreciation and hope to see more tweaks and builds in the future
Agimax said:
Ignore the haters and complainers...
I just flashed (RadioActive-WL-295-920GPU-custom-2.1.4-BETA.zip) over CR_Droid (CR 03/08 and 03/26 builds 8Pro) and it made a HUGE difference in smoothness, snappiness and performance. I don't worry too much about battery drain as we can top off our phones in less than 20 minutes a day. The under-clocking is also wonderful. I remember back in the G2 days we not only underclock, but would under-volt ALL the frequencies just a few ticks away from unstable for more battery life (dependent on the cpu bin ver), but not really that necessary anymore with larger batteries and super quick charges.
Much respect and appreciation and hope to see more tweaks and builds in the future
Click to expand...
Click to collapse
Thanks bud, glad to hear good results with the kernel. On TG everyone has been full of compliments. Let's hope it stays that way here as well. We can conduct everything in a respectable manner.
Now if you REALLY want to save battery and your cell provider supports Voice over WiFi, Google Messages enable enhanced chat features and keep it on WiFi only (i.e. Bluetooth only on while you're using it, Location off unless you're navigating somewhere, NFC off unless you're using GPay, mobile data off), here's what I get being on my phone all day today (started under 60% battery) at 120hz: 7% active drain, 0.84% inactive. If you're asleep it's more like 0.4%. You won't miss any calls or texts either.
great, zero! drain during the bedtime that's awsome! thanks for the kernel upgrade

Categories

Resources