From 4628db5bfdf4fd7e75f02ff23429f8564e8d81f0 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 7 Sep 2011 10:44:57 +1000 Subject: [PATCH] Change the fan speed by only 5% if it's over the target temperature but less than the hysteresis value to minimise overshoot down in temperature. --- adl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adl.c b/adl.c index efd8fe36..8fc2e6dc 100644 --- a/adl.c +++ b/adl.c @@ -864,7 +864,10 @@ void gpu_autotune(int gpu, bool *enable) } else if (temp > ga->targettemp && fanpercent < 85) { if (opt_debug) applog(LOG_DEBUG, "Temperature over target, increasing fanspeed"); - newpercent = fanpercent + 10; + if (temp > ga->targettemp + opt_hysteresis) + newpercent = fanpercent + 10; + else + newpercent = fanpercent + 5; if (newpercent > 85) newpercent = 85; } else if (fanpercent && temp < ga->targettemp - opt_hysteresis) {