yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] jlmntl:
Yeah, familiar with the magisk install process, but normally I've been able to install individual magisk modules without reflashing PureNexus kernel. Your suggestion to do so with this module made me think about elementalX modifications to the boot image being the issue. I'll test on a bit and report back.
[Nexus 5X General] rachanta:
[MENTION=1138056]Razorless[/MENTION] should thermal throttling be enabled?

What is the correct setting if we use the thermal-engine-8992.conf files from this thread?

# MSM_THERMAL - Defaults

write /sys/module/msm_thermal/core_control/enabled 1

write sys/module/msm_thermal/vdd_restriction/enabled 0

write /sys/module/msm_thermal/parameters/enabled Y

write /sys/module/msm_thermal/parameters/temp_threshold 51

OR

# MSM_THERMAL - Defaults

write /sys/module/msm_thermal/core_control/enabled 1

write sys/module/msm_thermal/vdd_restriction/enabled 0

write /sys/module/msm_thermal/parameters/enabled N

#write /sys/module/msm_thermal/parameters/temp_threshold 51

If we chose parameters/enabled N, parameters/temp_threshold wont show up and wont matter, right?
[Nexus 5X General] Razorless:
I can only tell you what I have tested with ElementalX Kernel. This kernel has a setting for "msm_thermal", that doesn't seem to do anything, and "core control" as well as "thermal throttling", that override the hotplug temp for the big clusters. With this kernel, you have to set the hotplug frequency in a kernel manager and enable core control. Otherwise, the big cluster will never shut off. The other values set in the "thermal-engine-8992.conf" determine the throttling temperatures. I do not know the underlying code in the ElementalX Kernel, so I don't know exactly what changes were made to the thermal behavior.

I presume that "msm_parameters enabled" refers to "msm_thermal on/off" and "temp threshold" to the hotplug temperature of the big cluster. If that is the case, than it does matter and the second option you posted should be correct.
[Nexus 5X General] Xharos:
I'm currently trying to get my powerbank, which does 5V/3A via USB C, to actually charge my 5X while playing Pokémon GO. I don't even want it to charge fast, I just want it to charge, because no matter what I do, the battery of the phone always goes down, not up. As long as I get it to go up, I'm happy with any charging speed. I'm trying to change the thermal file to no avail. Any tips?
[Nexus 5X General] peltus:
What software (ROM/kernel) are you running? How did you apply the file and which version did you try? A little more info would be welcome.
[Nexus 5X General] Razorless:
The charging rate of the battery depends on many factors. The temperature in the thermal-engine is only one of them. CPU/GPU usage may be another factor, but I haven't tested that. Increasing the battery temp in the thermal-engine does not increase the charging rate beyond a certain threshold. It can only help a little, there might be hardcoded limits in the kernel.

You could try to reduce the GPU frequency or disable the big cluster and see if that helps. Also, you could ask in the various kernel development threads, maybe the devs know more about the charging behavior.
[Nexus 5X General] butthurtlocker:
This is all a little beyond me but I'd really like to try it. Can you explain how to implement the v4 extreme profile specifically? I'm on PN with stock kernel. Do I just change values via a kernel manager app?
[Nexus 5X General] Xharos:
Currently Stock ROM + ElementalX kernel, and I'm changing the values in the file via creating custom magisk modules. I've checked that the modules I'm creating work.

I'll experiment with GPU/CPU frequencies, but having to resort to that would suck :( I'll ask in the franco kernel and elementalX kernel threads to see if I can bring this to the dev's attention, but for some reason I doubt it. Thanks!
[Nexus 5X General] butthurtlocker:
Thanks for the fast response! Which zip would I use? I'm using SuperSU so would I want the systemless non magisk zip?
[Nexus 5X General] flatpedals:
If you flash a rom update, that rewrites /system, along with thermal engine, so yeah, you have to reflash the mod after every update.
[Nexus 5X General] alex7171:
Is there anyone else with problems to pass SafetyNET on Magisk with this mod? I really need this to use my phone in my city, but I want to use MagiskHide too :(
[Nexus 5X General] yochananmarqos:
No issues here.
[Nexus 5X General] alex7171:
No idea. It's strange.
[Nexus 5X General] Razorless:
I'm not using magisk myself (still on 6.0.1 with good-old-system-root) so I cannot help.

But without more information it will also be hard for others to do anything. What did you do before this problem started? What ROM are you on, what kernel etc.
[Nexus 5X General] alex7171:
I was on PureNexus. Tbh, I didn't use Magisk but then, I installed AOSPA (paranoid Android) with ex kernel and I tried to use Magisk hide, and then I realised that I wasn't able to surpass the Safety net block.

The weirdest thing I that today everything looks fine, even with the surround module. My safetynet sign is green, and I can use Magisk hide perfectly. I did not do anything special since yesterday :confused:
[Nexus 5X General] simondo22:
What a question. Try it and you'll see.
[Nexus 5X General] gpvecchi:
Isn't that the default for EX kernel?
[Nexus 5X General] Razorless:
True, but for a stock thermal-engine I found 44°C works much better. That was the reason for the question.

However, the question regarded the edited thermal-engine. For an increased big cluster PID throttle temp, 46°C is better.
[Nexus 5X General] gpvecchi:
Oh, OK, so, if I don't care of heat and battery you suggest to use heavy thermal engine and 46°, right?
[Nexus 5X General] Razorless:
Gaming is focused on using the GPU for a longer time, therefore the big cluster throttles and shuts off sooner than on normal or heavy. You could try heavy if you don't mind higher phone temperatures.

For clarifacation:

Using these thermal-engine tweaks does not necessarily decrease battery life. It only negatively impacts battery life if you are using the phone for so long or so heavily, that it would throttle or shut off the big cluster (or GPU/screenbrightness) with a stock settings thermal-engine.
[Nexus 5X General] roofrider:
A little confused. According to the initial recommendation, core control needs to be enabled and msm_thermal disabled (these are default on EX) and all that needed to be done was to set the thermal throttling to 44 (from 46). Does this still hold true? Because as per this OP, EXKM only sets the hotplug temperature of the big cores to 44 and the big cluster throttling temp still needs to be changed manually. Also why is 44 not present in any of the 3 configurations in the OP? Many still believe that just changing the thermal throttling in EXKM to 44 does it. If one does not also change the throttling temp to 44/42 (since hotplug is at 44 and not 46?), it remains at 39/37 (stock). So this means cores will be throttled much earlier but will be taken offline only at 44°C (or worse at 46). Is that a good thing?

And by "any: throttle big cluster 46/44," are you saying that irrespective of points 1 and 2 which set the hotplug temp on stock and EX kernel respectively, the big clusters need to be throttled to 46/44 manually?

So basically nothing needs to be changed once EX kernel is flashed since those are the default settings. But, like I said above, doesn't the throttling temperature need to be changed as well?

What do you mean by 'completely stock settings'? Doesn't EX only change the "thermal throttling"? So everything else in the thermal engine conf is still stock.

I have some other doubts too, but let me get these out of the way first.
[Nexus 5X General] gpvecchi:
Yeah, that wasn't clear to me too. Now I understood: if you don't change the thermal control.conf, you just need to put 44° in EX kernel manager; if you use one of the different .conf in the OP, you should set the temp accordingly to the one used (always in the OP).
[Nexus 5X General] roofrider:
If that is the case, then .conf files in the OP and simply changing the throttling temperature (hotplug) in the app, achieve different things. With the latter, the throttling temperature of the big cluster is untouched, whereas with the .conf files, these temperatures change according to the hotplug temperatures. Not sure which is the intended mod here. Or maybe I have things confused, lol.
[Nexus 5X General] Razorless:
It is all described in the OP, but let me shortly sum it up:

With the stock thermal-engine, enabling core control in a kernel manager and setting temp to 44 yields the best results

If you are on stock kernel (or phasma? still not sure), then the hotplug temp of the big cluster probably has to be set in the thermal-engine. I don't know what enabling core control does on phasma or stock kernel. If someone wants to test it, feedback would be appreciated.

If you are using elemental/franco, you have to enable core control and set the desired temp according to the profile in a kernel manager. On those kernels, all hotplug temps for the big cluster in the thermal-engine are ignored, and disabling core control disables any kind of hotplug management.
[Nexus 5X General] Razorless:
A new engine has arrived: extreme

Not for the faint of heart!
[Nexus 5X General] gpvecchi:
It seems buggy: with cold CPU all cores stay at 384 MHz. The heavy duty V2 is fine...
[Nexus 5X General] Razorless:
That is strange, I'll look into it.

update: I could not replicate this issue, probably was an erroneous setting in your govenor profile or kernel manager setting.
[Nexus 5X General] gpvecchi:
Tried again, this time worked; so, or bad download, or permissions not applied correctly...
[Nexus 5X General] Razorless:
update extreme_v2: Increased the throttle temp of the big cluster. Throttling under medium/heavy load can cause lag. So now it doesn't throttle much before it goes offline. This results in a more fluid experience and smoother transition between big->little cluster.

update heavy_v2: was identical to v1, it's fixed now. Sorry for that.
[Nexus 5X General] VinciusG:
Hi everyone, I thought if it could be a good idea to do a hard mod to fix a little the thermal issue on the Nexus 5x just like someone did on the 6p by putting some thermal paste or thermal pad. Would it work in your opinion?
[Nexus 5X General] Razorless:
It would most likely make a noticeable difference for heat dissipation. Manufacturers are trying to cut costs everywhere, so there should always be room for improvement.
[Nexus 5X General] sasank360:
First of all, hats off. The amount of work and your observations deserve a lot of respect. Great work mate.

Hi everyone. I use 5X with chroma rom and elementalX kernel. There is something I observed that I want to share. I am sure a lot of you guys know this already.

My setup is I run CPUs at stock frequency 1.8GHz for A57 and 1.44GHz for A53. Interactive governor with ghostpepper profile.

As for GPU, I used to run it at 180MHz min and 367MHz max. My usage is mostly basic, with web browsing and IM. With that config, the device used to run warm,

after 5-10 min of continous usage. Using device more than 30 min, device gets moderately hot and continues to remain so. The heat does not build up any more, it

saturates after 30 min of web browsing / streaming. However phone will get hotter if I use camera or play games.

About 4 days back, I made a fresh install of chroma rom + elementalX kernel. This time however I made one change to the setup described above.

I set max GPU frequency at 490MHz and min at 180Mhz. CPU is same. Now comes the interesting part. Even when GPU is clocked higher than earlier, for the same type

of usage, phone did not get as hot as it used to. It got JUST warm when web browsing, streaming and mildly hot (bearable) while long gaming/camera sessions.

Battery life improved a little too. With earlier setup I used to get 2 days atleast with 4hr 30 min - 5 hr SOT. Now I am getting 5:30- 6 Hours over same 2 days.

I think the reason for phone getting hot with 1st setup is because gpu load was high as it was forced to do stuff at low freq. I do not know how this affects CPU, because A57 cores were throttled and sent packing (idle) after 15-20 min of usage. So GPU heat is clearly affecting the way CPU works. Now that I have increased max freq of GPU in 2nd setup, the load is lower, so less heat is being produced and big cores of CPU are able to stay online for longer periods of time.

Is my explaination correct ? Thanks for reading this.
[Nexus 5X General] Razorless:
The GPU does indeed heat up the phone quite fast and that naturally affects CPU throttling.

About the other thing, you are right as well. Every chip has a range of maximum efficiency. It is true that running the GPU at lower clocks but higher load can actually increase the power draw. The performance/power ratio might be worse, so running higher or lower clocks will decrease efficiency. The smaller the device/battery, the more you will notice such things. On a desktop PC or even Notebook, a few Watts doesn't make a noticeable difference. For a phone, a single Watt is a huge difference.

It's the same with cars. Driving in a higher gear does not always mean that the engine requires less fuel. Engines also have a small range of optimum performance/fuel ratio. In fact, gasoline engines have a horribly low efficiency in low RPMs and are much more efficient at about halve their max RPM.
[Nexus 5X General] Smultie:
Wouldn't just keeping the GPU at 600 MHz be the best then?
[Nexus 5X General] Razorless:
The answer is a clear "maybe".

We don't know at what clock speed the GPU (Adreno-418) is most efficient. To test this, we would need to be able to precisely measure the power draw of the GPU. It may have been Qualcom's intention to squeeze out more performance, just because higher benchmark scores sell phones easier than power saving and efficiency.

Another thing to note is what the user is actually doing. While playing a game that is not limited by the CPU, the GPU will try to push out as many frames as it can. So long as it does not reach the framerate-cap. Naturally, a GPU @ 600MHz and 100% load will draw more power than @ 300MHz and 100% load. The interesting questions are things like, does 300MHz and 100% load draw more power than 600MHz with 50% load? (note: performance most likely does not scale linear with clock speed, this was just a quick example)

And the last thing is the GPU governor (msm-adreno-tz is the default one). As far as I know, it is performance oriented. That means it ramps up the clock quite fast, even at a low GPU load.

So you see it's not as easy as on a PC, there we can measure almost anything. The best thing we can do is testing through try and error. That is what they are doing at the CPU governor thread. The same thing holds true for CPUs as well. Running at 1GHz and 100% may or may not be worse than 1.25GHZ with 75%.
[Nexus 5X General] Razorless:
Sounds like it could be a ROM issue, but that's only a guess. Well, as long as it works (for) now...
[Nexus 5X General] Wawax:
Hello people can you explain for me how to install this mod properly because whatever I do I can't set the max CPU freq to 1440 and big cluster to 1824 I'm on stock developer preview 4 of Android o
[Nexus 5X General] Razorless:
This mod does not affect the CPU governor. That problem sounds like a kernel issue.
[Nexus 5X General] Wawax:
Ok thanks
[Nexus 5X General] francesco totti:
Hi , does this work on Android Oreo ??
[Nexus 5X General] Razorless:
The system-method should work as long as you got root, unless they changed the thermal-engine behavior. Magisk probably needs an update. But I haven't tried either yet.
[Nexus 5X General] francesco totti:
Tested supersu method and it's working fine , thanks.
[Nexus 5X General] stifmaster81:
install magic, what settings should I put on the cpu del ex Kernel manager ? I mean thermal Thermal strangulation etc etc thanks

Enviado desde mi Nexus 5X mediante Tapatalk
[Nexus 5X General] Razorless:
If you want to use this mod with EX Kernel manager, the only settings you need to change in the app are "thermal trottling [set it to the profile temp, eg. 51 for extreme]", "core_control [enabled]" and "msm_thermal [disabled]".
[Nexus 5X General] stifmaster81:
thank you very much

Enviado desde mi Nexus 5X mediante Tapatalk
[Nexus 5X General] bland.life:
For EX Kernel manager, is flashing the Magisk part needed?

Or its just changing the 3 options in the app?
[Nexus 5X General] Razorless:
The Magisk part is not needed if you install it with the "system-method", the three options in the Kernel Manager have to be changed regardless of the installation method. Also, the Magisk module is outdated and will most likely not work anymore (system-method still works).
[Nexus 5X General] bland.life:
So the "system-method" install file is a must?

All this years I've been setting the 3 options in EX Kernel manager only without installing the magisk or the "system-method" install file.
[Nexus 5X General] yochananmarqos:
The Magisk module still works, FYI. That's why I hadn't bothered to update it to the newest template yet. However, as Magisk 14.X progresses, older modules may cause problems. Here's an update with the newest template (1400 as of writing).
[Nexus 5X General] Razorless:
The thermal-engine has to be modified through one of the installation methods. Increasing the thermal-throttling without a modified thermal-engine actually decreases performance. See the first post for more details regarding the installation.

Good to know and nice work, thanks. OP has been updated.
[Nexus 5X General] Milan P.:
Where would I find msm_thermal in the Franco kernel app?
[Nexus 5X General] paradoxiumwind:
I'm using LoG 4.0 tweaks here: https://xdaforums.com/showpost.php?p=74091541&postcount=7049

Will I get better performance if I ditch that and switch to some of these thermal throttling settings in this thread? My phone doesn't get too hot unless I leave pokemon go running for a long time, and since installing elemental X kernel / LoG tweaks I never get the thermal warning in the top navbar anymore.
[Nexus 5X General] davidhasnexus:
Yo guys, awesome thread!

I just want to ask if I set this right... Im on Phasma kernel - Extreme v4 , did I set the options right?

Thanks :highfive:
[Nexus 5X General] Razorless:
Not every kernel manager has this setting. However, as far as I know, it's off by default so you shouldn't worry.

I haven't really looked into all the tweaks of this mod, but it appears to be only kernel/governor tweaks and no thermal-engine tweaks? If it doesn't change the thermal-engine then you will get better performance by installing this thread's mod. In either case, these two mods should not conflict with each other (since the mod from this thread only changes the thermal-engine, not the governor).

Yea, looks good, even though I don't know what wq_power_saving does. EXkernel doesn't have this setting.
[Nexus 5X General] paradoxiumwind:
Thanks.

It says flash those zips - flash them in TWRP even if I have magisk app manager installed?

I use elementalX kernel so I did those tweaks, but the final one "and set "throttling temp" according to the profile", is that "Thermal Throttling: 38"? and according to the profile what should it be set to? There's a lot of throttling temp numbers in the first post (could do with being cleaned up if you ask me since the instructions at the top seem pretty clear if that's all you need to do?) so not sure what I should set it to.

Thanks.

nevermind noticed this after installing and seeing the different profiles. so set it to 46 in kernel manager using normal.
[Nexus 5X General] paradoxiumwind:
So only Extreme profile works? I've been trying it and I like it but the phone gets so hot in my pocket on my ass, isn't increasing the thermal increasing the chances of the bootloop issue too?
[Nexus 5X General] Razorless:
The profiles above extreme means the old monster profiles. The maximum thermal throttling temperature is hardcoded somewhere. Therefore, with these profiles, only the shut-down temp of the big cluster would be affected. As a result, the big cluster would be kept online even though it wasn't utilized any longer which then resulted in the small cluster throttling sooner.

It goes like this normal->gaming->heavy->extreme, they all work. If your phone gets too hot you should try a lower profile, like heavy.

As far as I know, the boot loop is caused by the big cluster failing, probably because of voltage (which isn't altered by this mod). However, in theory, more heat means more wear and a reduced lifespan, so use this mod at your own discretion.
[Nexus 5X General] paradoxiumwind:
Thanks.
[Nexus 5X General] paradoxiumwind:
I'm using either normal or gaming with glassfish elementalx profile from here: https://xdaforums.com/showpost.php?p=68330029&postcount=4418

are they compatible?

either way, when playing pokemon go, my phone gets super hot and the game gets laggy and my phone in general runs like crap, even after a reboot - I have to turn it off and let it cool down before it runs properly again.

any suggestions?

thanks
[Nexus 5X General] Razorless:
This mod is compatible with everything that does not affect the thermal-engine (kernel/CPU-profiles do not), so yes it is compatible with ElementalX profiles.

PokemonGO heavily utilizes the GPU, that's why the phone gets so hot so quickly. You can try the heavy profile since it throttles at a higher temperature. PokemonGO will still heat up your phone after a few minutes, but the big cluster will be reactivated much sooner. So your phone will be at it's regular speed soon after closing the app.
[Nexus 5X General] paradoxiumwind:
Thanks, but if I want PGO to run like butter then I should not use any of these? I don't care about the heat in terms of like, holding the phone etc, as long as it's not gonna break something by running so hot for so long.

---------- Post added at 11:45 AM ---------- Previous post was at 11:42 AM ----------

Thanks, but if I want PGO to run buttery smooth, then I shouldn't use any of these?

I don't care personally how hot the phone gets in my hand etc, my only concern about heat is the phone breaking or something (bootloop?)

Thanks
[Nexus 5X General] lcrponte:
[MENTION=4756866]paradoxiumwind[/MENTION] And that kind of statement is the one that makes me wonder... If your only concern is about the phone breaking because of the heat, why are you flashing any of the profiles? If you did fully understand what this tweak is all about and are not flashing stuff blindly, you should know right from the start that more heat means less lifespan for the CPU. So... Yeah the "something (bootloop?)" will come more sooner than later eventually in the mid/long term.
[Nexus 5X General] Razorless:
With the heavy profile you will get the smoothest PGO experience possible on this phone (at least until someone manages to increase the throttling temperatures even further, but that might be dangerous). However, this phone is severly limited by the heat dissipation from the SOC to the surrounding air. This is a hardware issue (and engineering failure) that no software can ever fix.

As far as I know, the reason for the bootloop issue has not been found. There are some assumptions, but it seems LG and Google are not to keen on getting to the root of it.

But generally speaking, yes, more heat means more wear and therefore a reduced lifepan of the CPU. Most CPUs are obsolete, however, long before they fail. In any case, use at your own discretion.
[Nexus 5X General] paradoxiumwind:
Thanks.

I updated Magisk today to v15, tried to flash the zips again and it errors out: "/data/magisk isn't set up properly, please install magisk v14" "Updater process ended with ERROR: 1 Error installing zip file"

So I guess they need updating or something.
[Nexus 5X General] Razorless:
I'm not the one who created the module, but I've asked [MENTION=5124760]yochananmarqos[/MENTION] to look into it.