Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,779,915 Members 37,275 Now Online
XDA Developers Android and Mobile Development Forum

[kernel][kitkat] leanKernel: minimalistic kernel, v3.7

Tip us?
 
Imoseyon
Old
#1  
Imoseyon's Avatar
Recognized Developer - OP
Thanks Meter 3,837
Posts: 1,426
Join Date: Dec 2010
Location: Mountain View, CA

 
DONATE TO ME
Default [kernel][kitkat] leanKernel: minimalistic kernel, v3.7

leanKernel is not for everyone. My philosophy is to keep the kernel footprint as small as possible by trimming as much fat as possible, and at the same time keeping it stable, power efficient, and fast. You will find that it's lacking some of the bells and whistles of other custom kernels, so if you like features you came to the wrong thread. :)

The "warranty bit" message at boot is normal.

DOWNLOAD (flash in recovery)
leanKernel n900t / n900w8 / n900v: http://1drv.ms/1pJPexn
leanKernel other n900x devices: http://1drv.ms/1pXzyT1
AOSP kernel builds: http://1drv.ms/1pK3eqW

PREREQUISITE
Working recovery (you can actually do this without recovery via flashbeta script)
Knox 0x1 :)

FEATURES
  • overclocked to 2.72Ghz, but max set to 2.2Ghz at boot
  • user custom undervolting
  • updated to latest 3.4 Linux (ie. 3.4.67)
  • interactiveX V4 (screen_off_maxfreq)
  • ondemandX (screen_off_maxfreq)
  • user adjustable panel temperature: -60 to 0, 0 is kernel default (via lkconfig & sysfs)
  • user adjustable panel colors: 0 to 4, 2 is kernel default (via lkconfig & sysfs)
  • lkconfig script (via terminal emulator, superuser required)
  • fix for purple hue/push at low brightness (via panel temperature or panel colors)
  • cpufreq modified to play better with thermal-engine
  • latest Linaro gcc 4.8 toolchain
  • built-in supersu and init.d support
  • fat trimmed and performance tweaks
  • interactive governor updated to latest android source (but ondemand left default)
  • outdated samsung code updated to later CodeAurora source (cpufreq, mdss, gpu, msm-bus, etc.)
  • cpufreq issues fixed
  • exfat support
  • ram console enabled for /proc/last_kmsg for kernel crash debugging

CONFIGURATION OPTIONS
Open Terminal Emulator, become superuser by typing "su" (without quotes), enter, and type "lkconfig" (without quotes), then enter:
Code:
shell@hltetmo:/ $ su
root@hltetmo:/ # lkconfig

leanKernel configurator
---
0) display current settings
1) panel temperature
2) panel color
3) set screen_off_maxfreq
4) panel brightness tweak

please enter a number (or press enter to exit): 2
Enter a number between 0 and 4 (2 is kernel default): 2
Turn off screen and back on (also will persist at boot)


leanKernel configurator
---
0) display current settings
1) panel temperature
2) panel color
3) set screen_off_maxfreq
4) panel brightness tweak

please enter a number (or press enter to exit): 0

current settings
----------------
1) panel temperature: -25
2) panel color: 2
3) screen off maxfreq: 1267200
4) panel brightness tweak (0 off, 1 on): 1

root@hltetmo:/ #
You can also use /data/data/leankernel (lkconfig writes to this dir) manually, or write to sysfs nodes directly.

CHANGELOG
Kitkat: https://github.com/imoseyon/leanKern...tkat-ChangeLog
JB: https://github.com/imoseyon/leanKern.../mr2-ChangeLog

Source: https://github.com/imoseyon/leanKernel-note3

If you want to donate, either donate to your favorite charity or use the link in my profile.

XDA:DevDB Information
Leankernel: Minimalistic Kernel, Kernel for the T-Mobile Samsung Galaxy Note 3

Contributors
Imoseyon
Kernel Special Features:

Version Information
Status: Stable

Created 2013-10-18
Last Updated 2014-08-25
The Following 133 Users Say Thank You to Imoseyon For This Useful Post: [ Click to Expand ]
 
Imoseyon
Old
(Last edited by Imoseyon; 22nd August 2014 at 05:35 PM.)
#2  
Imoseyon's Avatar
Recognized Developer - OP
Thanks Meter 3,837
Posts: 1,426
Join Date: Dec 2010
Location: Mountain View, CA

 
DONATE TO ME
FAQ

What are ondemandX and interactiveX?
ondemandX and interactiveX are very very close to "stock" ondemand and interactive governors, respectively. The only difference is screen_off_maxfreq sysfs support. This means that it gives you the ability to limit phone's max frequency when screen is off. This feature could be effective in reducing battery usage, especially if you have a misbehaving app (or two) that consume cpu cycles while screen is off. The default value is 1267200 - if you change the value to your top speed you're effectively disabling the feature and restoring stock behavior completely. You can use an app like Trickster to modify screen_off_maxfreq.
Code:
cat /sys/devices/system/cpu/cpufreq/interactive/screen_off_maxfreq
1267200
What is this purple hue/push issue, and do I care?
First if you don't already know about it then you're better off not discovering this. So ignore and move on.
Otherwise, read this thread: http://forum.xda-developers.com/show....php?t=2462078
On leanKernel, you can set panel temp to -25 or lower, or panel color to 3 or higher to fix/circumvent this issue.

mpdecision on or off?
leanKernel (for all phones) is a drop in replacement for stock kernel. It is designed to work with mpdecision - I would not turn it off. But then again if you like how the phone is running with it off, go ahead.

my cores are stuck!
http://forum.xda-developers.com/show...postcount=2284
twitter: @imoseyon
The Following 39 Users Say Thank You to Imoseyon For This Useful Post: [ Click to Expand ]
 
fredrick1213
Old
#3  
fredrick1213's Avatar
Senior Member
Thanks Meter 117
Posts: 760
Join Date: Feb 2011
Love all these kernel options! Nice work!
HTC One M8 (Current): Stock / 4.4.2 KK
Samsung Galaxy Note 3 (Retired): Omega v12 / 4.4.2 KK
Samsung Galaxy S4 (Sold): Stock Unrooted MF3 / 4.2.2 JB
Samsung Galaxy S3 (Retired): STOCKORAMA V2.0 / 4.1.2 JB
Samsung Galaxy S2 E4GT (Retired): Stock GB27 / 4.1.2 JB
HTC EVO 3D (Retired): Team PkmN - Charmander 4.2.0 / 4.0.3 ICS
HTC Droid Incredible 2 (Retired): Virtuous Unity v2.39.0 / 2.3.4 GB
HTC Hero (Retired): TeamHeroC / 2.3.7 GB
 
mocsab
Old
#4  
mocsab's Avatar
Senior Member
Thanks Meter 616
Posts: 2,301
Join Date: Aug 2011
Location: West Milwaukee
THIs is great - thank you. I have tried to flash other kernels that offered OC - but I couldn't get my phone to boot -kept rebooting - not with your kernel - flashed nicely - working very well so far - of course I just flashed it so I need to "play" for a bit but so far so good.

Thanks for your work!
My Phone Galaxy S5 G900T
My Rom: Alliance 5.1
My Recovery: TWRP
Kernel: KT-SGS5 - with KTWEAKER
My Carrier - ATT




Former Devices: ☆Galaxy Note 3☆HTC ONE☆Galaxy S IV☆Galaxy Note II☆Galaxy S3☆EVO 4g LTE☆Nexus☆Epic 4G☆Treo(W)☆Palm Treo☆(P)
 
XxLostSoulxX
Old
#5  
XxLostSoulxX's Avatar
Senior Member
Thanks Meter 435
Posts: 3,741
Join Date: May 2010
Location: Ft. Worth
Quote:
Originally Posted by fredrick1213 View Post
Love all these kernel options! Nice work!
Haha all of these? You mean to say wow I can now choose out of 3. Lol. Our phone is just barely in development wait till it gets to 10 options for everything lol.

Don't get me wrong I'm happy in all but don't be sarcastic haha.

Sent from my SM-N900T using xda app-developers app
RIP Tori Dean Crawford 2/26/93 - 06/04/12 Great Friend Who Will Forever Be Missed

Samsung Epic 4G:
Cyanogen Mod 7.2 @ 1.8 GHz
Cyanogen Mod 10 @ 1.0 GHz
Samsung Nexus S 4G:
Cyanogen Mod 10 ~ Matr1x @ 1.0GHz
AOKP MS 6 ~ Air @ 1.47GHz
Samsung Galaxy N2:
Stock @ 1.9GHz
LG Nexus 4:
Stock @ 1.83GHz
Samsung Galaxy Note 3:
Stock @ 3.0GHz
 
Warrior1975
Old
#6  
Warrior1975's Avatar
Senior Member
Thanks Meter 1,307
Posts: 2,665
Join Date: Jul 2012
Awesome. IIRC, you did kernels on S3? Thanks for sharing brother.

Sent from my SM-N900T using Xparent Skyblue Tapatalk 2

---------- Post added at 09:14 PM ---------- Previous post was at 08:40 PM ----------

Installed and working. I haven't been able to use any oc kernels yet, I'll play with this later, see if I can successfully OC. Thanks again bro.

Sent from my SM-N900T using Xparent Skyblue Tapatalk 2
Galaxy Note 2-Tweaked.
 
Imoseyon
Old
#7  
Imoseyon's Avatar
Recognized Developer - OP
Thanks Meter 3,837
Posts: 1,426
Join Date: Dec 2010
Location: Mountain View, CA

 
DONATE TO ME
Quote:
Originally Posted by Warrior1975 View Post
Awesome. IIRC, you did kernels on S3? Thanks for sharing brother.

Sent from my SM-N900T using Xparent Skyblue Tapatalk 2

---------- Post added at 09:14 PM ---------- Previous post was at 08:40 PM ----------

Installed and working. I haven't been able to use any oc kernels yet, I'll play with this later, see if I can successfully OC. Thanks again bro.

Sent from my SM-N900T using Xparent Skyblue Tapatalk 2
Yup I've been developing custom kernels for a long time. Currently still maintaining gnex (tuna), s3 (d2*), and nexus7 (grouper) leankernels. Been almost exclusively on Verizon until about 2 days ago. Mostly known for my "X" governors - speaking of, I will start working on ondemandX and interactiveX soon.
twitter: @imoseyon
The Following 13 Users Say Thank You to Imoseyon For This Useful Post: [ Click to Expand ]
 
Warrior1975
Old
#8  
Warrior1975's Avatar
Senior Member
Thanks Meter 1,307
Posts: 2,665
Join Date: Jul 2012
Glad to see you on this side. Looking forward to seeing more of your work. Hope your enjoying your N3.

Sent from my SM-N900T using Xparent Skyblue Tapatalk 2
Galaxy Note 2-Tweaked.
The Following User Says Thank You to Warrior1975 For This Useful Post: [ Click to Expand ]
 
mocsab
Old
#9  
mocsab's Avatar
Senior Member
Thanks Meter 616
Posts: 2,301
Join Date: Aug 2011
Location: West Milwaukee
Quote:
Originally Posted by Warrior1975 View Post
Awesome. IIRC, you did kernels on S3? Thanks for sharing brother.

Sent from my SM-N900T using Xparent Skyblue Tapatalk 2

---------- Post added at 09:14 PM ---------- Previous post was at 08:40 PM ----------

Installed and working. I haven't been able to use any oc kernels yet, I'll play with this later, see if I can successfully OC. Thanks again bro.

Sent from my SM-N900T using Xparent Skyblue Tapatalk 2
I bet you will be able to - I flashed and was able to OC - first time from any of the kernels that are available right now - working really well too - looking forward to running for a while....am on Wicked ROM and all is good!
My Phone Galaxy S5 G900T
My Rom: Alliance 5.1
My Recovery: TWRP
Kernel: KT-SGS5 - with KTWEAKER
My Carrier - ATT




Former Devices: ☆Galaxy Note 3☆HTC ONE☆Galaxy S IV☆Galaxy Note II☆Galaxy S3☆EVO 4g LTE☆Nexus☆Epic 4G☆Treo(W)☆Palm Treo☆(P)
The Following User Says Thank You to mocsab For This Useful Post: [ Click to Expand ]
 
Warrior1975
Old
#10  
Warrior1975's Avatar
Senior Member
Thanks Meter 1,307
Posts: 2,665
Join Date: Jul 2012
I only tried Saber, couldn't over clock, but the green kernel was fine. I just changed my max freq with setcpu to max, fine so far. I'm not one to OC, don't see the need, but was more curious to see if it worked.

Sent from my SM-N900T using Xparent Skyblue Tapatalk 2
Galaxy Note 2-Tweaked.

The Following User Says Thank You to Warrior1975 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes