system76 / ec

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

fan: Add fan-off hysteresis value #460

Closed crawfxrd closed 3 months ago

crawfxrd commented 3 months ago

Add a hysteresis for fan-off to prevent fans from constantly starting/stopping when the system temperature hovers at the minimum fan table value.

Note: 2°C was arbitrarily chosen.

TODO:

Test:

Ref: https://github.com/system76/firmware-open/issues/250