[kernel][lollipop] leanKernel: minimalistic kernel, v6.3 (tw), v5.2 (aosp)

Imoseyon

Recognized Developer
Dec 21, 2010
2,495
8,858
203
Mountain View, CA
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)
[lollipop][touchwiz]: https://onedrive.live.com/?cid=F1ED4BADFEE3FC02&id=F1ED4BADFEE3FC02!110
[lollipop][aosp]: https://onedrive.live.com/?cid=F1ED4BADFEE3FC02&id=F1ED4BADFEE3FC02!470
[kitkat] n900t / n900w8 / n900v: http://1drv.ms/1pJPexn
[kitkat] other n900x devices: http://1drv.ms/1pXzyT1


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:
[email protected]:/ $ [B]su[/B]
[email protected]:/ # [B]lkconfig[/B]

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

[email protected]:/ #
You can also use /data/data/leankernel (lkconfig writes to this dir) manually, or write to sysfs nodes directly.

CHANGELOG
Lollipop: https://onedrive.live.com/?cid=F1ED4BADFEE3FC02&id=F1ED4BADFEE3FC02!470
Kitkat: https://github.com/imoseyon/leanKernel-note3/wiki/Kitkat-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
Source Code: https://github.com/imoseyon/leanKernel-note3

Kernel Special Features:

Version Information
Status: Stable

Created 2013-10-18
Last Updated 2015-11-04
 

Imoseyon

Recognized Developer
Dec 21, 2010
2,495
8,858
203
Mountain View, CA
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/showthread.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/showpost.php?p=54987306&postcount=2284
http://forum.xda-developers.com/showpost.php?p=55463335&postcount=2405

Screen mirroring is broken!
http://forum.xda-developers.com/showpost.php?p=55233575&postcount=61
 
Last edited:

mocsab

Senior Member
Aug 16, 2011
3,723
1,371
0
West Milwaukee
www.shimmeringglass.com
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!
 

Warrior1975

Senior Member
Jul 19, 2012
3,347
1,701
0
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
 
  • Like
Reactions: kevp75

Imoseyon

Recognized Developer
Dec 21, 2010
2,495
8,858
203
Mountain View, CA
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.
 

mocsab

Senior Member
Aug 16, 2011
3,723
1,371
0
West Milwaukee
www.shimmeringglass.com
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!
 
  • Like
Reactions: Warrior1975

Warrior1975

Senior Member
Jul 19, 2012
3,347
1,701
0
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
 

mocsab

Senior Member
Aug 16, 2011
3,723
1,371
0
West Milwaukee
www.shimmeringglass.com
Which APP for OC Undervolt?

I tried to use Trickster to Undervolt a little and to OC _ but I could not see the frequencies or even change them - SO I used ROM Tool Box and was able to do everything I needed to - do you have a preferred App you suggest or is ROM Tool box as good as anything for this?
 

Warrior1975

Senior Member
Jul 19, 2012
3,347
1,701
0
Setcpu seems to be the most common. I don't see what would be wrong with rom toolbox, I like their apps.

Sent from my SM-N900T using Xparent Skyblue Tapatalk 2
 

Imoseyon

Recognized Developer
Dec 21, 2010
2,495
8,858
203
Mountain View, CA
Not quite sure why Trickstermod does not work right. I think it's a permission/selinux issue. I sent a note to Team Trickster. I think any of the other tools mentioned will work fine.

Does the phrase custom undervolting in op mean that this kernal is already undervolted by default?
No the default voltages are stock (for now) - you can use one of the cpu apps to undervolt and go crazy. :)
 

cwalker0906

Senior Member
Nov 2, 2010
1,566
514
133
chicago
Not quite sure why Trickstermod does not work right. I think it's a permission/selinux issue. I sent a note to Team Trickster. I think any of the other tools mentioned will work fine.



No the default voltages are stock (for now) - you can use one of the cpu apps to undervolt and go crazy. :)
Ok thank you sir for your work
 

Imoseyon

Recognized Developer
Dec 21, 2010
2,495
8,858
203
Mountain View, CA
Here's another beta update (0.4b): http://androtransfer.com/?developer=imoseyon&folder=hlte

Samsung code is a bit behind CodeAurora, especially the GPU code so I started updating them: gpu, row scheduler, msm cpufreq, etc. Will take a while to completely modernize everything I think. If you run into issues with 0.4b report it here and go back to 0.3b.

Edit: 0.4.2b is the latest - had to revert cpufreq updates due to some bootloops.
 
Last edited: