Samsagax / hhfc

Hwmon Handheld Fan Controller (hhfc) is a user space driver for fans based on hwmon sysfs
GNU General Public License v3.0
8 stars 1 forks source link

Refactor behaviour of lower point and min_duty_cycle #9

Closed Samsagax closed 1 year ago

Samsagax commented 1 year ago

This configuration needed to add a low point below the lowest point of the interpolation to be able to use fan shutdown functionality.

Refactor the Interpolator so it will cut down to 0 or 100 if out of bounds. Enforce 0-100 in the interpolator and refuse to give other values. Then, in the fan controller, add logic to extract the lowest value as minimum allowed. (This can lead to eliminate the min_duty_cycle configuration?)

We need to warn users that fans can break if set up to operate in between 0 and the minimum spin-up threshold.