Leankernel: ( JB4.2 - 7.1, JB4.3 - 8.3 - , KK 9.0 beta 11/25)

Search This thread

bigrushdog

Inactive Recognized Developer
Apr 23, 2007
3,547
7,244
I've ran 6 for a couple days and feels fine, so it will be in the next nightly. Remember, to the Eos users out there, if you have a favorite kernel and it happens to not be LK, feel free to flash it. Just keep it good and handy in whatever folder you keep your roms in and flash it in the same batch after the rom.
 

ajf64

Senior Member
May 7, 2011
735
637
I've ran 6 for a couple days and feels fine, so it will be in the next nightly. Remember, to the Eos users out there, if you have a favorite kernel and it happens to not be LK, feel free to flash it. Just keep it good and handy in whatever folder you keep your roms in and flash it in the same batch after the rom.

just let u know if there is any thing i can do to help you testing or any thing i got some free time send me a pm
 

charlie95113

Senior Member
Dec 25, 2010
1,182
196
Re: Leankernel: Minimalistic Kernel (ICS 3.10.0,JB 4.6.0, JB 6.0 - 02/17)

Quick questions hope I'm on right thread...so normally I won't ask much I just figure things on my own...but to lazy lol now I'm using latest jb kernel ..does this device support TV out if so is it a kernel thing if yes how does it work ..thanx

Sent from my Galaxy Nexus using Tapatalk 2
 

ajf64

Senior Member
May 7, 2011
735
637
Quick questions hope I'm on right thread...so normally I won't ask much I just figure things on my own...but to lazy lol now I'm using latest jb kernel ..does this device support TV out if so is it a kernel thing if yes how does it work ..thanx

Sent from my Galaxy Nexus using Tapatalk 2

rightnow Tv out on the nexus only works with the Samsung MHL cable that i am aware of
 

charlie95113

Senior Member
Dec 25, 2010
1,182
196
Re: Leankernel: Minimalistic Kernel (ICS 3.10.0,JB 4.6.0, JB 6.0 - 02/17)

rightnow Tv out on the nexus only works with the Samsung MHL cable that i am aware of

Thanx ...I looked it up on amazon ...found a few ..does it matter which one or specific..and one last thing can I watch live streams

Sent from my Galaxy Nexus using Tapatalk 2
 

ajf64

Senior Member
May 7, 2011
735
637
Thanx ...I looked it up on amazon ...found a few ..does it matter which one or specific..and one last thing can I watch live streams

Sent from my Galaxy Nexus using Tapatalk 2

Im going to say no it prob dosnt matter what one but i would look up the model number of the cable just to see what phones its compatible with to be safe. One thing i have learned over the years is you can never do to much research before buying somthing.
 

matthew0776

Senior Member
Dec 22, 2012
6,030
8,736
Chicago
Re: Leankernel: Minimalistic Kernel (ICS 3.10.0,JB 4.6.0, JB 6.0 - 02/17)

Im going to say no it prob dosnt matter what one but i would look up the model number of the cable just to see what phones its compatible with to be safe. One thing i have learned over the years is you can never do to much research before buying somthing.

I'm pretty sure there is a OEM Samsung nexus one. That's prob best bet ... Cost a little more but worth it for OEM.

Sent from my Galaxy Nexus using xda app-developers app
 

adio201

Senior Member
Dec 4, 2009
1,739
289
Re: Leankernel: Minimalistic Kernel (ICS 3.10.0,JB 4.6.0, JB 6.0 - 02/17)

Anyone doing any under volting?

Sent from my Galaxy Nexus using xda app-developers app
 

Coycaine

Senior Member
Sep 17, 2011
1,742
1,179
Reno, NV
Anyone doing any under volting?

Sent from my Galaxy Nexus using xda app-developers app

Here are my settings. I only run the cpu @ 1200 max so the UV stops there. I usually run 1200 mhz @ 1150 but had a couple reboots with 4.2.2 so I raised it to 1175 and haven't had any trouble since.
 

Attachments

  • Screenshot_2013-02-22-12-29-18.jpg
    Screenshot_2013-02-22-12-29-18.jpg
    36.5 KB · Views: 229

adio201

Senior Member
Dec 4, 2009
1,739
289
Re: Leankernel: Minimalistic Kernel (ICS 3.10.0,JB 4.6.0, JB 6.0 - 02/17)

Here are my settings. I only run the cpu @ 1200 max so the UV stops there. I usually run 1200 mhz @ 1150 but had a couple reboots with 4.2.2 so I raised it to 1175 and haven't had any trouble since.

What app is that

Sent from my Galaxy Nexus using xda app-developers app
 

adio201

Senior Member
Dec 4, 2009
1,739
289
Re: Leankernel: Minimalistic Kernel (ICS 3.10.0,JB 4.6.0, JB 6.0 - 02/17)

What kind a battery life have you gotten with this kernel and under voilting? With out any WiFi its so frustrating to see people post pictures of battery life when they been on WiFi the whole time.

Sent from my Galaxy Nexus using xda app-developers app
 

Coycaine

Senior Member
Sep 17, 2011
1,742
1,179
Reno, NV
What kind a battery life have you gotten with this kernel and under voilting? With out any WiFi its so frustrating to see people post pictures of battery life when they been on WiFi the whole time.

Sent from my Galaxy Nexus using xda app-developers app

5 hours screen on with wifi and 3 to 3 and a half when using 3g off and on. Usually get around 4 on an average day of using some data at work and then being on wifi during the evening.
 

matthew0776

Senior Member
Dec 22, 2012
6,030
8,736
Chicago
Re: Leankernel: Minimalistic Kernel (ICS 3.10.0,JB 4.6.0, JB 6.0 - 02/17)

Must say lean combined wit orca rom started sketchy. But with some tweaking today , things are now running great... Hope day 2 gets even better.

Sent from my Galaxy Nexus using xda app-developers app
 

MizzouBrent

Senior Member
Feb 19, 2011
1,726
458
Olathe, KS
Re: Leankernel: Minimalistic Kernel (ICS 3.10.0,JB 4.6.0, JB 6.0 - 02/17)

My battery is abysmal on mobile data and pretty good on WiFi no matter the ROM/kernel combination.

Sent from my Galaxy Nexus using Tapatalk 2
 

MizzouBrent

Senior Member
Feb 19, 2011
1,726
458
Olathe, KS
Re: Leankernel: Minimalistic Kernel (ICS 3.10.0,JB 4.6.0, JB 6.0 - 02/17)

On my old Evo it was better than what I experience on the gnex. I think this phone is just less efficient for some reason.

Sent from my Galaxy Nexus using Tapatalk 2
 

ajf64

Senior Member
May 7, 2011
735
637
I find the nexus is one of them phones that almost begs for a extend battery i was able to get my hands on a high quality 4000MaH battery and i get about 12-14 hours of constant streaming of music over 3G with a pretty crappy signal. 20-30 hours over wifi. I get between 6-8 hours screen on time at full brightness 8-10 with auto brightness on so there really cant ask for to much more then that but i only see these kinds of times with lean kernel 230 so any one using the stable i suggest u try this out if u are worried about battery life.
 

matthew0776

Senior Member
Dec 22, 2012
6,030
8,736
Chicago
Re: Leankernel: Minimalistic Kernel (ICS 3.10.0,JB 4.6.0, JB 6.0 - 02/17)

I use the 2100 oem and it is def better then stock....if u can pick one up. Comes wit OEM back to fit as well.

Sent from my Galaxy Nexus using xda app-developers app
 

matthew0776

Senior Member
Dec 22, 2012
6,030
8,736
Chicago
Re: Leankernel: Minimalistic Kernel (ICS 3.10.0,JB 4.6.0, JB 6.0 - 02/17)

Updated !!! 6.1 is avalible ...

Sent from my Galaxy Nexus using xda app-developers app
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 50
    Ok guys i have got permission to bring over lean kernel and offer support for it on xda. I will keep this post up todate with all the most recent kernel updates and news. All credit goes to imoseyon as the original op and rootzwiki for original posting. I am posting this with full permission and support from imoseyon


    Mod Type:: Kernel

    Difficulty:: Very Easy

    Mod Status:: Stable

    Apply In:: CWM Recovery

    Requires Root:: Yes




    Exp builds are also up and includes a bunch of Android/OMAP updates not in stable.

    SOURCE:
    ICS
    JB

    This is a minimalistic Galaxy Nexus kernel. My philosophy is to keep the kernel as lean and stable as possible, at the same time to keep the kernel as modern and close to latest mainstream linux as possible. You will see that my kernels will lack some of the bells and whistles from other kernels.

    sorry host4droid is still down. Mirrors:

    kk4.4 LK 9.0 beta (use at ur own risk)
    JB4.3 [ stable builds | exp builds ] [ change log | exp changes ]
    JB4.2:Stable
    Stock JRN84D kernel

    Terminal Emulator not finding scripts? Read this post.

    CHANGE LOG JB 4.2



    FEATURES

    Patched to latest in Linux 3.0.x branch.
    All unnecessary kernel components removed to make kernel lean and fast!
    OC to 1.65ghz. Boot speed is maxed at 1.2ghz within kernel (in addition to ramdisk) for stability.
    User voltage control
    InteractiveX V2 (screen-off hotplug of cpu1) added. Select it using setcpu if you want to use it.
    Ramdisk tweaks (sysctl, vm, filesystem speed, etc.)
    SWAP & zram (next generation compcache) support. Run "zram enable" in terminal.
    init.d support in ramdisk.
    lk.conf for basic kernel configuration.
    HotplugX governor (Hotplug optimized and modified for screen-off suspend).
    wakelock tweaks for wlan and lte modem
    lkflash - script to flash latest versions of leanKernel from Terminal (type "su" without quotes, hit enter, then type "lkflash" without quotes and then hit enter)
    checkv - voltage checking script (for custom undervolting) - detailed at bottom of this post.
    checkt - script that displays 1) your current temp, 2) # of times you were throttled due to temp "recently", 3) CPU trim type, and 4) CPU silicon type, etc.
    Fast USB charge (by chad0982) and "ffc" toggle script by me. (Open terminal, and type "ffc" without quotes then enter)
    ColorControl from both CM9 and Ezekeel (compatible with all ROMs). Helpful posts: 1and 2.
    TempControl - sysfs interface to control the CPU temp threshold. Read these two posts: 1 and 2.
    Variable GPU OC - sysfs interface to select GPU max speed between 307MHz (stock), 384MHz and 512Mhz. The changes take effect immediately. Check FAQ for more info and how to use it.
    Custom SR Tuning - override kernel default minimum voltage for SR calibration.
    SoundControl
    Gamma Control
    ROW scheduler v4

    DIRECTIONS
    Uh.... flash the zip in clockworkmod.

    Thanks to forum member maddler for providing file hosting



    FAQ

    How do i change voltage? - Use the latest version of setcpu, leantweaks, cputuner, or your ROM's built-in tools.

    Do i need to wipe dalvik/cache?
    - in general there's no need, but it doesn't hurt so if you have time go ahead. Posted Image I don't wipe.

    ​Can we OC higher or add more frequency slots?
    - You can find the extra slots in my experimental versions.

    ​Will this work on GSM gnexus as well? - It should. I don't have a GSM phone to test so let me know if it stops working.

    What is interactiveX V2?
    Read this post and thttp://rootzwiki.com/topic/13092-kernel-leankernel-minimalistic-kernel-120-123111/page__view__findpost__p__342571

    Are you getting Screen-Off/Sleep-Of Death (SOD), general instability, or unusual battery drain?

    Before you post here (especially if you're running the experimental version), try the following steps in order:
    0) dude, disable screen-off profiles if you're running interactiveX.
    1) If you're running the experimental version, do you have 180mhz/230mhz and/or 1.42ghz slots enabled? If so disable them both!
    2) If the above doesn't help, do you have custom undervolting enabled? If so disable it! (keep in mind that the kernel is already undervolted by default).
    3) If the above doesn't help, are you using interactiveX or hotplug governors? If so change to interactive.
    4) If the above doesn't help then you should not be running the experimental version. Install the stable version and try both interactiveX and interactive without custom undervolting.
    If you're still getting SOD with stable/interactive, report it here.

    What about call-recording? - First the app needs to support Galaxy Nexus. Find out if it does and then find out from the author of the app what kernel changes are required and let me know.

    Should i set up screen-off profile?
    - ICS kernels have built-in screen-off profile for all governors at 700mhz. So you don't need it unless you want to set it lower than 700mhz. In general there isn't a whole lot to gain by setting it lower.

    Hotplug vs interactiveX? - Read this post. HotplugX vs interactiveX

    What is zram and why do i need it?


    zram basically takes a portion of your RAM (10% using my script) and turns it into a compressed swap device. So in layman's terms you're extending the size of your memory (potentially from ~700mb to close to 1000mb depending on the compression ratio).

    To answer the 2nd question, no you don't really need it but if used properly (using custom LK zram script) it could help you in two different ways:

    1) Android OS is based on Linux OS and the OS will try to use a growing portion of your RAM for file and inode caches and if you keep your phone up without rebooting after a while you may notice things getting a little sluggish. That's because the OS is not doing a good job in dropping the caches and freeing up memory for the apps.

    2) more RAM and tweaked minfree (also handled by custom LK script) could potentially allow your apps to stay in memory longer (this may or may not be desirable based on your preference of course).

    In conclusion, I'd say if you're curious it doesn't hurt to try. :) To revert, just type "zram disable".

    What's the low-down on the GPU OC?

    My kernel's GPU is now set to stock 307Mhz by default. You can adjust that by using Variable GPU OC (see a separate FAQ entry below).
    When you go from say 307 to 512Mhz, you will not experience near double performance increase. Due to the factors outside the GPU module (ie. memory bandwidth limitation), you can't truly OC the GPU. In fact, most people can't tell the difference between 307, 384 and 512. Nenamark2 will roughly give you the following scores: 307/25fps, 384/28fps, and 512/31fps.
    Some of you have seen the note from Colin, the Google kernel engineer, not to OC the GPU because using the OV_UV voltage slot will drain the battery. My kernel uses the same voltage for both OV and OV_UV slots. So there's no danger of battery drain there.

    Why are the IO benchmark test scores lower than another kernel?

    Some of the kernels out there have fsync disabled to increase benchmark scores. I believe that is unsafe and could cause data corruption. I do have hooks in my kernel to disable it but I don't use it.
    In real world there will not be any user perceivable difference whether you have fsync enabled or disabled.

    Is there a way to tune hotplug via sysfs?


    yes. Advanced users only!

    My phone doesn't seem to be deep-sleeping, what gives?


    (assuming you checked in the right place like cpuspy) In terms of deep-sleep, there's not a whole lot going on in the kernel. It works or it doesn't - and I can assure you that I test every release (well almost every release) for deep-sleep before I release.
    19 out of 20 times it's either 1) some sort of background process that's preventing your phone from going into deepsleep, or 2) something's misconfigured in your ROM, or both. Also connecting to USB will prevent phone from going into deepsleep.

    I'm having unusual battery drain - help!

    First of all, our gnex has very poor battery life while in active use. It's downright horrible while screen is on - screen is definitely the main culprit and there's not a whole lot I can do about that.
    Custom undervolting can help or can hurt. This is mainly due to SmartReflex (class1.5) which auto-calibrates the ideal voltages for you. In fact, with SR you don't really need to use the custom undervolting feature for frequencies other than the 2 lowest. It does a great job calibrating higher frequencies. I personally don't touch it.
    The "notrim" versions are an exception because I had to disable SR1.5 for the trim override to work. There's no auto-calibration going on there. Feel free to mess with custom undervolting on the notrim versions.
    Now, if you've already accepted the horrible battery life while screen is on, but have questions about battery drain while idle - read the next question.

    I'm having unusual battery drain while screen is off, or phone is sleeping - help!

    First, let's find out if you're phone is going into deep-sleep. Install CPUSpy, unplug phone, turn off screen, and leave the phone alone for 5-10min. Turn the screen back on, launch CPUSpy, and see if you see an active entry for Deep Sleep. If so congratulations - read on.
    If you've determined that your phone is not entering deepsleep by using the above method, read my entry above that says "My phone doesn't seem to be deep-sleeping". I've heard that removing SDM.apk helps as well as rebooting the phone. Also try turning your bluetooth on and off, and launching camera app and closing it.
    If you've determined that your phone is entering deepsleep fine but still feel like battery drains, read the next question.

    I'm having unusual battery drain while phone is in deep-sleep - help!


    First make sure you are absolutely positive that deep sleep is working (read the previous question).
    While on my kernel *and* connected to Wifi, you shouldn't drain more than 1% battery per hour *average* while in deep sleep (based on 5-8 hour continuous deep sleep). With wifi turned-off, my guess is probably no more than 1-3% per hour, depending on signal strength.
    tip 1: If above is not happening for you, first charge the phone all the way and reboot. Let things settle a bit - give it a day or so. If you're using Battery Monitor Widget (which is not accurate for gnex), things should eventually settle between -2mA and -60mA per sample.
    tip 2: Install BetterBatteryStats and look at which wakelocks dominate. Google search for names of the wakelocks to see how you can fix them.
    tip 3: http://checkthis.com/d87t
    If nothing seems to help, you can try the "notrim" version, but stick to speeds between 350 and 1350 (don't use OC slots). The notrim version has SR1.5 disabled which could help for those of you with drain issues on my other kernels.

    What is tempcontrol and how do I use it?

    First, read these two posts: 1 and 2.
    Although tempcontrol was designed to be used with the experimental notrim builds because the cpu gets hotter in notrim frequencies, you can actually use tempcontrol to throttle lower frequencies. I haven't tried myself, but theoretically you can set your top speed at say 1.2Ghz and use tempcontrol to throttle at say 60C (instead of the stock value of 63C) resulting in slightly cooler phone. Theoretically. :)

    What is SmartReflex?

    SmartReflex performs continuous dynamic voltage scaling around the nominal operating point voltage according to silicon characteristics and operating conditions.
    My stable and experimental builds will have SR Class 1.5 enabled by default.
    You can disable SR via sysfs

    How do I use Variable GPU OC?

    You can use Lean Tweaks by Jake, or use the built-in "oc" script. Both leantweaks and my oc script will create an init.d script so the setting sticks at boot. My "checkt" script will also show the current GPU max speed. Note that 512MHz will probably not work for everyone.
    307Mhz (stock) is set default by the kernel.
    Open Terminal, and type for stock speed of 307Mhz: oc gpu 0
    for 384MHz: oc gpu 1
    for 512Mhz: oc gpu 2

    What are the available sysfs options?


    Check this post (thx byrong)

    Which governor should I use on JB?


    As usual I'd recommend trying all the governors and see which one works best for you. Stock JB, however, is optimized for interactive. The OS will automatically modify various interactive governor parameters on the fly while you're using the phone as part of "project butter". Namely, the following parameters are constantly adjusted by the OS: boostpulse, timer_rate, min_sample_time, hispeed_freq, go_hispeed_load, and above_hispeed_delay.


    I hope this helps people if there is any other information you might want added just ask and i will do my best to come up with a comprehensive guide.

    Donate to your favorite charity, or donate to imoseyon.
    12
    9
    6.7 is now out get it while its hot

    Change Log


    Feature leanKernel v6.7
    Improvement netfilter: qtaguid: rate limit some of the printks
    Improvement Linux 3.0.80
    Improvement Linux 3.0.79


    Stable

    v6.7 Stable


    EXP

    v6.7exp1-230

    v6.7exp1-180
    9
    7.1 is here!!

    Change Log


    Feature leanKernel v7.1

    Improvement: Linux 3.0.85
    Improvement: Linux 3.0.84
    Bugfix defconfig: disable OPTIMIZE_FOR_SIZE
    Bugfix: IPv6 updates from android-3.0

    Stable

    v7.1


    Exp

    Exp-180 v7.1

    Exp-230 v7.1
    9
    6.1.1 is now out

    Whats new?
    leanKernel v6.1.1
    Feature: ramdisk: updated to latest cm10.1
    Feature: Linux 3.0.68
    Feature: ramdisk: added ro.adb.secure=1


    Stable
    v6.1.1

    Exp

    v6.1.1exp1-180

    v6.1.1exp1-230