• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [MetroPCS/CDMA] [Kernel][AOSP][JB][Linaro] leanKernel

Twin Prime

Well-Known Member
Jul 28, 2012
195
110
I did NOT make this kernel! This was compiled by Imoseyon. I had nothing to do with making it. He (and any contributors) deserves your thanks. I found this by digging around for d2usc ROMs and kernels, since the d2usc is similar to the d2mtr.

d2vzw kernel = d2vzw/d2usc/d2mtr kernel-wise. Yes, the d2vzw kernel works. I'm using it. Don't blame me if things go horribly, horribly wrong. They probably won't but you never know. Remember to have backed up before flashing.

Look for lk_s3vzw_aosp_43-v5.#.zip for the AOSP 3.4 kernels.
I'll post changelogs in the thread, too. As soon as available.

v9.0 and above are for Android 4.4
v8.0 and above are for Android 4.3
v7.2 and below are for Android 4.2

| Stable (Mirror) | Changelog | gist | Source | Report Bugs | Thank Imoseyon |

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

leanKernel scripts
lkflash (flash latest leanKernel versions from your phone)
[HIGH]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[/HIGH]​
lkconfig (configure leankernel specific settings which will persist between reboots)
[HIGH]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):[/HIGH]​
ffc (force fast charge toggler)
[HIGH]root@android:/ # ffc
Fast USB Charge: ON
root@android:/ # ffc
Fast USB Charge: OFF[/HIGH]​
 
FAQ

Q: Problems with phone stability?
A: You can try setting your voltages to at least 1150 mV for ALL frequencies. That may solve it, because some CPUs don't run well with voltage lower than 1150 mV.

Q: You want to try experimental stuff?
A: Get the experimental kernel. http://imoseyon.host4droid.com/s3/aosp/exp

Q: Do I need to wipe cache & Dalvik cache?
A: Imoseyon had said that, in general, there's no need, but it doesn't hurt. If you want to take the time, then go ahead. He doesn't. I do.

Q: What's Force Fast Charge do?
A: It's my understanding that it will make your phone treat a USB connection to a computer as if it was charging from a wall outlet. Hence, no USB connectivity while enabled.

Q: Which governor and scheduler are best?
A-1: InteractiveX is responsive and has an energy saving 800 MHz screen off profile. OnDemand is good, too.
A-2: ROW (read over write) scheduler favors typical mobile device behavior. Deadline is a tried and true scheduler from Linux that, also, favors reads over writes and it is good in databases.
A-3: Don't over think this one. That's one reason why we're using leanKernel.

Q: How can I get amazing battery life?
A: leanKernel already does a pretty good job of this. It's well undervolted. Underclock your CPU to 1134 MHz, if you want. Leave your screen off and shut off syncing (or get Snapdragon
 
Upvote 0
leanKernel v5.8
http://goo.im/devs/imoseyon/d2vzw/
http://imoseyon.host4droid.com/s3/aosp/
MD5: ab6cd59cd061ab1d7e7bc16b0c2af382

FEATURES
• ramdisk: lkconfig: add options to add/remove 480Mhz gpu slot
• ramdisk: lkconfig: change color temp
will probably remove once all the ROMs implement gui interface​
• GPU 3D: Overclock: Add 480Mhz slot - controllable via sysfs
/sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_pwrlevel

0 = Enable 480Mhz slot 1 = Disable 480Mhz slot (keep max at 400Mhz)

max_gpuclk also works.​

BUGFIXES
• m2 display: increase bandwidth to fix more underrun issues
• d2: relocate sysfs interface for panel_colors
Now at: /sys/class/lcd/panel/panel_colors​

IMPROVEMENT
• Merge remote-tracking branch 'github/cm-10.1
 
Upvote 0
leanKernel v5.9
http://goo.im/devs/imoseyon/d2vzw/
http://imoseyon.host4droid.com/s3/aosp/
MD5: 01f493ba1e02e1a9f1c314a2e67492ac

IMPROVEMENTS
• msm: kgsl: 2D enhancements
cherry picked a bunch of commits for 2D GPU from CA​
• Merge remote-tracking branch 'github/cm-10.1'
• Linux 3.4.44

BUGFIX
• ramdisk: fix lkconfig for color temp control
 
Upvote 0
This maybe a noob question but did I have to flash my phone before installing or just clear cashe?

I clear the cache & Dalvik cache anyway because I'm using GooManager with TWRP (there's a check box for wiping the caches). As far as I know, however, you shouldn't have to.

If you experience any problems then definitely go into recovery and wipe cache, wipe Dalvik cache, fix permissions, and reboot.

Always backup first.

Edit: Updated FAQ regarding this.
 
Upvote 0
  • Like
Reactions: mike28
Upvote 0
Thanks trying out now.

Edit: on it for about an hour now, and it's definitely not as snappy as bms but the battery life has improved a lot. So I sticking with it off that alone. :)

Cool. That's part of what I think Imoseyon was aiming for. BMS has everything and the kitchen sink in it and I like that, too.

Did you try overclocking the GPU at all?
 
Upvote 0
Look in your about phone to see what kernel number you're on. Most likely you're installing the 3.4 bms kernel to a 3.0 rom. M3 was so way back I can't even remember. Do yourself a favor and download cm rc2.

Thanks. But which is alot better, BMS or this kernel in this page. I have an exnteded battery 7k mAh but only last 2 days with 10 hours of use. I see people going alot more!.
 
Upvote 0
Thanks. But which is alot better, BMS or this kernel in this page. I have an exnteded battery 7k mAh but only last 2 days with 10 hours of use. I see people going alot more!.

Thats probably because that 7k mah is actually just 4k or so. As as the kernel, just like i said above bms felt snappier, but lean is better with battery. Could be different for you, try em both. Pretty easy to switch back and forth.
 
  • Like
Reactions: GotDat
Upvote 0
leanKernel v6.1
http://goo.im/devs/imoseyon/d2vzw/
http://imoseyon.host4droid.com/s3/aosp/
MD5: 9248abca39d93b9e93e47ff9d7d89922

IMPROVEMENTS
• Linux 3.4.47
• Revert recent msm_serial_hs commits from CodeAurora to fix BT
• Merge tag 'AU_LINUX_ANDROID_JB_2.5.04.02.02.040.326' into lk-cm-merged
• workqueue: cherry-picked a bunch of workqueue commits from CA
• msm: cpufreq: Configure WQ for higer priority
 
  • Like
Reactions: airtioteclint
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones