Jump to content


* * * * * 12 votes

[Kernel] [Aosp] [JB] [v6.0, 5/19/13] Leankernel: Minimalistic Kernel


  • Please log in to reply

#1 imoseyon (OP)

imoseyon

    Developer

  • 2,025 posts

Posted 13 August 2012 - 07:20 PM

Source:
Mod Type: Kernel     Difficulty: Very Easy     Mod Status: Stable     Mod Base:      Carrier:
Requires Root: Yes     Apply In: CWM Recovery     Optional:      Optional:      Android Version:


This is an AOSP kernel (Jellybean only). Use this thread to report bugs, etc.

NOTE: Make sure you're on the latest AOSP nightly ROM if you're flashing leanKernel later than v5.4.2.

DOWNLOAD FEATURES
  • Unnecessary components removed for lean and fast 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

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, Today, 08:39 AM.


#2 imoseyon (OP)

imoseyon

    Developer

  • 2,025 posts

Posted 13 August 2012 - 07:20 PM

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.


#3 wera750

wera750

    Android Addict

  • Site Contributor
  • 1,042 posts

Posted 13 August 2012 - 07:22 PM

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.

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

#4 BMc08GT

BMc08GT

    GiT iT

  • 3,935 posts

Posted 13 August 2012 - 07:26 PM

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

Sent from my SCH-I535 using RootzWiki
--AOKP d2's maintainer && TeamKang Member--

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

#5 jdhas

jdhas

    Android Flashaholic

  • Members
  • 361 posts

Posted 13 August 2012 - 07:30 PM

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....
Ask your self "Does my post contribute to the conversation?" before hitting the submit button.

#6 Asenduk

Asenduk

    Android Apprentice

  • Members
  • 52 posts

Posted 13 August 2012 - 08:01 PM

Working great so far.. thanks IMO!!

#7 imoseyon (OP)

imoseyon

    Developer

  • 2,025 posts

Posted 13 August 2012 - 08:03 PM

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

#8 neyenlives

neyenlives

    Average Android

  • Members
  • 331 posts

Posted 13 August 2012 - 08:17 PM

just flashed it, so far ok thanks

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

SGSIII on CM10 as my DD

find me on irc.freenode.net #verizons3

#9 Asenduk

Asenduk

    Android Apprentice

  • Members
  • 52 posts

Posted 13 August 2012 - 08:29 PM

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

#10 icewall

icewall

    Member

  • Members
  • 24 posts

Posted 13 August 2012 - 09:07 PM

removed post*

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