[KERNEL]Lightning kernel cm11

which is better intelliplug or autosmp?

  • intelliplug

    Votes: 45 62.5%
  • autosmp

    Votes: 27 37.5%

  • Total voters
    72

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
multi rom by Olivier (sony 233 blobs)
81mhz lowest cpu frequency
more to come


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

installation instructions
flash the zip in recovery


for extreme overclocking disable qcom mpdecision


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


compatible roms
carbon rom
beanstalk rom
AICP kk rom
aokp rom
cm11 rom
more testing needed


credits
doomlord for kernel building instructions
jeroenqui for meow kernel
thomas1991_12 for linux patches and features
cyanogenmod for kernel source
Tommy-Geenexus for guidance
faux123 - For almost all kernel features
BrateloSlava-for many features and guidance
naitik2012-for testing
twrp ramdisk-Angel bob


XDA:DevDB Information
Lightning kernel, Kernel for the Sony Xperia Z

Contributors
nikhil18
Kernel Special Features:

Version Information
Status: Testing

Created 2014-07-10
Last Updated 2014-09-22
 
Last edited:

nikhil18

Senior Member
May 9, 2012
2,276
4,794
0
bangalore
changelog
sony 233 blobs.
version 0-initial release
version 1-added intelliplug,gpu overclocking,linux patch to 103,gpu simple governor,gpu voltage control,cd rom emulation .
version 2 - added lot of governors,f2fs support,exfat support and hopefully wifi fixed
version 3-added gpu overclock 627mhz,added tweaked CPU auto_hotplug driver,patches for improved CPU hotplug efficiency and at last finally wifi 100% fixed and this is the biggest update of this century:D
version 4-added kexec hard boot(multi rom) thanks to Olivier ,added multirom twrp recovery,fixed gpu simple governor,changed to xz compression.
version 5-fixed multirom,added row schedule and i have released two versions with autosmp and intelliplug.
version 6-added row sched,500ma charging for unknown chargers,fast charge,disabled some debugging for better performance,fixed sound stuttering if its there.
version 7 - added 81 and 270 mhz cpu frequencies,vfp hardfloat for better performance,set westwood tcp as default added many tcp congestion controls eg reno,highspeed,htcp,illinois,scalable and many more.
version 8-.283 blobs added,added interactive gpu governor,anykernel,fixed cd rom emulation,sound control 3.6 and for more you can check the commits.


downloads

Ok guys uploaded version 8 autosmp version here http://d-h.st/FwM enjoy:)

faq

Q1 low frequencies like 81mhz not sticking
Ans turn on frequency lock in trickstermod

Q2 if you are having random reboots?
Ans
lower the max freq to 1512000 and increase the min frequency to 384mhz
 
Last edited:

Tommy-Geenexus

Senior Member
Apr 30, 2013
2,769
2,576
193
I live on a Stone Hill.
@nikhil18

You shouldn't use -Ofast Optimisations.

They do more harm rather than bringing any benefits.

Gesendet von meinem C6603 mit Tapatalk 2

---------- Post added at 04:32 PM ---------- Previous post was at 04:30 PM ----------

Graphic bugs (screen tearing when scrolling) and wifi not turning on on Thomas' CM11.
Testing on Infected's CM11 now.
You shouldn't use this kernel on thomas rom, the new drivers aren't added.

Gesendet von meinem C6603 mit Tapatalk 2
 
  • Like
Reactions: nikhil18

naitik2012

Senior Member
Oct 30, 2012
866
249
43
thats a very old build try the latest cm
guys any one else having this problem
First of all Thank you so much... i cant believe on my eyes when i saw first thread in OG development forum with name "lightning kernel cm11 " ..
your kernel have all the features i wanted , specially Sound control , CPU OC & Undervolting..
m really happy to see that we have working CM11 custom kernel with so many features.
btw Thomas's latest CM11 kernel source > https://github.com/daeiron/android_kernel_sony_apq8064 may be it will help u :)

Keep developing :D and Thanks again
 
  • Like
Reactions: nikhil18

venky716

Senior Member
Sep 9, 2011
989
722
123
Working flawlessly on Carbon ROM :good:

Performance has increased at least 2x.

Just one issue, GPU overclock does not stick, it resets to 400 after a while. (I use trickster mod)

PS: Doesn't work with PAC ROM.
Also works with Beanstalk( Fastboot flashed the boot.img)
 
Last edited:

corpsegrinder62

Senior Member
Jan 17, 2011
821
292
63
@nikhil18, i cant express my grattitude for your kernel, i confirmed alls working on latest AICP 4.4.4 KK, has everything i wanted, super fast, response is just simply amazing, i do also however face clocks reverting over time even when i manually clock via system files, but probably os doing it, thank you so much :D finally a KK kernel that supports everything.. If i can do anything to contribute or help please let me know, will bug report in a couple of days.

Sent from my Xperia Z using XDA Premium 4 mobile app
 

nikhil18

Senior Member
May 9, 2012
2,276
4,794
0
bangalore
@nikhil18, i cant express my grattitude for your kernel, i confirmed alls working on latest AICP 4.4.4 KK, has everything i wanted, super fast, response is just simply amazing, i do also however face clocks reverting over time even when i manually clock via system files, but probably os doing it, thank you so much :D finally a KK kernel that supports everything.. If i can do anything to contribute or help please let me know, will bug report in a couple of days.

Sent from my Xperia Z using XDA Premium 4 mobile app
just copy the sysmon file i have uploaded in the second post to system/etc for proper overclock or you can edit the file yourself but dont burn your cpu and turn off stock mpdecision
 
Last edited:

corpsegrinder62

Senior Member
Jan 17, 2011
821
292
63
just copy the sysmon file i have uploaded in the second post to system/etc for proper overclock or you can edit the file yourself but dont burn your cpu
Thanks i will do, the 192mhz on standby is surprisingly very stable, everything is great so far only things not working that i see are d2w and s2w.. You can enable them , i did with trickster mod, but doesnt work.. Only bugs ive spotted..Thanks again xD

Sent from my Xperia Z using XDA Premium 4 mobile app
 

naitik2012

Senior Member
Oct 30, 2012
866
249
43
just copy the sysmon file i have uploaded in the second post to system/etc for proper overclock or you can edit the file yourself but dont burn your cpu and turn off stock mpdecision
Hi
m facing graphic and wifi issue in latest CM11.. can u pls solve those issue

Thanks :)