[G2 Q&A, Help & Troubleshooting] bloof:
GOVERNORS AND HOTPLUGS​

Kernel Specific Dorimanx & Boeffla

but this contains useful info for all kernels​

*******************************************************************************************************************************************************************

*******************************************************************************************************************************************************************

DORIMANX GOVERNORS AND HOTPLUGS:

Dorimanx Specifics:

Dorimanx kernel has many tweaking options, including the ability to set governor and min/max frequency independantly for each core. This gives a level of tweaking not often seen elsewhere.

Governors:

IMPORTANT: the behavior of governors cannot really be un-linked from the hotplugs. You might find combinations of certain governors/hotplugs make a performance governor more battery friendly for your style of phone usage. See this list as a guideline.

Below is a list of the main governors

loosely

ranked from battery to performance focus:

Battery Governors:

Conservative:

keeps the core frequency at minimum most of the time, very battery friendly but not very clever. Terrible fore performance.

Powersave:

keeps the core frequency lowish all the time, very battery friendly but not very clever. Terrible fore performance

Intelimm:

"intelliminmax (intellimm) governor is designed to work with the newer SOCs with fixed voltage rails (ie MSM8974+ SOCs). It is designed to work within those fixed voltage ranges in order to maximize battery performance while creating a smooth UI operations.". It is a battery friendly governor, much more battery friendly than Yankactive.

Yankactive:

a modified interactive, good for battery save, bad for games. (low FPS).

Balanced - on the battery-side:

Darkness:

alucard that goes very quickly to max freq but does not stay there long. Better for responsiveness and good for battery too. Frequently prefered over alucard.

Alucard:

very good for battery. Goes slowly to max freq, stays there longer if required.

OndemandPlus:

based on Ondemand and Interactive with modifications to the upscaling codes so it does scale to max freq as quickly. It is a performance governor at heart, but reported as very battery friendly in combination with the right hotplug (alucard). I have doubts this is more battery friendly than alucard with an aggressive hotplug (eg: MSM). In summary, will not go as quickly to max freq as ondemand but downscaling is similar.

Balanced - on the performance-side:

Nightmare:

has the coolest name. A PegasusQ modified, less aggressive and more stable. Good for performance without being battery unfriendly.

Ondemand:

this is the dorimanx ondemand, not the standard one, do not be confused by the name and finding it in the balanced governors. I think his current version is more balanced between performance and battery. The basics of ondemand is to scale freq based on need, so will boost freq if needed much more than alucard will. Probably the most tweaked/up to date governor in this kernel. Seems to prefer staying at medium frequencies rather than scale up and down all the time.

Performance:

Impulse:

Impulse governor is based on CAF Interactive but with additions to work smoothly with CPU Boost driver and improved freq stabilization. Based on the fact that this is based on interactive it is a performance governor but probably more battery friendly/efficient. More battery friendly than intelliactive. Probably on par with interactive but probably more efficient as it is newer.

Interactive:

the basic android governor, based on pleasing users by very quick response to high freq to reduce lag when switching phone on and expecting user will interact with phone quickly (launch app, etc). This governor does come back to low frequencies quickly and therefore more battery friendly than intelliactive.

PegasusQ:

an old governor for dual cores. The Pegasus-q / d is a multi-core based on the Ondemand governor and governor with integrated hot-plugging. See governor link at beginning of post to find out more. It is a good governor but old, more efficient governors exist now, however, some people report good results with this. It is very performance driven, just like Ondemand, probably not many battery saving features other than better handling of loads through hotplug and its own queuing techniques.

Intelliactive:

a better version of the interactive governor which is an ondemand on steroids, it will boost up very quickly on need but will stay there on timer. Freq will not fluctuate as much as ondemand. It is not a battery killer either because it is not a stupid governor, it will use other tricks to save battery. This governor was designed for quick user responsiveness, and is therefore one of the best "lag-free" governors. Seems to stay at medium frequencies when tasks are needed and not scale down to low frequencies until full rest. More battery friendly than intellidemand.

Intellidemand:

based on Ondemand, so a performance governor. Its behavior is linked to GPU, if active GPU (games, etc) then it behaves like Ondemand. When GPU is inactive it will scale max freq differently to save on battery.

Performance:

keeps the cores at max frequency. Obviously the best for performance and the absolute worst for battery. Good governor for running benchmarks if you want to study power consumption, etc as it is independent of hotplugs and everything else.

*******************************************************************************************************************************************************************

*******************************************************************************************************************************************************************

Hotplugs:

The hotplug will change the performance/battery savings of your governor combinations. But in general, it will compound the differences:

- a battery friendly hotplug with a battery friendly governor will be very battery friendly

- an aggressive hotplug with a performance governor will have very good performance and poor battery

- it gets interesting with other combinations to achieve balance: a battery friendly hotplug and a performance governor (eg: alucard HP + ondemandplus) can give very good balance.

NOTE FOR DORIMANX KERNEL: since you can set your governors independently for each core, make sure you understand how the hotplug works. For example, alucard seems to switch on core 1 then core 2 then core 3 when needed but MSM seems to go to core 3 or core 2 first. So if you want to combine performance and battery governors in your setup make sure you select the right cores to do so based on your hotplug.

Ranked from battery friendly to performance:

Alucard HP:

The most battery friendly, does not switch on cores excessively for low load tasks, but does NOT sacrifice performance much. A lot of users use this HP.

Default LG HP:

This is NOT the default LG hotplug, but a heavily tweaked version.

MSM HP:

The basic hotplug for pure performance. It will switch on more cores very quickly.

Intelligent HP:

another good hotplug aggressive but seema to work well, a good alternative to MSM.

*******************************************************************************************************************************************************************

*******************************************************************************************************************************************************************

Recommendations:

There are so many things you can tweak in this kernel that everyone has their own versions of what they consider "best". I can't post everyone's suggestions.

Dorimanx himself

: uses "performance" profile in STweaks. That's it, no other tweaks. It is a performance focused balanced setup.

My recommendation for you to try, balanced, performance with battery saving:

NOTE: I am in the beginning stages of trying these configurations. Feedback is welcome and encouraged!

- This is my current trial setup. Set profile to "default".

- Max freq = 1.7/1.5/1.5/1.5 || Governors = Intelliactive/Darkness x3 or Darkness x4 || HP = MSM or Intelligent HP if MSM drains too much battery

- (I have not tested Yankactive/nightmare/ondemand/impulse combinations, feel free).

- GPU: max speed = 389 MHz || min speed = 100 MHz

- MSM hotplug: suspend mode to always active.

- You can set higher frequencies than 1.5, but just try it this way anyway.

Battery friendly :

set "battery" or "extreme battery" profile. Max freq = Alucard or Intelimm or yankactive || HP = Alucard

- GPU: max speed = 70,000)

- Keep "max screen off cpu freq" to 1.7 or higher for stability.

- CRON OFF (disabled)

- Sweep2sleep OFF

Balanced on the battery-side:

- Set profile to "default". Max freq = Darkness or Nightmare or OndemandPlus || HP = Alucard (preferred) or Default LG

- GPU: max speed = 2.3 || Governors >= Ondemand or OndemandPlus or Interactive or Impulse or Intelliactive || HP = alucard or intelligent for more performance

- GPU: max speed >= 450 MHz || min speed = 100 MHz

- Additional tweaks: decrease sample rate.

Performance

: Just use "performance" or "extreme performance" profile. Max freq >= 2.5 || Governors >= Interactive or Intelliactive or Impulse or Intellidemand || HP = MSM or intelligent for better battery

- GPU: max speed >= 533 MHz || min speed = 200 MHz

- There are a lot of tweaks you can do to make it even faster:

- Important tweaks: decrease sample rate, play around with MSM Hotplug controls (descriptions in STweaks)

- Other tweaks: touchboost, powersave switch to performance, disable power-efficient workqueues.

*******************************************************************************************************************************************************************

*******************************************************************************************************************************************************************

BOEFFLA GOVERNORS AND HOTPLUGS:

Governors:

Below is a list of the main governors

loosely

ranked from battery to performance focus:

NOTE: all governor parameters are tunable in boeffla pro version, so you can change how each governor behaves, only use of you really know what you are doing.

I will start with zzmove because it has the whole range of governor options to select from. They are pretty self explanatory.

Zzmove:

Some idle/suspend battery saving features and many performance features in conjunction with its associated hotplug, large focus on "suspended" battery saving. There are many zzmove configurations pre-set in Boeffla kernel. From ZaneZam himself: "Basically this is the ported SGS1 version of the well known "smoove" governor from the good old midnight kernel from Michael Weingaertner (mialwe) with a modified CPU hotplug implementation of the ktoonservative governor from ktoonesz. The original implementation from ktoonesz worked well but I observed that on idle most of the time only one cpu was going to sleep. Well that was not enough for me so I made a modification to put the other cpu's also to sleep (except cpu0). That means that this governor uses more often only one cpu on idle and as a consequence of that it needs less energy. Depending on System load and governor settings all 4 cores will be instantly up again if it is needed." More details here.

IF YOU USE ZZMOVE GOVERNORS IT IS BEST TO ALSO USE ZZMOVE NATIVE HOTLUG.

Battery Governors:

Zzmove battery extreme yank

Zzmove battery yank

Intellimm:

"intelliminmax (intellimm) governor is designed to work with the newer SOCs with fixed voltage rails (ie MSM8974+ SOCs). It is designed to work within those fixed voltage ranges in order to maximize battery performance while creating a smooth UI operations.". It is a battery friendly governor. Difficult to know exactly where it stands with respect to all the zzmove battery governors, but probably on par with battery or yank.

Zzmove battery plus

this could be even more battery saving than the other zzmove battery governors, but this is based on a very short test, so could be wrong.

Interactive battery extreme:

it is actually very hard to rank all these battery governors, please just see this as a very loosely ranked list, not a tested ranking.

Smartmax:

battery oriented but still based on Ondemand with a mix of smartass2, however it seems to be very battery oriented with very slow scaling (?). More details here.

Zzmove battery:

the more performing of the battery governors, getting to the grey area between battery and balanced governors.

Balanced Governors:

Interactive battery extreme:

despite the title I am pretty sure this one has tipped into the balanced governors, but really on the edge.

Interactive battery:

same as above, but more balanced. I would pick zzmove moderate

Zzmove moderate:

an updated version of optimal, uses 2 cores most of the time, very good performance and battery saving balance. This and zzmove optimal are preferred choices for most balanced users (that's most of you too) of Boeffla.

Zzmove optimal:

good balance governor, needs zzmove native HP for best effect. But see zzmove moderate, a more updated version of this. This one seems to go through more scaling steps. You probably won't see a difference between this an moderate, though. I still don't know which one I would pick.

Performance Governors:

Intelliactive:

a better version of the interactive governor which is an ondemand on steroids, it will boost up very quickly on need but will stay there on timer. Freq will not fluctuate as much as ondemand. It is not a battery killer either because it is not a stupid governor, it will use other tricks to save battery. This governor was designed for quick user responsiveness, and is therefore one of the best "lag-free" governors. I would pick this over intellidemand or interactive performance for example, but I am not a game player.

Interactive performance:

the basic android governor, based on pleasing users by very quick response to high freq to reduce lag when switching phone on and expecting user will interact with phone quickly (launch app, etc). Obviously performance but seems to use low frequencies more than other performance governors listed below.

Interactive standard :

performance oriented, jumps quickly to high frequencies, no much coming back/staying at min freq, but more so that Interactive Performance. Depending on your style of phoning select this one or the interactive performance.

Zzmove performance:

aggressive and very high performance governor, but will save battery when inactive compared to other performance governors. Please use zzmove native hotplug of course. I would pick this over intellidemand, interactive standard/performance. I would also probably pick this over slim/wheatley/etc.

Zzmove game:

choose this one if you play heavy games. High performance but helps reduce cpu heat during gameplay, which helps save your cpus (thermal engines WILL lower your cpu frequencies when hot, so super heavy performance governors set at 2.5 GHz will NOT be at 2.5 GHz when you're playing).

Intellidemand:

Based on Ondemand, so a performance governor. Its behavior is linked to GPU, if active GPU (games, etc) then it behaves like Ondemand. When GPU is inactive it will scale max freq differently to save on battery. try it if you use heavy games a lot, make sure you set your GPU highish.

Interactive performance:

very high performance, jumps quickly to high frequencies, no much coming back/staying at min freq.

Zzmove insane:

focused on very high performance, probably on par with all the ones this far down in the list. Probably better if used in combination with zzmove hotplug, it probably is much better at saving a little bit of battery when phone idle/suspended/screen ON but not doing much.

Slim:

Very performance oriented, no battery saving features at all. A new governor from the cm branch and the slimrom project. A performance optimized governor. Found on newer devices only such as the One Plus One. This CPU governor will fall back to be the performance governor if very high load is detected.

Wheatley:

Based on Ondemand, so a performance governor. It simply increases C4 state time of the CPU to save on battery. Might be more battery friendly than slim, but hard to say, these are not designed with battery in mind, just efficiency. Slim is more modern (I think) so would be a better choice in my opinion, but I have really tested them.

Ondemand:

One main goal of the ondemand governor is to switch to max frequency as soon as there is a CPU activity detected to ensure the responsiveness of the system. But it is not very efficient for performance and certainly pretty bad for battery. Frequency variations are very large. Seems to lie somewhere between interactive standard and performance but you would probably not really notice the difference. I am putting it here because it has less battery savings and modern performance features than its derivatives (slim, wheatley).

Performance:

keeps the cores at max frequency. Obviously the best for performance and the absolute worst for battery. Good governor for running benchmarks if you want to study power consumption, etc as it is independent of hotplugs and everything else.

*******************************************************************************************************************************************************************

*******************************************************************************************************************************************************************

Hotplugs:

Boeffla kernel does not have a large array of hotplugs, but zzmove native hotplug is a great combination with zzmove governors, it will help focus the behaviors of those governors to what they were intended to do. So choose that one if you have a zzmove governor.

Optimized:

focuses primarily on battery saving rather than performance, with 1 core max on suspend state (most of the time), but this is NOT a battery saving hotplug, just the more battery saving one here. Could be an alternative to zzmove native hotplug for zzmove battery oriented governors (try and see). Pick this one if you want a battery or balanced lifestyle and are not using zzmove governors.

Default:

a balanced hotplug almost by definition. Use this one for performance lifestyles (or balanced with performance focus) if you are not using zzmove governors.

zzmove native:

If you use zzmove governors, use this hotplug

, it is built to work in conjunction with the governors and will have both performance and battery savings features based on your choice of zzmove governor (however, if you use zzmove battery governors you might want to try optimized hotplug and compare). It is an aggressive hotplug, enables fast scaling of multiple cores for heavy loads but also focus on suspended state battery saving (1 core max). It will save more battery

X core min/max/exact:

these hotplugs simply set the minimum, maximum or the exact number of cores active. Of course 1 core only is very battery friendly and 4 cores is very bad for your battery and great for performance. Play around with these if you wish, they are good for running benchmarks when setting the exact number of cores you want to test.

*******************************************************************************************************************************************************************

*******************************************************************************************************************************************************************

Recommendations:

- There is a dedicated thread HERE.

- Boeffla himself: does not use a single setup but varies it. More common would be Interactive gov, max cpu 1,947, noop scheduler, touboost 1294, GPU max 330 MHz.

My recommendation for you to try, performance with battery saving:

NOTE: I am in the beginning stages of trying these configurations. Feedback is welcome and encouraged!

- This is my current trial setup. Set profile to "default".

- Max freq = 1497 MHz || Governors = zzmove performance || HP = zzmove native default

- (I have not tested other similar combinations, feel free and let me know).

- GPU: max speed = 389 MHz || min speed = 27 MHz

- touchboost OFF

- You can set higher frequencies than 1.5, but just try it this way anyway.

Battery Extreme:

example from here. Credit [MENTION=5898287]raybit10[/MENTION]. CM12 ROM, but should apply to CM11S.

- Max freq = 1,574 || Governors = zzmove battery extreme yank || HP = zzmove native default

- GPU: max speed = 200 MHz || min speed = 27 MHz

- Additionally: Scheduler Zen, readahead 1408, touchboost 1036 MHz, Swipe screen to wake ON, Android logger OFF

- Disable all animations or you will get stuttering, lack of smoothness.

- BEWARE: undervolting light. ONLY APPLY UNDERVOLTING IF YOU KNOW WHAT YOU ARE DOING.

- 10-12 hours SOT achieved with tasker, greenify, massive de-bloating of unused apps.

Battery friendly :

Max freq = zzmove battery plus/yank/extreme yank or intellimm or smartmax || HP = zzmove native default or optimized

- GPU: max speed = 578 MHz || min speed = 200 MHz

- Additional tweaks: increase sample rate, touchboost freq