yashsingh1/xdaforums huggingface dataset:
[Nexus 5X Original Android Development] milouk:
Yes i noticed that but personally i dont find the drainge to be significant more however performancs and temperature is better.
[Nexus 5X Original Android Development] jugoslavpetrovic:
I enabled vdd restrictions, non-oc, clocks are fine.
[Nexus 5X Original Android Development] :
Did you modified something that could cause a high drain from mobile network or wifi, could it be CDG or maybe radios not flashed properly?
[Nexus 5X Original Android Development] milouk:
I have modified something regarding wifi but that wouldnt cause any baterry drain. Morever you screenshot shows 2% Wifi drainage and 3% Mobile drainage in a course of 12.35 hours. Which is totally acceptable and cannot be considered as excessive drain.
[Nexus 5X Original Android Development] Benik3:
Hello.

How does the kernel act in thermal throttling?

Because on other kernels I found that my phone is pretty unusable very quickly. E.g. taking photos with HDR makes the phone warm quickly (the post processing is pretty power hungry) and the thermal turn off both Big cores. This impact the performance like hell and the phone is so lagy that it's not almost usable. In my opinion it would be better to just lower frequency on BOTH cores (little + big) and then just e.g. turn off one core of big, one core of little etc.

Otherwise the Big cores are off, but all little cores are On and on pretty high frequency. So the phone is still hot and performance is bad.

Does Hima hotplug help to thermal throttling?

Thank you :)
[Nexus 5X Original Android Development] milouk:
Well the best way to find out is to try it yourself and find the right balances for your taste. Hima Does help with thermal but you have to disable core control.

Also another thing you can do is Overclock the little cores so even if the big ones go offline you wont lose performance. Finally, dont forget to experiment with Hima's min_cpus_online parameter to find what suits best your needs. Sphinx Kernel provides many workarounds for thermal batter and performance issues.
[Nexus 5X Original Android Development] nirogu325:
No issues here with that.
[Nexus 5X Original Android Development] :
How you are getting this without airplane mode and with messenger installed ?
[Nexus 5X Original Android Development] nirogu325:
Intelliactive governor on both clusters (302MHz enabled as minimum for both clusters), noop scheduler, about -15mV UV or -10mV I honestly forgot. The rest is as the kernel came. ROM debloating through AROMA GApps and Keep Awake turned off for Google Play Services. All that after a clean kernel flash by flashing stock kernel first then clearing up caches. I think I may get better battery life with other schedulers, gonna test maple or fiops which, in the past, has never failed me for that. FWIW, I'm using Resurrection Remix ROM and have FB Messenger but with FB Lite, not the regular FB.
[Nexus 5X Original Android Development] :
OK thanks for sharing!

Just wonder why you are using resurrection remix because personnaly my experience was bad with it and now lineage is for me the best so far.
[Nexus 5X Original Android Development] nirogu325:
OT: Because I helped test that build before release. It just works and has the customizations I need.
[Nexus 5X Original Android Development] jugoslavpetrovic:
Can you share what is safe to debloat with aroma gapps?

Maybe you can upload or copy-paste text from the rem.prop file from open gapps folder on sdcard.
[Nexus 5X Original Android Development] nirogu325:
I no longer have the files. Mostly everything except things like "setup wizard".
[Nexus 5X Original Android Development] :
Why debloat when using lineage?
[Nexus 5X Original Android Development] jugoslavpetrovic:
There are also some apps from lineage as well that some are not using, like kusic player, some live wallpapers and maybe more.
[Nexus 5X Original Android Development] :
Yeah!!! That's the only bad thing of this ROM, they put old and bad apps preinstalled.

But when he said gapps beloater I tought only Google apps.

Thanks you.
[Nexus 5X Original Android Development] jugoslavpetrovic:
Tried to experiment with lower zram size but the same script as for 1024, works when out 768mb but with 256mb it just turns off zram for some reason and yiu can see that unzipping arter boot, while for 768mb and for 1024 it does it seamlessly.
[Nexus 5X Original Android Development] Gabryele1976:
I don't know how this is possibile but it's amazing results :D
[Nexus 5X Original Android Development] milouk:
Hahahah thank very much my friend for your kind words and im also very happy youre enjoying Sphinx.
[Nexus 5X Original Android Development] milouk:
Guys sorry for not participating in the thread lately as well as for not releasing Version 2.9 (it is ready). Im moving out from my place in Denmark and im going back Home so im a bit busy these days. I will be back at home on Friday Night, so expect 2.9 to be released first thing on Saturday Morning. Nice things are coming. ? Cheers my friends!!

Hint: We got another "first" for bullhead in 2.9
[Nexus 5X Original Android Development] nirogu325:
Hmmmm...can you share your configuration? (governor, scheduler, if you're using hotplug or not, etc.)
[Nexus 5X Original Android Development] Benik3:
I must have some HW problem, because I have 1,4%/h in Deep Sleep and these are the best values :/

I even tried to replace my battery.
[Nexus 5X Original Android Development] Lughnasadh:
Not necessarily. Idle drain is affected by many variables. I would suggest to go over to the BBS thread, read the OP and submit a dump for analysis.

https://xdaforums.com/showthread.php?t=1179809
[Nexus 5X Original Android Development] milouk:
It honestly depends on what apps you are using, your mobile signal (this matters A LOT) , your CPU Governor etc. Most probably an app is doing a lot of background tasks or your signal is bad. To figure out a bad app is the isdue you can boot into safe mode and check if you got the same consumption. If not then it definetely is an app. To see if its the signal turn on Airplane Mode and check again your consumption.
[Nexus 5X Original Android Development] nirogu325:
Keep in mind his stats are about one hour period, not the most complete information because a lot of processes can happen between several hours. Your % per hour is about the same as me, as evidenced in a similar screenshot I posted accounting 8hrs or so not just 1hr. It's about so many variables and that's why I asked that user about his configuration. I'd like that user to run BBS at least 8hrs to see his idle drain.
[Nexus 5X Original Android Development] :
It's easy to reduce idle battery, just set airplane, stop all wakelock and select a power oriented governor.

But following these thing will make your device so less powerful that it doesn't worth it.

So the best to do is to let your device as it is by default.
[Nexus 5X Original Android Development] nirogu325:
Or just turn off the phone but that wasn't my point.
[Nexus 5X Original Android Development] :
Will try, thanks for advice!
[Nexus 5X Original Android Development] jugoslavpetrovic:
I flashed magisk module called "RAM management fixes by crok" just out of curiosity.

Here are some values that I got. There is also IO read ahead set to 1024kb with this and swappiness at 30. It states better multitasking with less refresh when switching.

What do you think this should work like in any perspective?
[Nexus 5X Original Android Development] Kaizoku-Otaku:
After using this kernel for 3 days I am really impressed with the result of battery life. It's been a long time since I saw 3 hours SOT on my phone and I am really grateful. Therefore, I am wondering if I could get even higher and better deep sleep with almost losing nothing of battery life and sacrificing as little of performance as possible. If it's not too much to ask, could you guys please share your ROM, SOT, Deep sleep loss and your overall configurations achieving this result?

I am sorry if I shouldn't be asking here, but I am all for battery life with amazing deep sleep with losing as low battery as possible. And, I would be eternally grateful if you could help out a fellow Nexus 5x user.

PS: I am sorry for my badly written English.
[Nexus 5X Original Android Development] nirogu325:
Check two pages back for my stats/config. I think OP also posted his configuration on one of those previous pages. Read up and experiment away because no two devices behave the same way.
[Nexus 5X Original Android Development] jugoslavpetrovic:
Well, somehow my device got a lot slower with this, so I disabled it. Maybe it has some better managment in some therms but not for me since it gets slow and lags, can't really tell cuz I didn't leave it longer. Maybe this is different for someone else.
[Nexus 5X Original Android Development] milouk:
Version 2.9

Ok, guys I have arrived home and it's time for version 2.9.

Note : In version 2.9 i decided to invest in the compiling procedure too instead of just adding features. I think that the compilation procedure is very critical in terms of performance and battery and thus should not be neglected. For this reason the changelog below includes many building/compiling changes that have vastly improved performance and battery life

Changelog :

-Added Wake Up Boost Driver

-Default Thermal Threshold is now 43 - it is the golden spot (you can always change it)

-Prioritize Fingerprint unlock when screen is off

-Display Optimizations for better battery

-Workqueue Improvements

-Merged a "hack" that can improve internet speed

-Fixed the bug that didn't let UnderVolting the highest frequency of the A57

-Update WireGuard Backend Module to version 0.0.20180625

-sdFAT Support for vFAT and exFAT filesystems

-Added Relaxed Governor

-Adapted Chill Governor to Little.Big Architecture

-Overclocked SLIMbus - This will provide the best possible audio our hardware can support. For more info on SLIMbus click here https://en.wikipedia.org/wiki/SLIMbus

-Now Compiling with UBER Toolchain 8.0.0 - This is the first kernel for bullhead to be compiled with the latest and greatest version of GCC

-Makefile Optimizations for better performance and battery life.

-New Hima Hotplug Script Attached

Cheers and Enjoy :highfive:
[Nexus 5X Original Android Development] Punkiderma:
You know what I love about this kernel, apart from the features, the performances and the innovations? The fact that you spend time explaining I'm a very clear and complete way everything that's going on within the development, so even people that have scarce understanding of the matter (like me :D) have the possibility to know WHY choosing this kernel and not others!

Thank you!
[Nexus 5X Original Android Development] Lughnasadh:
Yeah, those settings use way too much cache to store things. The default vm settings are pretty good, imo.

---------- Post added at 09:36 AM ---------- Previous post was at 08:48 AM ----------

:cool::cool::cool::cool::cool::cool:
[Nexus 5X Original Android Development] jugoslavpetrovic:
What is different in new hima setup?
[Nexus 5X Original Android Development] milouk:
Thank you very much my friend. The reason i do this is because when i wasnt a developer and used to flash other kernels/roms i couldnt understand anything from the changelog and the fact that developers enumerate changes which they think they are understandable by everyone is not realistic. I dont just want users to use sphinx. I want them to understand whats going on. So thank you for realising that! ?

Default min_cpus_online is now 3

And also before setting the parameter hima_hotplug_active to either 0 or 1 i first make sure that it deletes the previous entry instead of overwriting it. (Its the line starting with > ) - i did this because sometimes even if i run the script the changes on hima_hotplug_active wouldnt apply properly
[Nexus 5X Original Android Development] Lughnasadh:
v2.9 running like a champ. Fantastic work as always [MENTION=5533673]milouk[/MENTION] :good::good:

Thank you :)
[Nexus 5X Original Android Development] derkleinebroicher:
What is the best way, to apply the hima and the Zram scripts. As an init.d script? Or should it work with the script manager in the EXkernel manager? If so, what do I have to do?

EDIT: if important, I use magisk for root.
[Nexus 5X Original Android Development] milouk:
Thank you very much my friend. Very happy you are enjoying it.

Personally i use EXKM Script Manager but for some reason it doesnt work very well with HIMA script so youll have to run the script everytime
[Nexus 5X Original Android Development] Doomkopf:
Hey man, I got a question. Kernel Adiutor indicates me, that the frequency 2150Mhz and some other frequencies, that are above my max frequency setting (1824Mhz, I use the non-oced version) are used. This occurs only at the big cluster. Is this a bug in the app or in this kernel? Or is it even a feature you implemented? (Maybe that the CPU is overlocked while booting, so the device boots faster?)
[Nexus 5X Original Android Development] milouk:
Kernel Adiutor needs some seconds before applying settings. In these seconds all frequencies are used. If you notice these frequemcies have been used for 1 second. If you want to really see which freqs are used reset the indication after application on boot.
[Nexus 5X Original Android Development] Doomkopf:
I don't think I really expressed myself very good ^^' I am using the non-OC version of the kernel, so default maximum frequency should be 1824MHz, even if Kernel Adiutor didn't apply its changes yet. So, I should never use this frequency, even if I wouldn't use Kernel Adiutor
[Nexus 5X Original Android Development] jugoslavpetrovic:
I have the magisk as well. I put script files in /sbin/.core/img/.core/service.d. or /sbin/.core/img/.core/post-fs-data.d

The second one is exkm script runner folder and the first one is fine as well, works. Im not sure if .txt extension is like to be deleted on filename but I delete it anyway.
[Nexus 5X Original Android Development] milouk:
That could be an issue...can anyone else confirm this? Are you sure you flashed the non OCed version?
[Nexus 5X Original Android Development] srnoth:
Tried searching the thread - does this support FBE file based encryption? Tried a couple versions on my N5X with LOS15 with FBE, but it never gets passed the boot animation. Putting back stock LOS15 and it boots successfully.
[Nexus 5X Original Android Development] derkleinebroicher:
That's what I did too - put them into the service.d folder, removed the .txt extension and set permissions to 755. But nothing happens. :(

My magisk version is stable 16.0
[Nexus 5X Original Android Development] Doomkopf:
Yes, but I will reflash my rom + kernel tomorrow to be sure and report the result. But I am pretty convinced that it's the non-OC version, because the default max frequency in kernel adiutor is 1824MHz, without me changing the value/setting it on boot.
[Nexus 5X Original Android Development] milouk:
This is very awkward because i reverted the commit before building. Im waiting for your report after clean flashing. Sorry for the inconvinience
[Nexus 5X Original Android Development] jugoslavpetrovic:
Here is non OC on my side
[Nexus 5X Original Android Development] milouk:
Everything looks very correct to me. Well see when wmhe clean flashes.
[Nexus 5X Original Android Development] jugoslavpetrovic:
I have 16.4 beta but I believe it doesnt matter. Permissions on my side apply automatically to 755 for the files put there.

How are you sure nothing happens? Can you screenshot memory tab and cpu tab?

I can send you files I put and work fine for me, pm me your email.
[Nexus 5X Original Android Development] dechoder:
Any idea why my exkm runs its scripts from /su/su.d ? And the folder doesn't exist. I tried creating it, but it's gone after every reboot. I don't have magisk.
[Nexus 5X Original Android Development] fire7777777:
The voltage control how it work ? What is upper and lower ?

Gentle fair control what is ?

The hotplug how can i set ?
[Nexus 5X Original Android Development] jugoslavpetrovic:
Su.d comes if you have chainfire SuperSU.

Did you root your phone? And if yea, which root?

---------- Post added at 02:25 PM ---------- Previous post was at 02:21 PM ----------

It has been all discussed few in latest few pages. I would personally track down all those post to repost for you but I am on the go so it's a bit of a rough task right now. Search for post fir versuin 2.8, and then take a look posts that came later... Good luck

---------- Post added at 02:26 PM ---------- Previous post was at 02:25 PM ----------

It is correct on my side.
[Nexus 5X Original Android Development] derkleinebroicher:
I have to correct myself partially. Zram script works, and Hima script does work too with one exception. Going to sys/kernel/hima_hotplug/hima_hotplug_active, it still shows 0, but should be 1.

BTW, running the scripts via "init.d scripts support", which is an app from play store, everything including hima_hotplug_active is applied as intended. So personally, I'm fine with this solution, although I have no idea what is the issue, running the scripts from the service.d folder.
[Nexus 5X Original Android Development] milouk:
Are you using the latest Hima Script i provided in 2.9 or the initial one?
[Nexus 5X Original Android Development] derkleinebroicher:
I'm using the latest one.
[Nexus 5X Original Android Development] milouk:
Mm that weird. I used to have this issue with the initial script but never happened with the latest one. There must ne something going on with EXKM.
[Nexus 5X Original Android Development] derkleinebroicher:
I have no idea. But as I said, I'm fine with the app solution, which kind of imitates an init.d script. :good:
[Nexus 5X Original Android Development] milouk:
Gald you find a solution and very nice of you sharing the app with all of us as a working alternative ?
[Nexus 5X Original Android Development] jugoslavpetrovic:
For me both works fine.
[Nexus 5X Original Android Development] Doomkopf:
So I flashed both rom and kernel again, and the issue disappeared ^^ Seems like I flashed the OCed-version. Sorry if I caused trouble, I really thought I'm onto something :D
[Nexus 5X Original Android Development] milouk:
Hahaha dont worry at all my friend. Been there done that. These things happen all the time. No trouble at all. Enjoy ?
[Nexus 5X Original Android Development] dechoder:
Yes, rooted with SuperSU if I'm not mistaken.
[Nexus 5X Original Android Development] jugoslavpetrovic:
I am with magisk for some time, but trying to remember the path for supersu, I think it was /sbin/supersu/su.d but I might be wrong
[Nexus 5X Original Android Development] JJ111:
Hello Milouk,

I love your kernel and this active forum.

"But" it is now for me getting difficult to find things like your "Suggested EXKM Configuration" / takes lot of time to go through all the pages to find important posting (e.g. the suggested configurations are on page 43). Also the search is for me not helping much.

What do you think about putting important / relevant things on your first page for instance a "Suggested EXKM Configuration" section? And than if you find out even more optimum configuration you could easily change them there, so that we users can always have a look at your first post and get all relevant information.

You could also post there the newest (Hima/zRAM etc) scripts.

Maybe also a little FAQ section for newbies? Like what are standard Voltage values / how to get them back, if you messed with them or general questions like an other user asked a few posts ago "The voltage control how it work ? What is upper and lower?"

Would be really cool to find those answers at one place :)

Hope thats not to much asking - just some suggestions ;)

All the best,

JJ
[Nexus 5X Original Android Development] dechoder:
I have installed magisk now anyhow and all is good. Thanks.
[Nexus 5X Original Android Development] milouk:
This is a very nice suggestion. Im currently on Vacation. I will be back on Sunday. That is when im going to do this along with the release of Version 3.0 with the July's security patch.
[Nexus 5X Original Android Development] nirogu325:
Keep in mind there's no such thing as a golden configuration for all Nexus 5X units. There's a bunch of variables coming from user, nature and the device itself that will impact how the device runs. For example, my device doesn't run the Hima Hotplug well, but it does for other users. The best rule of thumb is to experiment with your device or leave it with the default kernel configuration. There's a certain danger for the OP [MENTION=5533673]milouk[/MENTION] if he puts in the original post some configuration that runs well for his unit but not necessarily for others because that could backfire with bad feedback for his work.
[Nexus 5X Original Android Development] milouk:
I will be mostly explaining what each feature does. The suggestions on some of them go without saying. E.x Gentle Fair Sleepers. On other features that there is no wrong or right and depend on each device i will leave it open for the users to choose.
[Nexus 5X Original Android Development] nirogu325:
I agree it's the wise choice to avoid trouble. :svetius:
[Nexus 5X Original Android Development] jugoslavpetrovic:
This thread rocks hard?
[Nexus 5X Original Android Development] JJ111:
Hey you all,

I just realized, that the (to me) annoying pulsing of the LED while charging is caused by the Sphinx Kernel. I saw in an earlier post, that also others were annoyed, so I asked milouk if it is possible to toggle it. But it is not, so he (amazing friendly and diligent as always) made a non-LED pulsing version, thanks a lot. For all who are interested:

https://androidfilehost.com/?fid=11050483647474829916

It is an modified overclockable version. Yes, I was one of those, who installed Non-OC. The reason was, that I want maximum battery life and I am simply afraid, that I might accidentally overclock. Milouk mentioned in a post, that by standard the OC is deactivated, so if one doesn't consciously changes the frequencies higher in Kernel Manager, it is the same as non-OC. So for me I don't need the non-OC version anymore.

Just honestly curious question to those still wanting a non-OC version: what reasons / benefits for you are there, that you still want milouk to also compile a non-OC version everytime?!

If you also now don't need it anymore, we could relieve hard working milouk a bit ;)

All the best to you all :)
[Nexus 5X Original Android Development] nirogu325:
Lol, I already had the stock LED version. I never shared it because I never asked for his permission. The dev knew about the non-OC build being redundant a few pages back.

[MENTION=5533673]milouk[/MENTION] - I'm looking for a kernel commit that deprecated Phasma kernel had. It's about the screen showing the battery percentage while charging with the phone off. Normally you just see an animated battery icon and that's it, no percentage below.
[Nexus 5X Original Android Development] milouk:
Since many users havent understand the OC thing yet, that all Sphinx Versions ship with stock clocks i will be building 2 versions. It honestly is 20 more minutes of building time hahah. Im Glad you are both satisfied with the stock led versions. Generally i make custom builds for other users too. All these custom builds can be found under the "Sphinx Test" folder in my profile on AndroidFileHost. (I also have some versions with partial OC -1632/2015- )

[MENTION=3059141]nirogu325[/MENTION] the commit you are talking about sounds really interesting and i would love to have a look and why not include it too. If you can point me to it , it would be awesone, otherwise i will have a look on Sunday when i return from my vacation.

Lastly, no one needs permission to share my work in this thread, im a big fan of Open Source and everyone is welcome to share my work. Though, if the sharing is done outside this thread i would like to be mentioned as my work.
[Nexus 5X Original Android Development] Lughnasadh:
Hope you have a great vacation. Well deserved... :)