system76 / ec

System76 Open Source Embedded Controller
GNU General Public License v3.0
318 stars 72 forks source link

Use a moving average for temperatures #480

Open crawfxrd opened 2 months ago

crawfxrd commented 2 months ago

Mitigate some fan noise by using a moving average instead of an instantaneous readings for thermals.

When starting a load, CPU will report rapid jumps in temp temperature. These spikes end up getting recorded by the cooldown table, and will cause the fans to run at higher than necessary duties for the actual loads.