[KERNEL]lightning kernel cm11

nikhil18

Senior Member
May 9, 2012
2,276
4,794
0
bangalore
Lightning kernel

this kernel is made for cyanogenmod 11 roms and i take no responsibility if you brick,destroy your device due to this kernel

features
sound control 3.2
gpu overclock to 627mhz
intelli thermal
cpu overclock upto 1836mhz(disable mpdecision)
compiled with linaro 4.9.1
added intelliactive,intellidemand,preservative,hyper,wheatley,lionheart governors
row,fiops,tripndroid io schedulers
undervolting
sweep to wake and double tap to wake
auto mpdecision (turn off stock qcom mpdecession)
sound stuttering fixed(zzz sound while hearing music)
Motorola MSM memcpy enhancements
cpu unallingnment access
kernel mode neon
exfat support
gpu voltage control
more to come


source code https://github.com/nikhil18/android_kernel_sony_apq8064

installation instructions
flash the zip in recovery



Setting custom GPU Voltages via sysfs

NB:
- Safe lock is present on MIN/MAX values:

Quote:
#define GPU_MIN_VDD 900000
#define GPU_MAX_VDD 1200000
The default GPU voltages are:
Quote:
+ [VDD_DIG_NONE] = 0,
+ [VDD_DIG_LOW] = 975000,
+ [VDD_DIG_NOMINAL] = 1075000,
+ [VDD_DIG_HIGH] = 1175000
Verify the actual settings:
Quote:
cat /sys/devices/system/cpu/cpu0/cpufreq/gpu_mv_table

975000
1075000
1175000


Adjust to desired values and verify:

Quote:
echo "930000 1000000 1100000" > /sys/devices/system/cpu/cpu0/cpufreq/gpu_mv_table


benchmark




credits
doomlord for kernel building instructions
jeroenqui for meow kernel
cyanogenmod for kernel source
Tommy-Geenexus
faux123 - For almost all kernel features
 
Last edited:

nikhil18

Senior Member
May 9, 2012
2,276
4,794
0
bangalore
Changelog
version 2 - wifi fixed but removed intelli-plug and overclocking
version 3 - overclocking upto 1836mhz and gpu overclocking upto 533mhz(if overclocking does not work copy sysmon file to system/etc folder)
version 4 - added many governors,undervolting,sweep to wake and double tap to wake, fiops and row io schedulers and fast charge

version 5 - fixed gpu overclock steps,added gpu overclock upto 627mhz,xz kernel compression(fast boot),mpdecission by showp (turn off stock qcom mpdecession)
version 6- added gpu governors simple performance and ondemand,many optimizations
version 7 - added new gpu drivers,updated prima wlan drivers,O3 compiling,gamma controls
version 8 - remade from scratch ,added new governors hyper,wheatley,lionheart vr,trpndroid,zen io schedulars , simple gpu governor , removed msm mp decision and added auto msm mp decision and a lot of optimizations
version 9 - removed extra frequencies in voltage table,Motorola MSM memcpy enhancements and cpu unallingnment access for better performance,removed 627mhz gpu freq,kernel mode neon,fast charge.
version 10 - added exfat support,fixed cd rom emulation,gpu voltage,updated intelliactive and hyper governor.
version 12 - https://drive.google.com/file/d/0B9d32m0t4sa0TmFfX2hGMUlLTDg/view?usp=sharing
 
Last edited:

merhans

Senior Member
Mar 22, 2012
280
57
0
Will test it

---------- Post added at 11:48 PM ---------- Previous post was at 11:22 PM ----------

WiFi isn't working for me, can't turn it on

...
 

EnzoDC

Senior Member
Feb 27, 2014
139
17
0
Thanks @nikhil18! This solved my sound stuttering bug :D

Could you explain to me what the intellidemand etc. intelli stuff governors are for? I never understood what they were for :$ All I know is that ondemand and interactive is a good governor and is not a battery hog unlike Performance.

EDIT [ADD ON]: I would like to thank you for this Kernel, my ROM is smoother than before and more consistent in terms of performance, even though it already is, I can feel that it is, and its not placebo.. Keep it up. Looks like Im gonna have to set up my 2nd bank account with paypal and start donating for awesome devs like you haha
 
Last edited:
  • Like
Reactions: kostazol and Shray

dannyglover

Senior Member
Aug 23, 2010
63
6
0
Kernel works great

Kernel has been working smoothly for me on Carbon Rom. I don't have Bluetooth audio stuttering anymore but I do still get sound stuttering (bluetooth as well as through phone speaker) in Plants vs Zombies 2. This stuttering also occurred in the stock kernel so it might be an app optimisation problem. I've tried other governors and it doesn't seem to make a difference.

Thanks for the kernel mate.
 

Thibou

Senior Member
Apr 27, 2012
203
159
73
France
About v7 on my ZR (CM11) :
- Impossible to undervolt (no tab on SetCPU)
- Very instable when overclocking. Phone freeze and reboot just after set max frequency.
 
Last edited: