THERMAL
This driver is completely new to everyone. Its a much simpler driver and it works much more effectively for me. I have coded 3 steps into the base thermal driver.
-> low, 45C, 1350MHz
-> mid, 55C, 918MHz
-> max, 70C, 486MHz
So when it gets to these temps it will throttle to the freq set. I have tried to keep these steps similar to previous releases for simplicity. This can be changed in sysfs or through the scripts attached. Kangaroo script is the one by headless updated for new thermal and cpu cap drivers. Other script is for thermal only. Please use these as the new thermal driver is NOT supported by any apps.
new driver also features smart polling. This means, that when the CPU temp is low it will poll less frequently, to save power. When the cpu nears the low temp point, it will poll slightly faster. As the CPU gets hotter and hotter it will poll faster and faster. This is to make sure that the CPU is throttled when it needs to be, otherwise it may get too hot before polling again
This is the new thermal driver we are using from now on. I will be working on refining it, and if anyone wants to review the code its on my git. Its been reliable in my testing
The thermal driver is derived from myfluxi thermal for N4, ported to HTC One and with some new features and enhancements added by me.