Related
I really cant understand how to configure setcpu properly. Ive a rooted legend on 2.2 , 3.15 build. My doubts are:
1.What is userspace, ondemand and performance scaling ?
2.On the main menu of the setcpu if slided the bars way down to 19 max and 19 min , but it still shows 600max 480min as default as the speed ...
3. What does the "set On boot" option do ? Set the values on the sliders after booting ? But that does not happen.
4. I also want to overclock my legend. After installing the kernel , is it so that that the sliders' max value will increase ?
5. Also what is the difference between the 3.5 and th 4 kernel version and why do people recommend the 3.5 version ? (btw i wanna oc to 768)
-e-
My 2nd query is solved. i disabled the perflock and it went according to the sliders. But please explain the differences between userspace , performace and ondemand scaling
Any help guys ?
its easy, set on boot means what it says.
select autoconfig or recommended
drag slides to max speed and lowest speed
triggers are such as if the battery goes below say 15% it will lower the speed
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
sorry forgot to mention that performance keeps it at the max speed and on demand keeps it at lowest speed until more is needed
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
I just need thermal config+init.qcom.post_boot-1.sh with some modification...
My requirements are as follows...
1) dont care about heating.
2) cpu governor- interactive
3) min clock frequency- 100 mhz for all cpu
4) maximum clock frequency- no limit
5) camera app not depends on temperature ( hang or slow at high temperature).
6) remove all cpu throttling...(must need)
7) remove cpu offline algorithm... (Must need)
Anyone here which is capable of doing this thing,please help...
my thermal config has it all. have you check ?
only the cpu freq I don't set as low as 200 in interactive. (the minimum) you'll get lag and slow respon. believe me.
but I can change if you want.
http://en.miui.com/thread-140563-1-1.html
thanks...
Thanks dude for your advice but i tested your procedures,after that still some cores shut down according to temperature...
i know your skill,so lets join my algorithm and your skill to make best config files...
1) dont care about heating.
2) cpu governor- interactive
3) min clock frequency- 200 mhz for all cpu
4) maximum clock frequency- no limit
5) camera app not depends on temperature ( hang or slow at high temperature).
6) remove all cpu throttling...(must need)
7) remove cpu offline algorithm... (Must need)
and dont confuse between hotplug and throttling(hotplugging is turn unused CPU cores off during periods of low CPU utilization and throttling is turn CPU cores off according to temperature)...
also if you can do then set first 4 core(1.65 mhz x 4) at interactive and others (1.1 mhz x 4) at ondemand...
believe me...this makes best algorithm to control heating and increase performane
Rockmee said:
Thanks dude for your advice but i tested your procedures,after that still some cores shut down according to temperature...
i know your skill,so lets join my algorithm and your skill to make best config files...
1) dont care about heating.
2) cpu governor- interactive
3) min clock frequency- 200 mhz for all cpu
4) maximum clock frequency- no limit
5) camera app not depends on temperature ( hang or slow at high temperature).
6) remove all cpu throttling...(must need)
7) remove cpu offline algorithm... (Must need)
and dont confuse between hotplug and throttling(hotplugging is turn unused CPU cores off during periods of low CPU utilization and throttling is turn CPU cores off according to temperature)...
also if you can do then set first 4 core(1.65 mhz x 4) at interactive and others (1.1 mhz x 4) at ondemand...
believe me...this makes best algorithm to control heating and increase performane
Click to expand...
Click to collapse
if you're talking about cpu2 & cpu3 still offline then I can't help.. it's because of the kernel.
they are active as per need though , not totally offline.
thermal config should be good for your need (if you want can remove all the SS-CPU in there )
https://drive.google.com/file/d/0B7YlmAzhAoSxanpPNTdPSlgxZG8/view
post_boot.sh later.. ( i think Keasby has one with mix interactive/ondemand)
Explain
thanks for your hard work but can you tell me changelog of this config files according to my requirement...
Thanx but there is a problem
Yes you here right,i just checked your config file,i think this is perfect mod but it does not support miui 6.7.2... After some time frequency of first four core set to 1651 mhz and rest at 800 mhz...please fix this issue,it makes heating issue...
The Introduction
I'm about to tell you how to get buttery smooth, lag free performance with insanely good battery life, using an old school governor featured in practically every kernel... This tweak is applicable to every phone with any ROM or kernel--stock or custom--that provides the Interactive Governor.
Yeah, yeah... everyone promises good battery with great performance, but who actually delivers? Maybe it isn't as smooth as you want, or maybe it requires something your kernel or ROM don't support. Or maybe the battery life promises just aren't what you expected. There's always some awful compromise. Not here!
This isn't a guide to get 36 hour battery life... provided you never use your phone. That's deep sleep optimization, which is lovely and all, but what good is the phone if you can never use it?! And with the new Marshmallow Doze feature, this strategy is becoming a think of the past. What I'm talking about is 7-14 hour screen on, actual hands-on usage times! Without compromising anything, you can get 7-8 hour screen on usage with regular, no-compromise usage habits: daytime visible screen brightness, both radios on, sync on, network location on, all the regular usage features, the whole kit and kaboodle... all smooth as a baby's butt and snappy as a Slim Jim! (Up to 14+ hours if you can stand minimum brightness and WiFi-only with a custom ROM and other stuff turned off! And this is with stock voltages and full frequency range--you'll likely get even more if you choose to optimize those as well!)
However, it should be noted that this does not apply to gaming, heavy camera use, etc. Anything that is an automatic battery killer in and of itself. There's nothing that can be done about anything that forces the phone to utilize its maximum resources all the time. But you should know that by now. Further, this guide is about optimizing the CPU as much as possible. It does not cover things like eliminating wakelocks so your phone sleeps well, removing unnecessary and battery draining stock apps, keeping your screen brightness down*, and all that stuff that's been covered in other posts ad infinitum. Those optimizations are up to you.
*At least on the Mi4i, you shouldn't be turning your screen brightness above about 50%. It should be more than viewable in sunlight at that brightness, and keep in mind that the brightness power requirements increase exponentially, so a 100% bright LCD screen will use about 3.5-4.5x more power than a 60% bright screen. I don't see that fact brought up often, so I thought I'd mention it here.
After a bit of tweaking and experimenting, I developed some settings that provide absolutely incredible battery life, buttery smooth performance, and a lag free experience. And you don't need a fancy governor, or a custom kernel, custom clock rates, or even a Mi4i. This will work on any ROOTed phone with the Interactive governor!
The Nitty Gritty
Before I lay out all the settings so you can blindly enter them into your governor control, I should to explain some of the principals I employed to get the results I did. The primary thing to understand before I do is: little might you know, the settings in the Interactive governor can be tweaked on a clock range basis. That is to say, you can finely control how the governor responds at a variety of clock rates, thus better dictating how it should operate under various loads. This is integral to the configuration, because it means the difference between jumping from the slowest speed to the highest speed under load and sustaining lower clock speeds for tasks that don't really require higher clock speeds.
By default, the Interactive governor will jump from lowest speed to a "nominal" speed under load, and then scale up from that speed as load is sustained. That is lovely, but still too twitchy to provide serious efficiency and power savings. It spends most of its time at 2 or 3 clock speeds and barely hits other clock speeds that are ideal for other tasks or usage patterns.
Instead, what we want to do is configure it to handle different types of loads in different ways. A load suited for scrolling through a webpage is not the same as a load suited for downloading/processing streaming video is not the same as a load suited for snappy loading of an app is not the same as a load suited for high performance gaming. Every kind of load has different tolerances at which their minimal speed is indistinguishable from their maximal speed.
Nominal Clock Rates
Nominal clock rates are the minimum CPU clock rates that perform a given task smoothly and without stuttering or lag. To find the nominal clock rate for a given task, turn on only the first CPU using the Performance governor and turn them both down incrementally until you find the minimum clock rate that works best for what you're trying to do, without introducing hiccups. (If you have a CPU or kernel that hotplugs individual cores, multiply that clock speed by your number of cores.) Keep the 2nd CPU on the Powersave governor with the lowest frequency your kernel supports. (Or turn it off completely if hotplugging allows.)
(Note: If your device supports per-core hotplugging, you might be better off using the old guide to determine your nominal clock rates. The Mi4i and all current kernels only support hotplugging entire CPUs, so your results may vary if you use any other device.)
For example, on my Mi4i, scrolling (not loading, simply scrolling) through a large webpage smoothly will occur when the second CPU clock rates are no less than 460Mhz. (This is on mine without background tasks taking any CPU. Yours may be different depending on services running, the browser you use, your ROM, kernel, etc.) Thus, the nominal clock rate for scrolling a webpage on my Mi4i is 460Mhz.
To understand what's best under a variety of tasks, we have to identify two types of load profiles: nominal clock rates and efficient clock rates.
Efficient Clock Rates
Efficient clock rates are CPU clock rates that are unique in that they are the most optimal frequency given the range of voltage requirements. If you map out the frequency jump and the voltage requirement jump between each of the available clock rates, you will find that occasionally the voltage requirement will jump significantly without the frequency jumping proportionally to the previous differentials. For example, using stock voltages, the EvoLTE's msm8960 chipset clock/voltage ratios jump significantly higher from 702Mhz to 810Mhz than the ratios from 594Mhz to 702Mhz.
This section is INCOMPLETE! If you know the voltages, please post and I can update this guide to include the Mi4i's Efficient Clock Rates.
Clock Rate Biases
Using the information provided above, figure out both your nominal clock rates for the tasks you perform most often and your efficient clock rates depending on your kernel/custom voltage settings. For me, since I cannot determine the efficient clock rates, I use the nominal clock rates listed above. For the tasks I generally perform on my phone, my nominal clock rates are as follows:
Idle - 345Mhz
Page Scrolling - 533Mhz
Video -800Mhz
App Loading - 960Mhz
High Load Processing - 1612Mhz
(Note that you must calculate the values that are optimal for your phone for best battery and performance! Each phone is different because of the ROM, kernel, background tasks, etc!)
With this done, you will want to start the fine tuning phase! Correlate the efficient clock rates with their closest nominal clock rates, similar to below:
(This section of the guide is INCOMPLETE because I do not know the clock rate voltages for the Mi4i. If you know these, please post in the comments and I will update the guide!)
Idle - ???Mhz efficient / 345Mhz nominal
Page Scrolling - ???Mhz efficient / 533Mhz nominal
Video - ???Mhz efficient / 800Mhz nominal
App Loading - ???Mhz efficient / 960Mhz nominal
High Load - ???Mhz efficient / 1651Mhz nominal
Keep these handy, as they're going to be necessary for...
The Set Up
Now that we know what are the most efficient nominal clock rates we want to focus on and what the most optimal are for what we want to do, we will start low and scale up as necessary. It's always better to begin with underperforming and tweak the settings upward until we're satisfied with the performance of our target tasks.
In its default state, the Interactive governor has a hair trigger that will raise and lower the clock rates, which means it spends too much time at unnecessary clock speeds, wasting power, and scales down too quickly, leading to stuttering performance. We will take advantage of a seldom used feature of the Interactive governor. Specifically, that with which it determines when it is okay to scale up to each higher clock rate, on a frequency by frequency basis.
We have two primary goals: respond as quickly as possible to each load request for a lag free experience and exceed the desired clock rate for a given task as little as possible. To do this, we will instruct the Interactive governor to trigger certain clock rates in different ways depending on our expected load.
I won't explain all of the settings of the Interactive governor--there are plenty of summaries all around. (Go search now if you don't know what any of the settings for Interactive governor do. I'll wait here.) However, I will explain an incredibly powerful feature of the Interactive governor that is rarely included in those summaries: multiple frequency adjustments.
The above_highspeed_delay setting, for example, defines how long the governor should wait before escalating the clock rate beyond what's set in highspeed_freq. However, you can define multiple different delays that the governor should use for any specified frequency.
For example, we want the above_highspeed_delay as low as possible to get the CPU out of the idle state as quickly as possible when a significant load is applied. However, we don't want it to jump immediately to the fastest clock rate once it's gotten out of idle, as that may be overkill for the current task. Our target trigger (which you will later adjust to suit your system and usage profile), will begin at 20000μs. That means 20,000μs (or 20ms) after our idle max load has been reached, we want to assume idle has been broken and we want to perform an actual task. (We want this value as low as possible without false positives, because it is one of a few factors that determine how snappy and lag free the CPU's response is.)
But at this point we're not ready to take on a full processing load. We may just be briefly scrolling a webpage and don't need the full power of the CPU now that we've allowed it to break out of idle. So we need it to reach a particular frequency and then hold it there again until we're sure the load is justified before we allow it to push the frequency even higher. To do that, rather than just setting
above_highspeed_delay - 20000
we will instead use the format "frequency:delay" to set
above_highspeed_delay - 20000 460000:60000 600000:20000
"Waaaait... What does that do?!"
This tells the Interactive governor to hold out 20ms after our target load when it's at our highspeed_freq (which we're actually using as our idle frequency--not a burst frequency as originally intended), but then it tells the governor to hold for 60ms after it's reached 460Mhz. Once it has exceeded 460Mhz, it then has free reign to scale up without limitation. (This will be optimized with the target_loads setting in a minute. And if you don't know what I'm talking about when I say "highspeed_freq" then you didn't go search for the basic Interactive governor settings and read about it! Go do that before you read any further, because I will not explain the basics of this governor!)
These settings are among the most important, because they limit the phone's clock rates when you are not interacting with it. If it needs to do something in the background, chances are it does not need to run full throttle! Background and idle tasks should be limited to the lowest reasonable clock rate. Generally speaking, if you're just looking at your phone (to read something, for example), you want the phone to use as little CPU power as possible. This includes checking in with Google to report your location or fetching some pull data or... whatever. Things that you don't need performance for.
So now that we know how to specify different settings for different frequency ranges, let's finish it all up with...
What About Touchboost?
Touchboost is a nifty feature in a lot of kernels (including stock on Mi4i) that jumps up the frequency so that you experience minimal lag. However, with all the above settings, touchboost is usally detrimental to the efficiency of the device!
We generally want to keep the CPU on the lowest possible frequency as much as possible, and touchboost interferes with that. Further, because we've set up the maximal and minimal efficient clock rates, as well as burst processing from the 1st CPU core, we don't need touchboost!
If your kernel allows you to shut it off, try to do so and see if the responsiveness of your device is acceptable. On the Mi4i, touchboost adds no perceptual performance gain and only hurts efficiency and battery life. If your kernel doesn't allow you to turn off touchboost, try another one, like the excellent Sensei.
Your battery life will thank you!
The Setup
In the "CPU" section, turn off "Touchboost". (This is crucial!! YOU MUST TURN OFF TOUCHBOOST OR ELSE YOU WILL NOT SEE ANY BATTERY SAVINGS!!!) Make sure the "Max CPU Frequency" is set to the maximum possible value for each CPU. Make sure the "Min CPU Frequency" is set to the minimum possible value for each CPU. Under "CPU Boost", set "input boost milliseconds" to "0". Then set the following values for each CPU under "Governor options" for each CPU respectively:
CPU #1 (aka "Big", aka "has 4 cores", aka "maxes out at 1665Mhz")
target_loads - 1 960000:80 1113600:85 1344000:90
timer_slack - 80000
hispeed_freq - 1113600
timer_rate - 20000
above_hispeed_delay - 20000 1113600:50000
go_hispeed_load - 85
min_sample_time - 50000
CPU #2 (aka "little", aka "has 4 cores", aka "maxes out at 1113Mhz")
target_loads - 1 800000:80
timer_slack - 80000
hispeed_freq - 998400
timer_rate - 40000
above_hispeed_delay - 10000
go_hispeed_load - 90
min_sample_time - 40000
The Conclusion
I have achieved unprecedented performance, smoothness, snappiness, and battery life with the default settings I outlined above. However, your mileage may vary, as every phone, ROM, kernel, installed applications, etc are different. This is a very sensitive governor profile and must be tweaked to just meet the requirements of your system and your usage patterns!
If it is not optimally tuned, performance and battery life will suffer! If you're not seeing buttery smooth, snappy performance, you have not correctly tuned it for your system!! However, if you do have superb performance (and you tweaked the values conservatively and not in large steps), then you will also get the aforementioned battery life.
I will be happy to answer any questions, or provide any guidance I can. However:
You must otherwise optimize your phone first! This will not "fix" a poorly optimized system and will, in fact, reduce performance and battery life without further optimization and proper tweaking.
I will not answer questions about "what is a governor?" There are plenty of resources available already, so search for them.
I will not answer questions about "how can I tweak [some other] governor?" This is about the Interactive governor only.
I will not respond to "nuh uh! show proof!" posts. The fact that I spent 12 hours writing this up should be proof enough that I am satisfied with the results. You can take it or leave it; makes no difference to me. The default settings should work with any fully optimized Mi4i running any kernel, so just try them on your own. If you're not absolutely satisfied (and trust me, either it'll work out-of-the-box with flying colors and you'll know it works for your system, or it'll be an awful experience which means you must tweak it), then you haven't adequately adjusted the settings to suit your system.
Lemme know what you think, and good luck!
Thanks to @soniCron for the original thread here : http://forum.xda-developers.com/nexus-5x/general/guide-advanced-interactive-governor-t3269557
Woah, Will try it soon. Thanks for the awesome thread and work.
The interactive governor from your Sensei kernel already had all these settings tuned.
I will come back in 24-48 hours with results.
One question that I have is: will something like Amplify (deals with wakelocks) interfere with this?
mandarin91 said:
The interactive governor from your Sensei kernel already had all these settings tuned.
I will come back in 24-48 hours with results.
One question that I have is: will something like Amplify (deals with wakelocks) interfere with this?
Click to expand...
Click to collapse
I've dealt with a few wakelocks in the kernel, Amplify won't disturb anything I guess.. Also this is just for future refs for users who are either on stock or any other kernel...
How exactly does this target load list work - why the loads are not progressive, but 85 - 90 - 80? set target to 90% load at 1.1ghz, but then we want 80% at 1.3ghz? Shouldn't the target loads only go up?
target_loads - 1 960000:85 1113600:90 1344000:80
are you sure that above_highspeed_delay for CPU#2 is correct?
danb1974 said:
How exactly does this target load list work - why the loads are not progressive, but 85 - 90 - 80? set target to 90% load at 1.1ghz, but then we want 80% at 1.3ghz? Shouldn't the target loads only go up?
target_loads - 1 960000:85 1113600:90 1344000:80
Click to expand...
Click to collapse
Exactly. And where are the lower frequencies?
The lower frequencies are left untouched. I've been testing this for some time now. Look at the screenshots.
mandarin91 said:
Exactly. And where are the lower frequencies?
The lower frequencies are left untouched. I've been testing this for some time now. Look at the screenshots.
Click to expand...
Click to collapse
bump (?)
Will we get an answer?
I've fixed the settings, target load will now go up rather than up-up-down... Also these settigs are a WIP, right now this is the optimal settings I have that will provide battery life and performance. I will update the settings each time an improvement is made.
Lower frequencies aren't doing much fr me but I'll try to include them into the formula...
haikalizz said:
Lower frequencies aren't doing much fr me but I'll try to include them into the formula...
Click to expand...
Click to collapse
I am talking about these:
Idle - 345Mhz
Page Scrolling - 533Mhz
Video -800Mhz
App Loading - 960Mhz
High Load Processing - 1612Mhz
Click to expand...
Click to collapse
If these "aren't doing much" then there will be only five frequencies: 200, 960, 1113, 1344, and 1651.
And most of the time is spent on 200 or 960. Won't the frequencies between 200 and 960 give better battery life?
How can an awesome thread like this die?
mandarin91 said:
I am talking about these:
If these "aren't doing much" then there will be only five frequencies: 200, 960, 1113, 1344, and 1651.
And most of the time is spent on 200 or 960. Won't the frequencies between 200 and 960 give better battery life?
Click to expand...
Click to collapse
no it doesnt quite work that way. not all lower frequencies will give better battery life. it also depends on the SOC in question and the nature of the SOC. I think hakalizz has mentioned previously of several optimized voltages and frequencies which we don't know for the snapdragon 615. let's use the 615 and some hypothetical values
200mhz - 650mv
400mhz - 650mv
you would have thought that 200mhz would give better battery savings but that isnt the case over here. even though the 400mhz would use more power (even though it is rated the same as 200mhz), technically you get battery savings because 400mhz gets the job done in well, twice the speed of the 200mhz. So you need to either figure out which of your frequencies are optimized in such a way that it can take advantage of the race to idle factor too.
for now i'm still on zzmoove but only to a point where i figure out how to optimize interactive for my own usage (with hotplugging etc)
just to further the point on this advance interactive tweaks - theory-wise and practicality-wise it is sound, you use the best frequencies(Bare minimum that you can stand) and you enjoy battery savings as well. the only issue I see is if you use your phoen differently from the OP. that's why haikalizz says you need to tweak and adjust it on your own
davtse said:
no it doesnt quite work that way. not all lower frequencies will give better battery life. it also depends on the SOC in question and the nature of the SOC. I think hakalizz has mentioned previously of several optimized voltages and frequencies which we don't know for the snapdragon 615. let's use the 615 and some hypothetical values
200mhz - 650mv
400mhz - 650mv
you would have thought that 200mhz would give better battery savings but that isnt the case over here. even though the 400mhz would use more power (even though it is rated the same as 200mhz), technically you get battery savings because 400mhz gets the job done in well, twice the speed of the 200mhz. So you need to either figure out which of your frequencies are optimized in such a way that it can take advantage of the race to idle factor too.
for now i'm still on zzmoove but only to a point where i figure out how to optimize interactive for my own usage (with hotplugging etc)
just to further the point on this advance interactive tweaks - theory-wise and practicality-wise it is sound, you use the best frequencies(Bare minimum that you can stand) and you enjoy battery savings as well. the only issue I see is if you use your phoen differently from the OP. that's why haikalizz says you need to tweak and adjust it on your own
Click to expand...
Click to collapse
Dude, haikalizz mentioned those frequencies in the post but never implemented them in the settings. That is what I'm saying.
Idle - 345Mhz
Page Scrolling - 533Mhz
Video -800Mhz
App Loading - 960Mhz
High Load Processing - 1612Mhz
mandarin91 said:
Dude, haikalizz mentioned those frequencies in the post but never implemented them in the settings. That is what I'm saying.
Idle - 345Mhz
Page Scrolling - 533Mhz
Video -800Mhz
App Loading - 960Mhz
High Load Processing - 1612Mhz
Click to expand...
Click to collapse
dude, i was responding to your question, should these freq inbetween give better battery life
You must otherwise optimize your phone first! This will not "fix" a poorly optimized system and will, in fact, reduce performance and battery life without further optimization and proper tweaking.
Please tell me how to optimize my phone ?
rmusa06 said:
You must otherwise optimize your phone first! This will not "fix" a poorly optimized system and will, in fact, reduce performance and battery life without further optimization and proper tweaking.
Please tell me how to optimize my phone ?
Click to expand...
Click to collapse
Debloat, amplify, things like that...
haikalizz said:
Debloat, amplify, things like that...
Click to expand...
Click to collapse
Thank you sir
What app are you using to implement the changes?
Well I got some nice results applying this technique and have overall 1/2 hours more sot using interactive gov. The only profile that works and follows the normal rules is the Ghostpepper profile. I have a moto x play with the same soc so it should work for the mi4i to. First you must calculate the max and min target loads before you can do something power efficient using this technique.
My advice is try to translate the nexus5x ghostpepper profile and replace your min and max target_loads with the ones in the original profile.
And why is this thread just copied and pasted from the original nexus5 thread and only replaced some words with "mi4i". You also forgot the most important part: calculating the min and max target_loads.
I'm not a Dev. but for a while i was chasing the unicorn. I wanted to find a setting on my xperia M2 that gives battery and performance.. My phone got really hot after 20-30 min of usage on stock settings. So I thought there must be different ways to this. I use a custom rom Z5 style, it has the standard kernel as far as I know.
I studied some writings about governors like: http://forum.xda-developers.com/xperia-m2/general/ref-xperia-m2-cpu-governors-hotplugging-t3454006 and the main reason why I started tweaking with Interactive governor is this very useful thread: http://forum.xda-developers.com/showthread.php?t=2769899
As U can see I only used what was already on here I just wanted to share my current settings as i find them fast enough for daily use and quite battery friendly..
In the second thread you have a really good explanation on interactive and i find it to be a very versatile governor. MP decision is off with these settings.
Anyhow back to my settings.. I use Kernel Aduitor (an older mod version) to change my settings, it works for me the best.
1. setting is above_hispeed_delay I changed it to: 10000 787200:35000 998400:45000
2. boost : leave it at 0
3. boostpulse_duration: change to 0
4. go_hispeed_load: 95
5. hispeed_freq: 787200
6. io_is_busy_ 0
7. min_sample_time: 30000
8. sampling_down_factor:1
9. sync_freq:300000
10. target loads: 80 384000:85 600000:90 787200:95 998400:99
11. timer_rate: 30000
12. timer_slack: 50000
13. up_threshold_any_cpu_freq: 0
14 up_threshold_any_cpu_load: 0
If U try it, change it and find something that works better with less battery please write back!
Edit
I did some changes to the numbers, its a bit smoother and SOT with my type of usage is around 6-8% drop per hour on my phone.
This is a battery oriented setup with MP decision off. My usage profile involves a lot of reading so it is not that cpu intensive. Results may be different for You!
NOTE!
If U would like to have more performance try the Hawktail profile suggested by AutumQueen92 lower in the tread is the link
Awesome work bro...
Best battery backup!!!
semil said:
I'm not a Dev. but for a while i was chasing the unicorn. I wanted to find a setting on my xperia M2 that gives battery and performance.. My phone got really hot after 20-30 min of usage on stock settings. So I thought there must be different ways to this. I use a custom rom Z5 style, it has the standard kernel as far as I know.
I studied some writings about governors like: http://forum.xda-developers.com/xperia-m2/general/ref-xperia-m2-cpu-governors-hotplugging-t3454006 and the main reason why I started tweaking with Interactive governor is this very useful thread: http://forum.xda-developers.com/showthread.php?t=2769899
As U can see I only used what was already on here I just wanted to share my current settings as i find them fast enough for daily use and quite battery friendly..
In the second thread you have a really good explanation on interactive and i find it to be a very versatile governor.
Anyhow back to my settings.. I use Kernel Aduitor (an older mod version) to change my settings, it works for me the best.
1. setting is above_hispeed_delay I changed it to: 10000 998400:50000 1094400:30000
2. boost : leave it at 0
3. boostpulse_duration: change to 0
4. go_hispeed_load: 95
5. hispeed_freq: 787200
6. io_is_busy_ 0
7. min_sample_time: 30000
8. sampling_down_factor:0
9. sync_freq:0
10. target loads: 99 600000:95 998400:99
11. timer_rate: 20000
12. timer_slack: 40000
13. up_threshold_any_cpu_freq: 0
14 up_threshold_any_cpu_load: 0
If U try it, change it and find something that works better with less battery please write back!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=68223776&postcount=4203
You're linking to an old site, the newer one is here. Also, I get better SOT and performance with Hawktail. Set your sampling_down_factor to 1 (stock Android setting, not sure why Sony made it 0) and sync_freq to 787200 (sets all cores to this frequency depending on CPU load)
Hi thx for the reply sadly there is no kernel with Hawktail for the M2 as far as I know.. for sampling_down_factor ill try.
semil said:
Hi thx for the reply sadly there is no kernel with Hawktail for the M2 as far as I know.. for sampling_down_factor ill try.
Click to expand...
Click to collapse
???
Hawktail is the profile name, not governor. You just take all their values except the ones that needs our own CPU frequency like in the attachment.
Oh did not know sry. I will try those settings and compare.
Do you have MP decision on or off? I have it off. These hawktail settings shortened my SOT considerably today. Performance is crisp that is true, but better SOT? not for me.
semil said:
Do you have MP decision on or off? I have it off. These hawktail settings shortened my SOT considerably today. Performance is crisp that is true, but better SOT? not for me.
Click to expand...
Click to collapse
MPdecisions is turned on, because there are no other hotplugs. When mpdecision is turned off, all 4 of your cores are constantly turned on and locked at 787mhz. If your SOT shortened try the GhostPepper profile or experiment with your own profiles. Some people do have different times on profiles because of usage patterns
That was the case yes. I leave hotplug off. Actually all four cores are on all the time but when idling on 300 MHZ it does not use much juice really. I read somewhere that switching cores on/off actually uses a lot of battery. With my usage pattern SOT is better with hotplug off..
semil said:
That was the case yes. I leave hotplug off. Actually all four cores are on all the time but when idling on 300 MHZ it does not use much juice really. I read somewhere that switching cores on/off actually uses a lot of battery. With my usage pattern SOT is better with hotplug off..
Click to expand...
Click to collapse
I see, that sounds good. Then sync_freq should be set to to minimum frequency too, otherwise they lock up at higher freqs.
Can anyone provide with a "explain me like I'm five" post of what is this about? And if it is as good as it sounds?
Vadeinspace said:
Can anyone provide with a "explain me like I'm five" post of what is this about? And if it is as good as it sounds?
Click to expand...
Click to collapse
Hi, its about the governor that runs your cpu. Interactive is very easy to customize: it can be fast or it can be battery friendly but slower. These settings are a good compromise for me but might not be fast enough for You. The Hawktail settings are really fast, similar in fact to 6.0 settings. Your phone should be rooted and with a kernel that has interactive. With a kernel aduitor type of apk You can easily try out different settings.
Hey guys so after some tinkering and tweaking with the kernel I've come up with some settings that can reduce "UI lag" and improve general performance and lower heat output without tanking battery life or "SOT" so what are these setting? you may ask, well before we get into that please note that your results may vary based on the ROM and kernel you are using, I'm using Bootleggers 9.0 with GrapheneKernel v1.5, the app I'm using to tweak the setting is Kernel Adiutor, don't worry it's really simple and we're not making major changes to the kernel settings. but before making any changes please make a back up of your current settings.
Also if you have any better settings for the kernel, share them below.
First off, Go the "CPU" tab and change the big cluster frequencies:
set the minimum frequencies to 400 MHz (0.4 GHz)
Max frequencies to 1800 MHz (1.8 GHz)
change the little cluster frequencies:
set the minimum frequencies to 400 MHz (0.4 GHz)
Max frequencies to 1400 MHz (1.4 GHz)
Next, Set both big and little clusters governors to "Interactive"
Next, Go to "CPU Hotplug"
Set minimum big cluster core to 2
Change the busy down threshold to 20
Change the busy up the threshold to 40
Offline Delay to 100 ms
Next, Go to "GPU"
Set the max frequency to 600 Mhz
set the minimum frequency 266 Mhz
Set GPU governor to "msm-adreno-tz"
Set Adreno Idler to on
Change Down differential to 20
Idle wait to 20
workload to 5
Next, go to I/O Scheduler
Change the Scheduler to cfq (why because noop sucks when it comes to CPU scaling and performance)
Read-ahead value to 2048
RQ affinity to 1
and that's it your done.
If you guys want me to make a .json fine which you can import just and apply all settings in one go let me know in the comments
for me, light use = checking Twitter, Instagram, web browsing and some Youtube
moderate use = Taking photos, light gaming, and editing photos
heavy use = Lot's of photo taking, photo editing, uploading and downloading of large files, heavy gaming such Hades star, (a GPU heavy game btw) Pubg and asphalt 9 and 8
My battery life with these settings
Light use 5 hours and 26 minutes on average
moderate use 4 hours and 38 minutes on average
Heavy use 3 hours and 10 minutes on average
Heat output when in light use is 33 to 36c on average
Heat output when moderate use is 34 to 39c on average
Heat output when in heavy use or gaming is 42 to 46c on average
Bro,how to disable thermal throttling on Le 2,I've found a magisk module of mi5s,I've flash it,but I think its not working,please help,I'm also a hardcore pubg player
Bro, could you please share the link of graphene kernel 1.5?
lambha48 said:
Bro,how to disable thermal throttling on Le 2,I've found a magisk module of mi5s,I've flash it,but I think its not working,please help,I'm also a hardcore pubg player
Click to expand...
Click to collapse
Try disabling Core control if you re using the stock kernel but i recommend using GrapheneKernel or overload 4.10 for Pie based roms or overload 4.5 for oreo based roms and change the thermal limit by a factor of 5 degrees, but do this at your own risk as high temps can damage your device You can also try the new overdose kernel too
lambha48 said:
Bro,how to disable thermal throttling on Le 2,I've found a magisk module of mi5s,I've flash it,but I think its not working,please help,I'm also a hardcore pubg player
Click to expand...
Click to collapse
Disabling thermal throttling is not recommended but of you're willing to take the risk, it can be done by editing the thermal engine config file in system/etc/ folder. Remember that the chipset has in-built thermal control that kicks in when the phone gets too hot with your upped thresholds. However, don't assume that this is a good enough safety net and go crazy with the temps. You might ruin your CPU! This is more so on non-eui based roms.
twistyplain said:
Disabling thermal throttling is not recommended but of you're willing to take the risk, it can be done by editing the thermal engine config file in system/etc/ folder. Remember that the chipset has in-built thermal control that kicks in when the phone gets too hot with your upped thresholds. However, don't assume that this is a good enough safety net and go crazy with the temps. You might ruin your CPU! This is more so on non-eui based roms.
Click to expand...
Click to collapse
Bro,please tell me how,I'm on cr droid nougat,please step by step,I want it to throttle at 60 degrees
lambha48 said:
Bro,please tell me how,I'm on cr droid nougat,please step by step,I want it to throttle at 60 degrees
Click to expand...
Click to collapse
If you're rooted, go to system/etc/ folder and look for a file called thermal-engine-s2.conf and send it to me. I'll edit it for you and send it back with your requested level of 60 degrees. Explaining what all the values mean will take too long.
twistyplain said:
If you're rooted, go to system/etc/ folder and look for a file called thermal-engine-s2.conf and send it to me. I'll edit it for you and send it back with your requested level of 60 degrees. Explaining what all the values mean will take too long.
Click to expand...
Click to collapse
Bro,its in Chinese language,thermal.conf
lambha48 said:
Bro,its in Chinese language,thermal.conf
Click to expand...
Click to collapse
Send me any thermal.conf files in that folder in a zip file. I'll figure out which one needs work.
twistyplain said:
Send me any thermal.conf files in that folder in a zip file. I'll figure out which one needs work.
Click to expand...
Click to collapse
Bro,i can't find.config when open with text editor,I can't understand its in chinese ive rename to bak,doesnt seem to work,only XML I found,I'm on cr droid nougat,please install cr droid,712 on yors and figure it out
Bro,please pubg I played at 736*414 screen resolution with easy DPI changer,but it throttle at 40 degree CPU,baterry 41 degree,um on illusion kernel with cr droid 712 I need to throttle it at 60.
lambha48 said:
Bro,i can't find.config when open with text editor,I can't understand its in chinese ive rename to bak,doesnt seem to work,only XML I found,I'm on cr droid nougat,please install cr droid,712 on yors and figure it out
Click to expand...
Click to collapse
Talk to the developer about it. I can't flash a new ROM right now.
Bro,are these files to be edit to disable thermal,throttling,please help
Please link graphenekernel v 1.5