yashsingh1/xdaforums huggingface dataset:
[Nexus 5X Original Android Development] jugoslavpetrovic:
I just got look around the kernel, as for more features it could be more IO schedulers like maple, zen, sio, sioplus... to choose from, also TCP, and maybe some cpu govs like chill, relaxed, elementalX, impulse...

I dont know.
[Nexus 5X Original Android Development] milouk:
I have not chose to include that many governors or schedulers on purpose. I want to keep it simple for the average user. Moreover i think that with so many profiles EXKernel Manager has like GhostPepper or GlashFish1.2 there is not much need for other governors. Though if there is a specific feature you feel like you NEED and will use i can add it.
[Nexus 5X Original Android Development] jugoslavpetrovic:
Maybe adding just few like westwood tcp, zen and/or maple IO? No must...

Oh, and not overclocked cpu as default would be nice.
[Nexus 5X Original Android Development] milouk:
Version 2.3

- Software CRC Toggle - 30% Boost (Disabled by Default)

- Maple IO Scheduler by [MENTION=5051294]frap129[/MENTION]

- Chill Governor by [MENTION=5051294]frap129[/MENTION]

- Intelliactive Governor

- Power Efficient Workqeues

- Quick Wakeup

- Cleaned AnyKernel script

- SafetyNet Pass

- Patch CVE-2018-7480

- Patch CVE-2017-18193

- Patch CVE-2017-18174

- Improved msm_thermal

- Improved adreno_idler
[Nexus 5X Original Android Development] jugoslavpetrovic:
Features looks great, thanks.
[Nexus 5X Original Android Development] jugoslavpetrovic:
I guess this could drain battery more?

So far, all seems great. My first impression is fluid. Love it. Thanks a lot.

I lower cpu clocks at little 1.2 and big at 1.4, with silverfish profile and thermal threshold at 42. All good.
[Nexus 5X Original Android Development] milouk:
CRC is a piece of software that checks for errors in data blocks so having it disabled doesn't have any battery drainage at all it might even improve battery life since it skips some power consuming checks. Thank you a lot for your kind words and your feedback. If there is anything else you feel like you need you can tell me :D
[Nexus 5X Original Android Development] tuningsea:
thx m8. nice kernel on daily
[Nexus 5X Original Android Development] milouk:
Thank you man! Im glad you are enjoying it. If you have any features you would like you can tell me
[Nexus 5X Original Android Development] milouk:
Test exFAT Support

As you may already know LineageOS has removed exFAT support since 15.1. Therefore i thought it would be a nice idea to bring it back.

I made a test version but since i don't own a USB C to USB A OTG Adapter is anyone willing to test this version and report to me whether it works or not?

Thanks in advance :

exFAT test1 download : https://www.androidfilehost.com/?fid=746163614322264951

if test1 does not work please try test2

exFAT test2 download : https://www.androidfilehost.com/?fid=890278863836285891
[Nexus 5X Original Android Development] dogedoge:
I have been using your kernel for a couple of days, and i am very satisfied. It has all important features, yet its simple. I used to have some idle drain problems marked as " cell standby " which sometimes disappeared and i could not get a hold of what was causing it, and with your kernel somehow it has disappeared. I get 4 hours of SOT regularly, which is great for a 2 years old phone. Thank you and keep up the good work!
[Nexus 5X Original Android Development] jugoslavpetrovic:
Hm, yes. Seems for the 1824 it can't be changed. Mine upper is 1090mV.
[Nexus 5X Original Android Development] milouk:
Even if it is for [MENTION=6657029]francos21[/MENTION] it might not be with you (chips vary from device to device) i would suggest doing a -5 mV decrease every 24 hours.

As an extra tip i would suggest leaving the lower values as they are and start decreasing the upper ones. Once upper = lower start decreasing the lower ones.
[Nexus 5X Original Android Development] :
Personnaly I decrease the voltage then take a picture with arnova camera and if it works it will alaways work as this camera is a performances eater.
[Nexus 5X Original Android Development] milouk:
Yes you are right here. There is an issue with the highest frequency of A57. In my case is 2150 and hence i CAN change 1824 but i cant change 2150. In Your case (non OCed version ) you cant change 1824. Its not a software issue. Its a bug in the voltage mux.
[Nexus 5X Original Android Development] milouk:
That can be misleading if you decrease voltages globally. That is because the camera app you are using might only use some frequencies to take the picture (usually the higher ones available). So basically if after a shot everything is ok you can only be sure about the voltages of the used frequencies. There might be other frequencies which are not stable with the new voltages that havent been used and when they ll be used youll get a crash.

In my opinion the best way to be sure that everything is stable is to either use a benchmarking app if you are in a hurry or even better wait a full day so that every frequency is used.
[Nexus 5X Original Android Development] jugoslavpetrovic:
That is a nice tip. Where we can find that camera?

And...why do you use it anyway, what is it good for?
[Nexus 5X Original Android Development] :
It's the best camera since camera NX stopped because it has everything same like camera NX and other very nice stuff.

Link : https://www.celsoazevedo.com/files/android/google-camera/

---------- Post added at 05:50 PM ---------- Previous post was at 05:46 PM ----------

Maybe but when it crash it's often due to the higher frequencies that support less the voltage downgrade.

My conclusion is that without overclocking I can lower voltage to the min for all frequencies but when it comes to overlocking it's hard to find the good voltages.
[Nexus 5X Original Android Development] :
Do someone know how to reduce idle drain because I'm having 2,4%/h ?
[Nexus 5X Original Android Development] Lughnasadh:
There are a ton of variables that go into idle drain. The best way to see what's going on with your phone is to head over to the Better Battery Stats thread, take a dump as outlined in the OP and have one of the people over there look at it.

https://xdaforums.com/showthread.php?t=1179809
[Nexus 5X Original Android Development] milouk:
I want to correct myself and also share some good news.

There is indeed a bug in the voltage mux which in simple words means that you cannot set the voltage of the first 3 frequencies of the A57 (302, 384, 480).

Due to this bug the author of the initial commit made a mistake in the loop that writes the voltages which resulted in the highest frequency not been taken into account. I have managed to find the problem and fix it see here https://github.com/milouk/Sphinx-Kernel-Bullhead/commit/6996cae0c743d98d3ab00d3ce4e43b5105542b52. From Version 2.9 you WILL be able to set the voltage for 1824 Mhz and 2150 Mhz frequencies depending on your version (non-OCed or OCed).
[Nexus 5X Original Android Development] jugoslavpetrovic:
You are fast.
[Nexus 5X Original Android Development] jugoslavpetrovic:
I get around that as well.
[Nexus 5X Original Android Development] Lughnasadh:
Yeah, that's pretty high. With anything over 1.5%, something is going on. Anything below 1% is good (measured by charging up to 95% and then turning your screen off for at least 6 hours without using it).

I average between .5-.7% idle drain. Last night I did a BBS dump without undervolting or using hima and with the little core it resulted in exactly .7% idles drain. Those guys over at BBS can be really helpful diagnosing people's drain.

EDIT: Last night's dump was also used with little core overclocked 1 step and using Butterfly profile.
[Nexus 5X Original Android Development] :
So milouk any advice to reduce it because it's very anoying for me these days as I'm stuying for my last exam I'm not using my device but it's losing battery anyway...

PS: I need my notifications so things like forcing doze or blocking wakelocks can't help.
[Nexus 5X Original Android Development] milouk:
Im not sure i can help you because i dont experience this kind of drain. I get about 0.6-0.8 . I guess some of your apps is doing background stuff.. What would help is to measure your idle drain while in safe mode. I dont think its necessarily kernel related. Your best bet would be to do what [MENTION=6530865]Lughnasadh[/MENTION] said. Show your stats to someone that can really explain e.x at the BBS thread.

Edit: I have noticed that EXKM counts Whatsapp calls as idle drain. I was talking to the phone (whatsapp call) from 100% to 96% and EXKM counted 4% as idle drain. So i would advise you to measure idle drain with BBS.

Ps1: There is already a wakelock blocker implemented. What i have done is : see which wakelocks are mostly active and try to disabling them one at a time to see whether they are important or just battery eaters. Also you can search online for wakelocks that are safe to block. ( i have already blocked most of them)

Ps2: a very effective way to measure idle drain is to charge your phone to 100% and leave it still all night. In the morning you can count how much battery was drained in X hours you slept.
[Nexus 5X Original Android Development] nirogu325:
BBS says I'm having 0.6% drained per hour (idle). I've seen better in the past but that's fine. I'm now using Intelliactive with FIOPS. Stopped using the Hima hotplug due to lags happening while the cores start waking up. For reference, yesterday I listened to Spotify for almost 3 hours and 25 minutes, did browsing as well and by the time I reached 25% battery, I had 4 hours with 3 minutes screen on time. YMMV of course.
[Nexus 5X Original Android Development] milouk:
Guys lets not get into that loop because honestly i can think of a million things that can vary from user to user and can drain battery. (Worn out battery, battery eating apps, OC, governors, bad mobile signal, screen brightness, bluetooth, wifi etc).

As far as Kernel concerned i have done everything in my knowledge to restrict battery drain. If you still have drain that cannot be explained i would suggest talking to someone at BBS. These guys are really helpful and they know a LOT regarding battery drainage. Honestly that is your better chance to solve your battery issues.
[Nexus 5X Original Android Development] Lughnasadh:
Good info. And just to expand on that....(yeah, I know, I say that a lot :eek:)

Even when EXKM shows a wakelock that is very active it doesn't mean its draining battery. A lot of people associate wakelocks with battery drain. But that's not necessarily true. Many, if not most, wakelocks, can have a benign effect on battery. Plus, blocking wakelocks and many instances just delays the inevitable, because once you turn your screen on all those things work to catch up on the jobs they have been blocked to do while the screen is off or in doze. That's why you'll see a quick drop of 2-4% in battery in just a few minutes after turning the screen on.

EDIT: I have seen no excessive battery drain using this kernel compared to any other kernel. In actuality, kernels, for the most part, do not have as much of a drastic affect on battery life as some would think.

https://elementalx.org/the-truth-about-kernels-and-battery-life/
[Nexus 5X Original Android Development] nirogu325:
It's the #1 reason I said...your mileage may vary (YMMV).
[Nexus 5X Original Android Development] milouk:
Very Nice!
[Nexus 5X Original Android Development] :
I think that my huge idle drain is caused by mobile networked, thing that is strange given the fact that I'm studying in a quite big city with a good coverage and I'm living in Belgium with the best mobile operator of the country.
[Nexus 5X Original Android Development] jugoslavpetrovic:
You never know, maybe somebody is switching kernels. It doesn't matter really, it is not about choosing sides. It would be like I would now ask you what you were doing in franco thread if you are not using that kernel. I visit different threads for all kind of my interests, and occasionally I leave a comment or answere or just read, either I am actually using that or not. All constructive comments actually help building a better open source cuz developers are also visiting different threads and learn and pick up from those.

So, if he asked for something anywhere it could be that also he might want to switch to franco if that particular feature comes in, and just a suggestion there could lead others to implement it in their work as well.
[Nexus 5X Original Android Development] milouk:
Here i would like to say that no one is forced to use Sphinx. I do this as a Hobby and it fullfils me. [MENTION=3059141]nirogu325[/MENTION] did indeed used the kernel and also gave feedback privately about stuff so it would be unfair to blame him about anything. I totally agree with [MENTION=6478047]jugoslavpetrovic[/MENTION] that contributing is a big part of the open source community (i do the same ..you can see me giving input on the elementalX thread). It is a privillege ti have so many kernels for the bullhead. You dont have to be using the kernel to contribute in its thread as long as ylu have tested it at least once. Finally if somene does not use Sphinx anymore i wont get offended because even though not a lot users use it compared to francokenrel or elementalx i have completed my goal which was to learn something and produce something usefull , usable and acceptable.

Peace out guys no need to bring out knives ??
[Nexus 5X Original Android Development] milouk:
Yes indeed this seems to be the culprit. I would suggest turning on airplane mode whenever not needing signal (when you study, when you sleep etc) that would save you a lot of battery
[Nexus 5X Original Android Development] :
You guys don't understand what I said.

What I mean is that he is given stats about sth he's no more using so it's not helpful in this case.

I'm personnaly watching all threads too to help or to learn but by respect I don't speak about sth I'm not using daily , I'm helping when I can.

Finally of course there's no competition ? , milouk is not earning any money but as he said he is earning sth more precious that is EXPERIENCE. By the way when I told milouk there was a good feature in shadow kernel to save power , the dev of shadow kernel directly gave him the commits with pleasure, that is called OPEN SOURCE and you can look at the sphinx kernel commits, some comes from other devs.

Please stop this conversation here and stop speaking about respect if you don't read correctly; this thread is very productive and the dev is always happy to help so don't break this PLEASE.

Have a nice day.
[Nexus 5X Original Android Development] nirogu325:
I am glad common sense prevailed. Huge thumbs up.

Totally agree. I'm sort of a flashaholic. Can't be that frequently cuz I fear my unit will overheat/BLOD anytime. This forum is not about loyalty, it's about contribution. Right now I'm still using your kernel, cuz I went back to my previous N configuration and had worse battery drainage per hour (2.8% versus 0.6% using Oreo w/Sphinx).

About me asking for LiveDisplay on the other thread FIVE DAYS ago (omg the tragedy...), it's quite simple: that developer had said he'd fix those issues but life happens, months passed, yada yada. Nothing wrong with testing several configurations and respectfully wanting things better.

---------- Post added at 07:55 AM ---------- Previous post was at 07:53 AM ----------

Do you know what people say about assuming? Go look it up. Have a nice day.
[Nexus 5X Original Android Development] woodman:
Thread cleaned a bit.

Guys, please calm down and respect other members and developer's work.

I will monitor the thread from now on.

Thanks

Wood Man

Senior Moderator
[Nexus 5X Original Android Development] dodjob:
Hey there,

What kernel tuner should I use if I want to tweak my settings a bit? I have installed kernel aduitor but it doesn't seems to work correctly (the big cores are offline and have a refresh arrow ?)

Ps: this kernel makes wonders on my n5x ? thanks for this ???
[Nexus 5X Original Android Development] :
Thanks ?
[Nexus 5X Original Android Development] nirogu325:
EX Kernel Manager works pretty good.
[Nexus 5X Original Android Development] :
I suggest you to use ex kernel manager available on the play store ?
[Nexus 5X Original Android Development] dodjob:
Hey thanks!

Well it seems that I can't change the max frequency of the big core. It seems to stick at 1344. Is it normal?

Thanks for the help ?✌️

**Don't need to mention it, but it's the OC version 2.8**
[Nexus 5X Original Android Development] milouk:
Fear not my friend!!! :D Its thernal throttling. Let your 5X cool down a bit and the frequency should be restored to whatever has been set by you ;)

Edit: Personally i use EXKM , it is definetly not perfect but it simple and straighforward.
[Nexus 5X Original Android Development] dodjob:
Thanks a lot mate ?✌️✌️ I will wait a bit. Again, very nice improvement in terms of performances ???

Have a nice day!

Grüßt,

H.
[Nexus 5X Original Android Development] dodjob:
*shame on me to be too impatient* ;) all works ??
[Nexus 5X Original Android Development] :
Post removed.

PMs are meant to be private, not posted in public forum.

Back on topic now please. :good:
[Nexus 5X Original Android Development] jugoslavpetrovic:
So, after days of using non-OC v2.8, zRAM 1024/100 with Hima on, 1core configuration and both thermals off, threshold at 40... It seems giving better performance then stock thermals. About battery drainage I can't really say much and it can be anything as said before but it feels just a bit more. Well, it's already old device and I have bunch of apps installed, multitasking almost all the time. Constantly on the go and with suspicious network signals while possible taken that sense etc. I am very satisfied with this.

Now, I dont play games on phone and maybe I could get some more of it by setting GPU properly for my use but not to sacrifice generalUI experience. Advice me on that, like adreno idler and GPU govs, freq as possible bundle.
[Nexus 5X Original Android Development] :
Just activate adreno idler but it's already on by default I think and try to downgrade GPU frequency, personnaly I let it on 600Mhz because you could have animations bugs otherwise.
[Nexus 5X Original Android Development] milouk:
Im happy youre enjoying it. Version 2.9 is coming soon with many changes / optimizations. Personally im using 768 MB zRam because there is a noteable battery / performance tradeof with zRam enabled. Cheers
[Nexus 5X Original Android Development] nirogu325:
If you haven't tried it, if your ROM has it, use Privacy Guard (or Apps Ops app) to turn off Google Play Service's Keep Awake feature for a bit more battery life.
[Nexus 5X Original Android Development] Komodoketavaran:
Really a great kernel but I think i don't get how to use the hotplug properly [emoji848]

I created a script in EXKM with the lines and min cpus to 3.

Now i can see that it is shutting off 3 of the little cores. The big ones are always online. Shouldn't it be dynamically? Also the big cores always acting between 960mhz and 1248mhz. This results in higher temperatures than leaving all cores online at lowest freq

Am i doing anything wrong here mates ?

Gesendet von meinem Pixel 2 XL mit Tapatalk
[Nexus 5X Original Android Development] milouk:
You did it correct. Usually the big cores do not turn off because there is going to be a significant impact on performance. Though if you leave your phone alone 1/2 big core should go offline. If you want no matter what at least a big core offline then reduce min_cpus_online to 2 or 1. This means though that your phone might get a bit laggier. Regarding the frequencies. The frquencies shouldnt be different than what you have set.

Exception 1: Governor

Exception 2: Thermal Throttling
[Nexus 5X Original Android Development] Komodoketavaran:
Thanks for that explanation.

I left the phone some minutes and one of the bigs turned off.

However at least one of the three core's left doesn't hit lower frequencies than 960mhz. All cores are set to their lowest possible frequencies.

Is there anything you can do for this?

Maybe force them to do that if there is no load or something?

Gesendet von meinem Pixel 2 XL mit Tapatalk
[Nexus 5X Original Android Development] AerogamingHD:
Hello Milouk,

I'm quite confused. I want my phone really fast and snappy with a decent battery length. What settings should I change to get this.

Thanks for your amazing kernel
[Nexus 5X Original Android Development] milouk:
Suggested EXKM Configurations

Since a lot of you have been asking about how to configure Sphinx Kernel, i'm going to share with you my personal configurations - they might not be the best but at least from my testing they seem to be pretty good!-

CPU

Interactive Governor with GlassCannon Profile --> Decent Performance Good Battery ( sometimes i change to other Profiles)

Touchboost Disabled

Workqueues Enabled

Little Max --> 1440 (still experimenting with it to find a balance between performance/battery)

Little Min --> 787 (experimenting)

Big Max --> 1824 (experimenting)

Big Min --> 768 (experimenting)

Thermal Threshold --> 43 (from Version 2.9 is going to be the default) After a lot of testing i have figured out this is the best threshold for a cool phone.

Core Control Disabled (Because Hima Hotplug is Enabled)

Hima Hotplug Enabled --> Check Version 2.8 Post on how to configure. (change /sys/kernel/hima_hotplug/hima_hotplug_active from 0 to 1)

Vdd Restriction Enabled (not sure about that but it think it restricts the voltage each frequency consumes)

GRAPHICS

Adreno Idler Enabled

adreno_idler_idlewait = 10 (its the time that the GPUwaits before going idle --the lower the quicker --

Advanced Control - I use a custom profile - It does not affect battery or performance -

Backlight Dimmer Enabled - Slightly Better Battery

VOLTAGE

I know that many of you want something standard that will work but such thing does not exist here. In this section you have to experiment by yourself - personally i find the most stable to be -10 mV ONLY the upper .

MEMORY

zRAM Enabled

zRam Size 768 MB --the more MB the more CPU usage the Lower Battery Life

Swappiness set to 100

UKSM Enabled

UKSM Max CPU Percentage set to 10% --its a good balance between performance / Battery--

MISCELLANEOUS

I/O Scheduler = noop or maple

Readahead KB set to 256

CRC Disabled

Dynamic Fsync Enabled

TCP Congestion Algorithm = cdg

Audio High Performance Enabled

Gentle Fair Sleepers DIsabled

read_wakeup_threshold = 128

write_wakeup_threshold = 256 -- this one and read_wakeup_threshold increase ENTROPY from about 34% which was before to about 50%-55% resulting to smoother performance--

SCRIPT MANAGER

Here i got the script for the zRAM and the one for Hima Hotplug. I shared both of them on the Version 2.8 release post.

DISCLAIMER : The above settings might not cover your needs and you might have different results than me. The above is my CURRENT setting. If it does not work for you or you are not satisfied, experiment with different setting but please do not blame me.

For Photos of the set up check the zip attached.

Cheers :cyclops:
[Nexus 5X Original Android Development] :
Glasscanon link (that was lost in the abysses) : https://xdaforums.com/nexus-5x/general/alpha-glasscannon-interactive-tweak-t3587980
[Nexus 5X Original Android Development] milouk:
Hahaha yeah that's right!! I stumbled upon it the other day and decided to give it a chance. And it is actually pretty good.
[Nexus 5X Original Android Development] :
Vdd restriction is bad for the battery as it's locking min freq to 780Mhz.
[Nexus 5X Original Android Development] milouk:
For me it doesnt lock anything. Something else is locking your frequency. If you use GlassCannon you should know that by default it sets the min freq. At 780. But vdd has nothing to do with what you said
[Nexus 5X Original Android Development] derkleinebroicher:
I get the same result as [MENTION=6657029]francos21[/MENTION]. VDD_restriction on: min-freqs up to 788, VDD_restriction off: min-freqs back to default.

I don't use a gov-profile.