Jump to content

  1. 0
  2. 0
  3. 0/5

Rate this Topic

* * * * *
1 votes

Conservative, Interactive, InteractiveX, and Smartass V2 CPU Governors

conservative cpu governors interactive interactivex
  • Please log in to reply

OP kevdliu

kevdliu

N7

Posted 01 December 2011 - 04:35 PM #1

Hey everyone,

Here are the conservative, interactive, interactiveX, and Smartass V2 CPU governors packaged with init.d scripts in a flashable zip.

Downloads:

Conservative: HERE
Interactive: HERE
InteractiveX: HERE
Smartass V2: HERE


*** DO NOT FLASH BOTH Interactive AND InteractiveX ON THE SAME SYSTEM AS ONLY ONE CAN BE LOADED. I recommend InteractiveX since it saves more battery by scaling down the CPU when screen is off.
***** The governor module will be loaded on boot but the governor itself will NOT be set as default. Please download CPU Tuner from the android market to set the default governor on boot.
*** For users running Apex and stock which does't support init.d script, please download Script Manager from the Android Market and select the script at /etc/init.d/04cpu_<<Governor Name>>. Enable root and boot and then save.

Conservative governor tweaks applied (values by BMc08GT):
1. down threshold changed from 20 to 40
2. frequency step changed from 5 to 16
3. ignore nice load enabled
4. sampling rate changed from I can't remember to 160000
#. Set as default on boot

Conservative: Instead of ramping the CPU up to MAX speed every time, it increases or decreases the frequency one step at a time as needed and therefore saving battery.

Interactive: Focuses more on performance and UI smoothness than Conservative. Therefore more power hungry.
- Instead of sampling the cpu at a specified rate, it will scale the cpu frequency up when coming
out of idle. When the cpu comes out of idle, a timer is configured to fire
within 1-2 ticks. If the cpu is 100% busy from exiting idle to when the timer
fires then we assume the cpu is underpowered and ramp to MAX speed.

If the cpu was not 100% busy, then the governor evaluates the cpu load over the
last 'min_sample_rate' (default 50000 uS) to determine the cpu speed to ramp down
to.

InteractiveX: By Imoseyon, it is very similar to the interactive governor except that it will scale the cpu down to 300mhz when the screen is off (like smartass).

Thanks to nadlabak, Imoseyon, and FirstEncounter for the governor modules, Bikedude for his smartass V1 zip as a template, and Windows for being so development-unfriendly Posted Image

Flash via CWM and enjoy the performance improvements or the battery savings!

Edited by kevdliu, 07 February 2012 - 06:29 PM.

  • 4 Likes
If you like my work please Donate to me. Thanks

Picture Password Lockscreen for Android

bikedude880

bikedude880

You can haz Developer Status

Posted 01 December 2011 - 06:21 PM #2

Very nice! Always cool to see new people step up with something :D
  • 0 Likes
Click 'Like' or Donate if you've enjoyed my work and snarky sense of humor.

Droid2 Global: Running Android the way it was meant to, free from the bonds of Motorola software.

Got a problem with my responses? Read this: http://www.catb.org/...ions.html#intro

MrB206

MrB206

Android Master

  • 883 posts

Posted 01 December 2011 - 06:36 PM #3

*edit* nevermind, I found it under cpu settings in Liquid settings (I'm running Liquid 3.2)

How does this conserve battery? I'm still a bit of a noob.

Edited by MrB206, 01 December 2011 - 06:39 PM.

  • 0 Likes

OP kevdliu

kevdliu

N7

Posted 01 December 2011 - 06:52 PM #4

*edit* nevermind, I found it under cpu settings in Liquid settings (I'm running Liquid 3.2)

How does this conserve battery? I'm still a bit of a noob.


Conservative governor changes the cpu frenquency up and down one step at a time as needed instead of ramping it to max and then step it down slowly like ondemand. That's why the min and the max is the most used by far in ondemand.
  • 0 Likes
If you like my work please Donate to me. Thanks

Picture Password Lockscreen for Android

OP kevdliu

kevdliu

N7

Posted 01 December 2011 - 07:02 PM #5

Very nice! Always cool to see new people step up with something :D


Thanks. It took me so long cause somehow cwm can't read updater-script saved by notepad or np++. :S Had to dig out my ancient linux machine to create the script

Edited by kevdliu, 01 December 2011 - 07:02 PM.

  • 0 Likes
If you like my work please Donate to me. Thanks

Picture Password Lockscreen for Android

MrB206

MrB206

Android Master

  • 883 posts

Posted 01 December 2011 - 07:13 PM #6

I think it's already working well... I was @ 40% about a half hour ago and after nonstop,heavy usage, I'm still there.
  • 0 Likes

Chaos2092

Chaos2092

Android Apprentice

  • 149 posts

Posted 01 December 2011 - 07:23 PM #7

Oooo, I like this. Smartass didn't seem to do much for my battery life, even when I clocked down... but I think this will.

Interactive coming too? Awesome.
  • 0 Likes

OP kevdliu

kevdliu

N7

Posted 01 December 2011 - 08:00 PM #8

Can anyone run

busybox grep nr_running /proc/kallsyms

In terminal with root and post the result? Thanks
  • 0 Likes
If you like my work please Donate to me. Thanks

Picture Password Lockscreen for Android

x13thangelx

x13thangelx

Developer

Posted 01 December 2011 - 08:10 PM #9

c005e844 T nr_running

Thats with ondemand if it makes a difference
  • 0 Likes
Unofficial CM9 builds for: DX, D2, D2G

MrB206

MrB206

Android Master

  • 883 posts

Posted 01 December 2011 - 08:16 PM #10

I got the same result
  • 0 Likes