[Kernel][JB & ICS] Leankernel: Minimalistic Kernel (ICS 3.10.0, JB 4.2.0 , 7/23/12) - Samsung Galaxy Nexus

[Kernel][JB & ICS] Leankernel: Minimalistic Kernel (ICS 3.10.0, JB 4.2.0 , 7/23/12)
Mod Type:: Kernel
Difficulty:: Very Easy
Mod Status:: Stable
Apply In:: CWM Recovery
Requires Root:: Yes
Source::
This is a minimalistic Galaxy Nexus kernel. My philosophy is to keep the kernel as lean and stable as possible, at the same time to keep the kernel as modern and close to latest mainstream linux as possible. You will see that my kernels will lack some of the bells and whistles from other kernels.
DOWNLOAD
JB: stable
Terminal Emulator not finding my scripts? Read this post.
Stock JRN84D kernel
JB: experimental builds (4.x and above)
ICS: stable
Experimentals & notrim builds (NOTE: 3.9.0exp6 is the latest and is equivalent to 3.10.0 stable)
all files
commit/change log (always up to date)
FEATURES
Patched to latest in Linux 3.0.x branch: 3.0.38.
All unnecessary kernel components removed to make kernel lean and fast!
OC to 1.65ghz. Boot speed is maxed at 1.2ghz within kernel (in addition to ramdisk) for stability.
User voltage control
InteractiveX V2 (screen-off hotplug of cpu1) added. Select it using setcpu if you want to use it.
Ramdisk tweaks (sysctl, vm, filesystem speed, etc.)
SWAP & zram (next generation compcache) support. Run "zram enable" in terminal.
init.d support in ramdisk.
lk.conf for basic kernel configuration.
HotplugX governor (Hotplug optimized and modified for screen-off suspend).
wakelock tweaks for wlan and lte modem
lkflash - script to flash latest versions of leanKernel from Terminal (type "su" without quotes, hit enter, then type "lkflash" without quotes and then hit enter)
checkv - voltage checking script (for custom undervolting) - detailed at bottom of this post.
checkt - script that displays 1) your current temp, 2) # of times you were throttled due to temp "recently", 3) CPU trim type, and 4) CPU silicon type, etc. (sample output)
Fast USB charge (by chad0982) and "ffc" toggle script by me. (Open terminal, and type "ffc" without quotes then enter)
ColorControl from both CM9 and Ezekeel (compatible with all ROMs). Helpful posts: 1and 2.
TempControl - sysfs interface to control the CPU temp threshold. Read these two posts: 1 and 2.
Variable GPU OC - sysfs interface to select GPU max speed between 307MHz (stock), 384MHz and 512Mhz. The changes take effect immediately. Check FAQ for more info and how to use it.
Custom SR Tuning - override kernel default minimum voltage for SR calibration. More info here and here. V2
SoundControl
Gamma Control
DIRECTIONS
Uh.... flash the zip in clockworkmod.
FAQ
SOURCE
ICS
JB
Thanks to forum member maddler for providing file hosting: http://www.host4droid.com/
Third party mods (not tested by me so use at your own risk)
Jakes lean tweaks.
Donate to your favorite charity, or donate to me.

Anyone flash this yet? I'm only concerned about battery life.

CHANGE LOG JB
v4.0.0 - Initial release (JELLY BEAN ONLY)
v4.1.0 (fefb04211256bd082776fab735acd56b) - change log
v4.2.0 (7ce15474db2baee1ffef86b0a46e4f0a) - change log
CHANGELOG ICS
v1.0.0 - Initial release
v1.0.1 - Fixed power off charging (only upgrade if you care about that).
v1.1.0 - rcu code updated to linux 3.2-rc7, boot speed max forced to 1.2ghz within kernel (stability), hotplug governor should be more stable now, zram enabled including custom enable script (run "zram enable" in terminal), small bug fixed in voltage control code.
v1.2.0 - interactiveX V2 with hotplug support, user undervolting works now, and all speeds undervolted by default (clear setcpu settings before flashing), ALSA SoC driver updated to 3.2-rc7
v1.2.1 - reverted a dep voltage change I made in 1.2.0. Only update if you're experiencing stability issues in 1.2.0 (if your coming directly from a version prior to 1.2.0 make sure you clear custom voltage settings)
v1.3.0 - re-wrote a lot of my user undervolting code (fixed some bugs and probably introduced others - haha), updated dm and futex code to linux 3.2, gpu undervolt at top speed, some code cleanup. (clear setcpu settings before flashing). Oh one more thing: undervolting 1.35ghz and higher is not reliable yet and is not recommended.
v1.4.0 - updated to Linux 3.0.15 (small release), voltage regulator driver from Linux 3.2, omap clock data updated from latest official omap source.
*v1.5.0 - updated to Linux 3.0.16 (big update), more accurate/reliable user voltage control for frequencies less than 1.35ghz.
v1.6.0 - read this post.
v1.6.1 - *battery drain - being fixed*, updated to Linux 3.0.17, fixed potential memleak in slub allocator, small omap4 update from android-omap source.
v1.6.4 (pulled - stay tuned) - moved some of the features off of 1.6.1 (but kept them in experimental) in order to fix/pinpoint potential source of battery drain possibly introduced in 1.6.1. You do not need to upgrade from 1.6.1 if it's working fine for you. Cpufreq updated to Linux 3.3.
v1.6.6 (bd0730ad3f57e050942356b647821256) - Fixed pm_suspend bug introduced by the Linux 3.0.17 patch *this fixes battery drain issue in 1.6.1 and 1.6.4*. Where's 1.6.5?
v1.7.0 (a7f3d241d68fd48c9f216e8399226e9d) - a bunch of fixes and updates from android-omap source including the hotplug fix, deadline scheduler updated to linux 3.2.
v1.7.1 (c2d0d4c59c198bb3f2281f164442ac0f) - removed some omap patches from 1.7.0 that may have been causing issues.
v1.7.3 (049a8ce4be0f0a392d6c0b694de1ad73) - went back to 3.0.16 base as I suspect there were more things in 3.0.17 causing subtle issues in releases newer than 1.5.0. Added a fix to reduce screen unlock lag in interactiveX. Brought back some of the OMAP patches from upstream android-omap source.
*v1.7.4 (3619144bee4cd86883692b48971ee5f8) - applied the rest of OMAP patches from android-omap source. Partially updated to 3.0.17. Wireless ADB support (if ROM has built-in support for it).
*v1.8.0 (7ddb6ac13d01ceaeed25b83ab13afb8c) - Updated to Linux 3.0.18 (big update - lots of fixes/changes). An omap driver fix. A fix for stalling RCU processing. Ramdisk changes for CM9 (or CM9 based ROMs) compatibility. This version should theoretically be smoother than the previous versions.
v1.9.0 (f703a8912d4dd19f82cc4bf17f37f1cd) - detailed log here.
*v1.10.0 (e9f2c4f2b458ddddeebfba842bb51756) - updated to Linux 3.0.20, completely modernized memory management compaction/migration code to Linux 3.3-rc3 (which also includes backporting much of the mm code)
v2.0.0 (a6a518d0a243c071ef6c02445acf2645) - detailed log here.
v2.0.1 (d9457f5fd0d9a74bc1c7fe37e1856907) - custom UV related issues (haptic feedback, volume, etc.) fixed. Custom UV code improved.
v2.1.0 (3362b0879e8a11681dc3e78eef38e4aa) - detailed log here.
v2.2.0(41296a907dd27cbc25593dbbda0e7fe0) - detailed log here.
v2.3.0 (c024897dd55ec4789fb998adb957a855) - detailed log here.
v2.4.0 (6e528aa35a51fc526939be2d51b4c295) - detailed log here.
v2.4.1 (be8d706f851b2700e035b8bd49abe27c) - detailed log here.
*v2.5.0 (793c7be3b35ab35beef3fa1797405378) - ColorControl, TempControl, ext4 optimizations
v2.6.0 (dc015f7c87ac5282ed1693063bd8a24a) - detailed log here.
v2.7.0 (a0a1b5c5de6ae103ce1cbf852fb8990d) - detailed log here.
v2.7.1 (a87b733e31aa9b7a0c447a76f2b5c708) - ColorControl modified to support CM9/AOKP interface as well. (no need to upgrade from 2.7.0 if you don't use colorcontrol)
v2.7.2 (e4d355c0e54ac5c3cbf5b9123e12eb9f) - ramdisk modified for better cm9/aokp compatibility, and better init.d support. Also includes "board" script for detailed board/soc info.
*v2.8.0 (5b3b31519133cebe67348b76ae349bc8) - detailed change log here.
v3.0.0 (0647d8590403eb4921f7f148216841ae) - Merged AOSP 4.0.4 kernel/ramdisk source.
v3.1.0 (7064aec889d9ce92d380090d7ed0b3aa) - changelog
v3.2.0 (8c41c4de4b0a62cdeee89686405401a5) - changelog
v3.2.1 (30190db201f6dcabe318e26c0312c1d2) - reverted omap SR patch that prevented undervolting, interactive (and iX) tuned for extra power saving when screen is off.
v3.2.2 (1d6df86cb5fe6c1644f16d847abdbe85) - reverted a few patches from 3.2.1 to address a few cases of instability, a small colorcontrol fix, small timed_gpio fix.
*v3.3.0 (137955e83ca267b10d2b74dbdf360f99) - changelog
v3.4.0 (9b5f99954de4bbbca01e4701fa04037c) - changelog
v3.5.0 (06ceb50e1155293f86bf4c1e4469fc89) - changelog
*v3.6.0 (3fa30f43a8c0e2439d32b10a0f10f376) - changelog
v3.7.0 (b692a195da6eb929ee9149652528bbf9) - changelog
v3.8.0 (b45b2f01d9c671ff110a6bc7b2d928ad) - changelog
v3.9.0 (c9cc99bb53928f643b04161a5ffedcbe) - changelog
v3.10.0 (1fe588b51f82a18c0d540f9d437287bd) - Updated to Linux 3.0.36, vibe control, notrim frequencies, iX tuned, relevant code from JB source merged. This is likely the final ICS kernel in terms of big features, but bug fixes will continue if necessary.

Just flashed it... and phone is hanging on the google start up screen.. ffuuuuuuuu. running the revolution rom.

Ever think that imoseyon didn't post his work on XDA for a reason? Did you get his permission to share here?
Sent from my Galaxy Nexus using Tapatalk

AcE XBOX said:
Just flashed it... and phone is hanging on the google start up screen.. ffuuuuuuuu. running the revolution rom.
Click to expand...
Click to collapse
That may be because you're running a 4.0.2 ROM and trying to flash a 4.0.3 kernel...

Flashed. And I notice big diff on browsing and tasks like running apps speed...much much faster!
Thank you IMO!
Sent from my Galaxy Nexus using XDA App

Tikerz said:
Ever think that imoseyon didn't post his work on XDA for a reason? Did you get his permission to share here?
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
+ 1, I was wondering the same thing, just curious.
Sent from my Gummy Nexus

Tikerz said:
Ever think that imoseyon didn't post his work on XDA for a reason? Did you get his permission to share here?
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
I have spoke with imoseyon and he is perfectly fine with it.
I will update the thread to make a little more readable later on.
Sent from my Galaxy Nexus using Tapatalk

I've been using IMO's kernel since the 1.5.X series, and the performance and battery life have always been stellar. I've had better results then the franco and faux123 kernels personally.
My undervolts on the stable kernel are:
1350mhz: 1225mV
1200mhz: 1175mv
920mhz: 1050mV
700mhz: 975mV
350mhz: 850mV
I've always run the interactiveX governor on multiple roms and it has always been rock solid.

bencozzy said:
Where's a link to leantweaks?
Click to expand...
Click to collapse
Added I think all the links are current.

theidoctor said:
Added I think all the links are current.
Click to expand...
Click to collapse
Good to see someone w care taking charge of this thread
Sent from my Galaxy Nexus

luckylui said:
Good to see someone w care taking charge of this thread
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
its the least i can do since im no dev and i basically just hit the refresh button every 5 minutes waiting for an update on something around these forums.

theidoctor said:
its the least i can do since im no dev and i basically just hit the refresh button every 5 minutes waiting for an update on something around these forums.
Click to expand...
Click to collapse
Hey aint no complaining from me lol. I totally respect what you doing! Especially asking first. Unlike some ppl just copy n paste to start ****. Good for you tho. I thank you.
Sent from my Galaxy Nexus

Getting pretty good battery life. Pretty decent usage today and most of the day was on either 4G or 3G. Only last hour did I put it on wifi.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

nice to see IMO's kernel on xda. I've tried them all but keep coming back to IMOs and this kernel rocks for performance and battery life.

Loving this kernal, running on bugless, getting great battery life, and no problems. CHeers.

Updated thread with latest experimental links!
Also, Check out the screenshot of what i have been getting the last couple days. Amazing!

His kernel is the best out there...I love it: )
Sent from my Galaxy Nexus using XDA App

best kernel!

Related

[KERNEL][4.1.2][OC 2GHz] TIBERIUS LINARO 4.7.4 | UVMC6 TouchWiz | SGH-T989 Hercules

Hey Everyone,
I'm by no means a pro at kernel building but I've put lots of effort into these kernels so I thought I'd share them with you. his thread is dedicated to SGH-T989 UVMC6 ROMs. I built these two kernel listed with Linaro 4.7.4 optimized for Kernel version 3.0.101 and this phone so that it would be fast as ever! One is clocked at 1998 MHz (2 GHz) and the other is more stable and is clocked at 1890 MHz. If you have a SGH-T989D these kernel may mess up your rotation and other things like that unless you use a SGH-T989 ROM. DO NOT POST ABOUT THESE PROBLEMS HERE!!! YOU HAVE BEEN WARNED!!! Unlike some of the other T-mobile Galaxy S II Hercules developers out there, I actually have a Galaxy S II and plan on having it until Summer 2014. This means that EVERY KERNEL I POST HAS BEEN TESTED AND IS WORKING although it might not be perfect (few things in life ever are). For the record, I use TWRP 2.6.1.0 for installation so if you encounter errors of installation it may be because you are using a different recovery module than me.
Even though I don't post anything unless it works I still don't want to be liable for user errors. In other words, if you flash one of these Kernels your warranty is void and I AM NOT RESPONSIBLE for any data loss or bricked devices etc. That being said, you really have nothing to fear but fear itself because these kernels work and because I packaged a stock kernel so you can revert back at any time. (Especially if you flash the 2 GHz kernel!)​
A Clean install is ALWAYS recommended. That does not necessarily mean you can't install these kernels on you current build it just means that you might have problems if you do. Recently apps have been getting corrupted for whatever reason whether on Stock or AOSP and in most cases they cause RRs and SODs. If you find yourself in one of those situations a clean install is the easiest fix. If you want to try and save you apps then connect to you phone while in recovery using adb. Then type adb shell. Now once you are in that shell you can run this command to fix your apps "e2fsck -yfDC0 /dev/block/mmcblk0p25" it could take anywhere from a few minutes to an hour depending on the state of your apps.
Please make sure to read the changelog and descriptions before you flash so you don't get any unwanted surprises. Changelogs can be found in the second post below​
[TOUCHWIZ UVMC6 4.1.2 TIBERIUS KERNEL LINKS]
TIBERIUS 2.6 for STOCK TouchWiz based ROMs
TIBERIUS 2GHz 2.6 for STOCK TouchWiz based ROMs
TIBERIUS EXPERIMENTAL SWEEP2WAKE
TIBERIUS 2GHz EXPERIMENTAL SWEEP2WAKE
Package Revert back to Stock T989UVMC6 Kernel (You may want to download this too just in case)
All Nightly Kernels can be found on Dev Host via this link http://d-h.st/users/cl3kener/TiberiusNightly
​
​
Installation Instructions
1. For best results a install these kernel after a fresh ROM install (although it still should work if you don't do that)
2. Reboot into recovery (I recommend TWRP 2.5.0.0 )
3. Flash Kernel Zip
4. Reboot and let Settle for ~10 minutes
5. Install Trickster MOD from the App Store for access to all of the options.
6. Change the settings to something other than INTERACTIVE (Especially if you run it with BFQ it will give you the worst screen lag ever). Then enable "Set at Boot" or else you will lose your configurations.
7. Make sure to disable powersave mode if you want to OC kernel.
8. Enjoy!!!
​
Screenshot of a recent Benchmark:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
​
SPECIAL THANKS TO:
Android88 - because he is awesome and encouraged me to create this thread!
Samsung - for the source code to build the Tiberius Kernel (and for making the phone)
Ayysir - for his wonderful tutorial on making a bash script to build kernels and for helping me out all of the time with everything!
Elbermu - For Bringing Thermal and Sweep2Wake to Hercules and for the help!
Bmg002 - For his extensive work fixing/rewriting my init.d scripts
Gruntparty - For completely redoing/fixing the build.prop injector I use for my AOSP Kernels
I Am The Frost - For being my first and best tester on xda. He's debugged several issues in these kernels for me
My Tiberius sources can be found at https://github.com/Cl3Kener/TIBERIUS and are properly labeled for your convenience (see the branches)
Feel free to use my Linaro toolchain to build your kernels! Download it here! https://github.com/Cl3Kener/LINARO-KERNEL
Informational Links
Develop Now! To Help you Develop Android!
Here is a fantastic guide on "Innards" of Kernels
Optimizing Linaro Keychains
Building a Bash Script to make Kernels​
JOIN MY GOOGLE COMMUNITY IF YOU WANT INSTANT UPDATES ON ANY OF ANDROID STUFF I DO. ​
​
XDA:DevDB Information
[KERNEL][4.1.2][OC 2GHz] TIBERIUS LINARO 4.7.4 | UVMC6 TouchWiz | SGH-T989 Hercules, a Kernel for the T-Mobile Samsung Galaxy S II
Contributors
Cl3Kener
Kernel Special Features:
Version Information
Status: Stable
Created 2013-10-24
Last Updated 2014-01-30
Changelogs
TIBERIUS KERNEL for Stock T989UVMC6
Note: The Tiberius Kernel series is based on Samsung source code kernel which was update to latest kernel version.
Changlog TIBERIUS 2.5 OFFICIAL
- Same as below
- Now with Modded light.so file so that it has Full BLN support on ANY ROM
- Misc improvements see my kernel github repo for little maintenance tweaks
Changlog TIBERIUS 2.4 OFFICIAL
- Same as below
- Added FIFO IO Scheduler from Infamous Kernel
- Added Voltage Control from Car vs Driver
Changelog TIBERIUS 2.3 OFFICIAL
- ONLY FOR TW 4.1.2 (STOCK) ROMs
- Kernel Version 3.0.101 - Linaro 4.7.4
- Overclocked CPU 1890 MHz (or 1998 MHz)/GPU 3D = 320 and 2D = 26
- BLN Support - Only works on custom TW Roms with Support
- CPU Govs - intellidemand, interactivex, lazy, wheatley, badass, lionheart, samsung, HYPER, and defaults
- IO Schedulers - noop, deadline, bfq, cfq, sio, vr, row, & zen
- Fsync toggle - disable for better performance but beware that if your phone crashes you will lose data.
- Thermal - thanks once again to dennis rassmann (@show-p1984) for his awesome code and elbermu for modifying it to fit this device!
- CPU Link - elbermu
- Frandom lag reducer
- Usb fastcharge
- IO booster
- KSGL GPU Control - carvsdriver
- Kernel splash screen by shmi117​
Additional Information
Error Reporting
I am always open to hearing about your errors although just telling me something went wrong without giving me details does me absolutely no good. So here are my expectations if you do want to complain about something not working:
1. Please list the ROM you are using,
2. The IO scheduler you were using
3. The CPU governor you were using
4. The CPU frequency range (192/1080 etc)
5. What you have done to attempt to fix it.
6. If you were able to simulate it again using the same settings.
7. Anything else you think is applicable to the issue
I would also hope that you would consider trying some of the following things to fix your issue before you ever report it because most of these things will fix the problem without me even having to change a thing.
1) Fix file permissions using a program that does a thorough job. I recommend using the fix file permissions in ROM manager because it is the best I’ve seen. For the record, I don’t actually use ROM manager for anything other than fixing permissions. Please consider trying this first because it tends to fix most of the FC/RR/SOD errors you might have.
2) Make a backup and install a clean version of the ROM you are running and see if you are still experiencing those same errors. You may have corrupted files if you’ve been dirty flashing.
3) If that doesn’t solve it, redownload and reflash, maybe something got corrupted but it still managed to flash. This happens sometimes and I can cause you grief.
4) For advanced users pull a logcat. I know not everyone knows how to do this but you can learn if you check out this OP or other ones like it
Terminal commands to enable/change a kernel features if you are don't like kernel tuning apps
Fsync
To enable - echo 1 > /sys/module/sync/parameters/fsync_enabled
To disable - echo 0 > /sys/module/sync/parameters/fsync_enabled
USB Fast Charge
To enable - echo 1 > /sys/kernel/fast_charge/force_fast_charge
To disable - echo 0 > /sys/kernel/fast_charge/force_fast_charge
Set Thermal Values
Go to /sys/kernel/msm_thermal/conf/ in a root file browser and change the values
Set MPDecision Values
Go to /sys/kernel/msm_mpdecision/conf/ in root file browser and change the values
Recommended CPU Govs by Category
For Performance
Performance Governor - Full OC
HYPER - full oc
Lionheart - full oc
For good battery life with decent performance use
Intellidemand
Interactivex
Ondemand
Samsung
Lazy
Moderately Conservative
Badass
Conservative
Wheatley (debatable could be in the above category)
Very Conservative
Powersave
not sufficient info? checkout out this op
Same?
Is this the same kernel as you posted yesterday in your main thread?
13~BigBear~13 said:
Is this the same kernel as you posted yesterday in your main thread?
Click to expand...
Click to collapse
Yes and no...this is the touchwiz kernel mr @Cl3Kener posted yesterday....seems like he decided to keep the touchwiz and aosp kernels in sepeeate threads.
Sent from my SAMSUNG-SGH-T989 using Tapatalk
My new home!!
P.s. some of the font colors in the OP is clashing with my dark theme setting in the xda app
diord ym morf tneS
keys light
Since after nightly 3.0.98 kernel, you took out S2W and BLN because JMT Users were having trouble with them. I'm a JMT user and I have no trouble with your kernel with TricksterMOD. But since S2W and BLN is no longer in your kernel, my keys light is off (when always on was set) when the screen is on.
Could you either add them back, or make kernel with and without them.
Thank you.
S2W this is the option to wake up phone by home key?
Sent from my SAMSUNG-SGH-T989 using Xparent BlueTapatalk 2
josepr2012 said:
S2W this is the option to wake up phone by home key?
Sent from my SAMSUNG-SGH-T989 using Xparent BlueTapatalk 2
Click to expand...
Click to collapse
yes
as always @Cl3Kener FAB work your a beast man going to flash @ptmr3 update tonight when i get home been a while i have not been on TW rom on the S2 been a while i been on 4.1.2 LOL
Yeah might flash speedstokc
GS2 T989
REVOLTED GS²™ 4.3
OKJ/UBER
hatememarkz said:
Yeah might flash speedstokc
GS2 T989
REVOLTED GS²™ 4.3
OKJ/UBER
Click to expand...
Click to collapse
whenever i feel like goign back to 4.1.2 i always flash embryo 7 and this
So what's up with the new Hyper gov? Gonna check it out now for a few days. Is it a battery hog?
diord ym morf tneS
demoncamber said:
So what's up with the new Hyper gov? Gonna check it out now for a few days. Is it a battery hog?
diord ym morf tneS
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1663809
all the governers explained
it seems as if its ondemand but a little more bettery friendly
Read that, was wondering about first hand experience I'll post there though.
diord ym morf tneS
Tiberius 2.3 has freaking awesome battery life on Jedi mind trick 8. 1 day 10 hours on a single charge. Very light usage I'd have to say. So not a typical experience perhaps, but worth a share.
Sent from my SGH-T989 using XDA Premium 4 mobile app
Cl3Kener said:
Hey Everyone,
I'm by no means a pro at kernel building but I've put lots of effort into these kernels so I thought I'd share them with you. his thread is dedicated to SGH-T989 UVMC6 ROMs. I built these two kernel listed with Linaro 4.7.4 optimized for Kernel version 3.0.101 and this phone so that it would be fast as ever! One is clocked at 1998 MHz (2 GHz) and the other is more stable and is clocked at 1890 MHz. If you have a SGH-T989D these kernel may mess up your rotation and other things like that unless you use a SGH-T989 ROM. DO NOT POST ABOUT THESE PROBLEMS HERE!!! YOU HAVE BEEN WARNED!!! Unlike some of the other T-mobile Galaxy S II Hercules developers out there, I actually have a Galaxy S II and plan on having it until Summer 2014. This means that EVERY KERNEL I POST HAS BEEN TESTED AND IS WORKING although it might not be perfect (few things in life ever are). For the record, I use TWRP 2.6.1.0 for installation so if you encounter errors of installation it may be because you are using a different recovery module than me.
Even though I don't post anything unless it works I still don't want to be liable for user errors. In other words, if you flash one of these Kernels your warranty is void and I AM NOT RESPONSIBLE for any data loss or bricked devices etc. That being said, you really have nothing to fear but fear itself because these kernels work and because I packaged a stock kernel so you can revert back at any time. (Especially if you flash the 2 GHz kernel!)​
A Clean install is ALWAYS recommended. That does not necessarily mean you can't install these kernels on you current build it just means that you might have problems if you do. Recently apps have been getting corrupted for whatever reason whether on Stock or AOSP and in most cases they cause RRs and SODs. If you find yourself in one of those situations a clean install is the easiest fix. If you want to try and save you apps then connect to you phone while in recovery using adb. Then type adb shell. Now once you are in that shell you can run this command to fix your apps "e2fsck -yfDC0 /dev/block/mmcblk0p25" it could take anywhere from a few minutes to an hour depending on the state of your apps.
Please make sure to read the changelog and descriptions before you flash so you don't get any unwanted surprises. Changelogs can be found in the second post below​
[TOUCHWIZ UVMC6 4.1.2 TIBERIUS KERNEL LINK]
TIBERIUS 2.3 for STOCK TouchWiz based ROMs (Mirror on DevDB)
TIBERIUS 2GHz 2.3 for STOCK TouchWiz based ROMs (Mirror on DevDB)
Package Revert back to Stock T989UVMC6 Kernel (You may want to download this too just in case)
All Nightly Kernels can be found on Dev Host via this link http://d-h.st/users/cl3kener/TiberiusNightly
​
​
Installation Instructions
1. For best results a install these kernel after a fresh ROM install (although it still should work if you don't do that)
2. Reboot into recovery
3. Flash Kernel Zip
4. Reboot and let Settle for ~10 minutes
5. Install Trickster MOD from the App Store for access to all of the options.
6. Change the settings to something other than INTERACTIVE (Especially if you run it with BFQ it will give you the worst screen lag ever). Then enable "Set at Boot" or else you will lose your configurations.
7. Enjoy!!!
​
Screenshot of a recent Benchmark:
​
SPECIAL THANKS TO:
Android88 - because he is awesome and encouraged me to create this thread!
Samsung - for the source code to build the Tiberius Kernel (and for making the phone)
Ayysir - for his wonderful tutorial on making a bash script to build kernels and for helping me out all of the time with everything!
Elbermu - For Bringing Thermal and Sweep2Wake to Hercules and for the help!
Bmg002 - For his extensive work fixing/rewriting my init.d scripts
Gruntparty - For completely redoing/fixing the build.prop injector I use for my AOSP Kernels
I Am The Frost - For being my first and best tester on xda. He's debugged several issues in these kernels for me
My Tiberius sources can be found at https://github.com/Cl3Kener/TIBERIUS and are properly labeled for your convenience (see the branches)
Feel free to use my Linaro toolchain to build your kernels! Download it here! https://github.com/Cl3Kener/LINARO-KERNEL
Informational Links
Develop Now! To Help you Develop Android!
Here is a fantastic guide on "Innards" of Kernels
Optimizing Linaro Keychains
Building a Bash Script to make Kernels​
JOIN MY GOOGLE COMMUNITY IF YOU WANT INSTANT UPDATES ON ANY OF ANDROID STUFF I DO. ​
​
XDA:DevDB Information
[KERNEL][4.1.2][OC 2GHz] TIBERIUS LINARO 4.7.4 | UVMC6 TouchWiz | SGH-T989 Hercules, a Kernel for the T-Mobile Samsung Galaxy S II
Contributors
Cl3Kener
Kernel Special Features:
Version Information
Status: Stable
Created 2013-10-24
Last Updated 2013-10-25
Click to expand...
Click to collapse
Great job...Thanks again...
normanx said:
These are only for touchwiz roms?
Click to expand...
Click to collapse
You quoted the opening post......but did ya read it???
Sent from my SGH-T989 using Tapatalk
kj2112 said:
You quoted the opening post......but did ya read it???
Sent from my SGH-T989 using Tapatalk
Click to expand...
Click to collapse
Yes I read it, But I guess I'm having a brain fart....I just want a kernel for the stock 4.1.2 that came on the phone....sorry
That's touchwiz
Sent from my SGH-T989 using Tapatalk

[L5/L7][KERNEL][4.4.x/5.0.x] SKernel (Pwoli Edition) [Milestone 8][23/08/15]

SKernel​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Super Fast - Super Smooth - Super Stable - Super Reliable
- Super COOL -
SKernel was created for giving the users of "underprivileged" devices a memorable experience.
It ensures that everything is perfect from kernel side.
SKernel was created in mind, keeping these things - Speed, Performance and Stability.
None had an upper hand over the other, all were given equal importance.
After all the bits were in their right places, SKernel was born.
Initially built for the LG Optimus L5, SKernel now supports all the variants of LG Optimus L5, L7 and L3 II.
​
Code:
#include <disclaimer.h>
/*
* Your warranty is now void. *
* This kernel is 100% guaranteed won't eat your pet cat *
* No guaranteed this'll explode your device, be careful, follow the instructions ! *
* DON'T point at me if your alarm dies after flashing this kernel ! *
*/
Features
- Based on Linux 3.4.11 Source
- Best Compatibility with KitKat and Lollipop
- zRAM
- zCache
- zSmalloc
- KSM
- GCC Linaro 4.9.3 (2015.03) compiled
- Full Linaro Optimizations ON
- Optimized Parameters from L Speed
- USB OTG Support (You will need some thing like this)
- Overclock - to 1100/1300MHz (stable)
- Underclock - to 61 Mhz
- 800MHz Undervolt
- 402/404 MB RAM (408MB on 0.1.4)
- Google Snappy Algorithm
- ARM RWSEM Algorithm
- Dynamic File Sync
- Enhanced SELinux
- Frandom - Entropy Generator
- Some ARM v7 optimizations
- Performance enhancements
- Audio enhancements
- And much more!
Governors
- smartassv2
- interactive
- conservative
- ondemand
- smartassH3
- performance
- intelliactive
- smartmax
- wheatley
- dancedance
- interactiveX
- lagfree
-intellidemand2
Coming Soon
- brazilianwax
- savagedzen
- intelliactive
-intellidemand2
- smartmax
- wheatley
- interactiveX
- dancedance
- lagfree
I/O Schedulers
- noop
- deadline
- cfq
- bfq
- sio
- fiops
- sioplus
- zen
- vr
Coming soon
- sioplus
- vr
- zen
Bugs
- Tiny issues on L7 (WiFi issues and lags on P700 variant with some ROMs)
- You tell me
Installation
Reboot to recovery
Flash the zip
wipe cache and dalvik (optional, but recommended)
Reboot
Enjoy SKernel!
It is suggested to read my reserved post's or at least the FAQ so that you don't run into trouble!​
Downloads:
Main Download: Mediafire
Mirror: AndroidFileHost
Thanks to:
#TeamHackLG - For their base CM11 kernel source!
@F4uzan - For all his help (that's a lot!), and most importantly for inspiring me to build a kernel from source!
@Paget96 - For L Speed Parameters!
@Caio99BR - My new friend and for his help!
For Devs/Source
Source Code for SKernel
You are free to use my kernel in your ROMs, as long as you give proper credits!
The Kernel Source is covered under GPL v2​
Donations
I have given a large chunk of my time and bandwidth behind this kernel. If you like my work and would like to help me pay my internet bills, then please consider donating. If you want to donate to me, just send me a PM! Every penny counts!
Thank you!
XDA:DevDB Information
SKernel Pwoli Edition, Kernel for the LG Optimus L5
Contributors
skyinfo, Caio99BR
Source Code: https://github.com/shskyinfo/SKernel
Kernel Special Features: CPU - Overclock, Underclock and UnderVolt. Entropy - Frandom. Governors - 10+. I/O - 9. Includes optimized Algorithms. USB OTG. And much more!
Version Information
Status: Stable
Current Stable Version: Milestone 6
Stable Release Date: 2015-05-08
Current Beta Version: Milestone 8
Beta Release Date: 2015-08-23
Created 2015-03-19
Last Updated 2015-08-23
Place Holder #2: Information on Builds/Releases
Current Status of Builds
Paused, busy with life
Uploaded Milestone 8 for all variants!
Whats new in next release
I'm out of ideas, suggestions welcome!
Next Release
Milestone 9 - ?/09/15
Testers - A Big Thanks!
@Leon FH - L7 P705
@Paget96 - L7 P705
@WinterR - L7 P700
@RolanDroid - L5 E610
jetei (4pda) - L5 E610
​
Place Holder #3: Changelogs
Milestone 8 - 23/08/15
5000+ commits, so impossible for changelog
Milestone 7-T - 15/07/15
Mostly a test version (hence the T)
Find changes on github
Milestone 6 - 08/06/15
Added BLN (creds: @aidasaidas75) you need BLN supported ROM
USB Force Fast Charge added
I/O Boost v2 added
Huge ext4 fixes
Using LZ4 Compressor (creds: @Caio99BR)
Using -Ofast Optimizations
MDP and ADSP updated for L7
No more black screen/lock screen lag on L7
Overclock fixed for L7 (creds: @Caio99BR)
Added Kernel Mode Neon
using msm_ion instead of ion
add NEON accelerated XOR implementation
adaptive vfs cache pressure
updated intelliactive governor
And more, visit GitHub
PREFINAL - 04/05/15
Updated BFQ to version7-revision7 (v7r7)
Using latest Linaro 4.9.3 (2015.03) compiler
Using new modules
Full Linaro optimizations ON
Optimized build flags
Milestone 4 - 26/04/15
Fixed WiFi for P700 variant without sacrificing NFC, thanks @Caio99BR
New modules for P700 variant
Mod version disabled for P700
Added intellidemand2 governor
Some SELinux improvements
Change flash type for L7, now same as L5
Milestone 3 - 06/04/15
Using Google's GCC 4.8 compiler now
Fully fixed and added Dynamic File Sync, thanks @Caio99BR
Using new modules generated from new compiler
Added compiler optimization flags
Fixes for msm_fb
Using new wlan.ko for L7 from Ron G
Using seperate boot.img for both variants of L7
Milestone 2 - 23/03/15
Updated cputime.h - for adding incompatible governors
Speed up ext4
SELinux updates
Revert ADSP to old size for L7
Using latest wlan.ko from THLG for L7
Updated freezer.c to not freeze tasks killed by OOM killer
mm.h updated from Torvalds
Remove duplication of jobs
Updated int_sqrt()
Some logical fixes in files
Using latest generated scsi and libra modules
Visit GitHub for more!
Milestone 1.1 - 20/03/15
Update is only for L7 [P700/P705]
Added Frandom Entropy
Updated ADSP and MDP sizes
More RAM available now
Added new frequencies
Overclock to 1300MHz, Underclock to 61MHz
Using new and optimized ARM RWSEM Algorithm
Milestone 1 - 19/03/15
Full Compatibility with Lollipop 5.0.x
Added Google Snappy
Added USB OTG
Initial Support for L7 [P700/P705]
Optimized some parameters, taken from L Speed
Only major changes shall be listed here in a user understandable way.
For in depth changes, visit my GitHub!
Changelogs to previous versions can be found here - SKernel Original Changelogs
Place Holder #4: FAQ
Q: Will this conflict with any mod I'm using?
A: As long as it doesn't have any entropy related stuff, its okay. Since the kernel already comes with an inbuilt entropy generator, it will conflict with the ones from mod, causing a poor, stuttered performance!
Q: Deep Sleep isnt working for me, Google Services causing wake-locks, what to do?
A: Go to settings, Privacy, Privacy Guard, All apps, long press Google Services, and deny/disable wake-locks! (Thanks to @Paget96 for the solution)
Q: Which version should I install?
A: (For L5)If you're on CM11 Beta 9.2+ or a ROM based on its sources, then use latest beta release!
Else, use Beta 0.1.4
However, Beta 0.1.4 does not have latest features of SKernel.
Beta 0.1.4 has only over clock, under clock and undervolt (on 800MHz)
Use only if your current ROM isn't CM11 Beta 9.2+ based!
(For L7) Use the latest ROM available, or you can test on other ROMs but you may face some issues. There is absolutely no harm in testing tho!
Q: Why am I getting flickers?
A: You're on a wrong version of kernel, ie, kernel is slightly incompatible (due to new KK ion), try switching between Beta 0.1.4 and latest release!
Q: Where can I find Beta 0.1.4
A: Go to Original SKernel Thread. It can be found in older releases on mediafire
Q: Which version should I flash
A: Flash kernel to respective model number (E610/E612)
Q: Which frequency is the safest
A: The default frequency, 800MHz, is the safest!
But, there's no harm in overclocking upto 1100MHz.
You MAY face some issues on 1100MHz, but 1050MHz is stable as 'rock'!
Q: WiFi doesnt work for me
A: Use the kernel I made for CyanHacker ROM (available on the thread)
Reserved
Last one!
Hohoo, nice dude
I like that new features.
Keep working
Regards
Paget96
How about Skernel for stok rom
Woahhhhhh awesome. Already can feel the smoothness.
I can also see 2 test builds for L7 and E610 builds too!!
Great work!!
Sent from my IdeaTab A2107A-F using XDA Free mobile app
droidxx9 said:
Woahhhhhh awesome. Already can feel the smoothness.
I can also see 2 test builds for L7 and E610 builds too!!
Great work!!
Sent from my IdeaTab A2107A-F using XDA Free mobile app
Click to expand...
Click to collapse
I meged same stuff(even more) to mine kernel no one felt difference.........Plus i cant see any audio related commits..
Will test 4.1 p705 work on p700?
RaMiz13 said:
Will test 4.1 p705 work on p700?
Click to expand...
Click to collapse
Yes
But kernel for P705 doesnt have nfc that is only difference
But I think that you don't use it
Regards
Paget96
Paget96 said:
Yes
But kernel for P705 doesnt have nfc that is only difference
But I think that you don't use it
Regards
Paget96
Click to expand...
Click to collapse
I already flashed it and yes I do not use NFC. ?
SMILEVN said:
How about Skernel for stok rom
Click to expand...
Click to collapse
not anytime soon...
maybe after 3-4 months only
droidxx9 said:
Woahhhhhh awesome. Already can feel the smoothness.
I can also see 2 test builds for L7 and E610 builds too!!
Great work!!
Sent from my IdeaTab A2107A-F using XDA Free mobile app
Click to expand...
Click to collapse
thanks!
aidasaidas75 said:
I meged same stuff(even more) to mine kernel no one felt difference.........Plus i cant see any audio related commits..
Click to expand...
Click to collapse
already sent you link
RaMiz13 said:
I already flashed it and yes I do not use NFC.
Click to expand...
Click to collapse
thanks for testing, hows it?
do you get any issues on ril?
Deepsleep?
Kernel is good but its not smooth as I hoped it will be. Maybe that's just the p705 version on p700 not working well. And how do I chech if there is deepsleep or not?
Edit: BTW I am on last Imers CM11 3152015
Ok my friend @skyinfo
Kernel is good, I like it, here is full review.
I saw that there is 400.01mb of ram instead of 402.98mb (i think)
There is no deep-sleep
Freqs going to 1008mHz there is no oc, also I don't see 96mhz freq which is mentioned in first post.
I like that kernel have frandom entropy, much faster I check entropy levels with my L Speed mod, and goin much faster
Also, device have lags more than with default cm11 kernel
Wifi work fine
RIL is there, work good, both 2g and 3g working, bluetooth working, everything is working
I know that this is little things, also I know that you will fix it today
And I know what are you trying to say that THLG update L5 more than L7
Waiting for the next release
This zip in attachment is for p705 users which use the latest CM11 by imer, this is default kernel
Thanks sky again for your awesome work
I know that you will fix all today
Regards
Paget96
new version out for L7, hopefuly better!
Milestone 1.1 - 20/03/15
Update is only for L7 [P700/P705]
Added Frandom Entropy
Updated ADSP and MDP sizes
More RAM available now
Added new frequencies
Overclock to 1300MHz, Underclock to 61MHz
Using new and optimized ARM RWSEM Algorithm
Download from mediafore!! P700 also added!
Sorry L5 guys, no update for us, we are lareday enjoying the kernel at 99% of its potential, now let me bring L7 to speeeeeeeeeeed!
is this working on imer cm11 ???
aidasaidas75 said:
I meged same stuff(even more) to mine kernel no one felt difference.........Plus i cant see any audio related commits..
Click to expand...
Click to collapse
I did say yiur kernel was good!!
Jobloxx said:
is this working on imer cm11 ???
Click to expand...
Click to collapse
Yes!
Sent from my IdeaTab A2107A-F using XDA Free mobile app
Everything is good, i feel my phone smoother little
But i got screen freezed in cm11 v6 by Plamb1r
Very lagy on my p700 and wifi not working

[Kernel][Stock & CM][Stable] guestekrnl (based on visi0nary) | v2.4.1 | [06/2016]

gueste kernel v2.4.1
handcrafted in Austria, compatible with stock-based ROMs like Eragon and BlueFlame4's CyanogenMod
*CyanogenMod ROM compatibility requires guestekrnl v2.2.0 or newer
- If you like my work, you could press thx or vote positively for this thread.​
Howdy
In an attempt to continue improving the kernel of BlueFlame4 (as he is was switching to a different phone) I hereby offer guestekrnl.
The usual disclaimer applies:
Code:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this kernel
* before flashing it! YOU are choosing to make these modifications.
*/
guestekrnl continues seamlessly where visi0nary's kernel left off (v1.6.1), which is why the initial version of guestekrnl is v1.6.2 (or v1.6.1, if you count my re-build)
The main goals for this kernel are improvements:
maximizing (ui) smoothness / snappiness
keeping power consumption as low as possible, while still feeling smooth
keeping linux-base up-to-date
Apart from these improvements, I would consider the kernel quite feature-complete, so you should not expect countless new features.
Please remember: After you have flashed the kernel in Recovery, perform the following steps:
go to menu "Wipe and Format Options"
perform "Wipe Dalvik/ART Cache"
perform "Wipe Cache"
Please do not report any problems or bugs, if you did not perform these steps along with the installation of the new kernel.​
Version Log:
v2.4.1
merged fix for new camera driver from visi0nary upstream ( thanks to @BlueFlame4 and @walter79 ) to support new P8000 model's camera
if your camera still does not work with your new P8000 model and this kernel, your ROM might be lacking some drivers - try those by @skeleton1911 for Android 5.1.x ROMs https://www.androidfilehost.com/?fid=24591000424939670
v2.4
upgraded linux base from 3.10.101 to 3.10.102 ("Linux kernel 3.10.102 LTS is a pretty big maintenance update that changes a total of 153 files, with 1,194 insertions and 608 deletions.")
cherry-picked new camera driver from visi0nary upstream ( thanks to @BlueFlame4 and @walter79 ) to support new P8000 models
cherry-picked a read/write persmissions change for doubleTap2Wake from visi0nary upstream ( thanks to @BlueFlame4 )
v2.3.3
switched toolchain in hope of improved power consumption
deactivated to old battery drop shift fix (the one that didn't fix the drop, but shifted it upwards) - also in hope of improved power consumption
one cherry-pick from visi0nary upstream
this is supposed to be the last release for a longer period of time, because there's not much to improve currently - I sincerely hope this release will work well for everyone :good: :highfive:
v2.3.2
finally working battery drop fix by @BlueFlame4 (confirmed working by community). the battery drop might still occur, if you rebooted between charging cycles, but if you use the phone starting with a full battery until it's empty, you should no longer experience a noticeable drop.
re-enabled the old battery drop fix as well (which shifted the drop from 15->0% to 35->20%. So if a drop occurs after a reboot (as mentioned above), it should happen somewhere above 20% battery and not drop directly to 0%.
double-tap 2 wake is still enabled, so if you are on Cyanogenmod and use a build without dt2w, you can just flash this kernel and it will work again
v2.2.1
this is not the experimental 2.2.1-SNAPSHOT-kernel some of you tested. This is the final 2.2.1 kernel.
upgraded linux base from 3.10.100 to 3.10.101 - Changelog
use updated sabermod toolchain (aarch64-linux-gnu-5.3-03-06-16)
provide 2 flavors: with or without experimental battery fix (if the battery fix of v2.2.0 does not work for you, or you still get a drop and would prefer the drop to happen at the end of a charging cycle (like on stock kernel), you can just flash the version without the experimental fix)
v2.2.0
compatible with the latest CyanogenMod ROM - CM Thread
upgraded linux base from 3.10.99 to 3.10.100 - Changelog
fix for 20 percent battery drop (sorry, reportedly not working) (by @DerTeufel1980 , @BlueFlame4 and @walter97 - thanks a lot for sharing!!) - Commit
increased charging speed ( by @BlueFlame4 and @walter97 - thanks a lot for sharing!!) - Commit
v2.1.0
upgraded linux base from 3.10.98 to 3.10.99 - Changelog
upgraded linux base from 3.10.97 to 3.10.98 - Changelog
switched to a different toolchain (latest sabermod gcc 5.3)
v2.0.5
upgraded linux base from 3.10.96 to 3.10.97 (2016-02-19) - this includes the following commits:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
furthermore, the IPv6 config has been changed, which might or might not improve IPv6 router connectivity for some users.
v2.0.4
upgraded linux base from 3.10.95 to 3.10.96 (2016-01-29) - this includes the following commits:
v2.0.3
upgraded linux base from 3.10.94 to 3.10.95 (2016-01-23) - this includes the following commits:
yes, this includes the fix for keychain vulnerability CVE-2016-0728
v2.0.2
upgraded linux base from 3.10.90 to 3.10.94 (12/2015) - this includes dozens of improvements over the old linux base
switched to toolchain "ubertc" gcc 4.9 (01/2016)
v2.0.1
fix stability issues (this release is a replacement for v2.0.0): Mediatek seems to have compatibility/stability issues with additionally introduced CPU governors and I/O schedulers, which is why in 2.0.1 I use the same built-in governor and scheduler I used for stable v1.6.1 (rebuild)
wake-up delay gone (also thanks to using the same governor as in v1.6.1)
I'm sorry if you experienced any stability issues with v1.6.2 and v2.0.0 - they seem to be caused by the governors/schedulers and should be gone now
I'll remove the download for v2.0.0 in favor of v2.0.1 which should now be stable.
v2.0.0
first major release of guestekrnl with over 900 commits ahead of the source of visi0nary's kernel
upgraded linux base from 3.10.65 to 3.10.90 (LTS) - this includes hundreds of improvements over the old linux base
switch from sio I/O scheduler to deadline
update/modify intelliactive CPU governor & switch from wheatley governor to intelliactive
introduce and enable power efficient work queues
reduced log spamming
various performance improvements and hopefully power-saving mechanisms
pocketmod is now disabled, as it breaks doubletap2wake (same as in visi0nary's kernel). Enabling pocketmod through vTool won't do anything
introduce and enable UKSM (Ultra-KSM) along with KSM (Kernel same-page merging)
various arm64 improvements
various defconfig changes
updated build flags
introduce BFQ-v7r8 I/O scheduler (though currently not set as default in favor of deadline)
all the other changes are listed here https://github.com/gueste/android_kernel_elephone_p8000/commits/master
everyone is adviced to upgrade to guestekrnl v2.0.0 and to report on the usage experience - thank you!
v1.6.2
introduce SIO IO scheduler & use as default IO scheduler
introduce wheatley CPU governor & use as default CPU governor
also introduce intelliactive governor, but not used as a default, because it didn't convince me during my everyday-use tests
use custom/enhanced kernel compilation flags
minor changes in kernel defconfig
built with a freshly built sabermod toolchain, using custom compilation flags
v1.6.1
the kernel from my separate thread "visi0nary's kernel alternative build"
Kernel Tool:
For tweaking a couple of kernel parameters, you can use the same "vTool", you have been using for visi0nary's kernel. In case you haven't got this tool yet, you can find it here.
exFAT Support:
If you want to use an exFAT formatted external SD card, then you can enable exFAT support as posted by @dr_root : http://forum.xda-developers.com/showpost.php?p=65063912&postcount=77
Installation:
Just flash in recovery - wipe cache & dalvik cache afterwards (before initially booting the system with the new kernel)
Tip:
Double-tap 2 wake is set to only work in the middle of the screen, so remember to tap in the middle
If your phone after longer periods of sleep doesn't react to "double-tap to wake", try "triple-tap to wake"
Further tips & kernel source: see second and third posting!
I'd be delighted to get your usage feedbacks! This kernel should always be stable and is intended for daily usage.​
Credits:
The credits of the original visi0nary's kernel remain intact.
For those that have double-tap2wake enabled
... and have issues with the screen during phone calls (for example: screen is black, but buttons can still be pressed):
You can either turn off dt2w completely using vTool, or use the attached re-build of the blackscreen-fixer that most of you will know from Eragon ROM.
The attached re-build has been made 1 day ago, as the original app did not support guestekrnl v2.0.1
If you have this app already (the older version), replace it with this version. - On latest Eragon you will have this version automatically.
So, beginning with 2.0.1 and upwards, use the attached version of the app, or the latest Eragon ROM.
You have to start the app at least once and grant it superuser-rights. Then it should work on phone calls automatically.
Note: the re-build of this app has the same filename as the original one, but it is a modified version that supports my latest kernel builds.
Kernel source: https://github.com/gueste/android_kernel_elephone_p8000
2nd reserved for future things
with kernel adiutor in governor cpu it shows intelliactive, it is better than wheatley governor?
djtechno98 said:
with kernel adiutor in governor cpu it shows intelliactive, it is better than wheatley governor?
Click to expand...
Click to collapse
In my opinion there is no "best" governor. The results may vary from device to device (and also usage). For the P8000 I tested both and wheatley felt smoother to me. Smartmax also felt very smooth, but it currently does not work properly (causes reboots), which is a hint that it isn't ported correctly and is why I disabled it for the moment and didn't mention it in OP.
Edit: In v2.0.0 intelliactive feels best to me (it is now preset)
Stefan Gündhör said:
In my opinion there is no "best" governor. The results may vary from device to device (and also usage). For the P8000 I tested both and wheatley felt smoother to me. Smartmax also felt very smooth, but it currently does not work properly (causes reboots), which is a hint that it isn't ported correctly and is why I disabled it for the moment and didn't mention it in OP.
Click to expand...
Click to collapse
thanks, for now your kernel working well.
djtechno98 said:
thanks, for now your kernel working well.
Click to expand...
Click to collapse
Thanks, more changes are coming soon.
Stefan Gündhör said:
Thanks, more changes are coming soon.
Click to expand...
Click to collapse
Can you tell us what kind of changes? And what about when the phone battery goes to 15% it suddenly drops? Im using your kernel(6.1) and it rocks!!
boka18 said:
Can you tell us what kind of changes? And what about when the phone battery goes to 15% it suddenly drops? Im using your kernel(6.1) and it rocks!!
Click to expand...
Click to collapse
Well, the next version I'm working on, is already 944 commits ahead of the latest visi0nary's kernel.
Each commit contains one or multiple changes in one or multiple files.
Most of those commits are updates of the linux base (which of course I just had to merge into the kernel and not to code myself) - there are also a couple of useful new features that will hopefully help saving power and improve performance.
I've still a couple things to merge/cherry-pick, then we will see.
Edit: concerning battery you will have to test, if you have this problem with the upcoming version(s) too.
Got stuck in bootloop, was on eragon 7.3 with visionary 1.6.1, I installed 1.6.2 kernel, cleared cache and davik, android apps updated and then phone rebooted and stuck on dragon logo. Now trying nexus lite rom
New kernel v2.0.0 is out
v2.0.0
first major release of guestekrnl with over 900 commits ahead of the source of visi0nary's kernel
upgraded linux base from 3.10.65 to 3.10.90 (LTS) - this includes hundreds of improvements over the old linux base
switch from sio I/O scheduler to deadline
update/modify intelliactive CPU governor & switch from wheatley governor to intelliactive
introduce and enable power efficient work queues
reduced log spamming
various performance improvements and hopefully power-saving mechanisms
pocketmod is now disabled, as it breaks doubletap2wake (same as in visi0nary's kernel). Enabling pocketmod through vTool won't do anything
introduce and enable UKSM (Ultra-KSM) along with KSM (Kernel same-page merging)
various arm64 improvements
various defconfig changes
updated build flags
introduce BFQ-v7r8 I/O scheduler (though currently not set as default in favor of deadline)
all the other changes are listed here https://github.com/gueste/android_kernel_elephone_p8000/commits/master
everyone is adviced to upgrade to guestekrnl v2.0.0 and to report on the usage experience - thank you!
Download of v2.0.0 can be found in first posting.
Download of v1.6.2 has been removed in favor of the supposedly more stable v1.6.1.
Hello! I just flashed the kernel (I hope im first ) and so far, the dt2w works great. The smoothness is like in v1.6.1 which means its great. Will inform you about the battery usage in a day or two! :highfive:
After 3-4 hours of usage, there are some major problems.
DT2W not working
Phone Powers off randomly
I think the sensor is not as good as the last version
the phone wakes up randomly (screen powers on without any reason)
Im going back to v.1.6.1
boka18 said:
After 3-4 hours of usage, there are some major problems.
DT2W not working
Phone Powers off randomly
I think the sensor is not as good as the last version
the phone wakes up randomly (screen powers on without any reason)
Im going back to v.1.6.1
Click to expand...
Click to collapse
hmm... I can't confirm the on /off problem (yet)
I've flashed the Kernel for round about 4 hours and it doesn't power off or wakes up.
BUT the phone is only lying on my table...
AND I don't use the DT2W function. I've turnd that feature off in the vTool.
Feuerpfeil said:
hmm... I can't confirm the on /off problem (yet)
I've flashed the Kernel for round about 4 hours and it doesn't power off or wakes up.
BUT the phone is only lying on my table...
AND I don't use the DT2W function. I've turnd that feature off in the vTool.
Click to expand...
Click to collapse
Run some games, make some calls and see what happens.
p.s Maybe its because of the Seeder app?
Settings in my seeder app:
Suspend Rng .. checked
Extend I/o Queue checked
Start automatically on boot checked
RNG SERVICES PROFILE: Moderate
Like Feuerpfeil, I do not use DT2W and I have not yet experienced any problems with the new Kernel. My Seeder app settings are identical to yours.
-Tiz- said:
Like Feuerpfeil, I do not use DT2W and I have not yet experienced any problems with the new Kernel. My Seeder app settings are identical to yours.
Click to expand...
Click to collapse
Well, that is strange.. I will than to a full wipe of my current rom (eragon), and isntall it again, fresh.
boka18 said:
Well, that is strange.. I will than to a full wipe of my current rom (eragon), and isntall it again, fresh.
Click to expand...
Click to collapse
I've seeder app active with light profile and everything enabled. After each kernel flash I wipe dalvik and cache in recovery, before initially booting the system with the new kernel.
Edit: Concerning doubletap2wake: after longer sleep I often have to tap multiple times (more than 2) to wake up the phone. This is something I experienced with visi0nary's kernel as well. I guess it might be related to some deep sleep feature or something. But for me it DOES still work, I just have to tap more often in this situation.
Stefan Gündhör said:
I've seeder app active with light profile and everything enabled. After each kernel flash I wipe dalvik and cache in recovery, before initially booting the system with the new kernel.
Edit: Concerning doubletap2wake: after longer sleep I often have to tap multiple times (more than 2) to wake up the phone. This is something I experienced with visi0nary's kernel as well. I guess it might be related to some deep sleep feature or something. But for me it DOES still work, I just have to tap more often in this situation.
Click to expand...
Click to collapse
Flashed it again, and I have frozen 2 apps: BlackScreen and ThePieApplication (idk the name for sure). This apps are in the ERAGON ROM. Maybe the first one was causing some errors? I really don't know. The second i just dont like lol .. anyways now i flashed your rom again (deleted cache and dalvik after flashig) and it seems to works good. I have just one thing that I personally dont like: The phone seems more "laggy" now. And by laggy - I dont mean that the games or the apps lag, it is just that when i push the POWER btn sometimes (when in deep sleep i think?) it takes 0.5 seconds to wake up. With the v.1.6.1 that was certainly not the case.

[KERNEL][TW][SM-G930F/FD/W8/S/L/K] Primal Kernel v2.3.4 [DQH8][S7 + Ports]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Welcome to the official thread for Primal Kernel project for the Exynos Galaxy S7 (SM-G930F/FD/W8/S/L/K) running TouchWiz based ROMs (Nougat only currently).
The aim of this project is to provide a rock solid, ready to use tweaked kernel, without useless features.​
Introduction:
Primal Kernel, formerly known as The Outsider Kernel, is the first S7 kernel for TouchWiz based ROMs sporting the AnyKernel2 installation approach.
The most widespread method consists of flashing a complete prebuilt boot image (this means that it will be flashed straight away without any modification).
This is the most practical method for providing a working kernel, but it has disadvantages too:
1) the installation package will be bigger.
2) the developer must keep the ramdisk updated with the newest from stock kernels. This requires rebasing the patches and keeping up with the newest firmwares sometimes with frequent releases.
3) it makes the compatibility with older ROMs a little more complicated as a newer ramdisk could add modifications not supported by the older ROM.
4) for the ported ROMs the developer has to manually patch the ramdisk with the required changes from the ported device's one. So you have to create a different boot.img for every ported device for every S7 variant.
But we have an alternative...
AnyKernel2 is a different approach to the installation of the kernel: the package only contains the prebuilt zImage (the actual kernel), the dtb (basic hardware instructions like reserved memory and so on) and the patches for the stock ramdisk. AnyKernel while installing unpacks the previous kernel and replaces zImage, dtb and, after patching it, the new ramdisk.
This implies various benefits:
1) smaller installation package.
2) you can always have the most updated ramdisk without the need of waiting an update from the developer.
3) better compatibility as you can flash it on top of any stock (or close to) boot image.
4) it makes life a lot easier for the developer with many ready to use patching functions.
5) with some efforts from me, the package can adapt the stock S7 ramdisk to work on any S8 or Note FE ported ROM, making it even more adaptable.
All this sounds great (and it is great) but introduces a problem: you can't flash it on top of another custom kernel. This because custom kernels almost always have scripts and other modifications to the ramdisk, which might not be compatible with my kernel.
Installation instructions:
If you correctly follow these instructions you'll be able to run Primal on any ROM (as above).
If it doesn't work, read twice and try installing again before asking for help.
● Instructions for BatMan ROM (S8 port) users:
1) install the ROM (you can dirty flash if you already have it installed) make sure to choose stock kernel (so it doesn't install the new GPU libs, which aren't supported by Primal).
3) after the ROM flashing process has been completed flash the Primal kernel zip for your device.
4) flash your preferred root method.
5) reboot and be patient as first boot might take a little more time.
● Instructions for any other ROM (any other S8 and Note FE ported ROM and, obviously, any S7 ROM) running a custom kernel:
1) make sure you have the stock S7 kernel zip (or any stock boot.img from any S7 Odin package or ROM zip containing the stock kernel) and Primal Kernel zip.
2) if you have a boot.img flash it to the boot partition using Flashify or TWRP itself.
3) if you have the flashable stock kernel zip and Primal Kernel zip reboot to recovery and flash in this order: stock kernel zip, Primal Kernel zip and then your preferred root method.
● Instructions for any S7 ROM running stock kernel:
1) reboot to recovery and flash in this order Primal Kernel and your root method of choice.
If you get into a bootloop...
● if you're running a port make sure it says dream2lte (if an S8 port) or gracerlte (if a Note FE port) in the build.prop; if there isn't any add a line at the bottom, "primal=dream2lte" for S8 or "primal=gracerlte" for Note FE.
● make sure your ROM doesn't come with the new GPU libs installed, if it does restore the old libs somehow (flashable zip coming soon!).
Thanks and Credits:
● Samsung OSRC for the kernel source code
● @Tkkg1994 and @jesec for their clear and vast source code and scripts
● @flar2, @UpInTheAir, @franciscofranco, @eng.stk, @osm0sis, @andip71 and others for their great contributions to the community and Android
Features:
● based on the latest Samsung kernel source code G935FXXU1DQH8 merged with G935SKSU1DQG1
● always have the latest ramdisk for your specific model and variant, thanks to AnyKernel2
● ported ROMs are supported (like S8 and Note FE based ROMs)
● compiled with custom built Uber Toolchain 6.4.1 (20170826) and optimization flags
● custom scripts with tweaks applied at boot, optimizations and wakelock fixes
● init.d support
● added a few tested and updated CPU governors (blu_active, conservative, ondemand, powersave, interactive, performance).
default: interactive
● added a few tested and updated I/O schedulers (noop, deadline, row, cfq, bfq, zen)
default: cfq with custom parameters
● added a few TCP congestion algorithms (westwood, reno, bic, cubic, htcp, lia, olia, wvegas)
default: westwood
● full f2fs support from jaegeuk's f2fs-stable plus OnePlus improvements
● fstab mount tweaks for both ext4 and f2fs
● fixed various bugs in the Linux code like improved cyptography algorithms, filesystems, network...
● architecture specific fixes
● cpuidle improvements
● random (entropy) generation improvements
● power managemnet, schedulers, governor and memory management improvements
● unlocked lower CPU frequencies with correct voltages and set recommended defaults (312MHz big - 338MHz LITTLE)
● schedule workqueues on awake CPUs enabled
● improved hotplug and idle with interactive governor
● added 112MHz minimum GPU frequency and clock control
● voltage control for GPU
● LED control with fading option
● voltage control for big and LITTLE clusters
● preset I/O scheduler tunables
● disabled SWAP and ZSWAP for best performance
● preset VM tunables
● SELinux permissive
● Knox 0x0, Samsung security checks and SafetyNet spoofed to pass
● Fsync switch added
● Software CRC control switch added
● and many other changes (too many to be listed here)...
Notes:
● If you want root, you need to flash the root zip after flashing this kernel (Magisk is recommended to pass SafetyNet).
● If you want to access the advanced kernel controls MTweaks by @morogoku is the only app which supports all the features (download it here).
Everything has always been stable, and almost bug free, so no notes on that side at the moment :laugh:
Latest stable version is 2.3.4.
If you want to flash an older version see Archive in the download links below.
Source > GitHub
Commits (kind of a changelog) > GitHub
Download:
herolte (S7 SM-G930) > Android File Host
Support:
If you want to receive support, find and share settings, report bugs and try Beta versions, join our Telegram group:
TouchWiz Projects by kylothow | Official Group
You're welcome
XDA:DevDB Information
Primal Kernel, Kernel for the Samsung Galaxy S7
Contributors
kylothow
Source Code: https://github.com/kylothow/universal8890-NN-G935
Kernel Special Features: Stable f2fs porting, tweaked with recommended settings, a few but working governors, schedulers and patches are just some of the awesome features.
Version Information
Status: Stable
Current Stable Version: 2.3.4
Stable Release Date: 2017-09-13
Created 2017-04-26
Last Updated 2017-09-14
Changelogs:
From version 2.3.3 to 2.3.4:
Code:
● added fstrim on boot
● added Knox and other security check props spoofing inside the kernel
● added Google Play services drains fix
● added custom init.rc with tweaks (cfq with tunables preset, read ahead 128 and 256 for external, rised base CPU frequency a little (you can lower it if you want)
● recent patch to cpufreq added
● updated AnyKernel2 with the latest goodies from osm0sis
While searching the Internet you might also find versions which aren't listed here: these are Beta versions and their changelog isn't available (but included in the one of the next stable version, so you don't miss anything).
All the changes I made are listed on GitHub.
Old changelogs (for The Outsider):
Version 2.2.1
Code:
- added cleaning scripts at boot (automatic trim, sqlite optimization, cache and leftovers cleaning
- updated ramdisk and mcregistry to DQE7
- updated with latest Samsung changes (DQE7/DQEF)
- disabled swap and zsmalloc
- added row I/O scheduler
- increased default maximum frequency to 2.6GHz
- updated to Linux 3.18.55
- switched to custom built Uber Toolchain 6.3.1 (20170528)
- switched to a whole new overclock/voltage management method based on ASV
- changed frequency policy especially regarding touch boost (for better battery)
- allow to enable Exynos swap
- add unstable power detection and charging/battery controls
- added notifiers for the future addition of CPU governors and removed old/broken implementations
- a few f2fs and other minor fixes to defconfig, schedulers, cpufreq
Version 2.1.6
Code:
- switched to GCC 6.3.1
- various build flags to optimize building
- enabled a few compression algorithms (GZIP, LZ4, LZMA...)
- enabled cryptographic drivers optimized for 64 bits
- defconfig tunings to reduce debug logging
- updated mcRegistry and ramdisk to DQD9 (for S8Port only the init file)
- drastically changed kernel default tweks/settings
Version 2.1.5
Code:
- fixes regarding stability and speed
- ext4 and fuse fixes
- crypto and drivers built uncompressed
- random numbers generation changes
Version 2.1.4
Code:
- the kernel has been redone from scratch; the features are in pair/more than the previous 1.x.x versions, and gives you an overall way better experience.
Version 1.4.1
Code:
- various bug fixes
- performance/reliability improvements for network, ext4, f2fs and cryptography
- enabled a few kernel modules for ipv6 and a few other optimizations
- trying out higher kernel timings
- set default governor to blu_active
Version 1.4.0
Code:
- first release for xda
How to set up your phone with f2fs:
1) First you have to install a compatible recovery. Recent TWRP releases can format and mount f2fs, but they don't handle a few installation scripts correcty. I recommend TWRP 3.1.1.0 by @lyapota which has the correct patches. You can find it here.
2) Then you have to backup all your data (internal storage will be wiped too, so make sure to copy ALL your files in the INTERNAL storage). So, any TWRP backup should be taken on external SD card.
3) After this, reboot into TWRP. From Wipe / Advanced Wipe check only /data, then select Change Filesystem and check f2fs. Do the same for /cache. At the moment I don't think there are ROMs that support f2fs on /system too (All the TouchWiz based ROMs force ext4 and format despite settings).
4) Reboot into recovery once again, so we're sure that it can mount everything.
5) At this point you're done. Flash your ROM of choice, this kernel and whatever you want.
Reboot and profit!
ROMs supporting f2fs formatted /system will be listed here when available.
Dishonored reference?
Sent from my Galaxy S7 using XDA Labs
XDevOS said:
Dishonored reference?
Sent from my Galaxy S7 using XDA Labs
Click to expand...
Click to collapse
Definitely [emoji6]
Sent from my SM-G935F using Tapatalk
kylothow said:
Definitely [emoji6]
Click to expand...
Click to collapse
Love that game :good: Will stay with this kernel as long as I can xD <3
Sent from my Galaxy S7 using XDA Labs
busy man
thanx boss
testing. ..
hotplug?
what Rom you running @kylothow
Calvin.manneson said:
busy man
thanx boss
testing. ..
hotplug?
what Rom you running @kylothow
Click to expand...
Click to collapse
At the moment only the stock hotplug. Further developments will need a specific app like Synapse or maybe a custom Kernel Adiutor -- which is the next step in the development.
I'm running latest Helios, the only thing that is preventing me to do my own custom ROM (basically it perfectly fits my needs).
Default settings are the best even for you?
I wanna try your work but don't have enough time for playing games with custom settings.
Thx a lot for you anyway
ig_df said:
Default settings are the best even for you?
I wanna try your work but don't have enough time for playing games with custom settings.
Thx a lot for you anyway
Click to expand...
Click to collapse
The point of this is to provide a great experience out of the box -- there is a few others helping me to decide which are the best settings, and I update them quite often because it's a continue pursuit of the best everyday settings profile.
The script applies at boot before anything else so you can change them in case you don't like.
The inexperienced user can update the kernel and enjoy always updated settings without even installing a kernel control app or rooting.
Sent from my SM-G935F using Tapatalk
+good kernal antutu 15xxxx
https://www.mx7.com/i/140/F2Pnl9.png
-battery unstable
rom s.....
Calvin.manneson said:
busy man
thanx boss
testing. ..
hotplug?
what Rom you running @kylothow
Click to expand...
Click to collapse
Those scores are with OC ? GPU and CPU?
Seems smooth even with PowerSaving mode(1.4.1)
Update: Battery is unstable <=60-50%
nalas said:
Those scores are with OC ? GPU and CPU?
Click to expand...
Click to collapse
yup,speed up everything for high score
New base D2/3 all score high.
with stock kernel and default settings score 140k.
May give it a try out at some point ATM I'm on superman ROM but curious as if it will break superman control app as I know a version of super kernel broken that app
Sent from my SM-G930F using Tapatalk
king118 said:
Seems smooth even with PowerSaving mode(1.4.1)
Update: Battery is unstable <=60-50%
Click to expand...
Click to collapse
hi
what is battery unstable you mean? it's less time than other kernel? please guide
tranphungan said:
hi
what is battery unstable you mean? it's less time than other kernel? please guide
Click to expand...
Click to collapse
The old 1.x.x version can have every problem imaginable (the only confirmed one is stutters for some users) but no one ever complained about battery.
Users just say things without proof, stats or logs, they don't even mention the settings they're using or which ROM are they on... Definitely not useful.
Sent from my SM-G935F using Tapatalk
kylothow said:
The old 1.x.x version can have every problem imaginable (the only confirmed one is stutters for some users) but no one ever complained about battery.
Users just say things without proof, stats or logs, they don't even mention the settings they're using or which ROM are they on... Definitely not useful.
Sent from my SM-G935F using Tapatalk
Click to expand...
Click to collapse
Thank you.
In my opinion. I can see this kernel make my rom Super Man is smoother than superstock or tgpkernel or superkernel. Absolutely smoothly and not effect to battery much (still not recognize..). I push up all cpu frequency to max. Hehe
New update is available for download. It has been tested and reported to be stable and worth the upgrade from the great 2.1.6.
Here's the changelog:
Version 2.2.1
Code:
- added cleaning scripts at boot (automatic trim, sqlite optimization, cache and leftovers cleaning
- updated ramdisk and mcregistry to DQE7
- updated with latest Samsung changes (DQE7/DQEF)
- disabled swap and zsmalloc
- added row I/O scheduler
- increased default maximum frequency to 2.6GHz
- updated to Linux 3.18.55
- switched to custom built Uber Toolchain 6.3.1 (20170528)
- switched to a whole new overclock/voltage management method based on ASV
- changed frequency policy especially regarding touch boost (for better battery)
- allow to enable Exynos swap
- add unstable power detection and charging/battery controls
- added notifiers for the future addition of CPU governors and removed old/broken implementations
- a few f2fs and other minor fixes to defconfig, schedulers, cpufreq
> https://www.androidfilehost.com/?w=files&flid=171297
thanx for updating dev.
definitely the fastest custom kernel for me...
anyone know why ux score is 'red' in antutu?

[KERNEL][LOS][v3.18.87] The Soda Kernel [15 DECEMBER] + firmware flashables

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Introduction
Buying Mi 5 gave me opportunity to spread wings and maintain a (hopefully) better version of Linux kernel for this device.
The idea is to provide two levels of modification, one - the most up-to-date kernel upstreamed with official Linux changes (also Android) repo to provide bug-free and stable experience, second - tweaks and additional features placed in top of upstreamed version to give blazing efficiency and battery friendly experience.
I came with the idea while looking onto linux repo - there are so many fixes and optimizations done to the code which gonna never come up to any Android device. So why not to try and pick some of these changes?
Android device is one of many for which Linux kernel is developed. Adding hardware specific changes will give extra performance and battery backup as it's going to use the phone architecture better instead of generic implementation.
Click to expand...
Click to collapse
Compatibility
It is LOS forked repo so any LOS-based ROM should be compatible (not MIUI compatible).
Do not use it with any custom ROM or additional modifications as I'm not supporting them (and will not).
Of course, you can try flashing, if it works - enjoy.
Downloads
You can use 'Download' tab in the top or download from AFH .
Installation:
- download kernel zip and necessarily check MD5!
- boot into recovery
- flash the zip (always flash on clean ROM!!)
- (optionally you can wipe cache/dalvik)
- reboot to the system and taste the madnesss
Soda-Upstream - stock kernel upstreamed with official repos as much as it is possible.
Features of Soda-Upstream:
- Almost fully updated to v3.18.87
- Compiled with fresh Google's prebuild GCC 4.9
- A lot of official fixes and optimizations
- Updated crypto parts
- Updated lib parts (lots of performance improvements)
- Updated cpuidle
- Updated devfreq
- Updated Android drivers
- Updated pseudo file systems & JBD2
- Updated fs (up to 10% faster I/o)
- Updated arm64 deps
- Updated parts in net
- Miscellaneous scrpits update
- Stock frequency on 32gb model
- Own fix for mitigation task not initialized (testing)
- Other minor updates
Soda Kernel - upstreamed kernel compiled with fresh GCC, arch dependent flags, awesome tweaks and without any useless crap!
Features of Soda:
- All from Soda-Upstream
- Compiled with UBER TC 5.x (can't go higher due to s***ty drivers)
- Added arch optimization flags
- Changes in config
- Enabled by default net governor Westwood
- New IO scheds: ZEN, FIFO, FIOPS, Maple
- New CPU govs: ElementalX, ZZmove, Blu_Active
- Adreno Idler
- Adreno boost
- Disabled CRC
- Mi5 Lite has standard CPU frequency
- Added Frandom
- Backlight Dimmer
- Kcal v2
- Compiled with -O2
- Passing SafetyNet: GREEN
- Optimized functions
- Charge Control
- Boeffla Wakelock Blocker with predefined stuff
- Disabled FG wakelocks: update_sram, update_temp, memaccess, soc_work
- Default noatime mount flag
- Sound Control
- FingerPrint boost (it's not taking a lot of battery, but makes a difference at screen wakeup)
- Higher Slimbus frequencies to provide better sound quality (and truly it's working)
- Gentle Fair Sleepers, Arch Capacity interface
- Dynamic Sync Control 2.0
- USB OTG
- Alucard Hotplug
- IntelliThermal
- PowerSuspend
- Updated CPU boost
- Memory Compaction mechanism
Before you exit:
Don't get dishearten because of 'poor' features list. Main advantage of this kernel is upstream of many parts. Changes in Soda are chosen wisely, I implement thinks that are supposed to benefit. You don't need XYZ, you need Soda
Known issues:
Upstream:
None
Soda:
- Battery idle drain (investigation in progress)
- Speaker gain is broken
FAQ:
Could you add XYZ feature?
I will not add features I personally think are useless or unneeded. I can only promise I'll take it into consideration. If you're so single-minded about that just fork repo and pull request - I'll pick it gladly.
Could you upstream XYZ?
Ok, upstreaming is nice unless you fall into conflicts or totally new code structure. Don't expect me to update the kernel up to 4.13, haha! I'll keep in mind what you're asking me for, but if you're so desperate about this I'm waiting for pull request .
Why should I choose yours upstreamed version?
Don't expect it to change your Mi 5 into S7 edge =)
Think about like that - some time ago Google forked Linux kernel at version 3.18.31 and added their changes, then Qualcomm forked it and added their changes, then Xiaomi forked and added their changes. There are a lot of bugs, memory leaks and other bad stuff in here and probably nobody will take care about it... Oooch, except me! My aim is to keep the code as most up-to-date as possible - so without rewriting a half of proprietary drivers.
Does it make any sense?
In my opinion - yes.
Our phone will be more stable, not vulnerable to newest 0-days and hopefully a bit faster and battery friendlier. The key is bug-free optimized code; magical tweaks do not always take the first place in making a kernel better. As of my experience using upstreamed version gives more battery and smoothness!
"My phone freezees help meeee!!!!!!!11oneoneone..."
Description, logcat, kmesg or GTFO.
Could your changes damage my device?
I don't take any responsibility for broken devices, firing from work or nuclear wars. It's a hobby project maintained in my free time. I carefully pick up changes not to mess up anything and add features that are checked and provided to work correctly. There is a small range of cases when you can loose your phone completely, typically it will just freeze and reboot.
Where is version for MIUI and EAS?
MIUI won't be supported because Xiaomi haven't updated their repo for a long time. Building for MIUI would bring more problems than advantages.
EAS is in testing stage and will be released soon.
Remember to hit like button if you like my work as it motivates me a lot!
Play with it and post your experience please
Firmware:
Now I'm also providing updated firmware flashables.
You can easily download firmware packages from AFH .
Happy flashing!
Telegram:
I created Telegram Group where we talk about everything concerned with Android and kernels. Everyone is welcome!
--- Invite Link ---
Nightlies:
If you want to taste unreleased versions of Soda make sure to join my --- Telegram Channel --- where I post release candidates.
Donation:
I have spent lots of hours on debugging and feature adding. I'm developing this project in my free time but I put my heart and soul into it. I'll be glad to see you appreciate my work!
Buy me a coffee
Thanks to:
All LineageOS team @Lord Boeffla (aka andip71) @ZaneZam @bgcngm @frap129 #engstk @arter97 @jollaman999 @franciscofranco @TheCrazyLex
Special thanks to:
@mlira1 @SkiesOfAzel
XDA:DevDB Information
The Soda Kernel, Kernel for the Xiaomi Mi 5
Contributors
xNombre
Source Code: https://github.com/xNombre/android_kernel_xiaomi_msm8996
Kernel Special Features:
Version Information
Status: Stable
Created 2017-08-20
Last Updated 2017-12-15
The Soda-Upstream Kernel Changelog:
Code:
beta 1.0:
- initial release!
- upstreamed to v3.18.60
- upstreamed crypto section
version 1.1 (no beta anymore):
- upstreamed lib section (it includes a lot of optimizations done to the code)
- minor init fixes
- few block fixes
- updated ZRAM driver (with new LZ4 it's way much faster)
version 1.2:
- updated GCC from google's repo
- updated to linux 3.18.70
- updated cpuidle
- updated a bit in cpufreq
- updated devfreq
- [STRIKE]updated pseudofilesystems (like sysfs, proc etc.)[/STRIKE]
- updated Android drivers (a lot of changes)
- useless Adaptive LMK is removed
- updated sdcardfs
- merged LOS branch
version 1.2.1:
- BIG filesystems update (mainly pseudofilesystems)
version 1.2.2: --IT'S A HOTFIX---
- reverted a lot of crap
- fixed zram issues (need to be updated more carefully)
- minor updates in video, gpu
- minor updates in amba
- merged LOS tree
version 1.3:
- upstreamed to v3.18.84
- upstreamed with base
- updated android drivers (this time it's truly better)
- updated arm64 section
- own fix for broken mitigation task
- now you have stock freqs on 32gb model :)
- updated fs (up to 10% performance spike based on benchmarks)
- updated Linux scripts
- updates in net section (incomplete)
- kernel is now named soda :D
- updated GCC
- minor changes
version 1.3.1:
- fixed problems with F2FS
- fixed problem with kernel name unavailable
version 1.3.2:
- upstreamed with base (fixes potential touchscreen issues)
- upstreamed linux to 3.18.87
- updated AnyKernel2 (smaller package size)
The Soda Kernel Changelog:
Code:
beta 1.0:
- initial release!
- changes in config
- disabled CPU Boost
- disabled useless things
beta 1.1:
- added backlight dimmer
- added Kcal
- added Adreno Idler
- hard disabled CRC
- added frandom
- stock freqs on Mi5 Lite
- added blu active
- deleted LZO
- config changes
- based on newest Soda Upstream
beta 1.2:
- improved square root algo
- added FP boost
- SafetyNet: green
- improved imageblit func
- added parameter to change QC Fast Charge current
- added parameter to change charging current (900mA mod)
- added wakelock blocker
- added Sound Control
- added BL limits parameter
- default to noatime flag
- added Adreno Boost
- merged latest soda-upstream (with LOS changes)
- temporary fix for backlight dimmer (need more investigation)
- passing new flags to compiler
- updated toolchain
- disabled useless stuff in config
- less debugging more power
- higher freqs on slimbus
beta 1.2.1:
- FIXED high ram usage
- enabled bfq and cfq due to requests
- disabled useless wakelocks from FG
- updated blu_active
beta 1.3 (not released yet):
- rebased on top of upstream
added:
- Memory Compaction Mechanism
- Sound control ported to Xiaomi devices
- PowerSuspend
- Alucard Hotplug
- IntelliThermal
- Dynamic Sync Control
- updated and reenabled CPU boost
- removed log spamming
- changes in config (disabled useless things, added OTG support, enabled ondemand, wakelocks garbaging)
- fixed not working AudioFX!!
- tweaks to provide better battery life
- enabled arch capacity
- added knob to manipulate Gentle Fair Sleepers and Arch Capacity
- changed GPU initial power level
- fixed problems with temperature sensor
- introducing own Charging Control module
- minor changes
beta 1.3.1: (not released yet)
- fixed problems with battery drain (finally)
- changed toolchain to ?Linaro? 7.x
- refreshed compiler flags
- updated BFQ to v8r12
- disabled crap from compiling
- frandom is now utilized
- overall random api performance improvement
- c-state aware scheduler
- CFQ and BFQ compiled with hierarchical scheduling
- more silence
Reserved
How to tweak my kernel:
1. Charge control:
Path of all tunables is
Code:
/sys/kernel/fast_charge
You have 3 tunables as follows:
maximum_qc_current (DEFAULT: 2800) - it's very important one, its value controls QC3.0 charging current. Recently there are commons problems with screens and the assumption is that too high current causes that problem. Lowering the value would also make your battery's life longer!
force_fast_charge (DEFAULT: 0) - it's common known knob to force 900mA charging on unknown sources. I tweaked it a bit and now, if it's possible, driver will choose higher values depending on the source.
charge_limit (DEFAULT: 100) - it's very interesting one, its value controls maximum percentage of which your battery will be charged. After given limit charging will be stopped. Lowering this value could benefit in prolonged battery life as capacity wouldn't decrease that fast. Scientific researches recommend charging your battery to 80%.
3.Sound control:
You can tweak it using Kernel Adiutor.
4.Sched features:
I would like to resolve doubts connected with Arch Power. On kernel v3.18 there isn't such a feature. Cherry-picking old interface doesn't change anything in fair scheduler, the only thing you see is magic switch which does... nothing. Our kernel has feature named Arch Capacity which is *let's say* correspondent to previous one so I created two tunables - arch_capacity and arch_power. These are mirrored values so now you can enable/disable it in KA as known Arch Power but please remember that you're changing arch_capacity in fact.
My recommendation is to disable Gentle Fair Sleepers because you can save battery a bit.
You can also tweak it using Kernel Adiutor.
miui support please...
Aosp support ?
Did you add somes cpu governor ? And for you which its the best to have a better battery
Envoyé de mon MI 5 en utilisant Tapatalk
Aleluya! Not much kernel variety on our mi 5, pretty thanks I will test it early dev
cheers
Download link (I've found it, but it would be better in the description)? Governors? SOT?
Great news Sir,
I hope soon we could have good costum kernel with great stability and compability with newer rom.
I wish you could support AOSP based rom too
radnou974 said:
Did you add somes cpu governor ? And for you which its the best to have a better battery
Envoyé de mon MI 5 en utilisant Tapatalk
Click to expand...
Click to collapse
I just started Soda developing so you have to wait sometime for custom tweaks.
According to governors I think the most important thing is to configure it nicely, sth like AKT or GovTuner does. Stock interactive is good.
hans william said:
Great news Sir,
I hope soon we could have good costum kernel with great stability and compability with newer rom.
I wish you could support AOSP based rom too
Click to expand...
Click to collapse
AFAIK AOSP is based on LOS sources, it should work correctly
But some time it doesn't work properly on AOSP based rom, I used DragonXia as default kernel on every rom I flashed, but lately with latest release rom it's doesn't stable.
I hope you could made manually setting on/off the CPU core for better battery life, as hotplugging not save much battery life.
Overclocking was great too
I will test yours beta kernel right now Sir
CPU 0 and CPU 1 are stuck at 1593MHz.
Edit:
It seems like a restart solved it.
Edit2:
setting io scheduler to noop causes freeze.
abyssq said:
Edit2:
setting io scheduler to noop causes freeze.
Click to expand...
Click to collapse
On my phone everything works correctly.
Try typing in terminal/adb:
su
echo noop > /sys/block/sda/queue/scheduler
cat /sys/block/sda/queue/scheduler
If it says noop it's working...
xNombre said:
On my phone everything works correctly.
Try typing in terminal/adb:
su
echo noop > /sys/block/sda/queue/scheduler
cat /sys/block/sda/queue/scheduler
If it says noop it's working...
Click to expand...
Click to collapse
Yes it's working now. The test-iosched scheduler caused the problem.
will you add miui 9 support? miui lack of custom kernel support. thanks for dev gemini kernel.
which features does it have? quick charge? eas ?
"disabled CPU Boost" this is real great, i guess you know what i want. waitinng for a more stable realese and then give it a try
I pushed a first beta of Soda kernel. I added a few useful features, but battery usage reduction should be significant. Try it on your own
Thanks for your work! I will try and report back when possible.
Poor scores

Categories

Resources