yashsingh1/xdaforums huggingface dataset:
[Nexus 5X General] yochananmarqos:
I just tested my Thermal Tweaking 1.4 module with Magisk 15.0 and it flashed via Magisk Manager just fine. I will update all my modules to template 1500 soon, but there's no immediate need as Magisk 15.0 has backwards compatibility with template 1400.

FYI, this is the way I install / update Magisk:

Download Magisk via the Manager, but do not flash it

Reboot to recovery, flash the stock boot.img to clear the ramdisk

Flash Magisk before the custom kernel so it creates a backup of the stock boot.img just in case

Flash the custom kernel (ElementalX in my case) and reboot
[Nexus 5X General] paradoxiumwind:
I was using TWRP to flash them, but the systemless installer fails too saying something similar about magisk etc.

Edit: managed to flash magisk-thermal_tweaking_v1.4.zip using magisk, but can't flash thermal_tweaking_systemless_v1.2.2.zip with either magisk (says invalid filetype or something) or twrp (says magisk is not installed).
[Nexus 5X General] octavioromo:
Getting the same error message, any update/install instructions that may have worked for someone?

Thanks!
[Nexus 5X General] Razorless:
I'm not using Magisk right now so I can't give any more advice. All I can do is point to the intructions posted by [MENTION=5124760]yochananmarqos[/MENTION].
[Nexus 5X General] yochananmarqos:
I just tested thermal_tweaking_systemless_v1.2.2.zip using Magisk 15.3 on my 5X and it installed just fine. Not sure what to tell you.
[Nexus 5X General] Razorless:
There's got to be something we're missing here. Anyone who still has problems installing:

Please follow the exact instructions and tell us the exact error message at the exact installation step.
[Nexus 5X General] octavioromo:
The add-ons you have also flashed and version would be great also! The ROM and version as well.

I'm on the nightly ACIP 8.1, latest Franko 50, latest Magisk 15.3

Tried flashing once all the other zips were already installed on a previous recovery reboot
[Nexus 5X General] yochananmarqos:
None of that matters if we don't know what the error message is. Can you upload (please don't paste it here) your TWRP log after attempting to flash the systemless installer?
[Nexus 5X General] octavioromo:
Bam! Did this again and it worked.

Extracted boot.img from the nightly AICP>

In TWRP selected image then boot and flashed>

Flashed Magisk> Flashed: magisk-thermal_tweaking_v1.4.zip >

Flashed: thermal_tweaking_systemless_v1.2.2.zip (installed with no errors)>

Flashed: Franco v.50, rebooted and updated setting for the extreme profile.

All good now!

Really appreciate the help. Thanks again!

Question, when flashing nighties, im guessing ill have to flash this mod each time? Not quite sure in what cases or what mods will survive a dirty flash.
[Nexus 5X General] yochananmarqos:
You'll only have to reinstall the mod if you uninstall Magisk or wipe /data. However, if the nightly overwrites the boot.img, you'll need to flash Magisk and your custom kernel again.
[Nexus 5X General] Limuqingcheng:
thermal-engine-8992.conf has been encrypted

在Lineage OS 15.1 版本中，温控文件已经被加密，修改之后会执行高通默认温控，锁核现象更加严重。

In the Lineage OS 15.1 version, the temperature control file has been encrypted. After the modification, the default temperature control of Qualcomm will be performed, and the lock phenomenon will be more serious.
[Nexus 5X General] Razorless:
That's bad news. Is this exclusive to Lineage OS or do other Android 8.1 based ROMs have it encrypted as well?
[Nexus 5X General] Limuqingcheng:
I'm not very clear about other ROMs, but I think this is a trend and maybe it's going to be closed in the future.

对于其他ROM我不是非常清楚，但是我认为这是一种趋势，或许之后会向着封闭的方向发展。

This is the file encrypted:

[IMG="thermal-engine-8992.conf"]F:\桌面\Screenshot_20180310-201138.png[/IMG]
[Nexus 5X General] Razorless:
I am using ABC ROM (8.1) right now and can confirm that the thermal modifications still work. What kernel were you using? The one that came with the ROM?
[Nexus 5X General] Seyaru:
Hi here is a update for Magisk version for the new template.
[Nexus 5X General] Razorless:
Does the Magisk beta v16.4 require a new template? Because I used the installer v1.4 with Magisk stable v16 on Android 8.1 and everything is working fine.
[Nexus 5X General] yochananmarqos:
Yes, as noted in the 16.4 beta release notes:
[Nexus 5X General] Razorless:
Good to know, thanks. I updated the main post with the new magisk module.
[Nexus 5X General] paradoxiumwind:
won't install with the latest magisk version.. says magisk can't be found, is this still being maintained / updated?

Thank you
[Nexus 5X General] yochananmarqos:
I don't use my 5X much anymore, so I hadn't noticed. I updated the template for Magisk 17, try it out. I haven't tested it yet myself.
[Nexus 5X General] Wolfensteinjd:
The module installs fine, but the aroma installer can't find magisk. It looks like the installer tries to use the old magisk symlink at /magisk.
[Nexus 5X General] Razorless:
The aroma installer has not been updated for the new Magisk template. [MENTION=1917665]Seyaru[/MENTION] uploaded a version 1.5 version that does not need the aroma installer and just installs the recommended extreme profile. I renamed the version to extreme standalone and updated the OP. For now, you can just install the standalone version if you are content with using the extreme profile (been using it myself for a long time now, no problems so far, but no guarantees).
[Nexus 5X General] yochananmarqos:
Magisk module v1.4 is template 1400, v1.5 is template 1500 and v1.6 is template 17000. There is no difference otherwise. Version 1.4 and 1.5 should be removed from the OP to avoid confusion. Flashing it alone will indeed install the extreme profile.
[Nexus 5X General] Razorless:
Alright, I forgot to remove the non working 1.4 version. So your 1.6 works in the same way as the 1.5, they install the extreme profile, correct? In that case, I'll take down the aroma installer as well.
[Nexus 5X General] yochananmarqos:
Yes.
[Nexus 5X General] yochananmarqos:
I updated the systemless installer and uninstaller to reflect the new location of the Magisk image. Let me know if they work, I haven't tested them yet.
[Nexus 5X General] Razorless:
I can't download them right now, only get an "error 404". Other attachments work fine, though.
[Nexus 5X General] yochananmarqos:
Try again, it's working now.
[Nexus 5X General] paradoxiumwind:
Yeah it flashes fine using Magisks module thing but the aroma installer fails - how do I pick what profile to use (we need to be using extreme right?)

Thanks again.

Edit: replies with updated files while typing, will test now.

Edit2: aroma installer flashes fine
[Nexus 5X General] Razorless:
Everything should be back to normal now. I updated the OP with the corresponding files and notes.
[Nexus 5X General] rawe_etc:
question

hi there this's great . tweaking i'm using stock kernel nougat 7.1 well what i want just more fast on charging speed any sugestion wich version do i need or the v.1.6 is include this fast charging stuff .. thank you my freind

Btw i'm using Aukey PA-U28
[Nexus 5X General] Razorless:
I would recommend just installing the 1.6 version. It uses the recommended "extreme" profile by default and has the charging tweaks. However, the charging speed will only be slightly faster while the screen is on, the charging speed while the screen is off is not affected. As I said, it is not much, since there seems to be a hardcoded limit.
[Nexus 5X General] rawe_etc:
thank's man i will try .. :o
[Nexus 5X General] AyselEP:
apply on xiaomi mi 4c.

edit : with custom kernel. watermelon. thermal extreme
[Nexus 5X General] iPwn_:
I've actually tried adding thermal paste inside the 5X, and it's pretty easy (or the part I did is).

It doesn't accomplish very much though.

One difference between the 6P and 5X is that the layer separating the display and the chipset is metal on the 6P and some kind of plastic on the 5X. So adding paste between the metal shroud for the chipset and the metal display backplate allows heat to be dissipated into that backplate on the 6P.

It doesn't do much on the 5X since that layer is plastic.

Similarly, the back of the 5X is plastic and the 6P is metal. So improving thermal dissipation on the 6P to the actual back cover of the phone is very helpful. Hotter to hold, to be sure, but better for SoC temps. The plastic internals of the 5X and it's plastic back will not allow much improvement.

Now one thing the 6P guide was able to do that I didn't want to take any chances with because of my janky tools was actually removing the SoC's metal shroud and reapplying paste between the actual chip and shroud. I tried and it felt like I'd snap the entire board in the process so I gave up.

But I doubt that would make a huge difference either, because ultimately that shroud is quite small and temperatures are primarily limited by where the heat can go after that step.

Now the 5X is not very tightly packed. One potential improvement would be adding thin metal strips on both sides of the SoC shroud for a much larger effective heat sink area.

I stupidly tried this with aluminum foil, but that's far too flimsy to be effective, since it leaves large air gaps throughout and slides around. You'd need some kind of very solid strips, on the order of 0.5 mm thick.

If someone would like to try.

That said, I would not recommend opening up your phone because I've had issues with dust getting onto the actual camera lens every few weeks since I've done it, and I have to reopen it and hit it with compressed air. It seems just as well sealed as before, so I'm not sure how it's happening. This never happened before.
[Nexus 5X General] Razorless:
It is true that an aluminun backplate is much better for heat dissipation. However, the backplate is still the only way the for the heat to get out. Even if aluminum is a better thermal conductor than plastic, air is still a great insulator. The difference between the thermal conductivity between air and thermal paste are greater than the difference between aluminum and plastic (there are actually a lot of different "plastic" materials, some with decent thermal conductivity. Who knows what they used for the 5X)

This is probably the thing that makes the most difference. Have you ever heard of delidding an Intel CPU? Intel did such a bad job at applying thermal paste between the Die and Heat Spreader, that removing and reapplying thermal paste can drastically improve temperatures (5-10°C).

That is a difficult thing to do. One would have to be sure that both, the gap between CPU Heat Spreader and added Heat Sink, AND the gap between Heat Sink and backplate are tight and have enough thermal paste inbetween. Just adding loose straps of metal could make the situation worse. So I would not recommend this.

Yeah, the backplate is fastened by a lot of tiny clips. Breaking even a few could be the cause of this.

tl;dr: would not recommend opening the phone, either.
[Nexus 5X General] gpvecchi:
It happened again, all CPUs were stuck @ 384 Mhz (extreme profile); a reboot fixed it.
[Nexus 5X General] Razorless:
I really don't think this is related to the thermal-engine. It has to be something else, sounds more like a govenor profile problem.
[Nexus 5X General] andyrtr:
I suggest to also slightly increase the battery monitor threshold to keep charging while using the phone with display active (car navigation or gaming). There's another thread about this.

Gesendet von meinem Xperia Z3 Tablet Compact Wifi mit Tapatalk
[Nexus 5X General] iPwn_:
Right, so my point about the backplate was that if you can fill the air gaps with thermal paste between the SoC and the actual metal back of the phone, you're greatly improving heat transfer between the chip and the phone body. Like you said, because air is a great insulator.

And yes, I'm aware of delidding and an aware of the possibilities with direct solder, good paste, bad paste, improvements with Devil's Canyon, etc. This isn't quite the same because removing the shroud does not expose the die. The shroud I'm referring to is actual one piece that covers 4 or 5 different chips on the board. In this case, that's the PMIC, radio amplifier, RAM and SoC stacked in one block, the flash memory, and audio codec.

Removing it doesn't directly expose the die, that's in the little black SoC chip. Since all of these chips likely have different z-heights, adding paste can certainly remove an air gap, but I don't think that's really worth the risk considering there's certainly already paste there. I can't imagine adding better paste or a better application will help greatly for a 3 W chip when the target is effectively a very small heatsink.

As for the metal plates, I did mean to say you'd use adhesive to hold then in place and apply paste between the shroud and the plates. You'd certainly have to experiment with widths and test to get it right.

And the clips aren't broken. They're all fine. I think it's the rectangular black adhesive layer between the camera and backplate that now is no longer airtight.
[Nexus 5X General] Razorless:
I measured the amperage the phone draws while charging. When the screen is off, it charges with around 2-3A. With screen on and idling (sitting on the desktop and doing nothing) it also charges fast. As soon as I do anything, even just scrolling the homescreens, it drops to around 1A.

Then I increased the [battery_monitor] temps by 4°C each (form 36/34 ; 39/38 to 40/36 ; 43/42) and it actually made a difference. The phone charged at more than 2A even when in use. However, under heavy load it still dropped to around 1A. Afer cooling down a bit, it jumped between 1A-2A while in use.

So it seems charging rate depends on CPU load and battery temperature. For a 2+A charge with medium to heavy use, the temp would need to be raised even further, and that I would NOT recommend. In the end I would say it's best to leave the [battery_monitor] in the thermal-engine alone. Even a 4°C increase didn't make a big enough difference, and batteries are much more sensitive to heat than the rest of the components.

You are right, it does not expose the Die. However, between the SoC and the Backplate is still another plastic layer without thermal paste. So it goes like this: Die->Heatspreader (probably soldered since it is so small)->Air->plastic (shroud)->Air->plastic (Backplate). That is still a lot of air. But I would agree that the difference with applied thermal paste wouldn't be drastic. Noticeable, but not something to write home about.

There is no paste used in the 5X.
[Nexus 5X General] andyrtr:
For heavy use there's no safe solution but for light use e.g. in car navigation this small increase in really helpful. Without it would even discharge because the battery threshold temps are constantly hit. I guess I'll add that increase to your "normal" conf file.
[Nexus 5X General] Razorless:
Navigation counts towards heavy usage. GPS and and a high screen brightness alone will heat up the phone pretty fast. In addition, the CPU load while Navigation is significantly higher than browsing or similar "light" usage.

I tried this with the [battery_monitor] temp increased by 4°C. The "heavy" usage I described in my previous post was actually a Navigation app. Even with the temp limit increased by 4°C, the amperage would not go above 0.5-1A.
[Nexus 5X General] bblzd:
Turn by Turn car navigation using the screen is like playing a 3D online game with GPS capabilities. It's heavier usage than playing an average mobile game as it is loading the CPU, GPU, network and GPS.
[Nexus 5X General] HesThatGuy:
[MENTION=1138056]Razorless[/MENTION] I've been running this on the stock kernel(unencrypted) for about a day now and it seems to be working pretty good. Thanks for the tests and configs.
[Nexus 5X General] Infinite Jest:
I've been having some annoying thermal throttling issues with the stock kernel during normal use (ie web browsing). Going to give the stock kernel tweaks a shot!! Thanks!!

Also, do you guys recommend an app for monitoring and tweaking these kinds of settings? Been out if the rooting game for a while.

UPDATE: After about 2.5 hours of on-screen use, I do feel as though the "normal user" settings for the stock kernel have helped in keeping my device from throttling in that multitasking and web browsing with multiple tabs at room temp has resulted in fewer slowdowns and jitters than I used to get. Lets see if this holds up over the next week!
[Nexus 5X General] khanjui:
I can recommend EX kernel and kernel manager.
[Nexus 5X General] quakeaz:
Has anybody inspected the thermal-engine.conf file in Android N preview? Anybody try N preview? Was hoping maybe improved drivers, etc would at least lessen the heating issues.
[Nexus 5X General] Razorless:
update extreme v3: I decided to increase the temperature at which the charging current gets reduced since it is pretty low. Increasing it by 4°C should be safe. This will still not rapidly charge your phone during navigation or gaming, though. However, with light usage such as browsing this will increase the charging rate.
[Nexus 5X General] Psychofrantics:
Guys what do you recommend. The temprature where I reside are in 40 °C. Plus I also use a case. I have used heavy duty v2 before
[Nexus 5X General] Razorless:
I was thinking the same thing. That's why I created the monster profile. Be careful, though, we still don't know what kind of thermal protection (warning/shut off) the phone and SoC use. Use at your own risk.

I would recommend extremev4. Been using this for quite some time and the temps seem safe. At 40°C ambient you would not get to use much of the power of the SD808 with other profiles. I also recommend taking off the case, since it insulates the phone even more and increases temps further.
[Nexus 5X General] Razorless:
It's up now. I forgot to upload it, because I also updated heavy and extreme.
[Nexus 5X General] Razorless:
I really don't think they would ship a phone without overheating protection hardcoded on the chip. Similar to what people already see on stock LG G4.

This setting in the thermal engine may be responsible for overheating protection:

[CPU0_MONITOR]
algo_type monitor
sensor cpu0-1
sampling 1000
thresholds 115000
thresholds_clr 110000
actions shutdown
action_info 0

Every core 0-5 has such lines. The G4 has the same code in its thermal engine. This would suggest a maximum temperature of 115°C, but I don't want to push my luck by trying.

On the other hand, it would be weird to have such an important setting in a text file in system/etc. In that case, the phone would not be able to protect from overheating should the file system be corrupted. So the real dangerzone could be even beyond that, or maybe this setting is not what I think it is.
[Nexus 5X General] PhoenixTank:
Cool mod but I have to be missing something: Where is this mystical "core control" setting in Franco Kernel? I seriously can't see it in FKU.

Thanks!
[Nexus 5X General] Psychofrantics:
Another silly question guys. Do I also need to replace conf file after setting core control enabled and setting thermal limit to desired value?

I mean if I change values in Ex Kernel Manager, I am done. No need of replacing conf file. I am using latest elementalx
[Nexus 5X General] Razorless:
The so called core-control switch and the throttling temp are settings in the EXkernel manager. The throttling-temp changes only the hotplug temperature of the big cluster. With franco and elemental kernel, core control is enabled by default. If you didn't change it (for example through a script) then you do not need to worry. You still need to change the throttling temp, though, since the big cluster hotplug temp value in the thermal-engine is ignored on those two kernels. I don't know if kernel managers other than EXkernel offer this setting.

Both franco and elemental kernel use a standard big cluster hotplug temp of 46°C. They do not change the thermal-engine, but instead override the value for big hotplug. This is all the throttling temp does, changing the big cluster hotplug temp. All other limits are untouched, that's why you need the modified thermal-engine.
[Nexus 5X General] PhoenixTank:
Thanks you for the help and the explanation, Razorless. Going on that, it sounds like I have it set up correctly - haven't noticed any jank since using the file & fku change, so looking good!
[Nexus 5X General] Psychofrantics:
What is the temperature where you live? I tried extreme v4 but it increased my battery temperature sufficiently. And phone was more hit than my liking
[Nexus 5X General] Razorless:
If you want to experience the max temps, run a few Antutu 3D benchmarks. Just the 3D part, because the CPU part does not generate as much heat. After 3-4 runs the phone should reach throttle temp even with the monster profile. If you still feel comfortable, I will upload an insane version.
[Nexus 5X General] Razorless:
Have you pushed the phone to the throttle temp? To see when it throttles, I use trebn profiler and monitor GPU and CPU frequency with an onscreen overlay. Then I turn on Antutu 3D (the overlay collides with touch controls, so a game could be difficult) and let it run a few times until GPU drops to 300MHz and CPU to 0.96GHz. Only then have you pushed to phone to it's thermal limits.
[Nexus 5X General] Razorless:
You can edit the default overlays in trepn after switching to advanced mode (top left) and then going to settings->overlays.
[Nexus 5X General] khanjui:
Using monster profile since few days without having any problem. I think we can push a bit more (+2-4°).
[Nexus 5X General] Razorless:
Did you push it to the limit or just casual usage?
[Nexus 5X General] khanjui:
Generally normal usage, sometimes heavy multitasking.
[Nexus 5X General] Razorless:
I'd much rather wait for someone to actually hit the thermal limit and see how that goes.
[Nexus 5X General] gpvecchi:
With monster profile I read 85°, it's quite high.

I'd suggest to find which phone gas the highest throttle temp, and apply it to N5X, not to go further, I think it can be risky...
[Nexus 5X General] Razorless:
Alright then, I will create another profile. Just a reminder that the SoC is probably the most heat-resistant part of the phone. Battery, camera, Fingerprint sensor and others might not take it so well.

That temp is most likely the core temperature and it's much higher than the rest of the temps. It's that high regardless of the profile you use, even on stock (but for a shorter amount of time). Modern CPUs can reach over 100°C in certain spots without taking damage, but it all depends where the temp is measured.
[Nexus 5X General] gpvecchi:
Yup, I'm not worried of the CPU, but the rest around: display and Imprint were hot. And the plastic back...
[Nexus 5X General] Razorless:
For all who dare I uploaded an insane profile. This could be dangerous, you have been warned.

I also updated the heavy profile with the charging current fix. Also fixed a value in monster, only a minor change.
[Nexus 5X General] khanjui:
Is insane profile is higher than stock G4 thermal config?
[Nexus 5X General] Razorless:
It's difficult to compare these two degree for degree. The phones have a different case and overall build, so heat dissipation is different. They also use different algorithms for throttling. So a temp in the G4's thermal-engine might perform differently than the same temp in the 5X's.

From my understanding, though, the G4 is somewhere between the extreme and monster profile. So insane should be a bit higher, actually.
[Nexus 5X General] khanjui:
Insane feels realty hot. I will continue with extreme profile.
[Nexus 5X General] iHies:
Will this make the device colder/more comfortable to hold? Or is this solely to improve performance?
[Nexus 5X General] Razorless:
This thread is all about raising the thermal limit, so of course the phone will be warmer. If you think your phone is too warm with stock settings, you could lower the thermal limits or simply underclock the big cluster and GPU.
[Nexus 5X General] iHies:
How can I lower the thermal limits? But that will make it throttle even more right unless I downclock right?