New Xposed for Lollipop 5.0 Update Fixes Major Bugs

Senior Recognized Developer rovo89 has patched Xposed for Lollipop 5.0 to … more

Download Sony’s new AOSP-like concept for Xperia Z3

Over in our forums, Recognized Contributor Jozinek has posted a very … more

OnePlus 2 vs Moto X Style: Which is The Better Flagship?

Two big industry names have announced their newest flagship phones within the … more

Making Your Own Xposed Modules Is Easier Than You Think

Close to the heart of XDA is the Xposed Framework by Rovo89. Most of … more

[KERNEL] [AOSP] leanKernel: minimalistic kernel (v5.1.0, 11/16/11)

2,298 posts
Thanks Meter: 7,874
Post Reply Subscribe to Thread Email Thread
This is a minimalistic Thunderbolt kernel based on the official gingerbread kernel source, patched to, and then a bunch of lean mods added (look at feature list below).

1) lean (normal lean version), 1) 184Mhz (184Mhz can be unlocked via st - note for many people 184Mhz is unstable and cause issues, also supports outgoing call recording)
This script will allow you to "transform" your kernel into normal, extreme, 1.92, 1.92X and battsaver versions (ie. it allows you to control speed, voltage, and slots to a certain degree). Once you run the script, everything will be self-explanatory. To run the script:
1) Open Terminal Emulator (install it from market if you don't have it).
2) Type "su" (without quotes) and hit enter.
3) Type "" (without quotes) and hit enter.

leanKernel kernel speed tweaker
1) normal: undervolted, overclocked to 1.41Ghz
2) extreme: extremely undervolted, overclocked to 1.41Ghz
3) 1.92: undervolted, overclocked to 1.92Ghz
4) 1.92X: extremely undervolted, overclocked to 1.92Ghz
5) battsaver: extremely undervolted, not overclocked

6) Unlock 184Mhz
7) Lock 184Mhz
8) View current settings

Please type 1, 2, 3, 4, 5, 6, 7, or 8: and SetCPU
The risk of running setcpu is that it can inadvertently override the min and the max that were set by the speedtweak script. (oh it can also override the governor setting but that's not as bad). Other than that it's pretty harmless - it can't mess with the voltage settings. So if you're going to use SetCPU, keep this in mind. One way to make this work is to use SetCPU to configure governor and min/max, and use to configure voltage settings. Or just don't use SetCPU.

  1. Includes lots of goodies from kernel source (2.6.36.x & 3.x from newer than stock.
  2. script to adjust clock frequencies and voltages.
  3. SVS - manual voltage tweaking via /etc/init.d/01vdd_levels
  4. InteractiveX and ondemandX governors! Added my own suspend code to interactive and ondemand code to make the phone lock at low clock speed when screen is off. No need for sleep setcpu profile anymore.
  5. For 1.92Ghz builds, interactiveX and smartass governors were modified to minimize unnecessary spikes above 1.8Ghz to keep phone stable.
  6. vm, minfree, memory, buffers readahead buffer tweaks
  7. All unnecessary kernel components removed to make kernel lean and fast!
  8. low # (5-10) of cpufreq slots for simple management and less governer transitions.
  9. Undervolted for longer battery life.
  10. SWAP and EXT4 enabled.
  11. Filesystems mounted via EXT4, and tweaked for performance.
  12. init.d enabled in ramdisk
  13. TUN, CIFS, NSIO (netspector) module support
  14. zram (from linux 3.1) module support (to enable, go into Terminal, type su, and then type "zram enable" without quotes). What is zram?

4.2.0 (10/28/11) - last "stable" kernel based on cm7 source.
5.0.0 (10/29/11) - based on official kernel source from HTC.
5.0.3 (11/1/11) - bluetooth, video playback, scaling frequencies sysfs all fixed. audio levels tweaked. netspector(nsio) module upgraded to 2.0.
5.0.4 (11/13/11) - 5.0.3 with audio levels reverted stock for better compatibility with MIUI (no need to upgrade from 5.0.3)
5.1.0 (11/16/11) - cpufreq and cpuidle updated to linux v3.2rc1, suspend support for LTE, 184mhz version supports in-call recording now (outgoing only).

Uh.... flash the zip in clockworkmod. You may need to wipe Dalvik cache and/or delete /data/misc/dhcp, /data/misc/wifi.

Donate to your favorite charity, or donate to me.
Last edited by Imoseyon; 16th November 2011 at 06:50 PM.
The Following 93 Users Say Thank You to Imoseyon For This Useful Post: [ View ]
19th May 2011, 08:13 AM |#2  
Imoseyon's Avatar
OP Recognized Developer
Flag Mountain View, CA
Thanks Meter: 7,874
Donate to Me
First, my take on the governors that are out there:
I offer three governors: interactiveX, ondemandX, and smartass. What are they?
  • interactiveX - it's the interactive governor from CM, but I added suspend/wake logic so when the phone screen is off it runs at below 400Mhz. Also, I modified its code some more to minimize unnecessary cpu spikes above 1.8Ghz if you happen to be running one of my 1.92 kernels. Most tbolts are unstable above 1.8Ghz, and it's the quick jump above 1.8Ghz that usually locks up the phone. It will hit 1.92Ghz only when it makes sense (ie. sustained high load). This is my favorite governor - perfect combination of speed and power efficiency.
  • ondemandX - ondemand governor code from latest linux source *plus* the suspend/wake logic described above, except it has the ability to ramp to 369Mhz while screen is off. No additional code was added for stabilizing above 1.8Ghz.
  • smartass - smartass code from erasmux, but I wasn't happy with its performance so I tuned it for quicker ramp up in speed. It has the same suspend/wake logic as ondemandX, and the same >1.8Ghz stabilizing mod as interactiveX.

Source code

  1. Wifi is not working - 1) first make sure you flash kernel via CWR, not kernel manager or rom manager, 3) clear dalvik cache, 2) delete all files in /data/misc/wifi and /data/misc/dhcp, and reboot.
Last edited by Imoseyon; 16th November 2011 at 06:51 PM.
The Following 18 Users Say Thank You to Imoseyon For This Useful Post: [ View ]
19th May 2011, 08:14 AM |#3  
Senior Member
Thanks Meter: 34
Originally Posted by Imoseyon

Thread split into GB and Froyo. "

finally took my advice huh???? lol

good work, flashing now!
19th May 2011, 08:16 AM |#4  
Senior Member
Thanks Meter: 14
Whats the change log on 2.5.3test2 ?

Will that work on cm7?
19th May 2011, 08:21 AM |#5  
Breezer23's Avatar
Senior Member
Flag Arlington Heights
Thanks Meter: 90
Great work as always! Very impressed!

Sent from my ADR6400L using Tapatalk
19th May 2011, 08:23 AM |#6  
Senior Member
Flag Boston, MA
Thanks Meter: 62
well we need to run scripts to over clock gbtest kernel like the previous ones for froyo and cm7
19th May 2011, 08:24 AM |#7  
Senior Member
Thanks Meter: 34
Originally Posted by psicrest

Whats the change log on 2.5.3test2 ?

Will that work on cm7?

he's working on changelog and the 2.5.3 test 2 kernel is only for the "gingersense" leak...for cm7 flash the AOSP kernel

by default the 2.5.3 kernel will run at 1408mhz in "normal" mode
The Following User Says Thank You to patdroid1 For This Useful Post: [ View ]
19th May 2011, 08:40 AM |#8  
Thanks Meter: 8
Awesomeness...finally able to boot all the way up...running battsaver...and confirmed camera is working...thank you imoseyon!!!
19th May 2011, 09:30 AM |#9  
Senior Member
Thanks Meter: 23
I'll check back later with my experiences running
19th May 2011, 01:04 PM |#10  
arcanexvi's Avatar
Senior Member
Hoffman Estates, IL
Thanks Meter: 348
This may have fixed the slow charge issues inadvertantly. its not in your change log but either this (test2) or 1.3 on jcases build fixed it.

Sent from my ADR6400L using XDA Premium App
19th May 2011, 02:29 PM |#11  
Senior Member
Flag ny
Thanks Meter: 36
Originally Posted by arcanexvi

This may have fixed the slow charge issues inadvertantly. its not in your change log but either this (test2) or 1.3 on jcases build fixed it.

Sent from my ADR6400L using XDA Premium App

This new kernel fixed the slow charge for you or updated jcase gbread rom? I did both and my phone refuses to charge.

Sent from my ADR6400L using XDA Premium App

Read More
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes