Jump to content

  1. 0
  2. 0
  3. 0/5

Rate this Topic

* * * * *
18 votes

[kernel][TW][ML1 v4.0, 1/11/14] Leankernel: Minimalistic Kernel

  • Please log in to reply

OP imoseyon

imoseyon

Developer

Posted 29 July 2012 - 04:36 PM #1

This is a Touchwiz kernel. Use this thread to report bugs, etc.

DOWNLOADFEATURES
  • Unnecessary components removed for lean and fast kernel.
  • Two new sleep states: Retention and Standalone Power Collapse
  • Compiled using latest Linaro compiler with additional optimizations.
  • Latest Linux updates applied.
  • Ramdisk optimizations.
  • OC'ed to 1.9Ghz (limited to 1.51Ghz at boot, use an app to change max freq), and all frequencies undervolted
  • ROW v4 I/O scheduler default
  • Fast Charge (toggle via the "ffc" script - open terminal, type ffc then enter, plug in phone via USB)
  • On-demand governor backported from Linux 3.5
  • InteractiveX V3 - optimized for S3, screen_off_maxfreq sysfs interface (default set to 810Mhz). (Note: I didn't change the name to interactivex in the kernel this time)
  • Fixed governor switching bug where switching from ondemand to another governor could keep cpu1 offline until you switch back.
  • Power efficiency fixes - wakelock tweaks, gsiff_daemon workaround, etc.
  • Modified thermal control to play nicely with OC.
  • Fixed governor transition latency.
  • 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
  • Faux sound control support
  • Adjustable display color temp
leanKernel scripts - some not available starting v4.0
lkflash (flash latest leanKernel versions from your phone - must su first)

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 - must su first)
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) Set display color temp to cold.
5) Set display color temp to normal.
6) Set display color temp to warm.

Please enter a number between 1 and 6 (or press enter to exit): 6
Color temp is set to Warm - turn display off/on to take effect.
ffc (force fast charge toggler)
root@android:/ # ffc
Fast USB Charge: ON
root@android:/ # ffc
Fast USB Charge: OFF
CHANGELOG (JB)


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

Edited by imoseyon, 11 January 2014 - 10:46 AM.

  • 71 Likes

OP imoseyon

imoseyon

Developer

Posted 29 July 2012 - 04:36 PM #2

How do I use USB Fast Charge?
  • 1) Unplug from USB cable.
  • 2) Open Terminal Emulator, type "ffc" (without quotes) and enter. This command will toggle your fast charge state.
  • 3) Plug it back in.
  • Note: running the same command again will disable fast charge.
  • Also, when fast charge is enabled USB communication will be disabled.
Why does my top speed become 1.9Ghz even though I never set it higher than 1.5Ghz?
Your ROM's thermal control will automatically set your max speed to top kernel speed, *after* it's been tripped once due to high cpu temperature. Unfortunately there's not a whole lot I can do to fix that in the kernel. Ask your ROM dev to see if they can fix /system/bin/thermald. Read this post. UPDATE: v0.5 (and higher) kernel has a workaround to fix this issue.

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.

What is the kernel default voltages?
http://rootzwiki.com...10#entry1042976

Edited by imoseyon, 17 December 2012 - 06:25 PM.

  • 20 Likes

DroidOnRoids

DroidOnRoids

Everybody! Mosh Pit!

Posted 29 July 2012 - 04:39 PM #3

Finally Imoseyon made a thread :P

Thanks, will be doing some testing and will report back.
  • 0 Likes

burkett375

burkett375

Member

  • 16 posts

Posted 29 July 2012 - 04:40 PM #4

Thanks!
  • 0 Likes

PhantomGamers

PhantomGamers

Thunderstruck

Posted 29 July 2012 - 04:42 PM #5

thanks man, i'm going to flash this. :D
  • 0 Likes
[UNOFFICIAL] AOKP-JB d2vzw builds
Current Phone: Verizon Samsung Galaxy S3 i535 (d2vzw) (32GB/Blue)
Alternative Phone: Google/LGE Nexus 4 (mako) (16GB) (Soon to be T-Mobile) [Out of commission]
Current Tablet: HP Touchpad 32GB
Retired Phone: Verizon Motorola Droid 2 A955

bobloblaw1

bobloblaw1

Average Android

  • 183 posts

Posted 29 July 2012 - 05:05 PM #6

Here's a link to a compatible recovery that Imo linked to in the preview thread:
http://cl.ly/ILpQ




Sent from my SCH-I535 using RootzWiki

Edited by bobloblaw1, 29 July 2012 - 05:07 PM.

  • 0 Likes

PhantomGamers

PhantomGamers

Thunderstruck

Posted 29 July 2012 - 05:06 PM #7

seems to be running fine, thanks dude! :D
  • 0 Likes
[UNOFFICIAL] AOKP-JB d2vzw builds
Current Phone: Verizon Samsung Galaxy S3 i535 (d2vzw) (32GB/Blue)
Alternative Phone: Google/LGE Nexus 4 (mako) (16GB) (Soon to be T-Mobile) [Out of commission]
Current Tablet: HP Touchpad 32GB
Retired Phone: Verizon Motorola Droid 2 A955

OP imoseyon

imoseyon

Developer

Posted 29 July 2012 - 05:10 PM #8

Here's a link to a compatible recovery that Imo linked to in the preview thread:
http://cl.ly/ILpQ




Sent from my SCH-I535 using RootzWiki


Thanks I'll add that to the OP as well.
  • 1 Likes

ercDROID

ercDROID

Android Apprentice

  • 81 posts

Posted 29 July 2012 - 05:24 PM #9

What version of cwm is the one suggested? Is it one that is on ez recovery?
  • 0 Likes

OP imoseyon

imoseyon

Developer

Posted 29 July 2012 - 05:31 PM #10

What version of cwm is the one suggested? Is it one that is on ez recovery?


v6.0.1.0 I'm pretty sure the one from ROM Manager also works.

Edited by imoseyon, 29 July 2012 - 05:31 PM.

  • 0 Likes