yashsingh1/xdaforums huggingface dataset:
[Nexus 5X Original Android Development] nirogu325:
I stopped looking for a kernel, really. This is my idle battery time, losing 0.3% per hour. I stopped seeing such idle loss since Marshmallow days. Good to see it again. Again, my configuration is: Intelliactive on both CPU clusters, 1440MHz being the top frequency for both clusters, FIOPS as my scheduler and -20mV undervolting all across.

I thought I was running 302MHz as the minimum underclocked frequency for both clusters but every time EX Kernel Manager updates (which has been frequently these days) those frequencies do not stick and that's annoying, so who knows if I could have gotten less % loss per hour. Still satisfied, though.
[Nexus 5X Original Android Development] milouk:
Very happy to hear that my friend! Version 3.1 is on its way with a very nice feature. ?
[Nexus 5X Original Android Development] nirogu325:
Thanks. Just in case I already notified flar2 about that UC frequency not sticking after each EXKM update.
[Nexus 5X Original Android Development] milouk:
Thanks for that.
[Nexus 5X Original Android Development] Skulltec:
what does intelliactive profile do? Also what's your apps? I idle 1.4% an hour, about 4-5% over night. I used to have 0-2% at max overnight. screen on drain is decent.

I am also no longer looking for a kernel. this one does it's job pretty good. I used to underclock cpu too with Franco Kern bjt right now it's just minimum 302mhz (which doesn't stick always like you) and Max 1747mhz :)

right now I have 24% left after 23h44m with 4h19m SoT :D

almost like the old days !:cool:
[Nexus 5X Original Android Development] nirogu325:
Intelliactive is like an enhanced Interactive. I'm on mobile but information is available for that governor if you look around, same with FIOPS. My list of apps? Whew! A long one. About battery hogs I do have FB Messenger but for FB I use Simple Social Pro. Why? It's lighter and it doesn't lag if I use Spotify at the same time. I used to idle around 1.2% before (you can look my past posts in this thread for evidence) but that was when I was using Resurrection Remix ROM. I moved to AOSiP ROM so that may have had an effect. About SoT (screen on time) I usually do between 4-5hrs when browsing Chrome, using Spotify and chatting on FB Messenger. But keep in mind where I live is very hot right now so my mileage can vary when it comes to SoT.
[Nexus 5X Original Android Development] milouk:
Very interesting stats both of you! It is a pleasure to have users like you use Sphinx Kernel! Very glad you are satisfied! ?
[Nexus 5X Original Android Development] Skulltec:
Thank you for your reply. It's possible my ROM burns more battery. I don't have FB at all. I am using Chrome, Whatsapp, allo, Spotify as main apps. for whatever reason Android OS drained 22% not sure where that comes from. I might install betterstats to get a track.

I googled intelliactive but could find info easy
[Nexus 5X Original Android Development] jugoslavpetrovic:
What is benefit of that? How to test it?
[Nexus 5X Original Android Development] milouk:
It gives you the possibility to mount usb sticks (OTG) . To test it you need a usb c to usb A adapter. (The ones with the cable wont work , you need the one which is just a piece with one end male type c and the other end type A female ) i have one ordered but it might take some time until i get my hands on it cause im actually studying abroad and i foolishly ordered it tovmy home address :p
[Nexus 5X Original Android Development] jugoslavpetrovic:
I already used OTG with build 2.3, ntfs with X-plore file manager.
[Nexus 5X Original Android Development] milouk:
The reason you were able is because probably your stick is formatted as NTFS while if it was exFAT you would not be able. So if you have a spare stick and could format it as exFAT and try the test version for me it would be very helpful
[Nexus 5X Original Android Development] jugoslavpetrovic:
Sure, I can do that. But how is exFAT better then ntfs?
[Nexus 5X Original Android Development] milouk:
It is not better. NTFS is way better but some users may not be familiar with filesystems or for some reason have their sticks formatted as exFAT. They should be able to mount their sticks too. They might even have a lot if things stored in them and it would be a hassle to reformat them.
[Nexus 5X Original Android Development] jugoslavpetrovic:
Sorry, Im almost out, Iam too sleepy to manage formating and all now, tomorrow when I come from job I will test it.

Anyway, I think FAT32 is default stick file system.
[Nexus 5X Original Android Development] milouk:
No problem at all. Thank you!
[Nexus 5X Original Android Development] jugoslavpetrovic:
I will test exFAT and FAT32
[Nexus 5X Original Android Development] jugoslavpetrovic:
I tested, it mounted. But, since I use x-plore file manager, it needed some plugin to mount it. Anyway I could not mount it without test build of kernel, so I guess it works.
[Nexus 5X Original Android Development] milouk:
Im a bit confused. Which one worked the exFAT or the FAT32? By plugin what do you mean? Also which test version worked the test1 or the test2? Finally did you try mounting with v2.3 and it did not work?
[Nexus 5X Original Android Development] jugoslavpetrovic:
Hm, I think it's test1. I have this paragon mount app as plugin for x-plore app. With official 2.3 did not mount. Test1 mounted well exFAT
[Nexus 5X Original Android Development] milouk:
That is great Jugoslav thanks a lot! I will be pushing another update in the next week once i have some more things improved.
[Nexus 5X Original Android Development] jugoslavpetrovic:
I am not into any other file manager but if you prefer some I can test it. I love X-plore since symbian phones, lol
[Nexus 5X Original Android Development] milouk:
To be honest im not familiar with it. I personally use Amaze which is open source.
[Nexus 5X Original Android Development] jugoslavpetrovic:
Feel free to try, it's unique, like total commander with two sides.
[Nexus 5X Original Android Development] milouk:
Version 2.4

* Added FIOPS I/O Scheduler

* Added SIO I/O Scheduler

* exFAT Support

* Improved adreno_tz

* Improved power efficient workqueue

* Cleaned AnyKernel script

* Migrated to new github repo
[Nexus 5X Original Android Development] :
Thanks for the update.

But I think that there are now too much kernel for our nexus with basically the same features so why not working together instead of recreating (even if you are sharing work).

If you ask what features we want to see on our device: battery because it's the worst thing of this phone.
[Nexus 5X Original Android Development] jugoslavpetrovic:
Battery and ram managment.

But, there is one thing, you can't get both performance and battery, they are opposite like heaven and hell.
[Nexus 5X Original Android Development] milouk:
As far as i know there is only one other upstreamed kernel for the bullhead which has a lot less features than this. Also i made this kernel for my personal use. I find battery extremely good and so do other users. Some users report 4 hours SoT and i have constantly over 3 hours SoT which i think for a two year old battery( i got the nexus for 2 years) is super great. Morever i think that even if all kernels have more or less the same features every each of them differs from each other in someway. The other day you complained that it is not stable enough and not feature rich. You didnt tell me why it was unstable and what features you would like. I added many features since then and you are complaining that now it has the same features with all the other.

Also i don't get why you would discourage someone making something of his own. This is litteraly my first kernel. I wanted to share it mostly to get feedback not to "steal" users from other kernels.
[Nexus 5X Original Android Development] jugoslavpetrovic:
Maybe here some info

https://xdaforums.com/general/general/ref-to-date-guide-cpu-governors-o-t3048957/page90

---------- Post added at 11:46 PM ---------- Previous post was at 11:44 PM ----------

What about Hima?
[Nexus 5X Original Android Development] nirogu325:
Hm? It produces more heat for me which is a huge no-no, remember my reply? https://xdaforums.com/showpost.php?p=77012121&postcount=538
[Nexus 5X Original Android Development] jugoslavpetrovic:
Oh, yes sorry. Thanks.
[Nexus 5X Original Android Development] Skulltec:
Thanks for the link it has all the info i need :good:
[Nexus 5X Original Android Development] Doomkopf:
[MENTION=5533673]milouk[/MENTION] Do you want feature suggestions for the kernel at the moment? :D Or are you too busy at the moment for that? ^^
[Nexus 5X Original Android Development] milouk:
Im always open for suggestions Feature or not. So fire away ;)
[Nexus 5X Original Android Development] Doomkopf:
Haha first of all (forgot it in the first message) I would like to thank you for this awesome kernel. Using it for like a month/2 months now and I have never experienced something like this, my SoT went through the roof.

Well, I looked at popular kernels for other devices and I often saw "Dynamic Stune" and "Adrenoboost". Apart from that Dynamic Stune is somehow related to CPU Boost, I didn't really find any valuable data when researching these features. Maybe I searched at the wrong places and you know better ^^

I guess this is more of a question rather than a suggestion, but is it possible to upstream/tweak ext4? Are there any updates/tweakable tunables? I could imagine that would be great for system responsiveness.

I hope this isn't too big of list, as I said this kernel is now already awesome and I really love your workethic/kindness.
[Nexus 5X Original Android Development] milouk:
Mm very interesting suggestions, thank you very much. I have never heard of Dynamic Stune before and have never seen it on any other kernel. But this is the kind of features im looking for. Definetly going to do a research. AdrenBoost is something i was considering in the past (when i added adreno idler) but didnt implement because there were some conflicts. But i will do my best to add it to 3.1.

Regarding ext4. Im not sure at all if there are any upstream changes regarding this -have not heard of any updates on this but it is worth a research- .

Finally, as a note for everyone. Dont be shy or afraid to suggest new features or spam this thread with your ideas/suggestions. Even though not everything might make it into Sphinx, everyone is going to get wiser. Spread the knowledge guys!
[Nexus 5X Original Android Development] Doomkopf:
I think I found something on Dynamic Stune: https://xdaforums.com/u11/developme...ergy-aware-t3647471/post73189277#post73189277

It seems to put certain inputs into groups, so you can the phone doesn't boost input that strong when you're typing on your keyboard compared to opening an app/doing something more heavy. I don't really know if that feature is easy to implement/configure...
[Nexus 5X Original Android Development] milouk:
Thanks for the link. Very helpful. I will have a look at the source in the upcoming days (most probably in the weekend). And i will update accordingly if i have any news.
[Nexus 5X Original Android Development] milouk:
As a quick update. I have already merged a cool feature / update for ext4 ;) should be on Github by tomorrow (or whenever i push all the commits so far)

Edit: Changes are up.
[Nexus 5X Original Android Development] poondog:
Hey mate

Dynamic Stune is a feature for tweaking EAS

Which at the moment isn't relevant to most bullhead kernels

Keep up the good work :)
[Nexus 5X Original Android Development] dodjob:
Hey there,

I'm on AICP and I have some issue with fast charging. The only way I got it to work was with "Z##'" Kernel ^^ Bit currently your kernel is working way better on my device. Is there a way for you to add the fast charging in your kernel? I had to switch it on in the kernel manager with the other :) Hope that doesn't bother you or if you know any way to get it activated in another way, I would be very very glad.

H. currently "slowly charging" ^^

****aaaand again** please forgot my insolence X-)) I think the battery was too hot (43°) and this deactivated the fast charging... All good. Thanks for the kernel.. it does work better :D
[Nexus 5X Original Android Development] milouk:
Hahaha already added my friend a week ago. It is going to be introduced in version 3.1. One of the features in version 3.1 is fast charging via USB port. You can check Github for more. ;)

https://github.com/milouk/Sphinx-Kernel-Bullhead/commit/e4c97d21bdd951512ddd3b1f1ce95188299d11da

https://github.com/milouk/Sphinx-Kernel-Bullhead/commit/90410896bd45ad5d32de09922cd0e51529146517
[Nexus 5X Original Android Development] :
? so much new commits omg, waiting new update like a kid waiting for his new console ?

Don't know if you forgot or find that useless but hima hotplug link and other precious links/infos are going to be lost in the abyss and even search fonction won't help us when the flood will come... More seriously it will be really friendly (at least for very important things like hima hotplug new version link).

Last thing, I didn't saw a single commit (or correct me if I'm wrong) about updating governors, is it useless or just don't had time?

Have a nice evening and thanks a LOT for your HARD work!!
[Nexus 5X Original Android Development] milouk:
mm i haven't forgot about the post in the OP. But i'm still thinking of a way to present things. I tend of going with just explaining each setting rather than recommending settings as not every setting applies the same to everyone and also myself change settings very often. So i will make a post explaining each setting but i was thinking of doing this once i release 3.1. Also regarding changelogs and previous versions there are already two dedicated posts One for each one respectively.

Moreover, what do you mean by "updating governors" ? I might have forgotten something that i might have told you in the past so please do remind me if that is the case :P

Finally about the release of 3.1 i was thinking of waiting for August Security Patch Before releasing as i'm going on vacations from the 20th - 27th July.

As a note for all you Hotplug Lovers. I'm currently testing MSM_HOTPLUG v2.4 which is MUCH MUCH more customizable ( more tunables) than HIMA - i have the description of each of the tunables so it would be easier for everyone to experiment, and also it does NOT ramp up frequencies as HIMA did for some of you!and as a Bonus it is recognized by EXKM so no more scripts (though i have no intention of removing HIMA). So stay tuned!!
[Nexus 5X Original Android Development] :
OK thanks for explainations!

For governors I mean that for the oneplus 6 the bluactive governor is not the same as 2 years ago but it's (unfortunately) not the same soc so... You know what you do better than I lol.

Finally, have nice holidays (will try to wait 13 days until next release lol). ?
[Nexus 5X Original Android Development] milouk:
In 2.9 i updated Chill and added latest Relaxed. All the rest are up to date. All the fixes available have been merged. If anyone wants a preview of 3.1 send me a PM. Though i currently have only a regular version (OCed) and its a PREVIEW meant for testing by me before releasing so no gurantees.
[Nexus 5X Original Android Development] :
Oh OK so sorry in this case, don't know why I even ask that to a so good dev.

? I ask your forgiveness god
[Nexus 5X Original Android Development] milouk:
Hahaha Lol! I remind you that i literally started developing kernels (Sphinx) 3-4 months ago ??

But, be sure that if a stumble upon any fix/update on the governors Sphinx currently supports , i will merge it. (By the way in 3.1 i merged upstream fixes for adreno governors)
[Nexus 5X Original Android Development] :
Maybe but I'm on xda since maybe 5 years and never saw a dev like you, really.
[Nexus 5X Original Android Development] milouk:
Thanks mate! It means a lot to me! Glad to share my work with users like you :D
[Nexus 5X Original Android Development] jugoslavpetrovic:
I really like this thread.
[Nexus 5X Original Android Development] Benik3:
Hello.

Does anyone test voltage at which the phone turns off?

I tested and got 3,4V. That's pretty high in my opinion (li-ion/li-pol normally go down to 3V, some even lower). I know that at this level the remaining capacity is not the biggest but still better then nothing.

It's possible to tune it in kernel?

Thanks :)

EDIT: I tried to dissasemble my old batery. It's Sanyo UPF485569TA battery and there is integrated protection board with IC 4F 58fd. But I didn't find any datasheet :/
[Nexus 5X Original Android Development] :
Can you be more precise, I don't really see what you mean exactly.
[Nexus 5X Original Android Development] Benik3:
I downloaded DevCheck app and I watched the voltage of the battery. Then I started to discharge the phone (youtube HD video, high screen brightness...).

At 3,4V the phone turned off with !% battery level and it wasn't possible to turn it on again without charger (just the red led blinked).

BTW I just tested my removed battery and the protection circuit disconnected the cell at 2,7V. That's pretty common value for li-pol with discharging to 3V.
[Nexus 5X Original Android Development] :
Yes that's normal and these values can't be controlled by the kernel. And I think it's just to protect the battery that it power off at 3.4V and I'm sure it will do the same over a certain level.
[Nexus 5X Original Android Development] Doomkopf:
Tbh, I don't really know much about these things, but I can confirm that the battery is at 3,4V when the phone turns off (I had 3,4V at 2% battery). So that's not a hardware issue on your side, but that doesn't imply that it needs to be fixed, because I don't know if that's just the intended way to work :)
[Nexus 5X Original Android Development] TheTrippyOne:
Hi Milouk, nice kernel and you've got something going here for sure.

May I make a recommendation that you include the msm_thermal.c patches from Jolla since that helps the actual msm_thermal a great deal when using it as a thermal guard with MSM_Hotplug.

I already did and if you'd like I can give you the patch which will just plug into the code you already have without need for editing.

Another note, I've never been a fan of ZRAM so I have removed that from the config, added a 2GB swap file on /data/media/0 instead and set the LMK to the lightest possible mode there is which means that with up to 8-10 apps I'm keeping it all in memory without slowdowns and I don't waste memory on swap that doesn't actually work nearly as well as everyone hoped it would (with XZ it's about double but slower than read from disk and with lz4 the compression is abysmal and it's still not all that much faster than reading from disk since the launch and the decompression occurs simultaneously.

If you'd want I could give you a script to try that out too with a swap file on disk and next to no LMK until your ram is really full. Recommended setting for that is 30 for swappiness, it won't kill any processes unless you go below that and won't needlessly swap out anything either.
[Nexus 5X Original Android Development] milouk:
Hello my friend,

Msm_thermal patches sounds great. If you could point me to the commit in jolla's code i would be more than welcome to test it and if it indeed helps with msm_hotplug i will add it in 3.1

Regarding the LMK, im very happy that you have experimented with it. I always wanted to experiment with this but didnt know how to. If you know things and what the tunnables mean, and tested it please do to send me a PM with the script and some instructions.

As a note: Im currently on the way for vacations till the 27th. I will be replying to this thread and to all PM's very often. Though i wont have my computer with me which means i wont be able to test and build. Expect 3.1 hours after August Security Patch is released.
[Nexus 5X Original Android Development] jugoslavpetrovic:
Always fun to test new things. If you could share those scripts for ram I would try. How it is going along with the battery drain?
[Nexus 5X Original Android Development] milouk:
That would be great if you could test those settings until im back :D
[Nexus 5X Original Android Development] jugoslavpetrovic:
Well, the most stragles with this nexie is the battery and ram that I have as a multitasking use, so the better managment is very appreciated.
[Nexus 5X Original Android Development] wilq1337:
AFAIK he has branch dedicated to msm_thermal in his kernel source but i don't know if its updated. It would be great if you could add it, gives much better throttling control. Much appreciated!!!

PS. running preview2, hotplug works great and is customizable in EXKM, so far so good!!
[Nexus 5X Original Android Development] TheTrippyOne:
I'll upload it to my bitbucket and you can grab them from there, I did some external changes to adapt it which makes sense when it's used without core_control.

No worries, I'm in no rush and just wanted to let you know what I did that worked pretty great, it's all about open source and helping each other. :)

I'm now at 7 hours if screen on in two days and it's time to insert the charger as i'm down to 10%.

That is far beyond anything I've ever tried before, using msm_thermal with msm_hotplug, two small on and no big on (as in min for small is 2 and min for big is 0) but it scales so fast that there is no lag what so ever. No Zram and lowest possible setting on LMK (I also added the age old rbtree patch because it works) with a 2GB swap file on disk. I have 12 apps and some of them are games in RAM and not one of them are swapped out yet but background unused is filling up the swap space nicely. Feels more like a proper Linux system than an Android phone.

---------- Post added at 07:45 PM ---------- Previous post was at 07:22 PM ----------

Sure, you'll want to make a swap file, the simplest possible way is to use adb shell but it works fine in terminal too:

su

cd /sdcard/

dd if=/dev/zero of=swap.file bs=1024 count=208000

mkswap swap.file

Then use this code in a script:

swapoff /dev/block/zram0
swapon /data/media/0/swap.file
echo "4641,9282,13923,18564,23040,27648" > /sys/module/lowmemorykiller/parameters/minfree

And you are done.

Note, just removing the zram line from the fstab.bullhead in the kernel zip is faster and you can remove the first line if you do that.

I don't think I can upload attachments just yet so no files for now, I might upload some to my server later and give links if requested.
[Nexus 5X Original Android Development] nirogu325:
nvm
[Nexus 5X Original Android Development] TheTrippyOne:
It needs to be adapted because this kernel isn't vanilla and there is no reason to do the work twice so I'll upload my sources and he can just do a cherrypick from there. It's all in order.

I have some other additions that I usually include too but those are separate from that code. I always fix the config errors and the jump_label swap issues just because it's faster to use the jump_label optimizations all out rather than just the arch specific ones.

It's 20 or so lines of code so it's no big deal.

I also noted that binder lacks the latest updates so I included that in my kernel and punched some variations up to 3.18 because 3.10 is dead, the problem with this is that all these incrementals make it impossible to keep track of versions if we're not using a version tracker betweenst our kernels.

My solution is to just batch upgrade the whole thing to 4.10 but that is time consuming because even when I revert all non device specific changes I still get about 100k updates that will inevitably need to be git am --aborted and yet I still need to check each and every one of them. Rollback to initial stock isn't an option and I don't have the original patch for the additions of Bullhead either.

So it'll take time but i'll get there, after all at 4.10 the 8992 chipset is officially supported by Linux.

---------- Post added at 07:58 PM ---------- Previous post was at 07:55 PM ----------

Yeah those are separate lines, you have to run one after the other.

You can't copy and paste the whole thing, you have to do it one line at a time.

Once you're done with that it's fine to copy and past the whole script code into an EXKM script.