yashsingh1/xdaforums huggingface dataset:
[Nexus 5X Original Android Development] milouk:
Interactive with Glassfish1.2 or Ghostpepper. Morever you could try Overclocking little cores and use a modified Ghostpepper profile that takes advantage of the higher freqs.
[Nexus 5X Original Android Development] Punkiderma:
Please keep developing the non OC version for all the ones out there that doesn't care so much about performances :D
[Nexus 5X Original Android Development] milouk:
Guys! Nothing will change. Sphinx will ship with stock values 1440 and 1824 as default. You dont have to OC. It is optional.
[Nexus 5X Original Android Development] ema97:
What is glassfish 1.2 and how to activate?
[Nexus 5X Original Android Development] milouk:
EX kernel Manager pick Interactive Governor then tap on Governor Options > Load > GlassFish1.2 and set on boot. ;)
[Nexus 5X Original Android Development] zurik:
Why the OCed version it have optional the overclock and set the stock values if the non OCed version provide this?
[Nexus 5X Original Android Development] milouk:
I didnt quite understand what you said. What i try to say is that the 2.8 version will be OCed but you DONT have to use the OCed freqs. You can just use it with stock frequencies. It will just provide you with the possibility to OC IF you want. But as DEFAULT it will have STOCK values. From there you can OC or Leave it as it is.
[Nexus 5X Original Android Development] ema97:
I tried this setting but this night battery drained a lot. I lost 30% in standby.
[Nexus 5X Original Android Development] milouk:
Your Stats say that while inactive you lost 1% and while on standby 8%. Anyway GlassFish is not a recipe for success. It honestly depends on the rest of your settings. If for example you have OC both Big and Little there is going to be a drain.
[Nexus 5X Original Android Development] milouk:
Version 2.8

First of all i would like to thank all of you for all the support i have got from you! You all are amazing!!

New Version is up!

Changelog :

-Enabled ARCH_POWER -- check Notes (1)

-Ensured GENTLE_FAIR_SLEEPERS are disabled

-Removed Lazyplug -- check Notes (2)

-Ported Hima-Hotplug to Bullhead -- check Notes (3)

-Added More Frequencies - Further OC up to 1747 Mhz for Little and up to 2150 MHz for Big-- check Notes (4)

-Added Voltage Control for Little (A53) and Big (A57) - proceed with CAUTION -- check Notes (5)

-Entropy Adjustments -- check Notes (6)

-Updated WireGuard Backend to version 0.0.20180613

-SafetyNet Pass improvements

-Fixed Big Core Frequencies not sticking after a reboot.

-Many Bug Fixes / Improvements for details check GitHub.

Notes :

1) What is ARCH_POWER? -- for details check here https://xdaforums.com/galaxy-s2/general/ref-kernel-stuffs-how-ics-kernel-t1572937

2) Lazyplug did not perform well at all. Wakeup was very laggy. Fingerprint unlock took a million years and notifications came very late.

3) Works extremely well - Buttery smooth - Unfortunately you cannot configure this via EXKM so you have to use this script I have made - (Disabled by Default)

if you want to activate it open the script and replace

echo 0 > /sys/kernel/hima_hotplug/hima_hotplug_active

with

echo 1 > /sys/kernel/hima_hotplug/hima_hotplug_active

** I strongly recommend it to anyone that wants extra battery. Details check here https://androidmodguide.blogspot.com/p/blog-page.html if you feel it is laggy increase the min_cpus_online from 1 to 2 or 3

echo 3 > /sys/kernel/hima_hotplug/min_cpus_online

and also DO NOT FORGET if you enable Hima Hotplug to DISABLE Core Control.

4) You can now OC little Cores up to 1747 MHz and Big Cores up to 2150 MHz - Here is a Modified Ghostpepper profile I have made to take advantage of the new Frequencies.

5) You will see "upper" and "lower" entries in EXKM this means that for each frequency you must specify the highest-(upper) and the lowest-(lower) possible mV consumption.

6) I have noticed that the entropy pool was always 33% full this might cause lag. - the fullest it is the better - I made some adjustments and now it is at 55% full.

7) EXKM does not play well with Zram Size. I have made a script which helps set Zram Size after reboots (Script is for 768 MB). If you want to change the size then open it and replace

805306368

with

(your prefered size) * 1048576

8) A post with suggested cofigurations will come in the upcoming days

9) For Further Questions about using the scripts etc send me a PM.

Cheers!
[Nexus 5X Original Android Development] zurik:
My phone froze some minutes after flashing the OCed version of 2.8. maybe it's due to the overclock values ?
[Nexus 5X Original Android Development] milouk:
Or too much OC or too much Undervolting. Try finding the balance between them.
[Nexus 5X Original Android Development] zurik:
Little max value 1747MHz

Big Max value 2150MHz.

Didn't touched the undervolting because I don't know how to use them .
[Nexus 5X Original Android Development] milouk:
Then probably your chip cant handle that much OC. Personally i keep Big cores at 1824 and little at 1747. Instead of maxing it out from the beginning i would advise to keep it stock and little by little trying to increase the frequencies till you start experiencing reboots which means that your phone has had enough OCing
[Nexus 5X Original Android Development] :
Thanks a lot all is ****inggg runing well !!!

New hotpluging seems to be really powerful but which method do you use to launch the script, I use and independant app to launch it but I don't like this method
[Nexus 5X Original Android Development] milouk:
Hima Hotplug is f**ng awesome. Be sure to 1) disable core control 2) increase min_cpus_online to 3. It will save a whole lot of battery without compromising performance AT ALL . this hotplug was initially for HTC ONE M9 but was ported for the first time to Nexus 5X by me. I personally use EXKM to launch the script.
[Nexus 5X Original Android Development] :
I don't find script section in exkm ? sorry to ask so stupid help ???
[Nexus 5X Original Android Development] milouk:
Tools> Script Manager. No worries
[Nexus 5X Original Android Development] :
Need to wash my glasses , I have paid version (not cracked).
[Nexus 5X Original Android Development] milouk:
it requires SU or Magisk
[Nexus 5X Original Android Development] :
Thanks so lineage root is ****? ???
[Nexus 5X Original Android Development] milouk:
Lineage isnt rooted by default you either have to flash su or magisk
[Nexus 5X Original Android Development] :
Yes but I was speaking about root plugin of lineage and please ignore my PM all is OK now.
[Nexus 5X Original Android Development] jugoslavpetrovic:
Core control off and what about msm?

---------- Post added at 05:37 PM ---------- Previous post was at 05:34 PM ----------

Me too missing script runner, but it doesn't matter I put my scripts in su.d if supersu or in service.d in case of magisk.
[Nexus 5X Original Android Development] milouk:
Disabled. Morever i have found that the thermal threshold golden spot is 43.
[Nexus 5X Original Android Development] jugoslavpetrovic:
Cool. So, Hima is hotplug and thermal driver as well?
[Nexus 5X Original Android Development] milouk:
Its like Intelliactive hotplug but adapted to big.Little architecture
[Nexus 5X Original Android Development] nirogu325:
So far, I'm loving the results and the temperature. Using Hima Hotplug and -10mV off all frequencies. Might up that to -15mV if all goes well. Stable and quick so far. These things that control temperature are extremely useful in the tropical setting where I'm currently living. Only gripe I have left is the non-stock LED animations. The rest is excellent.
[Nexus 5X Original Android Development] milouk:
I can make a version especially for you without the leds if you like.
[Nexus 5X Original Android Development] zurik:
I have set -30mV immediate for a couple of hours and it seems good. No issues so far.
[Nexus 5X Original Android Development] nirogu325:
I'm in. In exchange, count me in if you need me to test stuff (except overclocking cuz it might end up damaging my unit - very hot in here). By the way, I've one question. You said we could request more cores online for the Hima hotplug and mentioned a script to do so. Where is it? Do I have to touch /system?

---------- Post added at 07:47 PM ---------- Previous post was at 07:46 PM ----------

That sounds good but a lesson I learned from the Galaxy S1 days with undervolting is that no two units have the same tolerance. That's why I'm going slowly.
[Nexus 5X Original Android Development] milouk:
Hahaha Great. If you could wait for some hours (im watching The World Cup right now hahah) i will have a version for you !! Hima Hotplug turns dynamically on and off cores. So you can request how many cores at least you want online at any time. This can be done by modifying the parameter min_cpus_online. By default it is 1 which means that it can simultaneously turn off 5 cores which might be a bit laggy. I would suggest to increase it to 2 or 3 ( i have it set to 3) . the script is found in the 2.8 Anouncment post i made a couple pages ago! Cheers!
[Nexus 5X Original Android Development] nirogu325:
I went ahead and added/overwrote the values into the init.sphinx.rc that's inside the flashable zip so it's flash and forget. The last section looks like this now:

#Enable Hima-Hotplug By Default

write /sys/kernel/hima_hotplug/hima_hotplug_active 1

write /sys/kernel/hima_hotplug/cpu_nr_run_threshold 600

write /sys/kernel/hima_hotplug/current_profile_no 0

write /sys/kernel/hima_hotplug/def_sampling_ms 1500

write /sys/kernel/hima_hotplug/max_cpus_online 6

write /sys/kernel/hima_hotplug/min_cpus_online 2

write /sys/kernel/hima_hotplug/nr_fshift 4
[Nexus 5X Original Android Development] milouk:
Im not sure this going to work. If you want i can add this instead of what i had to the build im going to make for you.
[Nexus 5X Original Android Development] Lughnasadh:
And to expand on that. You guys should NOT enable "Apply on boot" for undervolting until you have thoroughly tested that your settings are stable or after doing a stress test. You could get into an endless bootloop where you might have to dirty flash your rom or restore a nandroid if your settings are not stable.
[Nexus 5X Original Android Development] nirogu325:
Why not? That's exactly how I enabled the hotplug before posting satisfactory results.
[Nexus 5X Original Android Development] milouk:
Then it will work. I wasnt sure but if you say it works then it works :p
[Nexus 5X Original Android Development] nirogu325:
It does, I've been monitoring the cores via Kernel Auditor since I cannot undervolt using EXKM. It's the first time this summer that my device has been running below 110°F.
[Nexus 5X Original Android Development] milouk:
Well i use celsius but i guess 110° F is low :p . Nice to hear you are enjoying Sphinx. I cant wait to hear your feedback when i send you the No Led version ;)
[Nexus 5X Original Android Development] nirogu325:
Uploaded a screenshot with Celsius values. It's 35°C where I live now, for reference.
[Nexus 5X Original Android Development] milouk:
Wow man! Thats great!!
[Nexus 5X Original Android Development] nirogu325:
Just letting you know about my past post about the hotplug script lines, I had to just leave the lines that enable the hotplug and the lines about the minimum/maximum amount of cores. Had to delete the other lines because they caused lag in my unit, especially in apps like Chrome and making the keyboard appear. YMMV.
[Nexus 5X Original Android Development] milouk:
I didnt understand 100% whats your issue. Is there and issue with the kernel?
[Nexus 5X Original Android Development] nirogu325:
Nope. I was referencing my post about the hotplug script. The only lines that I had to delete were those unrelated to enabling the hotplug and min/max amount of cores to use.
[Nexus 5X Original Android Development] milouk:
The way you did it is not recommended. Better do it with a script.
[Nexus 5X Original Android Development] nirogu325:
It was feedback about select lines in your script, not exactly deserving of a "whatever"....I shall wait for the build with the stock LED animation. Sorry to bother.
[Nexus 5X Original Android Development] milouk:
You are right. Edited it. I apologize. :) You will have your build in about an hour
[Nexus 5X Original Android Development] :
Now that the match is over ... Time for features suggestions.

No more seriously I remember that shadow or an other kernel had insert a tweak to reduce screen power consumption, as the screen is the biggest battery eater, this kind of tweak will be good.
[Nexus 5X Original Android Development] milouk:
I would gladly add it or at least try if i had some more info. If you could point me to a commit or a kernel or at least a feature name i can google i would be more than happy to add it in 2.9
[Nexus 5X Original Android Development] :
I was speaking about that but the link don't work anymore ?
[Nexus 5X Original Android Development] milouk:
Mm interesting.. [MENTION=6998415]mr.ace[/MENTION] is this commit still valid ? If yes could you point me to that?
[Nexus 5X Original Android Development] nirogu325:
I stand corrected.
[Nexus 5X Original Android Development] milouk:
He was talking about the World Cup match i was watching ??
[Nexus 5X Original Android Development] nirogu325:
By the way, thanks for the build. Running great.
[Nexus 5X Original Android Development] milouk:
You are welcome my friend! Happy to have helped ;)
[Nexus 5X Original Android Development] wilq1337:
Did voltage change for 1632mhz @ little core? I just got freeze and OC on little was the only thing I changed
[Nexus 5X Original Android Development] milouk:
I dont think so.
[Nexus 5X Original Android Development] mr.ace:
Yeah sure

Was these sultan commits

https://github.com/aviraxp/ONEPLUS_MSM8994_KAWORI/commit/cf9b44428dad3cdc6fe36c3e19d6074a8da745ad

https://github.com/aviraxp/ONEPLUS_MSM8994_KAWORI/commit/14382e0073b01f45cdbc04dc8fd3a99b345878df

https://github.com/aviraxp/ONEPLUS_MSM8994_KAWORI/commit/8c123e442d2d86184fb3584cc9ced81e48240ae6

https://github.com/aviraxp/ONEPLUS_MSM8994_KAWORI/commit/de83a8b3621a0e8ae18e768e565a54072933dd04
[Nexus 5X Original Android Development] milouk:
Great! Thank you very much
[Nexus 5X Original Android Development] jugoslavpetrovic:
Of course, I agree with this completely. To add to this is better to apply it yourself everytime cuz you don't know when the real stress will come from whatever task.

---------- Post added at 07:07 AM ---------- Previous post was at 06:13 AM ----------

Does Backlight Dimmer has anything to do with saving battery a bit?
[Nexus 5X Original Android Development] :
Backlight dimmer just allow you to reduce even more luminosity so yes it could save a bit battery but the screen is so dark that you will only see it in the dark.
[Nexus 5X Original Android Development] jugoslavpetrovic:
This hima hotplug runs well. It's just that if it could be possible to manage it via kernel manager I guess it would cool to manage it on the go without reboot and for ppl who who do not run scripts. I'm fine but generally speaking:)
[Nexus 5X Original Android Development] milouk:
I wish that too. But its not up to me. Flar2 has to support it. Also in case you havent noticed "Hima" is the codename of HTC ONE M9 from which i ported it. So until yesterday it was device specific which makes sense why there isnt support for it in EXKM.
[Nexus 5X Original Android Development] Punkiderma:
Running 2.8 non OC with hima hotplug and UV -10 on all freq (I'm still testing :D), everything fine! Thanks for this great kernel!

I have a question: does enabling dynamic fsync will result in better battery life, in opportunity to have it always on?
[Nexus 5X Original Android Development] milouk:
My friend Punkiderma!! Happy to hear you are enjoying Sphinx so far! As you saw i kept the non OCed versions ;) . Fsync doesnt REALLY affect battery life. It affects the performance. Much like CRC does. BUT you would ask if by disabling Fsync you increase performance why wouldnt you disable it? Well the answer is that Fsync is a very important operation that takes place when you shut down your phone or when you turn off the display and it basically saves all your data. So having it disabled means that in case something goes wrong on your device (bootloop , freezing , unexpected shut off) you can find yourself with lost and UNRECOVERABLE data. So the trade off between increased Performance/Battery doesnt really balance the benefits you get from Fsync operations.

In other words. Imaging playing with your GameBoy and suddenly it shuts off because you got no more battery left. All your progress is lost. But what if you had an automatic Save function? This is what Fsync does.

If you dont know what a GameBoy is imagine writing the last chapter of your book on Microsoft Word. And suddenly a power break happens and you didnt save it!!! Fsync would save you :D

"Your advice"? I hear you asking... KEEP IT ENABLED it just isnt worth it to disable it.

Cheers!
[Nexus 5X Original Android Development] :
Yes but the fact is that all apps today are already backuping your data in a cloud so in my case fsync is unuseful.
[Nexus 5X Original Android Development] milouk:
Its not about apps. Imaging an application writing data to a file while unexpectedly your phone shuts off. It might end to lost or corrupted data which might result to a bootloop. Believe me it just isnt worth it! The gain will be minimal compared to the potential loss.
[Nexus 5X Original Android Development] Lughnasadh:
Great explanation of what fsync is. I would just like to add a little if I may :eek:

As I understand it, "dynamic" fsync works in a slightly different way.

With dynamic fsync enabled and screen on, normal fsync will be turned off, thus enabling slightly faster i/o speeds but an increase risk of losing data if you have a crash while the screen is on.

With dynamic fsync enabled and screen off, normal fsync will be turned on but you will have slightly slower i/o speeds.

With dynamic fsync disabled, fsync will be turned on whether the screen is on or off.

Thus, dynamic fsync allows for slightly better performance when the screen is on, but at a slightly higher risk of losing data if a crash occurs.

Please correct me if I'm wrong about this :D
[Nexus 5X Original Android Development] milouk:
Perfetto!
[Nexus 5X Original Android Development] Punkiderma:
Yeah I saw and appreciate that you kept the non Oced version!

Thank you very much for the explanation! And by the way... Class '92 here, the GameBoy has been one of the roots of my childhood! XD
[Nexus 5X Original Android Development] joemanbui:
You are an awesome dev. Thank you for all the hard work. Really appreciate it!!!
[Nexus 5X Original Android Development] jugoslavpetrovic:
+1

Truly amazing guy.

---------- Post added at 06:46 AM ---------- Previous post was at 06:40 AM ----------

Now, this kernel is super unique, and even with OC together with non-OC builds provided is also super-cool.
[Nexus 5X Original Android Development] milouk:
What a nice thing to see when you wake up!!! Thank you guys for all the support. Im really glad that so nice people are around who appreciate my work and help me improve. Thank you so much!
[Nexus 5X Original Android Development] jugoslavpetrovic:
No, no... It's not just work appreciated, also the personality, very much.
[Nexus 5X Original Android Development] milouk:
Thank you very much my friend! The same goes for you!!
[Nexus 5X Original Android Development] fleischbanane:
I can only agree with that. :D
[Nexus 5X Original Android Development] nirogu325:
To be honest, non-OC builds are redundant. OC is never forced, only optional (set manually by the user) and stock frequencies are set by default.
[Nexus 5X Original Android Development] milouk:
That is exactly why i was thinking of discontinuing the non OCed version.
[Nexus 5X Original Android Development] aalleexxnn:
is voltage levels we see in EXKM undervoltaged by default or it is qualcomm's default?

and for me i can't change voltage levels (upper=1070mV and lower=1000mV) at 1824 MHz. Kernel adiutor can't change its too.

(non overclocked 2.8 version)

---------- Post added at 04:13 PM ---------- Previous post was at 04:09 PM ----------

all freqiencies up to max for big and littie clasters to 640mV? It is stable?
[Nexus 5X Original Android Development] milouk:
The Voltage is Default. Also ive been told that Kernel Adiutor is not good for changing the voltages (the changes do not persist after a restart of the app) so my suggestion would be EXKM.

Edit: if you want to undervolt 1824 frequency youll have to install the OCed version, undervolt the 1824 and keep it as max instead of an other OCed frequency. I hope i didnt confuse you.
[Nexus 5X Original Android Development] milouk:
Having the thermal threshold so low is going to cause some lag. I would suggest 45-46 . Regarding the cpu workque i will try to add in the next release hopefully this week. Thanks for the feedback.
[Nexus 5X Original Android Development] milouk:
Update: I have added power efficient workqeues. Wait for the next release for more details on added features ;)
[Nexus 5X Original Android Development] jugoslavpetrovic:
Yesterday I had the major phone crash, not beeing able to boot, device was not being able to let me in with my own pin code and then it said there was some data partition corrupted and I left with only reset phone option from there. I could not even get to twrp due to password. So, since I was losing everything anyway I formated data. That happened right after that post about laggs. I have no idea what caused it. Not referring to this kernel but all this I had after flashing this kernel.

I came from Shadow kernel via boot.img from rom to switch to this. The worst thing is that I lost everything in device and I was on the go, very frustrating situation that gently lead me to the Hulk mode, lol.

Anyway, I still did not recover well in some personal way, my titanium backup is lost.

As for the thermal threshold I keep it at 42 for a long time and I am aware of heating slowdowns. For now, since fresh system there are no lags and heatings, so I guess somerhing else made my day yesterday andnit was not this kernel.
[Nexus 5X Original Android Development] :
Why you don't let a titanium backup in the cloud or on your computer, playing with roms and kernel is always a risk, mostly when flashing a not mature kernel.

I also tested this kernel and switch back to shadow directly as it's not stable and futures rich enough, for now...
[Nexus 5X Original Android Development] jugoslavpetrovic:
Yea, I know. You are right. I am very mobile so very little time for constant cloud backup and my net at home is crappy as hell but I have found some backup of titanium on my pc which was not very fresh, I also had some issues with drivers conflicts on my pc as well yesterday, you know Murphys law, lol, so my phone was not able to be recognized...

Its gonna be fine
[Nexus 5X Original Android Development] milouk:
Well im sorry to hear that! I personally have been testing this kernel for a long time and had no issues. Also the source code is available. I havent done any major tweaks that would cause this. Thanks for the feedback. If you can keep testing the kernel for a couple more days i would appreciate it
[Nexus 5X Original Android Development] milouk:
Can you be more specific regarding the kernel not being stable enough? I havent had an issues at all. And also i have not made any major tweaks which would cause any instability. Also regarding not being feature rich enough is there a feature you miss and would like me to add? Thank you.
[Nexus 5X Original Android Development] jugoslavpetrovic:
I flashed only upstreamed build. Now after this what happened, it seems fine now. No lags. I don't think that kernel caused my crash, it just happened like that.

Features, well I guess that mentioned workque should be fine.
[Nexus 5X Original Android Development] milouk:
Thats very nice to hear. I have added workqeue in the next update. I will probably release it today or tomorrow.