yashsingh1/xdaforums huggingface dataset:
[Nexus 5X Original Android Development] milouk:
Version 2.7

New Version is up!

-Merged June Security Patch (OPM6.171019.030.B1)

-Patched the following CVEs :

CVE-2018-10124

CVE-2018-10087

CVE-2018-10021

CVE-2018-6927

CVE-2017-18255

-Added WireGuard Support

-Added Gentle Fair Sleepers Control (Disabled = More Responsive UI)

-Added Lazyplug Hotplug (Disabled by default)

-Added Frandom Support

-Added CDG Congestion Control

-Enabled TCP Algorithms : bic, cdg (default), westwood, htcp, hstcp, hybla, vegas, scalable, lp, veno, yeah, illinois

-Drop Caches every time screen goes off

-Disabled by default UKSM

-Removed test-iosched from IO Schedulers

-Improved Fingerprint Boost Driver

-Improved UKSM

-Improved Power Efficient Workqueues

-Many other stuff. For details see here https://github.com/milouk/Sphinx-Kernel-Bullhead/commits/Sphinx-8.1-upstreamed.

Notes :

1) WireGuard is a modern, fast and secure VPN protocol for details see here - https://www.wireguard.com/ - (I have been using it for the past week and I TOTALLY recommend it)

2) For Details on How to Use WireGuard see here https://xdaforums.com/android/general/guide-how-to-wireguard-android-ubuntu-t3723544 - (Very Easy)

3) Fore more details About LazyPlug Hotplug see here https://github.com/milouk/Sphinx-Kernel-Bullhead/commit/6818552fd8a2dca9d40327a61130915745678ac5

4) Frandom is a Linux kernel random number generator, which is 10-50 times faster

5) June Security Patch see details here https://source.android.com/security/bulletin/2018-06-01

6) Regarding CVE Patches see here https://www.cvedetails.com

Enjoy :cyclops:
[Nexus 5X Original Android Development] Lughnasadh:
That was fast :) . Sweet :cool: ...and thank you :good:
[Nexus 5X Original Android Development] :
Stop man! That's too much good features in a single update, take a rest ???

Seriously huge thanks bro and goodddd work.
[Nexus 5X Original Android Development] milouk:
Guys thank you for your kind words. Last night i LITERALLY was spamming the Refresh button until tha June Security Patch Source code was released. Im very certain i did build the FIRST kernel in the WORLD with June Security Patch just for you hahahaha!

Morever i implemented Intelli Thermal solution but did not think it was that stable so i decided to remove it. :P I hope you are enjoying it. Personally i think its the smoothest version so far.

PS. Do use WireGuard. Im not the Developer of WG and this post is not sponsored either but it is totally a must if you care about privacy or do shady things (jk) :D
[Nexus 5X Original Android Development] jugoslavpetrovic:
Thanks a lot for the update and also for cdg, I remeber it was default in the flash kernel which was my favorite.

I just flashed this new build and so far for minutes of using it is fluid af even with ukms on with quite gov and fair sleepers as well on. Will see when this bullhead goes to deep sleep how it will wake up:)

Also, I just enabled lazyplug for test.

Note: I still don't get apply after boot for custom suze if zram via EXKM. I don't know if that's on kernel or manager side issue.

Later I will try to set wireguard.
[Nexus 5X Original Android Development] milouk:
Fair sleepers should be disabled. Zram is not a kernel Issue. I think it either EXKM or the fact that bullhead comes with already 508 MB of zram an thus this gets applied on boot instead of your choice. LazyPlug is very aggressive regarding battery life. So when your phone is in Deep sleep notifications might not arrive on time and moreover your fingerprint might lag a bit before unlocking. If you want to fix this you should download another Kernel Manager such as Kernel Audiutor which provides the possibility to change Lazyplug profiles..i personally am still experimenting with Lazyplug to find the golden configuration . Finally Regarding UKMS i would suggest to everyone to set the Max Cpu Usage to 10%. I have been using it with 10% since version 2.6 and i think its the golden spot.
[Nexus 5X Original Android Development] Lughnasadh:
I do believe you were the 1st, at least for Bullhead :) . Running great so far with no profiles, little core at 1536, UKSM disabled (I like as much power as I can get :o) dynamic fsync enabled, gentle fair sleepers disabled and using deadline i/o scheduler at 128. . Idle drain is also at .46/hr. Nice job :good:

I don't use WireGuard (yet) b/c I have another VPN I'm using when I need it and am not sure how well it works with CloudFlareDNS (others can enlighten me if you have the experience of using both together). But I may give it a spin one of these days. Thanks for adding support for it.

Now that you've made us all very happy, go study for your exams young man :p
[Nexus 5X Original Android Development] milouk:
Hahaha you are right man! Though i still have one exam left on the 13th which is Android Programming so im not sure how i can miss that :D hahah
[Nexus 5X Original Android Development] milouk:
Ok guys for you that want a different Zram Size rather the default 508 MB. Your only option here is to use Kernel Adiutor instead of EXKM. Tested and working. To check your available zram size you can type "cat /proc/meminfo" in terminal and divide the "SwapTotal" by 1024.

Cheers
[Nexus 5X Original Android Development] jugoslavpetrovic:
You got this.
[Nexus 5X Original Android Development] :
Lol I think you are ready so.

Good luck anyway ?
[Nexus 5X Original Android Development] milouk:
Thanks Guys! When im done 2.8 is on its way ;)
[Nexus 5X Original Android Development] Doomkopf:
Looove this kernel, thank you! You are such a perfectionist, I really like that :D
[Nexus 5X Original Android Development] milouk:
Man thanks a lot! Im really glad you enjoy Sphinx Kernel. Im 21 years old student and your words encourage me to keep learning and improving!! ?
[Nexus 5X Original Android Development] ema97:
Does the version 2.7 work with the last lineage OS ROM for nexus 5x or I have to wait the implementation of the June security patches?
[Nexus 5X Original Android Development] fleischbanane:
Works without any problem.
[Nexus 5X Original Android Development] milouk:
It works perfectly but in Settings under Security Patch you will see May instead of June (Though you will have the June patches) until the LOS build with the June Security Patch gets released.
[Nexus 5X Original Android Development] Lughnasadh:
[MENTION=5533673]milouk[/MENTION] Would you consider adding these commits to your kernel after your exam? Would really help those of us using audio mods, particularly IceSound. Thanks for the consideration and good luck on your final exam :)

https://xdaforums.com/android/development/guide-how-to-port-dts-eagle-to-t3802259
[Nexus 5X Original Android Development] milouk:
Sure i can! Have you tested them though? Do they REALLY work? Is there a way i can test it before pushing a release?
[Nexus 5X Original Android Development] :
Don't like these audio mode so please just make them available and nothing more.

Good luck for your exams ?
[Nexus 5X Original Android Development] milouk:
Im highly hesitant about this sound mod too. I will be thouroughly testing it to see whether it does improve anything or not and i might provide different versions in the future if i implement it finally with and without it. So far i have made a test version which to my ear does not make any difference but [MENTION=6530865]Lughnasadh[/MENTION] is going to test it more thouroughly. So you do not have to worry. Im not a big fan of this mod either unless it is proven to improve something.
[Nexus 5X Original Android Development] Lughnasadh:
Just to be clear. This isn't an actual audio mod, per se. These commits allow the use of DTS audio effects when other audio mods are using them, or if it is native to your device, or, as will be the case in the near future, when there is a DTS mod. You won't hear any difference right now unless you have the proper libs and system files, etc. in your rom.

So basically, it just allows support for DTS audio effects. Kind of like Wireguard in a way. Commits were added to this kernel to give support for Wireguard, but it won't work without the actual Wireguard App and config files, if that makes sense. Same with DTS. You need more than just the commits alone, but without the commits it won't fully work.
[Nexus 5X Original Android Development] milouk:
Makes sense! Thank you for clarifying this for us!
[Nexus 5X Original Android Development] :
I already had understood that's why I said "make them only available but don't activate them" , I can totally undetstand your feature request but as I'm not an audiophil I just want that unchanged.
[Nexus 5X Original Android Development] Lughnasadh:
Yeah, there's really no "activating" or "deactivating" with this. Just adding kernel support for DTS.
[Nexus 5X Original Android Development] :
Don't know if anyone tested intelliactive but personnally, it performs not well on my device in opposition to blu_active and they have pretty the same battery consumption.

So maybe this gov can be removed.
[Nexus 5X Original Android Development] jugoslavpetrovic:
Intelliactive works fine on my side with RedHawk gov profile. Try it.
[Nexus 5X Original Android Development] ema97:
Is it possible to revert back to the stock lineage OS kernel without losing data?
[Nexus 5X Original Android Development] milouk:
Yes. Flash LOS rom and it will overwrite the boot image. Or extract the boot image and flash it
[Nexus 5X Original Android Development] ema97:
Thanks.

Another question: what's the difference between the OC and the non OC version? Only the possibility to overclock CPU or something else?
[Nexus 5X Original Android Development] milouk:
Only Overclock the rest is EXACTLY the same :D
[Nexus 5X Original Android Development] Defiant81:
How do you double tap to wake?
[Nexus 5X Original Android Development] kaso911:
In Kernel app
[Nexus 5X Original Android Development] milouk:
You can enable it through a kernel tuning app such as Kernel Adiutor or Ex Kernel Manager
[Nexus 5X Original Android Development] JJ111:
Hello Milouk,

1) I just found your kernel, looks great, especially the exFAT support. I want my USB Sticks to work on as many devices as possible, that's why I don't use NTFS (more devices I use can support exFAT but not NTFS), and also be able to have files larger 4GB (that's why I don't use FAT32).

I installed your kernel, FAT32 and NTFS Sticks work perfectly, but not the exFAT formatted USB Sticks. It shows that the Stick is corrupted and offers me to format it (see attachments).

Do I have to turn the exFAT support on somewhere? Didn't find it in EX Kernel Manager App. Or what else can I do?

2) You offer overclocking OC and non-OC Versions. What are the advantages each / whats the disadvantage of the OC Version?!

All the best and thanks for your work,

J.J.
[Nexus 5X Original Android Development] milouk:
Hello!

1) It should work as it is! When i added exFAT support a couple weeks back i uploaded some exFAT test versions and users reported that they did work with exFAT formatted usb sticks (check page 5 of this thread) . Have you tried another usb stick ExFAT formatted? It should work. Please fresh format a usb stick as exFAT and try to mount it. If it doesnt work send me a PM so we can figure this out.

2) With the OC versions you are able to use frequencies 1536 Mhz and 1632 MHz on the Little cores. And Up to 2016 Mhz on the big cores which means faster response to everything but larger battery consumption.Everything else is exactly the same. The only thing with the OC versions is that frequencies sometimes do not persist after a reboot and you have to reapply them.

The differ by 1 commit (the OC one)
[Nexus 5X Original Android Development] JJ111:
1) Yes I tried different USB sticks, also freshly formatted. I also tried your 2 test versions, always the same: not working as written before. I sent you a PM, hope we can solve it. Am I the only one with exFAT not working?

2) Thanks for the explanation. Which one comes closer to the standard LineageOS Kernel in Performance and Battery life / how do they differ (if no extra changes are made)?
[Nexus 5X Original Android Development] Defiant81:
Did that,,not working
[Nexus 5X Original Android Development] milouk:
1) i just replied to your PM thanks for your help.

2) Sphinx Kernel is far Superior than stock LOS kernel in terms of permformance / battery. Personally im using the OC version with just the Little cores overclocked [MENTION=7888081]163[/MENTION]2 MHz and Big Cores [MENTION=6350937]182[/MENTION]4 Mhz. LOS stock kernel is by default NOT OC. So if you want stock then the no OC version is for you. Regarding battery life they do not differ much as long as you make wise use of the overclocked frequencies by using a battery friendly profile like KestrelOC or the modified Ghostpepper profile [MENTION=6530865]Lughnasadh[/MENTION] mentioned some pages earlier.
[Nexus 5X Original Android Development] milouk:
That is impossible. I just did it and it works. You have to enable DoubleTap2Wake (see screenshot)
[Nexus 5X Original Android Development] jugoslavpetrovic:
Use this app. I am using it along X-plore file manager. Works for me.
[Nexus 5X Original Android Development] milouk:
[MENTION=7326491]JJ111[/MENTION] this is a great idea! Why don't you try mounting your usb with Sphinx Kernel along with this app. Maybe the reason you could not mount your usbs was the app you are using!
[Nexus 5X Original Android Development] JJ111:
I installed the App and when I opened the exFAT USB stick, at first it showed me the general warning as always, but when I than open the app, the message disappears and the app shows me my Stick with the correct name and file size.

But when I than click mount, it tells me to share the app via Facebook or Google to get 2 free days.

When I click the buy button it shows me "Google Play services unavailable. Failed to continue"

That is true, since I use LineageOS without GApps and will not install that.

So is there an other (free) way for me to use my exfat stick? For browsing I use the "Total Commander", but it can only show/mount, what the system itself has detected, but since LineageOS refuses to open it, I can't do anything...

All the best.
[Nexus 5X Original Android Development] milouk:
Can you try Amaze File Manager which is Open Source?
[Nexus 5X Original Android Development] JJ111:
Damy, you are fast. I hardly submitted my comment and you already answered me, amazing ;)

Yes, I downloaded Amaze, but similar: it shows me OTG (see first Screenshot), but when I click on it, it opens the internal file browser and askes me to select, but there the exFAT stick is not shown (since LineageOS consciously doesn't want to support exfat because of license issues), as can be seen in the second Screenshot.
[Nexus 5X Original Android Development] JJ111:
(double post)
[Nexus 5X Original Android Development] milouk:
Hahaha i always try to reply fast ;).

I still havent figured out whether its a Kernel Issue or an App issue. :/
[Nexus 5X Original Android Development] Lughnasadh:
Just throwing this out here. MiXplorer has read/write exFAT support. Maybe try that?
[Nexus 5X Original Android Development] JJ111:
Thanks for the recommendation. I downloaded and installed the app, when I enter the USB stick it shows me the warning (stick has to be formatted) and in the app it shows me a new button "USB".

When I press on USB the warning in Lineage disappears but than nothing happens in the app, it just says "please wait" (see Screenshot)

I am really sorry folks, that it is not working, I don't want to annoy you.

So please no more new program recommendations, since this seems not to be the reason for not working.
[Nexus 5X Original Android Development] milouk:
Dont apologize :P you are trying your best. I will send you some test versions in the next days with exFAT implementations from other kernel.
[Nexus 5X Original Android Development] nirogu325:
Hi there, is there a way I can choose or toggle the stock LED animation for charging/notifications? I don't like the breathing like animations. ShadowKernel also uses these and it put me off, with all due respect.
[Nexus 5X Original Android Development] milouk:
I really don't think this is annoying honestly...if more people dont like it i might change it but for now i think it is not an issue..morever it is not something you can toggle on or off
[Nexus 5X Original Android Development] nirogu325:
I thought the possibility of an Aroma option that lets you choose which animation you want, similar to what ElementalX has. Oh well, guess I'll stay stock. I just wanted to try this one because of the toolchain. The last kernel to use it was Phasma for Nougat and it was great.
[Nexus 5X Original Android Development] milouk:
I really do not think it that of a deal breaker. You can try it -im not sure its the same as shadow kernel- also you can always turn off notifications led. Finally if more people complain about it i will definetly change it.
[Nexus 5X Original Android Development] nirogu325:
Uh, no, sorry, I use it extensively. No worries. I just asked and were answered.
[Nexus 5X Original Android Development] :
Hope your today exam's was fine and if you don't already did it so good luck ?
[Nexus 5X Original Android Development] milouk:
Thanks man! Just finished got an A :cool:. As of right now no more exams left.

So as i have promised you version 2.8 is on its way and i have some features you are REALLY going to love.

A Sphinx riddle for the impatient ones : 01010110 01101111 01101100 01110100 01100001 01100111 01100101 00100000 01000011 01101111 01101110 01110100 01110010 01101111 01101100

;)
[Nexus 5X Original Android Development] Lughnasadh:
Ah, I don't mess around with that, but nice :cool:
[Nexus 5X Original Android Development] jugoslavpetrovic:
I don't think it's a good idea for this device;)
[Nexus 5X Original Android Development] milouk:
Actually this is exactly what this device needs. If used properly it results in a much cooler device and some extra battery. As always before i push a release im always testing througly features and ensure they work as expected.
[Nexus 5X Original Android Development] jugoslavpetrovic:
Oh, dude! You seems to be the first that puts it in kernel for Nexus 5X. Great if it works stable.
[Nexus 5X Original Android Development] milouk:
I dont think others didnt implement it because it was unstable. I think no one has implemented it yet because there was not a proper commit. Morever be sure that i only allow features that are tested and stable. Features that do not live up to my standards (e.x lazyplug) will get removed. So far i have set a global offset of -10 mV and everything is smooth and cool. If you feel that it is too extreme for you , you can always ignore this feature. But personally i think it is exaxtly what we need. It will cool our phones without sacrificing performance and we will get more battery life.
[Nexus 5X Original Android Development] jugoslavpetrovic:
That is just awesome then.
[Nexus 5X Original Android Development] milouk:
By the way if anyone wants a preview of 2.8 so he can test offsets etc. Feel free to PM me.
[Nexus 5X Original Android Development] nirogu325:
Undervolting...wow, last time I played around with frequency voltages was with the Galaxy S1 with good results. Your post brought back lots of memories.
[Nexus 5X Original Android Development] :
Version 2.8 works on my device.

I'm on lineage os.

Yeah my device need to boot a second time but it boot.

Undervolting is awesome regarding the battery.
[Nexus 5X Original Android Development] milouk:
That is great. Also i should mention tha msm8992 uses dynamic Cpu voltage which means you can specify floor and ceiling values. Thats what "upper" and "lower" means. In other words for a specific frequency you can specify the voltage span of each freq.
[Nexus 5X Original Android Development] :
I undervolted all freqiencies to 640 and it worked perfectly but is it normal to have the frequency 1747Mhz available on the little core?! Did you overclocked it again?
[Nexus 5X Original Android Development] milouk:
That is another feature i wanted to keep as a surprise haha. I have further OCed both cores. Dont worry...it is safe. I would not recommend to OC big cores because of the bootloop thing. But the little cores at 1747 are perfectly smooth. They almost perform like the big ones.
[Nexus 5X Original Android Development] :
Ohhhhh sorry to unveiled the surprise ?

Will send you PM messages now haha.

I always disabled big cores because of the bootloop but overclocking little cores make the device so smooth.

Thanks a lot!!!!!!!
[Nexus 5X Original Android Development] milouk:
Hahah no worries. I got more aces up my sleeve reagarding 2.8 ;) . Glad you are enjoying it. Feel free to pm me whenever you like :D
[Nexus 5X Original Android Development] jugoslavpetrovic:
Mine 2.8 test boots fine everytime.

Overcoocked Bigs but it keeps low profile. For big I got up to 2150 possible value.
[Nexus 5X Original Android Development] milouk:
None of the available interactive profiles has accounted for the OCed values. So you need a custom one tto take full advantage of the new frequencies while using interactive Governor. Like the modified Ghostpepper posted some pages before.
[Nexus 5X Original Android Development] jugoslavpetrovic:
I used Butterfly, and for big it stands as set 2150 but it doesn't goes so far. Smalls shows ase set 1440 and it doesn't goes over. This seems like some kind of compromise between oc and non-oc with only ability to reach oc with specific profile.
[Nexus 5X Original Android Development] milouk:
Every profile has taken into account some SPECIFIC frequencies. Most of them are for stock frequencies. Some of them like KestrelOC are for OCed frequnecies but only up to 1632 and 2016 . Not even one profile is suitable for OCed up to 1747 and 2154 . so you either have to modify one of the ones that already exist to include the new freqs or you wont take advantage of the new frequnecies. For example Butterfly is for STOCK frequencies that is why when you choose it you Little cores are set to 1440.

Morever something else that i want to say is that me myself have been using the 2.8 version for a couple of days so im not aware of any issues yet.. It is NOT a release. It is not even a beta . What you are running is an ALPHA version. It has very delicate features in it which are implemented for the first time for Nexus 5X. It will take a long time for me and you to test it before it becomes a release. So be CAUTIOUS. (And enjoy ;) )
[Nexus 5X Original Android Development] milouk:
Regarding the above. You can set Little at 1747 and big at 2150 at the same time.
[Nexus 5X Original Android Development] milouk:
Ok Guys. I need to clarify something. I have heard both postiive and negative feedback regarding 2.8 . mostly positive though .

OC and UV are features that can vary from chip to chip. What i mean is that my chip might be able to OC up to 1747 while yours cannot and vice versa.

It does not matter if we all have SD 808. What this means is that there is no standard recipe for example -10 mV is Safe. Because it might be safe for me but not safe for you and again vice versa. You need yourself to find what your phone is capable of supporting that is why you hear me all the time saying to you BE CAUTIOUS. Also in 2.8 the issue with the big core not sticking to the prefered Frequency is FIXED. Thus you can choose up to which freq you want your phone to run at. If you experience reboots then lower the frequency and increase the volts - if you have been experimenting with them-

If you feel unsure or uncomfortable with all the above. Please please do not play with OC and UV. Sphinx kernel will always ship with Stock Clocks as Default so no one has to worry.

Cheers.
[Nexus 5X Original Android Development] zurik:
The undervolting it'll be available on non OCed version?
[Nexus 5X Original Android Development] milouk:
Im thinking of stoping the non Oced version from 2.8 and on because the frequency issue is fixed. If i continue building non OC versions then Undervolting Will be included in BOTH.
[Nexus 5X Original Android Development] ema97:
Which is the best CPU governor for battery life?

I tried Power save for the big core but for the little I have lot of lags whit this profile.