yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] droidphile:
It's tough to answer this question as I don't own or have used Desire. Depending on architecture (the Soc and CPU) the ideal governor and ideal settings will vary across devices. So you will have to experiment and see for yourself if those settings gives the best result. If not, understand which settings could be tuned and check again. Finding the best settings is trial and error.

Hm, Pegasusq is a highly sensible governor from Samsung. Governors on multi-core devices should ideally be multi-core aware; as in they should do hotplugging of cores. Afaik, nightmare governor doesn't hotplug. If it's really worth adding a description, I will.
[Galaxy S II General] petrevirgil:
It is possible to manually add SmartassV2?
[Galaxy S II General] jjhiza:
Sure it is, but you have to find a guide on kernel building. This is more of a reference thread, intended to inform people about the basic ins and outs of how governors and schedulers work.
[Galaxy S II General] Vinnom:
Man, I don't now if already resolved this problem, since is very old post. But I could change all the parameters doing this:

In the script, before the line to change certain parameter, insert a line with chmod 777.

After the line that you changed the parameter insert chmod "xyz", where "xyz" is previous permissions to that file.

When I tried this, all the parameters was setup correctly. Try to mark on script manager "su" box and "boot" box. I don't now if both is needed, but I let like this and works. ^^
[Galaxy S II General] petrevirgil:
For a while i use most of governor to test them which one is the best playing FIFA 12 frec min245-max.1401

I noticed that interactiveX is quite good using lower frec.more often than other governor.and for exam.1401 is not used so often.

SmartassV2 use all frecv.but max.1401 is used more often

Which one do you think is the best to use?

It is ok to use ?

SmartassV2-sleep governor

Min.sleep =245 mhz

Max.sleep =768 mhz

and

InteractiveX=wake governor

Min.wake =245 mhz

Max.wake =1400 mhz

I would like to know if my combination is a balance between battery and performance and if it is ok

??????:confused:
[Galaxy S II General] droidphile:
I'm not a fan of using different governors for screen-off and screen-on state. Anyhow since smartass2 doesn't have a screen-off cap frequency, your settings should be fine.
[Galaxy S II General] Unexist6969:
Yeah screen on/off govs can cause a lot of issues.. and it's totally unneeded imo.

Just like putting a hard max freq limit on screen off.

The faster your device goes to sleep the best, and changinf to the above make it worse

Thanks a lot too for all the info droidphile:)

I've been reading and calculating for hours lol=p
[Galaxy S II General] petrevirgil:
So what is the best governor to use ?balance between battery and performance....

I read about SmartassV2 and I tested ,it use all frecv.

but interactiveX for example from 245mhz to 1401mhz use frecv.1024mhz and all frec.down,maximum frecv.is used rarely....so I think its a good thing for phone....,
[Galaxy S II General] jjhiza:
You're never going to get a straight forward answer on this. Every phone works differently with each ROM/kernel combo. One person's settings may allow them to get 18+ hours of battery, while those same settings may only get you 6 hours.

The OP has all the information you need in order to mix and match governors and schedules, and arrive at the very best setup for you. Just read through it, and spend some free time mixing and matching, and testing out the options you have available. That's really the best thing you can do.
[Galaxy S II General] kenpen:
Thanks for the info
[Galaxy S II General] Unexist6969:
@droidphile or anyone

Shouldn't interactive gov be very battery friendly when the cpu is idle? Or for deepsleep?

With ondemand gov cpu usage is around 5% when idle @200mhz

With interactive gov the cpu usage = 0-1% when idling @200mhz (tested with cool tool)(no background apps)

I was using interactive gov with 2nd core always on & sched mc =2 , idle+lpa

And I noticed that deepsleep was quite good for 2nd core always on. (Almost the same if I use aftr+lpa/hotplug/ondemand/sched mc off)
[Galaxy S II General] Unexist6969:
Read your posts about interactive and that explains why, but should it be more battery friendly in deepsleep too? In aftr/idle or lpa states or does it not make any sense ?
[Galaxy S II General] droidphile:
When device enters deep sleep (after going through one or more low power states like idle/aftr/lpa etc) most of the peripherals are shut down. And CPU is NOT scaled up or down. Hence governor doesn't play any role during deep sleep, neither it matters which was the active governor. Interactive or ondemand or any X governor - deep sleep percentage will be the same. Wrongly configured apps, unusually frequent email/weather/widget syncs, etc might affect/delay entering deep sleep. Unless governor settings had issues which causes SOD when screen goes off, one governor will not cause better/worse deep sleep percentage than another.
[Galaxy S II General] ivica122:
I just wanted to say thanks! I'm a noob with Android, and entire first page of this tread is gold! THANK YOU!
[Galaxy S II General] bigknowz:
SIO tweaks

In the franco thread, there are tuning ideas for different schedulers, but franco doesn't use sio. Does anyone know tweaks that can be made to sio?
[Galaxy S II General] 19lrak:
love the information's thanks a lot.
[Galaxy S II General] petrevirgil:
It is possible to adjust those tweaks manually from phone,for example using an application like SetCPU,to set those value?

Or adjust from Xplore but I don't know where or what to adjust?
[Galaxy S II General] Vinnom:
Boostfreq, boosttime, boostpulse

Quick question:

New cyanogemmod gave to me boosttime, boostpulse and boostfreq to ondemand governor...

How this works? Anyone can answer me?

Thx
[Galaxy S II General] 19lrak:
noob question

what is the alternative gov on lulzactive when it comes to battery saving??

thanks in advance
[Galaxy S II General] miten_sheth:
Thanks a tonne guys.. great work..
[Galaxy S II General] droidphile:
Yes setcpu is an easy app to tune governor if one does not want to write a script. Do not adjust from Xplore or any file manager. Those values are lost after reboot. Kernel sets its default governor values on every boot. Our init.d script or SetCPU app overrides it - this is how it works.

And next time, please don't quote the whole OP !

I haven't looked at their repo yet. Is it for exynos platform?

Interactive based governors are fun to experiment with. Personally, I'd always go for ondemand based governors for battery/performance.
[Galaxy S II General] hisname:
what about smartassH3?

Sent from my supercharged :tank:
[Galaxy S II General] 19lrak:
Thanks boss,,:thumbup:
[Galaxy S II General] bigrammy:
Very informative many thanks for taking the time to explain it :good:
[Galaxy S II General] dalya:
thanks a lot.. great job droidphile:thumbup:
[Galaxy S II General] kenshinjar:
thanks for your topic, very helpfull.

could you suggesst me the best setting for N7000, batery life and performance no lag,

ex: when using app like opera, internet will take 1core... using heavy game will take 2core.... some thing like that :D

go: ondemand, user space, performance, savepower.

ch: noop, cfq, deadline.

i'm on philz kernel

thanks !!!
[Galaxy S II General] yazzabo:
R: [REF][TWEAKS] Kernel Governors, Modules, I/O Schedulers, CPU Tweaks, AIO App Confi

Is there a way to see the script of .ko module file??? I just need to see which one contein script for SIO scheldure and include in my kernel or just edit e new module with it!
[Galaxy S II General] bogdan1980:
Ondemand plus sio.
[Galaxy S II General] droidphile:
Hmm what? Script of a module? I haven't heard of I/O schedulers in the form of loadable modules.
[Galaxy S II General] yazzabo:
R: [REF][TWEAKS] Kernel Governors, Modules, I/O Schedulers, CPU Tweaks, AIO App Confi

Yes sorry I mesh together 2 question!!! 1- how can I open .ko module file to see them?

2-where I can find the SIO script?

For the second I fuond the answer on githubs, can u help me with first?

Thanks a lot!
[Galaxy S II General] kalinusa:
I would really apreaciate help with two quick questions/advice:

1. When I change values for the governor with NSTools are they applied immediately? Like the ramp times and steps and what not (using Lulzactive)

2. I am using the suggested balanced settings for the Lulzactive governor on the main page. What I am noticing when observing the time occupied in each state when the screen is OFF and I am listening to PowerAMP, 50% 200mhz and 50% 400mhz. (NEXUS S device, i know it is a GSII thread). I really doubt PowerAMP needs 400mhz. Is there any way to tweak the governor to go down to 200mhz. My current setting copied from the main page limits the device to 400mhz when screen is off. With other governors I see that PowerAMP stays at 200mhz 100% of the time when the screen is off.

I hope my description is somewhat clear.
[Galaxy S II General] droidphile:
I don't think there's a method to decompile a .ko module and see the code. You can find source of the module in the repo of your kernel dev's git.

1) If NSTools uses a service like that of SetCPU then yes, the values are applied instantly. If the app creates an init.d script instead then no, you need to reboot for the values to be effective.

2) Firstly, no need to worry much about spending 50% time on 400mhz when screen is off. Our display is infact the biggest consumer of power, not the CPU. So spending sometime on 400 mhz when screen is OFF is nothing to worry about too much.

To try and limit jumping towards 400 mhz, you can reduce pump_up_step and increase up_sample_time. But this will affect the behavior during screen-on too. Solution is to use SetCPU to have a screen-off profile. Keep your main and settings as current. And for the screen-off profile, set lulzactiveq as governor with lower pump_up_step and higher up_sample_time. Let max freq be 400 mhz for the profile.
[Galaxy S II General] :
The only reliable method when there is no source code.. to edit a ko module i found is to use IDA professional to reverse engineer it and view all the source code... And believe me.. All source are belong to us by doing so xD
[Galaxy S II General] yazzabo:
R: [REF][TWEAKS] Kernel Governors, Modules, I/O Schedulers, CPU Tweaks, AIO App Confi

Thank you very mach!!
[Galaxy S II General] zxstyle07:
thanks for the awesome write up
[Galaxy S II General] rolf2000:
crispo 4.2.2

Hi,

I am using NStools for my Nexus S 9023 and do not have a

Governor indicated.OC works at 1200, but bad benchmark values at quadrant (close to 1200 points).

With 1400 Mhz I have an immediate crash.

I have CM of Febr.26 installed(nightly) and assume that NSTools is not adapted to 4.2.2 yet.Must I use different setting?

Best,
[Galaxy S II General] electricsheepdreamer:
Hi Droidphile.

I took some time for something I've always wanted to do ever since I saw this thread for the first time and hit Thanks on all your posts.

(not done before, I must notice ;))

And I would just want to add that I was never bored reading anything around here and that this is the best and by far most informative thread I've ever encountered. I find myself rereading it every now and then.

A masterpiece, really.

Thanks once again. (Still have few pages left to do) :):thumbup::thumbup:
[Galaxy S II General] BoRiSGz:
So much information.

Thank you Droidphile!

I have added this amazing topic to my favorites, and be reading it to better understand everything.
[Galaxy S II General] droidphile:
1. Quadrant scores are worth nothing.

2. Try to increase voltage of 1400 mhz. See if you still have the crash

3. If you doubt the app compatibility, use a different app to check. SetCPU for example.
[Galaxy S II General] ..Cory..:
This is honestly the most useful thing ever!!!

Sent from my very expensive paperweight!
[Galaxy S II General] CodeVanya:
@droidphile, wow! that's an amazing thread! thanx alot!
[Galaxy S II General] Wahrheit:
Hello, i have one little question...

So if i want to do heavy gaming i should use performance and VR I/O?

I always use performance but i wasnt sure about shedulers... I hope someone can help me :D
[Galaxy S II General] Madaditya:
That is the purpose of this thread !

Read and find...research for yourself...

They depend on devices!

Best is you read an awesome OP above....interpret yourself,apply...and report!

No offence

Typed from my Iyokan!

And...Be the smart Geek! :cool:
[Galaxy S II General] haybill:
I realise that saying Thanks just requires a Click--but, in this instance, this Thread deserves a written Thanks to Droidphile for his huge amount of hard work--now I just need to fully digest ALL the info.

Thanks again.
[Galaxy S II General] advocates:
I just downloaded the no frills cpu control and I only have 5 governor under the cpu setting, I've seen some thread bout them having smartassv2 and stuff but mine doesn't. how do I get those?
[Galaxy S II General] gkkg:
AW: [REF][TWEAKS] Kernel Governors, Modules, I/O Schedulers, CPU Tweaks, AIO App Conf

Your kernel needs to support these governors, flash another kernel that supports more governors.
[Galaxy S II General] advocates:
how do I flash another kernel? I can stay on the same omega rom which I'm using right?
[Galaxy S II General] yazzabo:
R: [REF][TWEAKS] Kernel Governors, Modules, I/O Schedulers, CPU Tweaks, AIO App Confi

Wich setting in kernel or in build.prop I have to change to have an higer responsivity??
[Galaxy S II General] kush3495:
help needeed

Give it a few hours after you reset the gauge. It may still show you funny

values for those period, then the battery percentage should be fine.

Code:

echo "1" > /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg

can u help me to reset gauge .on my galaxy note N7000.

/m having prob. with my battery after flashing custom rom.

:kushal patel
[Galaxy S II General] droidphile:
Normally just giving it a few hours without doing anything should correct the battery percentage display. If you insist on resetting the gauge, I'm not sure about the file name in Note 1 which corresponds to fuel gauge.

If the file name is fg_reset_soc , try this

cd /sys
find . -name fg_reset_soc

Then echo 1 to that file.
[Galaxy S II General] parag1dubey:
Droidphile, I really appreciate the time and effort you put in this guide :) Although half of it was way over my head. i have two questions, if you dont mind. I have a Galaxy S2. I am on rootbox rom with dorimanx kernel 9.5. hyper is the default governor and row is the scheduler. May I know which would be a better combination for battery life? And two, how can I set the smooth scaling level? Does limiting smooth scaling level to 1000mHz mean that the cpu frequency is limited to 1000mhz as against the default 1200? Thats three questions :P
[Galaxy S II General] droidphile:
1) Only governor it's settings we chose affect battery. I/O scheduler has nothing to do with battery. Hyper is an ondemand with suspend frequency if I'm not mistaken. You can tweak it for battery referring sample ondemand settings in this thread or any other.

2) Smooth scaling has to be enabled in governor. There will be a system file (in same dir as governor's) and normally will corresponds to frequency step.

3) Limiting smooth scaling to 1000 doesn't mean max frequency limited to 1000. It only means when CPU needs to jump to highest frequency, it will jump to smooth scaling freq first and then to max. This is in the hope of saving some juice, and only ondemand based governors will have smooth scaling support.
[Galaxy S II General] gartzen:
Hi!

First of all, thanks for this awesome guide. It made me learn some new concepts, and that's always good. But I keep asking one thing to myself and although I've done some testing I couldn't reach any conclusions: I use conservative governor because the battery life I get. But sometimes the phone lags. Not much, but it does. So I've been trying to find the next governor with best battery life with a better performance, but every one I tried increased the battery conspumption a lot (preformance too). It's like there's no next step, like I have to go up an entire floor. Or maybe what I'm looking for, simply doesn't exist.

I thought about making a script for conservative, but I wanted to discard other possibilities before going so deep.

Thanks in advance.
[Galaxy S II General] DarthSudo:
gartzen, have you tried the performance tweaks for the conservative governor listed at the beginning of this guide? Or maybe something a little scaled back from that?
[Galaxy S II General] grinder777:
AW: [REF][TWEAKS] Kernel Governors, Modules, I/O Schedulers, CPU Tweaks, AIO App Conf

Thank you for this great threat!

stratosk added to his semaphore kernel for sgs i9000 the ROW-sheduler

https://patchwork.kernel.org/patch/1862241/

Maybe you like to add to your sheduler descriptions

md p9516 - root -waiting for cwm -- thnx2all
[Galaxy S II General] svkmirec:
super, thanks for your greak work.

lets erase thanks from starting posts, it quite laggy in tapatalk :)
[Galaxy S II General] LibertyMonger:
Hi, Thanks for this thread it's a lot of info! I read through it all and I am trying to learn but I can't find any info anywhere about my issue. I cannot run any of the AK kernels, I ALWAYS get freeze-up not long after booting. no matter what I do it never fails, always freezes. I can run other kernels like Franco but have never been able to run AK kernel. I see everyone else is loving it. I can't get any help from anyone, no one will give me any advice or tell me why this is happening or any clues on how to fix it. I know I just can't run AK I guess but it bugs me. Any help will be greatly appreciated. It doesn't matter which ROM I am on either, Atom or Xylon or whatever, always freezes and have to pull battery. Please any help here is my last_kmsg
[Galaxy S II General] LibertyMonger:
I just would like to know why and if there are settings I can change to stop the freeze ups. i have tried raising voltages and that didn't help. Anyway I tried searching and the best I could find was only for an occasional freeze up or reboot, that is normal but my issue happens just a few minutes every time I boot up.
[Galaxy S II General] droidphile:
Let GPU voltages be stock too. I will take a look at the kmsg. First uninstall all CPU tuner apps like nofrills/setcpu etc before checking.
[Galaxy S II General] arinsms:
As in ur example:

max_load_freq is greater than up_threshold * current frequency

max_load_freq=up_threshold * current frequency

1200=100%*1200mhz

if set up_threshold to 100% they will 1200 right?

assuming in ur example

587 / (0.85 - 0.05) = 733

587/1200=up_threshold=0.489=48%

So at 1200mhz it will scale to 733mhz right?

Are my calculation is correct?:rolleyes:
[Galaxy S II General] Gmot:
Very clarifying!! Thank you a lot!!
[Galaxy S II General] droidphile:
Your post is a little confusing. Why would you calculate max_load_freq as up_threshold * current frequency?

Max_load_frequency is the maximum among a set of frequencies calculated as load * average_frequency [average frequency since last sampling]. It's not rounded off and might be some weird number like 645 mhz which might not actually exist in the frequency table. Do the calculation again according to this, and you will find the answer.
[Galaxy S II General] bodzik155:
Odp: [REF][TWEAKS] Kernel Governors, Modules, I/O Schedulers, CPU Tweaks, AIO App Con

Hi guys. I have one probably simple question. Which governor and which settings for it will give me most performance? Battery consume doesn't matter. I have semaphore on i9000.
[Galaxy S II General] zertyx:
I guess governor 'performance' :)

Which will keep your cpu at full speed all the time.

Sent with my Htc Desire S
[Galaxy S II General] bodzik155:
Odp: [REF][TWEAKS] Kernel Governors, Modules, I/O Schedulers, CPU Tweaks, AIO App Con

I have only ondemand, conservative, smartassv2 and interactive. And tip how to customize those numbers like sampling, threshold etc. would be nice ;). Yes, I rode 1st post.
[Galaxy S II General] szucsgf:
Use interactive. It should be the fastest of those governors. If you need more speed, raise hispeed_freq one or two steps and lower the "load" values a few percentage points.
[Galaxy S II General] andrewfung888:
Hi guys,

i have a s3. What do you think about the power consumption whether i should keep the number of core online down or keeping the core running in lower frequency by turning on more cores.

It seems that it consumes more power in high frequency because power is proportional to voltage square and frequency. Or there should be an optimal on number of cores online and frequency running.:confused:
[Galaxy S II General] Moon83:
Searched but couldn't find information on tweaking the intellidemand governor more towards battery saving. Any tips would be great.

Sent from my HTC_Amaze_4G...Go Canes []_[]
[Galaxy S II General] Advanced Ali-001:
HOW CAN I ROOT MY SGS2??????

ONLY FLASH A KERNEL WITH ODIN??????????

HELP...:mad:
[Galaxy S II General] scream4cheese:
First off, do not "yell" for help. Don't caps lock your words.

Second, there are a few threads that will show you on how to root. Search for it in the appropriate thread. Have you also tried Google search? The answer is right under your nose.

Good luck
[Galaxy S II General] elitevet:
So advanced, the capslock never goes off, eh?

sent from CM powered SGS
[Galaxy S II General] Out2kill:
Did you just pick a random thread to ask this? Try the search feature
[Galaxy S II General] -Harsh-:
any info about fiops scheduler ??
[Galaxy S II General] elitevet:
https://www.google.com/search?safe=...d&qsubts=1365253880814&action=devloc&hl=en-US

sent from CM powered SGS
[Galaxy S II General] TJSteveMX:
I recommend you galaxys2root.com just because he have step by step instructions including videos and that help me a lot. ;)

Sent from Samsung S2
[Galaxy S II General] E43JAP:
Hi everyone, nOOb here.

Let me try and explain my situation...

I am using an SC-02C(GT-I9100) running PACRom 19.9.1 with a modded Siyah kernel. (MCM v5 vsync sysfs+) with -25mv UV across the board. Very nice. (6 1/2 hrs. screen on)

My problem is my GPS does not work. Up until android 4.1.2, there is a "patch" to fix this. As of 4.2+, this "patch" does not work anymore.

Apparently there is a KBC kernel that has GPS "working", supposedly, haven't tried it yet so not sure.

Anyway, is there anyone with experience that knows how to take the "working" GPS from one kernel and combine it with the other kernel?

Or maybe some advice on how to make a new "patch" to work with 4.2+? As for this is the only thing that doesn't work with the SC-02C as of 4.2+. Would like to keep using the modded siyah kernel because of "stweaks, bln, stability and battery life."

Please, some advice, or point me in the right direction to find some info on how I can solve this problem.

Thanks in advance for any info.

E:cool:
[Galaxy S II General] tghandour:
You can tweak any ondemand based governor like interactive towards performance using the values supplied in the 1st post using Set CPU app or similar apps like Voltage Control or System Tuner..

Sent From My Galaxy S2

Running AllianceROM v7.02

Powered by Apolo-JB-4.4-TWRP

---------- Post added at 08:15 PM ---------- Previous post was at 08:06 PM ----------

You might check this thread:

http://xdaforums.com/showthread.php?t=1817558

http://articles.pubarticles.com/6-steps-to-fix-samsung-galaxy-s2-gps-issues-1309924102,239131.html

http://answers.pubarticles.com/5394...-samsung-galaxy-s2-how-to-fix-1306980137.html

http://xdaforums.com/showthread.php?t=1656005

You might also GPS Fix from Google Play..

Sent From My Galaxy S2

Running AllianceROM v7.02

Powered by Apolo-JB-4.4-TWRP
[Galaxy S II General] E43JAP:
Thanks, but these links are for "faster GPS lock". SC-02C needs a "patch" to activate the gps module & a "patch" to fix the inversion of the compass, but thanks anyway.:thumbup:

The Japanese KBC kernel works for the GPS, but it's not supported by "Stweaks".:(