My kernel was based on LG G2 Stock Kernel v20*/21*.
Kernel Tree is 3.4.103, + LG KitKat updates + my tweaks and lots of tuning!
Global Credits! Big thanks to g.lewarne for helping me to start! Savoca for many kernel mods Cyanogen (rmcc@github) for many kernel mods Faux123 for UV/OV, Sound Gain Control, Inteli Hotplug, Fast Charge support!and more! Alucard_24 for AlucardHotplug and mods. LG for Stock kernel base! MyFluxi for kernel updates and fixes. To all my sources in GITHUB! Linus Torvalds for Linux source!
Default I/O Scheduling: ROW.
More I/O Scheduling present in kernel: DEADLINE, NOOP, CFQ, SIO, BFQ.
Default CPU frequency: 300-2803 MHz (MAX OC up to 2.8Ghz speed!).
You can set MIN/MAX CPU Freq in CPU tuning apps.
You can set MAX freq for screen OFF state!
Default CPU governor: Ondemand.
More CPU Govs present, conservative, performance, Intelidemand, OndemandPlus, Nightmare, Hyper, Pegasusq, IntelliActive, Alucard.
Support for Kernel HOTPLUG (Intelli HotPlug by @faux123)
Support for Kernel HOTPLUG (Alucard HotPlug by @alucard_24)
Support for Kernel HOTPLUG (MSM HotPlug by @myfluxi)
By installing this kernel YOU will take full responsibility for any damage to your device! Hardware or software! no one forcing you to install it. So please do not blame me if you read wrong! or didn't read at all the instructions that i have written for YOU.
But you can feel SAFE to use it, as I test every release on my phone! Before I publish it for download.
Your warranty will be void by installing custom kernel as my.
This kernel will ROOT ADB Shell!
Global Info About LG Models: D800 = AT&T Model (Support KNOCK CODE from base 20u) D801 = US Tmobile Model (Support KNOCK CODE from base 20e) D802 = International Model (Support KNOCK CODE from base 20b or 20d) D803 = Canada Model (Support KNOCK CODE from base 20f) F320* = Korean Model (Support KNOCK CODE from base 21p) D805 + D806 (same as D802) (Support KNOCK CODE from base 20b or 20d) LS980 = SPR Model (Sprint) (support KNOCK CODE from base ZVD) VS980 = VZW Model (Verizon) (support KNOCK CODE by ME!)
if your ROM base is BELOW the Knock Code Base for your model!
use OLD NO KNOCK CODE kernel. or Update your ROM.
You will need to have ROOTED device with Recovery installed! Refer to other threads for recovery install process.
Download kernel, upload it to your SDCARD, anywhere. Download STOCK Kernel for your device! so you will always have it on sdcard in case of any disaster!!! Reboot to Recovery. Install kernel as you installed ROM or any mod.
In case that you stuck on boot logo and want to revert to STOCK kernel. Connect USB Push PWR + Vol Down till phone reboot and you will see LG Logo! Release and press the buttons again! till you see screen asking if you want to WIPE your device! if you have recovery installed, then it's will just OPEN the recovery! no WIPE will happen!!!
Just push 3 time the PWR key. and you will be moved to recovery. Install your device STOCK kernel and wait for FIX.
Have Fun and report.
INFO FOR USER!!! READ ME FIRST:
LG has started to update all ROM + Kernels with new TOUCH SCREEN DRIVER.
that includes new feature "KNOCK CODE" see youtube!
For now only for D800/D801/D802/D803/F320/LS/VS980 ROMS that have 20B/D/E/F/U/21P/ZVD base!
In download site, you will see kernels with normal version just numbers.
And kernels with "No-Knock-Code" labels.
If your ROM do not support KNOCK CODE on screen OFF!
Then use kernel without support for it!
or you will loose the ability to wake phone with KNOCK KNOCK gesture.
If knock code on screen OFF is supported use the normal build.
Soon all ROMS will have support! all depend on LG and our great ROM Devs.
*About force fast charge. not all devices/models support that HACK.
so if it's not working for you and you are using DEFAULT profile in STweaks.
Then it's NOT WORKING FOR YOU. no need to complain. it's HACK. not LG feature.
*Merged many updates to Audio Driver and to USB Audio driver.
*Merged updated to CORE, ARM, SMP and MEM. performance is great, and RAM leaks destroyed.
*Merged update to GPU driver, GPU mem leaks removed.
*Merged updates for WIFI.
*Merged updates to Qseecom driver.
*Merged updates to alarm driver.
*Merged updates to MMC driver.
*Merged updates to Diag driver.
*Fixed old bug in kernel/fork.c
*Merged NET updates.
*Merged latest Seccomp driver.
*Merged updates to android binder.
*Merged updates to OTG driver.
*Fixed many bugs with profile selection and hotplug activation.
All profiles will be reset on first boot, and /data/.dori folder cleaned.
*Made some code cleanups in kernel and ramdisk.
*Fixed Cortex script and other ramdisk scripts.
*Merged headphones detect fix.
*Merged ARCH updates.
*Updated audio policy + enabled USB Audio, Sound is great!
*Improved CPU thermal config.
*Reworked Intelligent Thermal Driver.
It's now bug free and working great, can be stop/start and tuned.
*Merged updates for Sound Driver headset detection code.
*Fixed Default HotPlug not starting after switching from other hotplug via
STweaks. now all OK.
*Tuned MSM HotPlug to be less aggressive, will not pop all cores for nothing
on freq jumps.
*Restored default LG voltage for touch screen. was 2.7v as min, now 3.3v
It's should help with touch response and knock code/knock ON. Possible even make the wakeup faster.
*Merged fix for WIFI driver, less power used by wifi driver when it's OFF, but driver is waiting to be turned ON.
so now one less routine running even when WIFI is OFF.
*Merged more conservative load calculation for default hotplug driver.
its help default hotplug to decide if to turn cores ON or NOT on low load request.
and by this save power. it's still not WOW but better than was,
other kernel hotplugs are still much better.
*Merged update to diagnostic driver for ROM/KERNEL operations.
*Made some cleanups in ramdisk and adaptations to new changes in kernel.
*Fixed suspend battery drain. now will be less.
*More updates to audio driver + fixes for headsets.
*Update to audio policy that now allow more sample rates to DSP.
Sound is GREAT!
*Merged updates for Selinux and CPU core.
*Merged latest F2FS driver updates.
*Enabled ROM hotplug service without the hotplug, as it's doing other ROM/Power
functions, and we had it OFF long time now... same as thermal for camera...
*Restored default latency for all models, CPU power increased.
*Made small cleanups in kernel and ramdisk.
*Fixed sound hissing in low end headphones/headsets.
*Enabled HIFI performance code for all formats to fix sound.
*Fixed HIGH speaker sound on boot animation.
*Merged new thermal control core by Faux123 and converted it to
Intelligent Thermal Control! it's super fast and holding temp just awesome.
not letting any overheats to happen.
*Allow to set MIC gain to -40 as requested by users.
*Fixed Default HotPlug not activated on boot if selected as default.
*Updated Sound Control code by faux123 to 3.6 build.
*Merged code to reduce I2C bus source freq from 50Mhz to 19Mhz
it's will save power.
*Merged code that will allow us to use Mutli ROM recovery and switch kernels online! and boot to secondary ROM. for fun!
Now we need to wait till recovery is finished and we will be the first LG G2 dual boot users!!!
*Merge small fix to kthread work that help to reduce useless jobs in kernel.
Kernel 7.4 (SOUND BUGGED)
*Fixed low/high sound bugs. now music will be clear, and incall will be loud.
*Merged memory leak fixes for logger code.
*Merged Support for MIUI KK STOCK Base ROMS.
*Allow to set CAMERA and Incall MIC to -30 in STweaks to allow sound record in concerts.
*Fixed Analog Power Amp gain control in Faux App.
Kernel 7.3 (sound bugs, but stable)
*Fixed CPU Hang BUG added at 7.2 kernel...
*Merged FIX for BT memory leak.
*Merged Sound Control driver rewrites + mods.
Now default headphones + in call speaker gain will be 2.
*Fixed back light Control mod. now will do change only if device in dark room.
and will not cause back light flickering when LUX is above 100 (bright room)
*Allowed to use ONLY Intelligent Thermal control and set safe TEMP controls.
BUT when using ONLY Intelligent Thermal control camera app will close longer!
Cant fix that. ROM thermal is CLOSED source binary.
*Now Analog PA setting via Faux Sound app will STICK. and not reset to default when no sound playing.
If you have no change modding the PA gain, then your hardware/Software
is supporting only PA on/off and it's set ON by default, no min/max.
And we cant turn it OFF.
This is how my hardware/Software behave.
Kernel 7.2 BUGGED and Deleted
*Merged fixes for sound driver.
Now high performance mode will be active only for HIFI sound music above or equal 96khz.
So we can save power using normal sound tracks.
Also some fixes for FauxSound Analog Gain control.
*Merged fixes for CPUFREQ global driver. mainly fixes from main line.
*Merged fixes for OCMEM from CAF.
*Merged MMC update.
*Merged latest F2FS driver. not used for now.
*Merged performance boost mods.
*Added new tuning in STweaks Other Tab that allow to set MIN backlight
in full darkness. some users reported too bright when using AUTO brightness.
well now it's can be VERY dark read instructions in STweaks Control.
*Profiles will be reset on first boot to include new tweak.
*Removed commit that may have been responsible for some SODS
people had before.
Kernel 7.1 STABLE MILE STONE.
*Merged fixes for MSM/Intelli/Alucard HotPlugs to allow them to work
as should in Awake/Suspend mode! no more SODS caused by them.
*Allowed to set Speaker Gain max to 20, if that is needed.
*Updated LINARO 2014.08 Toolchain kernel builder, compiled by me and tuned.
*Merged fix for WIFI driver.
*Merged update for CPU BOOST driver, will help in wakeup speed.
*Merged updates for Nightmare,Alucard,Darkness CPU GOVS from DEV.
*Merged fix for sound driver.
*Fixed long vibrates when typing fast, now much less frequent, one in 20~30 clicks.
Kernel 7.0 STABLE
*Updated with 3.4.103 main stream patch.
*Tuned Interactive gov.
*Added new Sound Policy config to allowed higher sample rates
to go via hardware decoder.
*Merged Sound driver updates.
*Merged fix for low mem killer code.
*Disabled useless kernel config for all models.
*Merged small fix for WIFI.
*Added new control for HotPlugs to STweaks, it's allow to suspend hotplug when screen is OFF, or not (default) we had is SUSPENDED!!! for 5 versions now.
So i suspect that all SOD reporters have device/rom not compatible for hotplug suspend.
and other MANY other have 0 problems... so it's not suspended by default.
this will also help with faster wake up on In Call. but may use little more battery when screen is OFF and sleeping... test and see.
*Profiles will be reset after boot, once.
*Merged HUGE update to SCHED CORE and RCU code from 3.10.y Android MSM CAF.
Apps open faster, many bugs fixed, CPU cores working great, and much more.
*Merged many Suspend updates to get rid of wakeup problems.
*Merged updates to Interactive CPU gov.
*Fixed PowerSuspend code messing with LCD panel wakeup... should fix all sods.
*Added ability to set max 3 cores online in STweaks (Triple Core)
*Merged many USB updates, that include better file transfer and bug fixes.
*Merged GPU (KGSL) updates.
*Patched with 3.4.102 main stream patch.
*Fixed sound noises when using old decoded files or low sample rates.
*Merged Sound Driver updates.
*Merged HDMI updates.
*Merged MMC Updates.
*Merged Power Manager updates and timekeeping!
*Fixed old bug in suspend code.
*Updated ONDEMAND CPU gov + Tuning.
*Merged NET and WIFI updates.
*Uploaded one more build for VS980 without knock code support. i hope it's will work for people without ROM that support Knock code.
Kernel 6.7 STABLE for 95%
*Restored all MMC updates from CAF.
*Restored all Qseecom updates + new fixes from CAF
*Merged many new sound driver updates from 3.10.y CAF.
*Merged NET fixes and other misc system updates.
*Restored CMA updates and ARM updates.
set 16MB allocated for drivers only to speedup kernel operations.
*Restored all GPU commits to fix GPU power controls and many bugs.
*Restored Wireless TV driver updates.
*Restored CPU code updates and cleanups.
*Restored OCMEM updates and cleanups.
*Restored GPIO updates.
*Restored IOMMU updates.
*Restored SCHED CORE updates.
*Merged update to Intelliactive CPU GOV by faux123
*Merged sound driver control updates to ver 3.5 by faux123
and fixed sound controls lock for LG sound driver.
we dont loose STweaks tuning after using Faux Sound App any more.
So what you set in STweaks is now sticking till reboot. no matter what.
*Merged update to Interactive CPU GOV.
*Merged small camera driver update.
*Merged small LED control fix. help with stuck leds, no more...
*Restored Audio Policy config file with new controls and sample rates
and support for offload and compression and latency fixes.
Kernel 6.6 STABLE!
*Merged new updates to Alucard/Nightmare/Darkness CPU Govs.
*Merged new updates to Alucard HotPlug.
*Reverted MSM/INTELLI/CPUFREQ LIMIT usage of LCD Notify for suspend!
Suspected as the SOD maker! now it's will use powersuspend as was with 5.9
*Installed patch 3.4.101 from main line.
*Restored Random number generator and sync it with 3.16.y kernel code.
*Fixed AC3 decoded files, noise when playing music. i dont hear any noise!
*Restored MSM/INTELLI HOTPLUG and CPU-BOOST tuning.
*Restored Thermal Tuning.
*Restored CPU boost commits.
This kernel has all that was restored in 6.5.4 and more fixes.
*Big update to Random Generator (Entropy) from 3.16.y kernel!
This allow fast random data generate used by kernel or APPS/ROM
*Merged updates for KSGL (GPU) Driver.
*Merged many new updates for Sound and HeadSet drivers.
*Reverted USB Audio drivers to STOCK, after reports that it's was broken.
*Big update for MMC (internal storage) driver from CAF and Nexus 5.
*Merged updates for qseecom driver.
*Merged new ZVD LG Source update for LS980 Knock Code support!
and new touch screen firmware. all new ZVD base ROMS can use this kernel.
Others use OLDER NO Knock build.
*Merged big update for LowMemKill driver from CAF and Nexus 5.
Now it's much more smart and relaxed, not killing apps without need.
you may see less free RAM, but it's all under control!
*Fixed some NET bugs i have found.
*Merged updates for ARM code from CAF.
*Merged many new updates for Ondemand GOV, it's rewritten!
and much more smart and efficient!
some controls removed as they are no longer needed.
*Tuned Touch Boost driver.
*Tuned new Ondemand.
*Found working wget binary and restored AD-Block update via STweaks and kernel version check!
*Fixed some small bugs in STweaks scripts.
*Improved deepsleep power usage and performance when active.
*Possible fixed the strange CPU HANGS in some different conditions.
*Found out that if one of the CPU cores overheat too much! it's shutdown and will not work any more till reboot, this is hardware protection!
so if you see that one of your cores have 0Mhz when it's online. you burned it too much!
reduce MAX cpu temp in STweaks for 2C less.. and REBOOT.
Now all CPUS can handle high temp! this why Default profiles and lower have 78C max.
*Updated LINARO 2014.07 toolchain for kernel building, personally compiled by me.
*Updated with patch 3.4.99 from main stream.
*Updated Qseecom driver from CAF, responsible for secure communication from ROM to Kernel.
*Updated Crypto driver. faster and with less bugs!
*Major update for USB Audio driver.
*Merged major update for sound driver from CAF and Nexus 5,
now we have high performance hardware decoding support!
and that help to reduce CPU usage when playing super heavy sound files!
for example i can play FLAC 192khz/24bit file (350mb just 9:00min)
and when screen is OFF, CPU is at 300Mhz one core!
and playing without any problem! when screen is ON it's jump to higher freqs
but again much less than was.
So playing music now use less power! and quality is great!
*Merged new CODEC support for WMA,MP2,ACC via DSP processor.
*Tuned max CPU temp on boot to prevent reboots when CPU is too hot,
for some models / low quality CPU chips.
*Tuned Ondemand GOV to provide balanced power/battery save.
as people reported higher drain. now should be good.
don't expect high score in bench apps, no need to post this junk.
*Tuned Touch Boost driver to provide better performance.
*Merged updates for modem driver.
*Merged updates for BT driver.
*Merged updates for Interactive CPU gov.
*Merged update for reboot code.
*Allowed higher speaker gain in STweaks! up to 15. (use in your own risk!)
*Boot D800 with older INIT till new one will be available from LG.
*Tuned MSM Hotplug to balance performance.
*Added new Button in STweaks under Force fast charge,
it's allow to reset battery fuel gauge, and allow recalibration.
if you think that % that you see is not right, push that button, and it's should
drop/rise or stay as was, than it's OK.
after this allow full charge and discharge. don't play with this button too much.
it's reset battery calibration in kernel.
*Fixed Profiles backup/restore function in STweaks.
*Fixed BT connect delays.
*Merged major Sound Driver update from CAF and Nexus 5!
Including improvements to Ultra Sound (192khz 24bit) audio drivers.
and many fixes for protecting kernel from crash and compatibility with different headsets.
*Merged CORE, MEM, CMA updates.
we lost 16MB from total ram that now allocated for drivers, this allow much faster kernel work, as ram already free for drivers and no app can touch it.
*Fixed stereo call recording support.
*Added new option to STweaks to control CPU gov sample rate.
*With help from @Formhault now STweaks control descriptions are written much better, and typos fixed.
*Fixed WIFI wakelock drain.
*Update to Alucard CPU gov by DEV.
*Thanks to @pendroz we now have updated RAMDISK binary's from 20D and 20F STOCK kernels!
For all Knock Code supporting models.
*Headphones volume boosted! make sure you have normal volume set before use
it's much more clear and powerful now.
*Added auto FIX for panel type! on kernel install! thanks to @dr87
now JDI panel type users will get fully working LCD panel! no white lines!
No need to flash any modded kernels or use any MOD zips to set panel.
*Merged updates to camera driver.
*Merged Critical fixes for NET and ROW I/O sched.
*Merged fixes for Interactive Gov.
*Merged critical fixes for GPU driver! GPU performance increased.
*Merged new encryption driver, for now just there for future use by some app.
*Merged update for LCD panel that allow brightness change even if no GPU activity!
when nothing moved, brightness was stuck as last set, even if needed. delay was small... but now it's gone!
*Merged LCD driver update to suspend faster, will save power on screen Off.
*Merged fixes for MMC driver all about power suspend when not used.
*Merged fixes to Modem driver.
*Merged fixes for CPU drivers.
*Merged update to MSM CPU FREQ Limiter code. now more optimized.
*Merged new driver for stream synchronization during capture and playback.
*Fixed typos in STweaks descriptions.
I will not release any more updates for D800/1/2/3/F320 without knock code!!!
All Roms have the base updated! so time to update your ROM.
No knock code base is end of life. if you cant update use 5.6 kernel.
*Removed NET tweaks from kernel scripts.
*Fixed broken ROOT, by removing the root/unroot options. no needed any more.
we all have ROOT any way.
*Fixed NET problems in all branches + added missing NET code to D803 branch.
*Updated Busybox to support kitkat + fixes.
*Fixed my booting scripts to mach new kernel PATH to controls.
*Fixed SElinux code.
*Updated logger and binder from main line.
*Fixed Alucard HotPlug power code.
Kernel 4.1 first public Alpha Build!
*Kernel based on D800/2/3 20E Source!
*I have merged all the cool stuff from my LG JB kernel
See what inside list!
*Kernel is in high Alpha test stage! but it's STABLE
and working good on STOCK Builds.
*This kernel not supporting CM/AOKP ROMS!!! STOCK ONLY.
*If you loose ROOT after kernel install, download SuperSu 1.94 zip and install via recovery!
link Provided in Know Bugs!
I will fix it till next release.
For now post ALL in this thread till Q&A thread will be UP!
“The Kingdom of God is within man” - not one man nor a group of men, but in all men! In you! You, the people have the power - the power to create machines. The power to create happiness! You, the people, have the power to make this life free and beautiful, to make this life a wonderful adventure.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?