How To Guide Optimise Stock Kernel Scheduler & Governor Setting - Google Pixel 7 Pro

So, after months of using Pixel 7 family, surely we all know that Tensor 2 is not exactly the best flagship SOC in term of raw power or energy usage, probably due to it's "Exynos Genetics Trait"
that being said, doesnt mean it's down bad. And with some optimisation, we can always try to make it run better. One of the example is by seeing how much better it run on custom kernel. But what about other stock kernel user ?
Well, fortunately, as long as we have root access, the stock kernel still allow us to play with some parameter. And here are some tunables parameters that i use to balance the energy usage and responsiveness of the device. (my aim is 10% battery for 1 Hour of SoT and ±0-1% decrease during 6-10hrs idle)
If you want to know more about each parameters, you can google a lot of linux kernel documentation (like here for example : https://access.redhat.com/solutions/177953)
but for now i'll just write down the change and my configurations. (I used EX Kernel Manager to change the parameters) :
CPU Section :
Switch governors for all CPU clusters from 'sched_pixel' to 'shedutil'
Open "Governor Options" and change the 'rate_limit_us' for all clusters from '10000' to '0'
Open "CPU scheduler options" and use bellow value for respected parameters :
sched_wakeup_granularity_ns : 10000000
sched_tunable_scaling : 1
sched_min_granulatity_ns : 2000000
sched_latency_ns : 12000000
Memory Section :
Disable "ZRAM"
That's it for now. Try and feedback if you find any improvement in your energy usage.
I've been using it for weeks, and pretty happy especially with idle drain. As for SoT, normally i end up with 5-6 Hrs screen time when i down to bed with ±30% battery remaining.

otonieru said:
So, after months of using Pixel 7 family, surely we all know that Tensor 2 is not exactly the best flagship SOC in term of raw power or energy usage, probably due to it's "Exynos Genetics Trait"
that being said, doesnt mean it's down bad. And with some optimisation, we can always try to make it run better. One of the example is by seeing how much better it run on custom kernel. But what about other stock kernel user ?
Well, fortunately, as long as we have root access, the stock kernel still allow us to play with some parameter. And here are some tunables parameters that i use to balance the energy usage and responsiveness of the device. (my aim is 10% battery for 1 Hour of SoT and ±0-1% decrease during 6-10hrs idle)
If you want to know more about each parameters, you can google a lot of linux kernel documentation (like here for example : https://access.redhat.com/solutions/177953)
but for now i'll just write down the change and my configurations. (I used EX Kernel Manager to change the parameters) :
CPU Section :
Switch governors for all CPU clusters from 'sched_pixel' to 'shedutil'
Open "Governor Options" and change the 'rate_limit_us' for all clusters from '10000' to '0'
Open "CPU scheduler options" and use bellow value for respected parameters :
sched_wakeup_granularity_ns : 10000000
sched_tunable_scaling : 1
sched_min_granulatity_ns : 2000000
sched_latency_ns : 12000000
Memory Section :
Disable "ZRAM"
That's it for now. Try and feedback if you find any improvement in your energy usage.
I've been using it for weeks, and pretty happy especially with idle drain. As for SoT, normally i end up with 5-6 Hrs screen time when i down to bed with ±30% battery remaining.
Click to expand...
Click to collapse
Someone said that it reverts back once you reboot?

elong7681 said:
Someone said that it reverts back once you reboot?
Click to expand...
Click to collapse
In the Franco Kernel Manager, there's an option to "keep" the new settings on a reboot. (Not sure about the EX Kernel Manager.)

elong7681 said:
Someone said that it reverts back once you reboot?
Click to expand...
Click to collapse
Right, it reverts back for CPU Governor (Cluster 3) after a reboot. (with EXKM)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Then I tried with FKM and problem is the same.
I will see after the night how is my battery drain.
But i can't complain because i loose only 2 or 3% during night (8h)
(Bluetooth and 5G on) No wifi because 5G signal is good.
No custom rom, rooted, january update.

Plathoon said:
Right, it reverts back for CPU Governor (Cluster 3) after a reboot. (with EXKM)
View attachment 5817379
Then I tried with FKM and problem is the same.
I will see after the night how is my battery drain.
But i can't complain because i loose only 2 or 3% during night (8h)
(Bluetooth and 5G on) No wifi because 5G signal is good.
No custom rom, rooted, january update.
Click to expand...
Click to collapse
It's expected that it reverts back to default because it's controlled by multiple things. People shouldn't change the governor. There is a write-up on this in Freak's kernel thread.

ekin_strops said:
It's expected that it reverts back to default because it's controlled by multiple things. People shouldn't change the governor. There is a write-up on this in Freak's kernel thread.
Click to expand...
Click to collapse
Can you provide a link to the write-up please?

Pixel86 said:
Can you provide a link to the write-up please?
Click to expand...
Click to collapse
Post

Mrcactuseater what's your deal always laughing at genuine posts?

ekin_strops said:
It's expected that it reverts back to default because it's controlled by multiple things. People shouldn't change the governor. There is a write-up on this in Freak's kernel thread.
Click to expand...
Click to collapse
Actually you can change the CPU governor from the default one to one of the additional existing alternatives.
The issue is just that the frequency scaling driver for the affected CPU cluster(s) will break if the PowerHAL detects that the Sched_Pixel governor isn't "there" anymore for doing the job that it is supposed to do.

Plathoon said:
But i can't complain because i loose only 2 or 3% during night (8h)
(Bluetooth and 5G on) No wifi because 5G signal is good.
No custom rom, rooted, january update.
Click to expand...
Click to collapse
Damn that's less than half of mine...

Not_Purgatory said:
Actually you can change the CPU governor from the default one to one of the additional existing alternatives.
The issue is just that the frequency scaling driver for the affected CPU cluster(s) will break if the PowerHAL detects that the Sched_Pixel governor isn't "there" anymore for doing the job that it is supposed to do.
Click to expand...
Click to collapse
I never wrote you can't change it, I wrote people SHOULDN'T change it to avoid the issues you mentioned.

You say to try to deactivate zram. Is there any real benefit? Zram is useful?

Techboyz97 said:
You say to try to deactivate zram. Is there any real benefit? Zram is useful?
Click to expand...
Click to collapse
You save CPU cycles at the expense of additional vRAM.

If you use smartpack kernel manager there's an option to apply all changes with a script on boot. That's the way I've always worked with kernels that won't allow changes to stick on boot

Pixel86 said:
You save CPU cycles at the expense of additional vRAM.
Click to expand...
Click to collapse
WUT? lol

Related

Battery Tweak Epic Edition RC1

Plans for next revision:
*Add in Decad3nce's temperature control
*Bug nullghost till he gets init scripts running so we can have this startup at boot
This is really a tool for power users
If you don't consider yourself 'comfortable' with messing with your phone, then don't.
This is mostly the work of collin_ph, all the ideas are mostly his and I have only contributed in part to getting some things functioning correctly and some optimizations for the Epic.
What does it do?
This tweak creates a service that periodically checks the phone's power source.
If the power source changes, it reconfigures the device for maximum performace, battery and safety.
Tweaks memory settings for current power source
Re-clocks CPU based upon battery remaining or current power source
Reclocks for maximum performance if on AC power
Reclocks for maximum performance and charging safety if on USB
Reclocks for performance and battery if on Battery
As Battery life is diminished, Maximum CPU frequency is lowered
Tweaks scaling charactaristics depending on power sourcee
CPU Scales up less frequently on battery power
CPU Scales up more frequently on USB/AC power
The CPU is allowed to scale dynamically in all charging states based upon CPU usage
Includes a batt-cfg utility to configure the system
You may load 1 of 3 pre built profiles
Manually configure CPU Frequencies in all charging states
Determine the percentage of underclocking as the battery drains
Configure how often to poll the power state / battery statys
Disable batt.sh service from running at startup
Includes a batt-rm.sh uninstall utility
Includes a batt-diag diagnostic utility
Includes optional Disk performance tweaks (enabled by default)
The Tools
The entire 'application' is written in shell code and was first written just to give a performance and battery boost, but since has evolved more and more.
All the tools mentioned will be utilized either through the terminal, or in adb shell.
batt.sh
This is the core of the entire script. Don't mess with it.
The one thing you should do after installing the script:
Code:
Code:
pidof batt.sh
If theres any number showing up after it, then it's working fine.
batt-cfg
This is the 'main menu' of sorts, as it gives the user all the options and allows them to toggle tweaks/mods on the fly.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
batt-diag
It's a diagnostics utility, allowing you or someone knowledgeable to figure out any issues that you may be having with your device and be able to pinpoint exactly where the problem is.
batt-diag -v gives a more thorough output as you can see here; http://pastie.org/1162034
batt-rm.sh
It's a battery tweak removal script, follow the onscreen prompts and it should remove just about any trace of the battery tweak script.
The Presets
The presets are just default configurations that I have set up that can make your phone more efficient without you, the user, having to manually set everything.
The preset of 800 literally means that 800000 is the scaling_max_freq, or the max frequency, that your phone can achieve after you enable it.
Just typing 1, and then enter, you'll be ready and set to go. Same with 2 or 3.
Customize Settings
This is only for the experienced user, and it allows you to manipulate most/ifnotall the configurables on your device.
Note, you do not need to configure anything to enable this battery mod. Default settings will be assigned at 800MHz.
All the settings explain what each option does, so read them carefully.
Disk Boost
Remounts via noatime and nodiratime. Look up what that means on your own, and why it benefits performance the way it does.
Prerequisites needed to run this
Phoenix kernel 1.48 with Epic Experience should run this just fine
If you're running any other kind of rom, feel free to try it but i cannot guarantee that it will work.
This script will WORK even if you don't have the import call at boot, but it won't survive on the next reboot.
You can check via:
Code:
Code:
pidof batt.sh
NOTE: This script will also prompt you to try to run itself as root if you use it in terminal.
Contributors:
Collin_ph
Decad3nce
myn
onicrom
shabbypenguin
nullghost (aka tehdarkknight)
*make sure you are running these as root*
*disable setcpu while running this*
*been reported as rom manager fc's after batt tweak, simple fix reinstall rom manager* - thanks for the tip Raiderep
Finally got that working
This is perfect. As a former hero user, I was thinking to myself a couple days ago "I wonder if anyone is going to port the collin_ph battery tweak," and here it is.
Thanks!
I'm about to head into work and I got this downloaded. I'll put it to the test for the day. Thanx for the port or whatever you call it, I had this on hero and loved being able to get rid of setcpu(which I never really liked) but still have something governing battery use
Is this compatible or even needed with the mix up kernel?
compatible? maybe as i said this is known working on phoenix kernel as for others i cannot say. needed? well that depends are you happy with your current battery life?
Using Phoenix kernel 1.48 with Epic Experience bogged down my phone after installing, im only at 76% battery life, i cant imagine how slow it would be at 20%
edit:
its fine now, i guess it had to load initially?
Whats the best settings you think we should run..for the best battery life
800mhz or you can use configure to keep that even lower... obviously the lower the cpu freq the less voltage it uses = better battery life
I just set this up to the 800mhz defaults. I will come back with results
How does this govern cpu clocking and usage? I'm assuming there's no live governer such as ondemand or interactive at play here?
phoenix 1.48 has a working interactive governor
shabbypenguin said:
compatible? maybe as i said this is known working on phoenix kernel as for others i cannot say. needed? well that depends are you happy with your current battery life?
Click to expand...
Click to collapse
I don't think anybody is That being said, great work shabby, can't wait til nullghost gets his init scripts working.
shabbypenguin said:
phoenix 1.48 has a working interactive governor
Click to expand...
Click to collapse
So how does this affect setcpu? I'm runnin baked 1.3 ghz kernel..does this mean after I install I won't be at 1.3?
Sent from my SPH-D700 using Tapatalk
this is set for 800/1ghz/1.2ghz i included the configure option so people can make teh .conf however they see fit.. if batt.sh runs on it then it will scale from 1.3ghz after you configure it. witht he beta versions i dont believe anyone got it working on baked snack but if you try please let me know if it works what doesnt etc etc
when i try to run batt.sh i get this message...Mount: cant find /mnt/sdcard in /proc/mounts..what does this mean
its an issue im trying to figure out, batt.sh works fine without it, thats part of the disk speedups, in batt-cfg you can disable it
new feature will update tomorrow
not sure why but shootme is screwy for me recently as you can see. i have 0% tws, 37% voice calls at 30 mins 29s display is on for over an hour. screen is at auto, 3g, drm services RUNNING. oh yea im at 1.2ghz
Still have problems with this tweak...this is wat iam getting when I do batt-cfg I hit number one and I get this....
Loading 800mhz default
[: Bad number
Save settings...
Settings saved
Starting batt.sh
Note: when you exit ADB or terminal, you may have to hit
CTRL-C
Then my phone freezes and I have to pull the battery
Sent from my SPH-D700 using Tapatalk

[APP] tegrak 2nd Core [ Enable Both Cores ]

ALL CREDITS TO ::::::: tegrak :::::::
**SAMSUNG GALAXY NOTE** NOW SUPPORTED
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You can set the CPU cores as dynamic hotplug mode, single core mode or fully dual core mode.
This provides easy and simple way to use.
[ Features ]
*Set on boot
Change mode what you selected automatically on boot time.
Menu > Settings
[ Modes ]
*Dynamic Hotplug Mode
Default. Recently, mobile multicore CPUs turn off extra core(s) to save battery life when system is not busy and only use 1 core.
They turn on extra core(s) when system is busy. so system use all cores again.
*Single Core Mode
Use 1 core always. A extra core is shut down. It makes battery life longer but performance is decreased. [ Battery saving, Idle mode, Phone not in use ]
*Dual Core Mode
Use 2 cores always. Performance is increased but battery life is shorter than others. [Example : Zip or Rar Extraction, Photo Editing App Fast Load ]
*Available kernels
- FM Kernel 1.5
- Abyss Kernel 3.1
- Tegrak Kernel Build 31 [ XXKL7]
- Tegrak Kernel Build 31 [XXKL8]
Download ::
Android Market
See more details.
http://tegrak2x.blogspot.com/2011/11/2nd-core.html
**** Kernel Developers ****
If you add support for tegrak's 2nd core, please update or post here so that i can update the kernel support.
Also please let me know here, if the app has helped you in any way, did it make your phone fly away or ... ???
tids2k said:
Also please let me know here, if the app has helped you in any way, did it make your phone fly away or ... ???
Click to expand...
Click to collapse
My Note is flying anyway...
So, i have seen this application and i have a question...What's the meaning of this??I mean...The only reason i can find it usefull is the one core mode that it can battery.But why someone to enable 2 cores all the time??The cores is auto enable when something ''heavy'' running in our device.Why to enable it when otherwise?
If i am wrong please light me up...
Anyway, thank u @tids2k for sharing.You are our researcher...
eliashadow said:
My Note is flying anyway...
So, i have seen this application and i have a question...What's the meaning of this??I mean...The only reason i can find it usefull is the one core mode that it can battery.But why someone to enable 2 cores all the time??The cores is auto enable when something ''heavy'' running in our device.Why to enable it when otherwise?
If i am wrong please light me up...
Anyway, thank u @tids2k for sharing.You are our researcher...
Click to expand...
Click to collapse
Benchmark testing, mostly, though it also adds a little "pop" to application launching and UI performance in some situations.
Examples updated
User Comment on Android Market:
And theoretically 2 cores are more efficient than 1 due to both running at a lower clocked speed than it would with 1 core.
Click to expand...
Click to collapse
At first I was thinking "right whatever mate" - but then I started thinking ... maybe bad idea?
Are there scenarios where this might be true? I'm not sure of by what order of magnitude power consumption goes up by when increasing clocks but I seem to recall my WinMo phone Xscales had an expoential increase - specifically doubling the speed of the processor quadrupled the power consumption. This could be complete garbage btw, it was a long time ago and everything, and have no bearing at all on ARM processors.
diji1 said:
User Comment on Android Market:
At first I was thinking "right whatever mate" - but then I started thinking ... maybe bad idea?
Click to expand...
Click to collapse
The poster of that comment is simultaneous right and wrong.
If you have a multi-threaded app, it may well run faster and use less power by running two cores at a lower speed. However, for a single threaded app or task, a 2nd core is *never* going to be used, so it would just run slower.
The 2nd Core app is quite clear that running 2 cores all the time is going to hose your battery. However, if you are multitasking many apps, running just 1 core all the time will likely mean that that core has to run at a higher clockspeed all the time in order to cope with demand, and could also hose the battery.
Regards,
Dave
foxmeister said:
The poster of that comment is simultaneous right and wrong.
If you have a multi-threaded app, it may well run faster and use less power by running two cores at a lower speed. However, for a single threaded app or task, a 2nd core is *never* going to be used, so it would just run slower.
The 2nd Core app is quite clear that running 2 cores all the time is going to hose your battery. However, if you are multitasking many apps, running just 1 core all the time will likely mean that that core has to run at a higher clockspeed all the time in order to cope with demand, and could also hose the battery.
Regards,
Dave
Click to expand...
Click to collapse
So to be short, we do not need it?
tids2k said:
(...)
*Available kernels
- FM Kernel 1.5
- Abyss Kernel 3.1
- Tegrak Kernel Build 31 [ XXKL7]
- Tegrak Kernel Build 31 [XXKL8]
(...)
Click to expand...
Click to collapse
What does that mean? FM Kernel and Abyss Kernel 3.1 are not supported because of the red color?
Or are these kernels supported?
I'm just asking because of
angelom said:
Yes, but there is no module to run Tegrak overclock
Click to expand...
Click to collapse
robertberma said:
So to be short, we do not need it?
Click to expand...
Click to collapse
I gather that is the case from Dave's reply.
The thing is I hardly ever get below 50% during a days use (gotta love that Note battery!) so I'm looking forward to seeing what this does. I have the juice to consider it worthwhile.
I've been on it for a week and phone is flying fast. Battery drain is not that bad for me. I for one, love it
From the Best : Galaxy Note
Great App
My note is super fast now and battery drain is less along with juice defender...
Fantastic app...keep it up mate
Try to make the home button awake lag less with this app if you can...only request...
Thanks! !!!!
I want to purchase tegrak ultimate, but I receive this error:
Anyone know if the second core will go off when the screen is off when set in dual core mode?
Sent from my GT-N7000 using XDA App
It will remain on until you put the device in hotplug mode.
Sent from my GT-N7000 using xda premium
The device itself is working fine and great, not much of anything needed, not offense to any, but i like it the way it is , might be when we get ICS, we may have some core mod needed.
deadlyheart4u said:
The device itself is working fine and great, not much of anything needed, not offense to any, but i like it the way it is , might be when we get ICS, we may have some core mod needed.
Click to expand...
Click to collapse
Yeah...shame 2nd core doesn't work on ICS yet.
Roukie said:
Yeah...shame 2nd core doesn't work on ICS yet.
Click to expand...
Click to collapse
Damn, my ICS Note uses 1 core 1200mhz yet its way smoother than Gingerbread builds with dual core 1400mhz.
/Amazed
Is this compatible with ICS? I am on ICS Stunner.

Stock Kernel Optimisation

Hello M2 users, y'all probably wondering what did I mean by the thread title above so I'll get straight to the point nice and simple.
Using a stock kernel sucks, any CPU Tuner will go bonkers adjusting frequencies only to see it revert to stock again. So, while browsing for ways to optimise performance and battery in the Xperia, I came across this guide (now updated to this) on our Interactive governor. While it's on a different phone, the explanations are clear enough to tell anyone that yes, this can be adapted so long as you are rooted.
So read the whole post to give yourself an idea on the functions available for you. I use Kernel Adiutor for this as it seems most reliable.
But first, go into your build.prop files and edit this code:
Code:
ro.min_freq_0=300000
Set the frequency to 300000 (300Mhz) and restart or your phone will always be stuck on a higher frequency.
Also in the Kernel Samepage Merging, turn it off. There isn't much of an impact between battery and performance so this function is useless.
So now head into the CPU section, towards Tunables and add the following values according to the screenshot.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[/img]
This gave me 50% battery usage over 26 hours, with 5 hours of Screen on Time used by chatting, gaming, and web surfing. Pretty good looking at all the times I've run the battery with less usage.
Anyhoo, I hope these settings are useful for y'all and if anyone has any modifications to these settings please do share it with your results. This may perhaps be the only guide where we control the governor on a deeper level rather than taking it as it is, so let's squeeze as much juice out of this phone as possible.
Update: These are the settings I've settled with, no negligible battery life and not much of an impact on performance. The voltage tables for the SD400 looks to be dynamic so you can't get an exact reading and anyone who looks at it will suggest you buy a new phone instead >.>
How do you add multiple values on one settings ?
I can't seem to be able to
FrWhyMe said:
How do you add multiple values on one settings ?
I can't seem to be able to
Click to expand...
Click to collapse
Right now you can only add multiples for above_hispeed_delay and target_load. Just tap the space bar each time you add in new values and the app will auto-arrange it for you. If it still doesn't work, what kernel are you using?
Can you repost the photo or write the values please?
basem_ym said:
Can you repost the photo or write the values please?
Click to expand...
Click to collapse
I'm not using this anymore, Sony's stock setting is fine unless you can somehow change the voltage.
AutumQueen92 said:
I'm not using this anymore, Sony's stock setting is fine unless you can somehow change the voltage.
Click to expand...
Click to collapse
I spent last week trying to study and understand those govenors.
Since yesterday, I was trying and tunning the stock interactive govenor
I didnt notice any major changes in performance but I was surprised by power consumption
Ex: I used to play Solitaire everyday more than 2 times a day, each time I spend like 1 hour and my battery drops like 10%
After tunning the interactive govenor my battery drops like 4-6%
Which means its much better than stock
I'm using EagleExperience rom which come with stock kernel
Anyway I just want to know your tunnables because the photo you posted is not opening
I want to compare them with my numbers
Thank you for this post and sorry for bad english
It's not my first lang.
basem_ym said:
I spent last week trying to study and understand those govenors.
Since yesterday, I was trying and tunning the stock interactive govenor
I didnt notice any major changes in performance but I was surprised by power consumption
Ex: I used to play Solitaire everyday more than 2 times a day, each time I spend like 1 hour and my battery drops like 10%
After tunning the interactive govenor my battery drops like 4-6%
Which means its much better than stock
I'm using EagleExperience rom which come with stock kernel
Anyway I just want to know your tunnables because the photo you posted is not opening
I want to compare them with my numbers
Thank you for this post and sorry for bad english
It's not my first lang.
Click to expand...
Click to collapse
These are my current settings, the 300Mhz and 787Mhz share the same voltage and any higher frequency has the same voltage too so it's more efficient to use Sony's settings. The only difference in here is I used Intelliplug to better control how they ramp up.
AutumQueen92 said:
These are my current settings, the 300Mhz and 787Mhz share the same voltage and any higher frequency has the same voltage too so it's more efficient to use Sony's settings. The only difference in here is I used Intelliplug to better control how they ramp up.
Click to expand...
Click to collapse
In target loads, you have frequencies that aren't supported on stock kernel (1.4GHz)
DavidMKD said:
In target loads, you have frequencies that aren't supported on stock kernel (1.4GHz)
Click to expand...
Click to collapse
That's because my kernel is overclocked.
above_hispeed_delay: 40000 998400:45000 1090400:50000 1190400:55000
boost: 0
boostpulse_duration: 0
go_hispeed_load: 99
hispeed_freq: 787200
io_is_busy_: 0
min_sample_time: 0
sampling_down_factor:1
sync_freq:300000
target loads: 80 600000:80 787200:90 998400:95 1090400:97 1190400:99
timer_rate: 60000
timer_slack: 480000
up_threshold_any_cpu_freq: 0
up_threshold_any_cpu_load: 0
Ksm off , no hotplug min:300 mhz max:1190 mhz
I am using this settings for now. I tried to lock 300-787 mhz for the my daily usage (whatsapp, youtube, cm browser, simple games like fun run) high frequences for heavy games, installing apps.
Is that config fine ? I tried semil's config its battery performance was great but i think it is slow config.
batuskas said:
above_hispeed_delay: 40000 998400:45000 1090400:50000 1190400:55000
boost: 0
boostpulse_duration: 0
go_hispeed_load: 99
hispeed_freq: 787200
io_is_busy_: 0
min_sample_time: 0
sampling_down_factor:1
sync_freq:300000
target loads: 80 600000:80 787200:90 998400:95 1090400:97 1190400:99
timer_rate: 60000
timer_slack: 480000
up_threshold_any_cpu_freq: 0
up_threshold_any_cpu_load: 0
Ksm off , no hotplug min:300 mhz max:1190 mhz
I am using this settings for now. I tried to lock 300-787 mhz for the my daily usage (whatsapp, youtube, cm browser, simple games like fun run) high frequences for heavy games, installing apps.
Is that config fine ? I tried semil's config its battery performance was great but i think it is slow config.
Click to expand...
Click to collapse
I try not to limit my frequencies since the point is to go high performance only when needed. I'm not sure about your config since I never turn off hotplugs.

[TESTING] Control Swappiness tendency

Hello guys, we have another new option in L Speed.
We are now able to control a swappiness tendency, how much aggressive we want to swap the memory.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You can find this option under virtual memory section as you can see on this image. If there is any issue, please report.
Governor tuner doesn't work on this build.
Thanks for testing
Paget96 said:
Hello guys, we have another new option in L Speed.
We are now able to control a swappiness tendency, how much aggressive we want to swap the memory.
You can find this option under virtual memory section as you can see on this image. If there is any issue, please report.
Thanks for testing
Click to expand...
Click to collapse
Question: does this just change the swappiness percentage, that also can be changed in KA, or are other perimeters changed as well?
Thanks
martyfender said:
Question: does this just change the swappiness percentage, that also can be changed in KA, or are other perimeters changed as well?
Thanks
Click to expand...
Click to collapse
As you can see in L Speed logs, just swappiness.
Sent from my Nexus 5 using Tapatalk
Paget96 said:
As you can see in L Speed logs, just swappiness.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
My 1GB device uses zram by default with a 400mb swap file and swapiness set to 100%. I have overcommit ratio set to zero. I have played with these settings in the past, but I'm not sure if I noticed any difference. Does lowering swapiness improve battery and cpu useage. Also what about lowering the amount of zram space? The only memory intensive app I have is GT Racing 2 Real Racing, but I rarely ever play it. Based on an xda guide, I have dirty_ratio set to 40 and dirty_background_ratio set to 10.
https://forum.xda-developers.com/android/general/guide-comprehensive-guide-to-kernels-t3121088
Thanks
martyfender said:
My 1GB device uses zram by default with a 400mb swap file and swapiness set to 100%. I have overcommit ratio set to zero. I have played with these settings in the past, but I'm not sure if I noticed any difference. Does lowering swapiness improve battery and cpu useage. Also what about lowering the amount of zram space? The only memory intensive app I have is GT Racing 2 Real Racing, but I rarely ever play it. Based on an xda guide, I have dirty_ratio set to 40 and dirty_background_ratio set to 10.
https://forum.xda-developers.com/android/general/guide-comprehensive-guide-to-kernels-t3121088
Thanks
Click to expand...
Click to collapse
It depends on whether you use swap/zram or no, lowering swappiness will reduce a "aggression" of how often kernel swap the memory. If it's lower, it's less, so less frequent CPU usage.
Paget96 said:
It depends on whether you use swap/zram or no, lowering swappiness will reduce a "aggression" of how often kernel swap the memory. If it's lower, it's less, so less frequent CPU usage.
Click to expand...
Click to collapse
I hadn't investigating vm changes much on this newer rom until yesterday. My device uses zram only, by default. Size 400mb, swapiness 100%. About 24 hrs ago I changed them to: size 250, swapiness, 40%. So far, my device appears to have less lag. Other settings I changed recently are dirty_ratio, 40, dirty_background_ratio,10, overcommit_ratio, 0, vfs_cache_ pressure remains at the system default of 100%
Do your cache reclaiming and cache allocation settings in lspeed, tune these parameters?
I/O tweak related: I had also enabled I/O boost and I/O extended que. I was experiencing some system lag, especially after wakeup, device unused overnight. Is it possible these two settings were the cause of the lag? I have them disabled now to test.
Thanks
martyfender said:
I hadn't investigating vm changes much on this newer rom until yesterday. My device uses zram only, by default. Size 400mb, swapiness 100%. About 24 hrs ago I changed them to: size 250, swapiness, 40%. So far, my device appears to have less lag. Other settings I changed recently are dirty_ratio, 40, dirty_background_ratio,10, overcommit_ratio, 0, vfs_cache_ pressure remains at the system default of 100%
Do your cache reclaiming and cache allocation settings in lspeed, tune these parameters?
I/O tweak related: I had also enabled I/O boost and I/O extended que. I was experiencing some system lag, especially after wakeup, device unused overnight. Is it possible these two settings were the cause of the lag? I have them disabled now to test.
Thanks
Click to expand...
Click to collapse
Yes, L Speed tune those parameters. And yeah, those can result a lag, test it and report to me.
Since we don't have anything to complain about this option, I assume we don't have to test it anymore. You are pleasured with those parameters, so I'll close this thread.
Thread re-opened, waiting for some reports about this option and potential improvements.
Thanks for support
We are also fine with this option, nothing much to test here.
If you have any problems with this option, please write to this thread.
Thanks for support

[OPEN SOURCE][TWEAK] Project WIPE - ONE hr longer battery life with LITTLE compromise

Update
20180803:
Project WIPE is now OPEN SOURCE.
See: https://github.com/yc9559/cpufreq-interactive-opt/tree/master/project/20180603-2
20180628 (20180603.2):
misc: change input boost strategy, first value of targetloads 80->(3~60) for 2.5s, may reduce jitters while interacting
misc: change dynamic freq lock from 2.0G to 1.9G
template: new template architecture, easy to transplant, easy to read,but a bit abstract
template: check whether parameters have been applied before the script finish
template: add platform name
template: fix hmp parameters chmod error
template: fix ignore_hispeed_on_notif error
template: turn off msm_thermal/core_control
template: fix clusters stuck at the highest freq problem caused by perfd
Supported SOCs
Snapdragon 835, 820/821, 810/808, 801/800/805, 660, 636, 652/650, 625/626
Exynos 8895, 8890, 7420
Kirin 970, 960, 950/955
Helio X20/X25, X10
Atom z3560/z3580
Introduction
Compared to manually tuning interactive governor parameters, can we go further?
YES.
The interactive governor is very popular in Android phones. In the past, there have been projects that have achieved excellent life by tuning its parameters, such as AKT and Helix Engine. This is also true of this project. I used to benefit from @soniCron's tutorial posts, "Advanced Interactive Governor Tweaks". After repeated argumentation, I got a set of suitable parameters to share on the web. But soon I received such replies, "Why scrolling screen is laggy?", "Why the game isn't running smoothly?". After a long period of trying, I realized that you can not have it both ways. This should have a better solution. In order to avoid some misunderstanding of interactive, I try not to rely on understanding from the tutorial posts, in-depth source code to understand the role of each parameter in the process.
Tuning the interactive parameters by our feeling, there are the following problems:
difficulties to have clear feedback
hard to reach the balance of power consumption and performance
complex interactive parameters
This project aims to solve the problems above by creating automated programs as follows:
real world workload capture
interactive governor process simulation
cost function of lag and power comsuption
iteration to obtain local optimum using NSGA2
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
S821 Kyro Gold powermodel
The workload sequence captured on Nexus 9
This idea is similar to EAS, which takes into account both performance and power consumption costs through power consumption models and workload sequence, but obviously, EAS has a much lower response time and replaces tuning with decision logic.
Compared to manual tuning parameters, Project WIPE generates parameters that can adapt to multiple styles of workload sequences and produce a suitable combination of parameters for almost all mainstream SOCs.
This project began in July 2017, reached the first version in November 2017, and ended after the completion on June 3, 2018. Previous tests and feedback for improvements were performed on the Coolapk platform and the results were excellent. Now I share this result in the XDA forum.
Profile contains...
This is an executable script file generated by Project WIPE, the Workload-based Interactive Parameter Explorer.
Performance configuration brings four modes:
Balanced: ~1 hour longer on-screen battery life with little performance compromise, recommended
Laggy: ~1.5+ hours longer on-screen battery life, may lag in some scenarios where the load fluctuates dramatically
Power-wasting: ~0.5 hour longer on-screen battery life, balanced profile with quicker response
Low latency: for soft real tasks, butter smooth in tense gamming for a long period
In addition, it also includes other parameter tuning, such as IO scheduler and HMP parameters, to unify the rest of the parameters for a more consistent experience.
Requirements
ROOTED
Deep sleep time exceeds 90% of standby time
No other modifications which may tweak kernel tunables automatically (e.g. Advanced Kernel Tweaks)
Do it by yourself
Download performance configuration corresponding to your phone SOC, and extract it
Move it to "/data", rename it as "powercfg", set the permission of this file to 0755
Use the commands below to apply temporary changes to your system, it will recover after reboot
After applying changes, use `sh /data/powercfg debug` to make sure that it works
Use it with utilities to switch mode according to Top-App, such as Tasker, Magisk, vtool
Switch mode:
Code:
# switch to Balanced
sh /data/powercfg balance
# switch to Laggy
sh /data/powercfg powersave
# switch to Power-wasting
sh /data/powercfg performance
# switch to Low latency
sh /data/powercfg fast
Download
https://github.com/yc9559/cpufreq-interactive-opt/blob/master/20180603-description.md
OR
See the "Downloads" TAB of this thread
Credit
@soniCron: Advanced Interactive Governor Tweaks; Buttery smooth and insane battery life!
Distributed Evolutionary Algorithms in Python
Comrades who have helpful feedback on the Coolapk platform (in ascending order of time):
Code:
@Fdss45 @yy688go @Jouiz @lpc3123191239 @小方叔叔 @星辰紫光 @ℳ๓叶落情殇 @屁屁痒 @发热不卡算我输 @予北 @選擇遺忘 @想飞的小伙 @白而出清 @AshLight @微风阵阵 @半阳半心 @AhZHI @悲欢余生有人听 @YaomiHwang @花生味 @胡同口卖菜的 @gce8980 @vesakam @q1006237211 @Runds @lmentor @萝莉控の胜利 @iMeaCore @Dfift半島鐵盒 @wenjiahong @星空未来 @水瓶 @瓜瓜皮 @默认用户名8 @影灬无神 @橘猫520 @此用户名已存在 @ピロちゃん @Jaceﮥ @黑白颠倒的年华0 @九日不能贱 @fineable @哑剧 @zokkkk @永恒的丶齿轮 @L风云 @Immature_H @xujiyuan723 @Ace蒙奇 @ちぃ @木子茶i同学 @HEX_Stan @_暗香浮动月黄昏 @子喜 @ft1858336 @xxxxuanran @Scorpiring @猫见 @僞裝灬 @请叫我芦柑 @吃瓜子的小白 @HELISIGN @鹰雏 @贫家boy有何贵干 @Yoooooo @揪你鸡儿
[/SIZE]
XDA:DevDB Information
Project WIPE, Tool/Utility for all devices (see above for details)
Contributors
yc9559
Project: https://github.com/yc9559/cpufreq-interactive-opt/
Version Information
Status: Stable
Current Stable Version: 20180603.2
Stable Release Date: 2018-06-28
Created 2018-06-09
Last Updated 2018-06-09
Reserved
self pop
How to switch profiles by using kernel auditor?
And also to check if the profile is switched?
bagajohny said:
How to switch profiles by using kernel auditor?
And also to check if the profile is switched?
Click to expand...
Click to collapse
Use simulate init.d to execute the shell script.
Check whether the interactive parameters have changed.
well, self-pop again
what is the font used in images tell please
can support exynos 7870 ?
Did someone tried on kirin 970?
Sent from my HUAWEI BKL-L09 using XDA Labs
Want to try this but didn't fully understood the execution part
It seems work on my Mi4LTE, now on see how the performance about a weeks
pokepokepoke said:
what is the font used in images tell please
Click to expand...
Click to collapse
PingFang SC
luuphong559 said:
can support exynos 7870 ?
Click to expand...
Click to collapse
It actually can, but I won't support this soc due to the little market share of it.
Dbj.Dhaval said:
Want to try this but didn't fully understood the execution part
Click to expand...
Click to collapse
Go to this link: https://github.com/yc9559/cpufreq-interactive-opt/blob/master/20180603-description.md
Some pictures on this webpage will help you to understand it.
wkobaint said:
It seems work on my Mi4LTE, now on see how the performance about a weeks
Click to expand...
Click to collapse
I'm looking forward to your reply.
Can you update a version forn Snapdragon 430
Im eager to try. Cuz the Advanced Interactive Governor Tweak too complex for me.
toji12 said:
Can you update a version forn Snapdragon 430
Im eager to try. Cuz the Advanced Interactive Governor Tweak too complex for me.
Click to expand...
Click to collapse
Sorry, S430 is not supported.
yc9559 said:
I'm looking forward to your reply.
Click to expand...
Click to collapse
I've a little bit problem.
Why your script doesn't stick on one of my Mi4c?
I had some setup same as on my Mi4 but it can't stick.
wkobaint said:
I've a little bit problem.
Why your script doesn't stick on one of my Mi4c?
I had some setup same as on my Mi4 but it can't stick.
Click to expand...
Click to collapse
Do not execute the script for s801 on s810 device
yc9559 said:
Do not execute the script for s801 on s810 device
Click to expand...
Click to collapse
just executed the script (balance) for my sd810. debug shows it applied but whenever the script is executed it shows few errors like CPU4 permission denied
powercfg has 755 permission correct
"can't create /sys/devices/system/cpu/cpu4/online: permission denied
can't create /sys/devices/system/cpu/cpu5/online: permission denied
can't create /sys/devices/system/cpu/cpu6/online: permission denied"

Categories

Resources