Jump to content

  1. 0
  2. 0
  3. 0/5

Rate this Topic

* * * * *
15 votes

[kernel] [aosp] [kitkat] [v9.14, 9/23/14] leanKernel: minimalistic kernel

  • Please log in to reply

OP imoseyon

imoseyon

Developer

Posted 13 August 2012 - 07:20 PM #1

NOTE: latest leanKernel version works best with latest AOSP nightly builds

DOWNLOAD

FEATURES

  • Unnecessary components removed for lean and fast kernel.
  • A bunch of code tweaks to help stabilize the kernel.
  • Latest Linux updates applied.
  • Some commits from latest CM10 kernel cherry-picked and merged. Starting v2.0, cm-10.1 source is used as base.
  • Ramdisk optimizations.
  • OC'ed to 1.8-1.9Ghz (limited to 1.51Ghz at boot, use an app to change max freq)
  • Tuned Deadline I/O scheduler. ROW Scheduler default.
  • Fast Charge (toggle via the "ffc" script - open terminal, type ffc then enter, plug in phone via USB)
  • InteractiveX V3 - optimized for S3, screen_off_maxfreq sysfs interface (default set to 810Mhz).
  • wakelock tweaks for better power efficiency.
  • Modified thermal control - fully support OC beyond 1.5ghz
  • Custom voltage control via sysfs (recommend using setcpu, voltage control, or system tuner)
  • lkflash script to flash latest kernel versions
  • lkconfig script to configure leanKernel specific features
  • Two more sleep states: Retention and Standalone Power Collapse
  • Faux Sound support
  • CM 10.1 color temp control
  • 3D GPU 480Mhz slot
  • Cherry picks from Linux v3.12.x
  • leanKernel scripts
    lkflash (flash latest leanKernel versions from your phone)







    root@android:/ # lkflash
    
    leanKernel flasher
    ------------------
    1) latest stable (recommended)
    2) latest experimental
    3) check/display versions
    
    FLASH AT YOUR OWN RISK. I'm not responsible for my mistakes or yours. ;)
    
    Please enter a number between 1 and 3 (or press enter to exit): 3
    Please wait...
    
    >>> Current version: 1.0, Latest stable: 1.0, Exp: 1.0exp1
    
    lkconfig (configure leankernel specific settings which will persist between reboots)
    root@android:/ # lkconfig
    
    leanKernel configurator
    
    ---
    1) interactiveX: set screen-off max freq to 1.1Ghz.
    2) interactiveX: set screen-off max freq to 810Mhz (leanKernel default).
    3) Stop thermald (for running benchmarks).
    4) Restart mpdecision (when cpu1 gets stuck).
    5) Overlock 3D GPU to 480Mhz.
    6) Reset 3D GPU to 400Mhz (leanKernel default)
    7) Set display color temp to cold.
    8) Set display color temp to normal.
    9) Set display color temp to warm.
    
    Please enter a number between 1 and 9 (or press enter to exit):
    
    ffc (force fast charge toggler)
    root@android:/ # ffc
    Fast USB Charge: ON
    root@android:/ # ffc
    Fast USB Charge: OFF
    
    CHANGELOG (stable)

    SOURCE
    https://github.com/i...eanKernel-d2vzw

Edited by imoseyon, 23 September 2014 - 07:33 PM.

  • 52 Likes

OP imoseyon

imoseyon

Developer

Posted 13 August 2012 - 07:20 PM #2

FAQ

SIO vs Deadline?
OnDemand vs Interactive(X)?
Read this post: http://rootzwiki.com...280#entry938766

Are you having intermittent weirdness and suspect issues with cpu voltage? If so read this post:
http://rootzwiki.com...010#entry953903
TLDR; In order to allow custom user undervolting, my kernels bypass stock samsung kernel's code subroutine that overrides your minimum voltage to 1150mV. Your phone's CPU may be one of the few that needs the extra juice for stability; if so, increase minimum voltage up to 1150mV. UPDATE: Use "lkconfig"

How do I OC GPU?
First download the latest experimental version. By default max gpu is set to 400Mhz at boot. To change it to 480Mhz:
To increase maximum GPU frequency in 3D mode to 480 MHz:
echo 480000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
UPDATE: Use "lkconfig"

Why does my phone spend so much time at 1134Mhz?
Two reasons: 1) thermald, and 2) power hal. You can stop thermald ("stop thermald"), although not recommended. As for powerhal, read this post: http://rootzwiki.com...10#entry1104109

Edited by imoseyon, 17 February 2013 - 10:07 AM.

  • 7 Likes

wera750

wera750

Android Addict

  • 1,043 posts

Posted 13 August 2012 - 07:22 PM #3

Good to see an aosp thread now!

And first! Lol
Sent from my SCH-I535 using RootzWiki

Edited by wera750, 13 August 2012 - 07:22 PM.

  • 1 Likes
Bout that time of year to turn back into a racer and give the nerdery a break...

BMc08GT

BMc08GT

Android Guru

Posted 13 August 2012 - 07:26 PM #4

Great work imo. Thanks for giving me the go ahead too. Looking forward yo the future.:)

Sent from my SCH-I535 using RootzWiki
  • 1 Likes
--TeamKang Member--

Appreciate what I do or like my work? Buy me a shot and I love you long time. <3

jdhas

jdhas

Android Flashaholic

Posted 13 August 2012 - 07:30 PM #5

Pumped to see this. Will flash shortly send will report back.

Thanks for all of your hard work on this!

Sent from a galaxy far, far away....
  • 0 Likes
Ask your self "Does my post contribute to the conversation?" before hitting the submit button.

Asenduk

Asenduk

Android Apprentice

  • 52 posts

Posted 13 August 2012 - 08:01 PM #6

Working great so far.. thanks IMO!!
  • 0 Likes

OP imoseyon

imoseyon

Developer

Posted 13 August 2012 - 08:03 PM #7

oops forgot the ffc script in the ramdisk - just added it to 0.2 beta.
  • 0 Likes

neyenlives

neyenlives

Average Android

  • 334 posts

Posted 13 August 2012 - 08:17 PM #8

just flashed it, so far ok thanks

Edited by neyenlives, 13 August 2012 - 08:18 PM.

  • 0 Likes
SGSIII on CM10 as my DD

find me on irc.freenode.net #verizons3

Asenduk

Asenduk

Android Apprentice

  • 52 posts

Posted 13 August 2012 - 08:29 PM #9

Freq sometimes will not stick but happens randomly.. is it a script or something that automatically adjusts it?
  • 0 Likes

icewall

icewall

Member

  • 24 posts

Posted 13 August 2012 - 09:07 PM #10

removed post*

Edited by icewall, 13 August 2012 - 09:09 PM.

  • 0 Likes