yashsingh1/xdaforums huggingface dataset:
[ONE Original Android Development] nikhil18:
Lightning Kernel

Code:

/* *** Disclaimer

* 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, and if

* you point the finger at me for messing up your device, I will laugh at you.

*/

thanks [MENTION=5622852]Jole7[/MENTION]

#####FEATURES#####

-WORKS ON BOTH AOSP AND CM BASED ROMS

#COOKED WITH#

-UBER 5.3 TOOLCHAIN

-03 Opitimizations

-F2FS SUPPORT

#MSM_LIMTER#

(Complete control over your CPU)

(Per core control over min/max)

(You can set governors for each core)

#ADDED GOVERNORS

-SMARTMAX

-NIGHTMARE

-LIONHEART

-BIOSHOCK

-IMPULSE

#HOTPLUGS

-ZEN DECISION

-MAKO HOTPLUG

#I/O SCHEDULERS

-BFQ

-CFQ

-DEADLINE

-FIOPS

-NOOP

-ROW

-SIO

#GPU GOVERNORS

-MSM-ADRENO-TZ

-POWERSAVE

-PERFORMANCE

-SIMPLE_ONDEMAND

#GPU SPECIAL ITEMS

-A BUTTON YOU CAN SELECT TO INCREASE PERFORMANCE

#TCP CONGESTION CONTROL

-HTCP

-RENO

-BIC

-CDG

-CUBIC

-WESTWOOD--(DEFAULT)

-HIGHSPEED

-HYBLA

-VEGAS

-VENO

-SCALABLE

-LP

-YEAH

-ILLINOIS

###OTHER FEATURES###

-I/O TUNABLES

-KEXEC HARD BOOT

-KCAL

-WAKELOCK TUNABLES

-VIRTUAL MEMORY

-MEMORY TWEAKS

-POWER SUSPEND OPTIONS

-USB FASTCHARGE

-FRANDOM

-ALLOW PURGING OF ASSETS

-POWER EFFICIENT WORK QUEUE

-GENTLE FAIR SLEEPERS

-ARCH POWER

credits

[MENTION=4898631]erorcun[/MENTION] [MENTION=5169465]DespairFactor[/MENTION]

[MENTION=3795148]neobuddy89[/MENTION] [MENTION=3685904]ak[/MENTION] [MENTION=4800121]Sultanxda[/MENTION]

and Thanks a lot to These developers, filled with great humanity and courage: [MENTION=4911350]RobbieL811[/MENTION] , [MENTION=2376110]dorimanx[/MENTION] , [MENTION=4003363]xboxfanj[/MENTION] , [MENTION=5658634]apb_axel[/MENTION] , [MENTION=3332811]faux123[/MENTION] , [MENTION=4152171]myfluxi[/MENTION] , showp1984 , [MENTION=3357040]Imoseyon[/MENTION] , [MENTION=4316709]savoca[/MENTION] , [MENTION=4379011]poondog[/MENTION] , [MENTION=4450732]CallMeAldy[/MENTION] [MENTION=4231562]Yoinx[/MENTION]

And also:

[MENTION=4167023]AndreiLux[/MENTION] , [MENTION=4684315]flar2[/MENTION] , [MENTION=5105835]Cl3Kener[/MENTION] , [MENTION=4804871]DerRomtester[/MENTION] , [MENTION=5438598]RenderBroken[/MENTION] , [MENTION=2199706]Alucard24[/MENTION] , [MENTION=3750240]stratosk[/MENTION] , [MENTION=647113]hellsgod[/MENTION] , Yank555-lu , [MENTION=5093942]KINGbabasula[/MENTION] , [MENTION=1143630]osmosis[/MENTION] , [MENTION=1546609]gianton[/MENTION] [MENTION=4517211]Xileforce[/MENTION]

XDA:DevDB Information

Lightning kernel, Kernel for the OnePlus One

Contributors

nikhil18

Source Code: https://github.com/nikhil18/lightning-kernel-bacon/commits/lightning_3.10_oxygen

Kernel Special Features:

Version Information

Status: Stable

Created 2016-05-24

Last Updated 2017-05-02
[ONE Original Android Development] nikhil18:
VERSION 1

intial release

no hotplug is chosen so please choose which ever you prefer but i prefer msm-hotplug so there might be lags but as you choose a hotplug they will vanish

and if you get a reboot just post the log from sys/fs/pstore/console-ramoops

enjoy

DOWNLOADS

MIRROR
[ONE Original Android Development] Jole7:
Awesome work thanks a lot my friend!
[ONE Original Android Development] Spider-Vice:
Thank you so much, can't wait for it to be up.
[ONE Original Android Development] Bongofriend:
Is this kernel compatible with AOSP/CAF based ROMs or only with OxygenOS?
[ONE Original Android Development] Spider-Vice:
You can boot it on AOSP/CAF probably, but won't have camera.
[ONE Original Android Development] nikhil18:
Only cm based ROMs for now and I can't release caf version till erorcun ports oxygen cam drivers
[ONE Original Android Development] dudas89:
Which kernel should Exodus users use? This or V22?
[ONE Original Android Development] klassical:
Exodus is based on AOSP+CAF, so use V22.
[ONE Original Android Development] Hingbong:
after flashed this kernel,I can't switch on unknow source to install apps.
[ONE Original Android Development] nikhil18:
You can use this kernel on ROMs that use cm Camera driver and if you get bootloop try flashing the kernel again and don't wipe cache
[ONE Original Android Development] ahgt4:
wow 3.10 stable, please continue this project !!!!

for me the only missing feature is vibration strength
[ONE Original Android Development] DerRomtester:
I would not call it stable yet. There are still bugs (maybe not visible for a normal user) that needs to be fixed.
[ONE Original Android Development] nikhil18:
Yup its not stable having reboots as the phone goes to sleep and there is nothing the logs
[ONE Original Android Development] Arju:
This is awesome! Thank you all who has worked on making 3.10 work on our devices!
[ONE Original Android Development] molonad:
What is difference between this kernel and v22 kernel? Both are for cm.
[ONE Original Android Development] moneyvirus:
Try to Read carefully the v22 is 3.4 and this is 3.10 kernel

Verstuurd vanaf mijn A0001 met Tapatalk
[ONE Original Android Development] molonad:
Yes i know there is difference in these numbers, but what does it mean?

---------- Post added at 01:51 PM ---------- Previous post was at 01:50 PM ----------

Yeah, i know there is difference in these numbers, but what does it mean? Thank you
[ONE Original Android Development] erorcun:
It seems you've broken something, keystore shouldn't crash.
[ONE Original Android Development] nikhil18:
ok guys version 1 reuploaded reboots fixed its stable for daily use and please report about the battery dont forget to enable a hotplug
[ONE Original Android Development] nthacks:
Where can I find the KA mod mentioned?
[ONE Original Android Development] Bobbi lim:
http://lmgtfy.com/?q=kernel+adiutor+mod
[ONE Original Android Development] nthacks:
I didn't forget to Google it first, I thought it was a mod specific to this kernel or something sorry ¯\_(?)_/¯
[ONE Original Android Development] DarKAngel1234:
I have quite a few revisions of this kernel, Deep Sleep seems to be do just fine, only thing that seems high is cell standby, but it doesn't effect the overall battery life of the phone, it must be misreposted.
[ONE Original Android Development] nthacks:
[MENTION=4633983]nikhil18[/MENTION] could you make a CAF version too? erorcun had posted a caf version of his kernel a few days back.
[ONE Original Android Development] nikhil18:
Let the cam focus be fixed then I will upload
[ONE Original Android Development] pa1281:
[MENTION=4633983]nikhil18[/MENTION] V4 causing random reboots. Is it a known issue?or any workarounds?
[ONE Original Android Development] plantator:
Post logs, do you undervolt? What's rom? For me only reboots when uv to much
[ONE Original Android Development] swapnil730:
Can I flash it on cyanogen os 13.1 ?
[ONE Original Android Development] plantator:
Hey [MENTION=4633983]nikhil18[/MENTION] what do you think about this ? http://xdaforums.com/showpost.php?p=67576155&postcount=561

:victory:
[ONE Original Android Development] DarKAngel1234:
Here are my recommendations for the new V5 kernel settings: https://drive.google.com/open?id=0B88GOmKRlxY2MlVYYjM2UUhTYmc
[ONE Original Android Development] nikhil18:
Synced with stock kernel

Added lot more governors elementalx,zzmove,despair,hellsactive,adaptive,intelliactive

Added more wakelock options

Now smartmax does not have boost so you need to a least keep 100 ms input boost to avoid lags

Now Any ROM can be used with f2fs partitions on data and cache only
[ONE Original Android Development] Sander9847:
How do you mean any rom can be used with f2fs? Isn't f2fs something that also needs to be supported from the rom side?

If it's possible I'd like to use f2fs partitions on resurrection remix.
[ONE Original Android Development] shantam3108:
Will it work with omni.. .? V4 broke wifi in omni
[ONE Original Android Development] nikhil18:
It should work because fstab is replaced with a new one which has f2fs support you try and report

On omni cam focus is still broken so you will have to wait for the omni version of the kernel
[ONE Original Android Development] shantam3108:
Thanx will wait :)
[ONE Original Android Development] Sander9847:
I've been searching and I find different answers could you help me? Which partitions should I convert to f2fs. One topic says data, system and cache can all be converted.

Also does converting /sdcard make any sense?
[ONE Original Android Development] nikhil18:
you can first try converting cache and if it works then covert data and other partitions are not supported
[ONE Original Android Development] Sander9847:
Aaaaaand I just accidently converted /data into f2fs thinking /sdcard was something different. Had backup of /data on internal storage.

Oh well lesson learned I guess. Have to start all over again though. :/
[ONE Original Android Development] androizers:
Hahah. I once had this misconception about the storage thing, and later found out the sdcard partition (media) is linked to data portion. So if u try to change the file system of data partition, it will format the whole partition regardless of how many sub partition it currently have.
[ONE Original Android Development] shantam3108:
Yes.. Your Internal gets wiped..
[ONE Original Android Development] archer797:
I tried to make settings similar to yours but dont see many of the options that is seen in your screen shot. I am your KA (Donate version). For example under Sound you have "SOC Driver Tunables" and I dont see that at all.

What am I missing here? Please help!!
[ONE Original Android Development] Starsream88:
Try this one http://xdaforums.com/showthread.php?t=3333549
[ONE Original Android Development] plantator:
[MENTION=4633983]nikhil18[/MENTION] [MENTION=4898631]erorcun[/MENTION]

last v5 build great so far, only one bug i found is that hardware buttons sometimes still keep lighting as it was on v4 and erorcuns builds
[ONE Original Android Development] nikhil18:
So turn off the lights from the ROM settings and restart the phone for time being
[ONE Original Android Development] kenboyles72:
[MENTION=4633983]nikhil18[/MENTION] the mirror link for download takes me to AFH login, just letting you know
[ONE Original Android Development] shantam3108:
Hi [MENTION=4633983]nikhil18[/MENTION]

I am facing kernel wakelocks

Left phone idle at night.

Saw now it was kept awake
[ONE Original Android Development] shantam3108:
This too

Should I clear dalvik and cache.?
[ONE Original Android Development] shantam3108:
These are all stats I could gather..
[ONE Original Android Development] nikhil18:
Can you try stock kernel and report if you are having the same kernel wakelocks
[ONE Original Android Development] shantam3108:
Sure will report you
[ONE Original Android Development] shantam3108:
Hi [MENTION=4633983]nikhil18[/MENTION]

Here tested with default no issues.

Yesterday also I charged my phone at 2 pm and the issue didn't start at the same time. The phone slept till I saw in the evening. The problem started somewhere in night. Btw was using smartmax governor at that time with input boost and 25mv undervolt. But now will test on interactive only

I feel some app misbehaved keeping device awake. :(

Thanks
[ONE Original Android Development] usvimal:
Hi nikhil, had a random reboot. Here are the logs: https://drive.google.com/file/d/0B9EWgNsxhRSLMDY4UHIySjJRZEk/view?usp=drivesdk
[ONE Original Android Development] CooperBrick:
Is there any way to run 3.10 kernel in darkobas?
[ONE Original Android Development] usvimal:
Wait for CAF version for Color Cam
[ONE Original Android Development] Pablo.x:
Usb OTG doesn't work for me after flashing this kernel.

There is any way to get it working without using another kernel?

Thanks everyone! :)

Enviado desde mi OnePlus One.
[ONE Original Android Development] Rex2688:
Can someone share kernel auditor profile here? The most popular stylo king profile lags also most options don't match in this new kernel.
[ONE Original Android Development] gabe13:
what I uploaded is for kernel V4

if you keep the wake locks like I did ,if you leave the phone ideling for a long time the screen will turn on in 5 seconds cuz it enters a very very low power state that saves a ton of battery

When I turn off the screen in battery stat shows a perfectly horizontal line

I use V4 cuz V5 does not have a hotplug ,it has just zen decision that just keeps all the cores on all the time and there is absolutely no need in using all cores when you don't play games or other really demanding tasks.

here is a profile for V5 posted by DarKAngel1234 https://drive.google.com/folderview?id=0B88GOmKRlxY2MlVYYjM2UUhTYmc&usp=drive_web
[ONE Original Android Development] Rex2688:
Can you please post screenshots or upload your KA profile

I'm using this stylo kings V3 with kernel V4 Now, i do feel zen decision not to my liking.

https://drive.google.com/folderview?id=0B6X-7y1ieW_QdzhaRW02b1dXZHM , thank you
[ONE Original Android Development] derekk75j:
It works on cyanogenOs official ZNH2kas254?
[ONE Original Android Development] gabe13:
I think it works on anything. I use it on an AOSP/CAF based rom and it's perfect despite the fact that in the title says CM13 so give it a try. Just do a nandroid backup just in case you need the stock kernel ????
[ONE Original Android Development] derekk75j:
what settings do you recommend to get a good combination battery life/performance?

EDIT:

It doesn' work! It boots but after 3-4 seconds it hangs and reboots!
[ONE Original Android Development] gabe13:
the settings i use are posted at the end of page 22 cuz i was asked the same question and there you will find a very complete answer :)

hmmm so COS is like an other base, weird.

well good thing you did a backup before flashing the kernel ;)
[ONE Original Android Development] derekk75j:
yes, i've got a backup :D

I think i will try caf lightning kernel v41.
[ONE Original Android Development] abhifusion:
Can anyone confirm if this kernel works with temaseks v10? Its on COS base afaik...

TIA
[ONE Original Android Development] erad1:
It boots up and works fine for me.
[ONE Original Android Development] gabe13:
[MENTION=4633983]nikhil18[/MENTION] this project is still in development? :confused:

I'm asking because this kernel is rock solid in terms of stability but it's soo bare bones in terms of features.

For me ,just adding mako hotplug from v4 and alucard hotplug with his governor will make it perfect. :fingers-crossed:
[ONE Original Android Development] nikhil18:
Waiting for [MENTION=4898631]erorcun[/MENTION](on vacation and computer in RMA) to update the stock kernel then only I can update
[ONE Original Android Development] gabe13:
Thanks for the quick answer :laugh:

I hope his PC will be ready soon cuz you are kind of the only one that does good kernels around here :cool:
[ONE Original Android Development] fmc000:
Hello,

any news on this? Still not working with omni and derivates?
[ONE Original Android Development] evronetwork:
Well the kernel from [MENTION=4898631]erorcun[/MENTION] doesn't boot(bootloop), this kernel actually works! (took it more than a while to boot compared to flashing new rom :p - I thought I stuck in COS boot logo but left it a few minutes anyway ..and it booted properly)

lets see how this goes for a few days!

EDIT:

I did wipe dalvik and cache, when I do this usually until the apps are initialized the phone becomes quite hot to the touch, currently 67/152 and the phone is just warm, that's a first :P

EDIT2: Still just a bit warm(nowhere near hot) and we're at 143/152 :)

EDIT3: Although not much of a bench guy, I get 49.402(Antutu) with this kernel while with previous(stock) I had 64.833 points - 15.431 difference, I'm eager to see the battery life

EDIT4: Battery life is just a bit worse(nothing serious) and one bug I've seen is that sometimes the screen flashes for a few nanoseconds(so you have 50% brighness it goes to 100% and back to 50% for less than half a second - it's rare once every many many minutes, not specified timing on this)
[ONE Original Android Development] :
Any news on 3.10 kernel development? Just curious
[ONE Original Android Development] fafa77140:
Depend if Erorcun continue or not the base of this kernel , if it's enought stable for daily use without random reboot it should continue but for the moment we haven't news
[ONE Original Android Development] evronetwork:
Dude change phone so no, you won't see any further development from him
[ONE Original Android Development] :
Wow. Kinda lame. I personally wouldn't just ditch a community like that after starting such a big project and not finishing it. Unless his opo broke or something... Just my two cents. I hope to lead by example when I learn enough about the Linux kernel to start compiling my own. Thanks for the info.
[ONE Original Android Development] DerRomtester:
It is not just about learning the linux kernel. You also need to learn the programming language c.
[ONE Original Android Development] :
I'll look in to that. I've got a long journey ahead of me :)
[ONE Original Android Development] LPW00:
Just fyi there's a update on erorcun's kernel for cm 14.1.
[ONE Original Android Development] evronetwork:
Well I talk with him and it's ok if he's a kid and doesn't have time

I mean the source code is available, too bad more devs don't try to perfect this kernel. It would extent our phone's life by quite some much

So futureproof, feature proof and better battery life if it's optimized as it's suppose to be
[ONE Original Android Development] fmc000:
Where? Not according to the github.
[ONE Original Android Development] LPW00:
Well... I thought [MENTION=4511190]idprophecy[/MENTION] is a official contributor
[ONE Original Android Development] fmc000:
OK, as he mentioned in the other thread he provides new builds when he updates his toolchain.
[ONE Original Android Development] idprophecy:
No no, I am just a poor man that compiles :D.
[ONE Original Android Development] rHn7113:
Which Kernel is best for CM 13 Snapshot?
[ONE Original Android Development] Claudiosvs:
Really? You gravedig a thread asking for the best kernel for annoutdated snapshot? If you're running Cm13, sultan's is probably still the best. Otherwise Lightning Kernel for Cm13/cm14.1 is good.
[ONE Original Android Development] rHn7113:
I am gonna back to Stock CM 13....I don't find stock ROM anywhere...Help Me
[ONE Original Android Development] LPW00:
So will this thread/kernel will resurrect too?
[ONE Original Android Development] nikhil18:
Ya working on it
[ONE Original Android Development] LPW00:
I'm glad to hear that! Finally all this great lk features on a 3.10 kernel
[ONE Original Android Development] Mr.Ak:
"WORKS ON BOTH AOSP AND CM BASED ROMS"

I think you should remove this line from main post.

copy and pasta error :P

---------- Post added at 04:16 PM ---------- Previous post was at 04:14 PM ----------

Cos 13.1.2?

If you are on cm13,you are good to flash this kernel.
[ONE Original Android Development] :
I'm looking forward to being able to encrypt the /data partition as f2fs :)

edit: [MENTION=4633983]nikhil18[/MENTION] do you plan on releasing a color os version of this kernel in the future? In theory I think it would work fine on cm13.
[ONE Original Android Development] nthacks:
Could you revive this kernel now that OTG is finally working?
[ONE Original Android Development] :
+1

Especially since you can encrypt /data partition with f2fs on 3.10. Totally worth it
[ONE Original Android Development] nikhil18:
update version 6

Changelog

synced with erorcuns kernel should be stable

multirom supported

can be built with any rom

all cores are online by default

governors are pretuned

conservative has its own touch boost so turn off the stock cpu input boost before switching

sultans version is for roms with sultans cam like cosmic,slim,candy etc

kernel does not work on nitrogen os for some unknown reason

thats it enjoy:)
[ONE Original Android Development] dudas89:
Very noob question: What the advantage of using this kernel, instead of V56, on Sultans ROM?
[ONE Original Android Development] :
To my knowledge, I was watching erorcun's kernel development thread and with the Linux 3.10 kernel (this kernel) we can finally encrypt the /data partition formatted as f2fs, which is a huge breakthrough for our device. I'm actually going to try this out asap now that there's a lightning kernel version of 3.10. Other advantages are better memory management, possibly better battery life, more device driver support (being able to connect different Wii motes to phone for games) and basically all the advantages you'd normally get from a Linux kernel update. Preferably we would want to be on the latest stable Linux kernel (4.9 I believe), but android is far behind because of the way google releases and develops android. That's why newer phones come with newer Linux kernels out of the box. Also official development has been abandoned for our snapdragon processor, which is why the last official kernel for our device is on Linux kernel 3.4. This 3.10 kernel was created entirely from scratch by erorcun and the community, and then tuned by nikhil18 to my knowledge.
[ONE Original Android Development] ilfrick:
Thanks!

Does this work with caf roms with oos blobs? In other words, I am looking for a kernel similar to your lighting caf v56 oos

:D
[ONE Original Android Development] SirSoviet:
Not yet, that's a job for erorcun. On GitHub I can see preparation commits for OOS3 camera driver, so stay tuned. It'll come soon.
[ONE Original Android Development] DerRomtester:
Dont forget to mention sultanxda who made the first big steps towards that project. Without him we would not be so far.
[ONE Original Android Development] Spider-Vice:
Anyone else having issues with Snapchat and this kernel on TugaPower? It just crashes at startup since I've flashed this kernel. I've tried deleting app data.
[ONE Original Android Development] :
[MENTION=4633983]nikhil18[/MENTION] is there any way you could upload a version of this kernel compatible with color os camera blobs? I still use jgcaap's cm13 purely for the camera and xposed support. To my understanding this is the only thing making the kernel incompatible with my ROM.
[ONE Original Android Development] nikhil18:
I am out of station I will make a new build mostly may end
[ONE Original Android Development] dudas89:
I had the same problem with Facebook Messenger app and others, but rebooting the phone solved all problems.

Another problem: I can't use Cellular Data. I turn it on, but I do not have internet access. Wi-Fi connection is not as good as V56 as well. If I am nearby two known networks, the phone keeps changing between them, even if both have good signal strength. Nothing this happens with V56. I am using latest Sultan's ROM.
[ONE Original Android Development] fundora2:
I could not use cellular data either with this kernel running Sultan's Rom. GPRS state "Connecting" but would never connect even though I was on t-mobile network and receiving text messages.
[ONE Original Android Development] Mecca EL:
[MENTION=4633983]nikhil18[/MENTION] erorcun pushed an update earlier, can you add your special sauce to his latest, when you get a chance? Thanks for all you've done so far.
[ONE Original Android Development] :
I'm just gonna go ahead and format to ext4, was hoping to be able to be able to encrypt f2fs with the new 3.10 kernel but my ROM has the color os camera hal and I use xposed for privacy features. Also tired of f2fs on kernel 3.4 corrupting itself over time and causing 5-minute long boot times and corrupted ROMs.
[ONE Original Android Development] :
[MENTION=4633983]nikhil18[/MENTION] is this project dead?
[ONE Original Android Development] nikhil18:
No big update from erorcun so don't feel like updating right now
[ONE Original Android Development] :
Are you still working on releasing a version of the current kernel that's compatible with the color os camera hal?