[X Style (Pure) General] Razorless:
Hey everyone, over at The Nexus 5X Forum we tweaked the thermal throttling behavior of the phone. Since The Moto X Pure uses the same SOC, we can also apply this (with a few changes) to this phone.

Update: Please uninstall the old version and reinstall as soon as the new version is online.

Update: Now with a Aroma zip isntaller, see post 2. thanks [MENTION=7547198]tohtorin[/MENTION]

I don't own this phone, so I need to rely on some volunteers to test things out.

Of course, you need root and this could potentially damage your phone, so don't crank up the thermals too high. I'm not responsible for any damages, tweak at your own discretion. Even though the phone (probably) has built in overheating protection, be careful.

Naturally, you can also use this to decrease the temps if you think it's too hot, downclock the CPU's, or disable the big cluster alltogether.

One more thing. This will work on the stock kernel. I don't know about other kernels, since they might implement their own thermal tweaks.

First, I'll show you how to actually see the CPU and GPU frequencies. You need the following apps: trepn profiler, stability test and Antutu 3D bench. Trepn profiler can show the frequencies in an overlay, switch to advanced mode and select what you want to see. Don't look at the CPU temperature, it looks crazy hot, but it's irrelevant. The real important temperatures cannot be shown in here.

Stability test is a small app that pushes the CPU so you can quickly see the throttling behavior. Antutu 3D bench is just that, a benchmark for 3D. If you run this a few times and the GPU does not drop it's frequency, than we can confirm that it doesn't throttle.

Let's start with the GPU. It seems that, on this device, the GPU is not throttled at all. It seems strange, since the Nexus 5X's GPU is throttled quite aggressively. If someone could confirm this, that would be nice.

The file that needs to edited is located under /system/etc and is called thermal-engine-clark.conf. You need a root explorer to edit the text and set permissions.

Let's move on to the big cluster (the fast cores): There are two relevant entries for them.

The hotplug temperature determines at what temperature the big cores are shut down.

[HOTPLUG-CPU5] and [HOTPLUG-CPU4]
thresholds [B][COLOR="Blue"]44[/COLOR][/B]000 and [COLOR="blue"][B]47[/B][/COLOR]000
thresholds_clr [COLOR="blue"][B]42[/B][/COLOR]000 and [B][COLOR="blue"]45[/COLOR][/B]000

The blue numbers represent the temperature at which the core is shut down. Thresholds means when it is shut off, thresholds_clr when it goes back online. Keep at least 2°C between them.

Next is the throttling behavior. Both cores' throttling is determined by this setting:

[MONITOR-QUIET-1]
thresholds [B][COLOR="blue"]44[/COLOR][/B]000 [COLOR="blue"][B]45[/B][/COLOR]000 [COLOR="blue"][B]46[/B][/COLOR]000
thresholds_clr [B][COLOR="blue"]42[/COLOR][/B]000 [COLOR="blue"][B]43[/B][/COLOR]000 [COLOR="blue"][B]45[/B][/COLOR]000
action_info [B][COLOR="SeaGreen"]1632[/COLOR][/B]000 [COLOR="seagreen"][B]1248[/B][/COLOR]000 [COLOR="seagreen"][B]960[/B][/COLOR]000

Again, the blue numbers show the temperature, and thresholds means when it clocks down, thresholds_clr when it increases the clock. Keep at least 1°C between them. The green numbers show the clock speed. That means @44°C the big cores' frequencies wil be decreased to 1.632 GHz (down from 1.824 GHz) and so forth.

Now to the little cores. Only one of them is shut off at a certain temperature:

[HOTPLUG-CPU2]
thresholds [B][COLOR="Blue"]48[/COLOR][/B]000
thresholds_clr [B][COLOR="Blue"]45[/COLOR][/B]000

The throttling behavior:

[MONITOR-QUIET-0]
thresholds [B][COLOR="Blue"]46[/COLOR][/B]000 [B][COLOR="blue"]48[/COLOR][/B]000
thresholds_clr [COLOR="blue"][B]44[/B][/COLOR]000 [B][COLOR="blue"]46[/COLOR][/B]000
action_info [COLOR="SeaGreen"][B]1248[/B][/COLOR]000 [COLOR="seagreen"][B]960[/B][/COLOR]000