Browse Source

Don't try to explicitly drift to exactly the target temperature, aim for just below it.

ckolivas 14 years ago
parent
commit
c009c6cd74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      adl.c

+ 1 - 1
adl.c

@@ -872,7 +872,7 @@ static void fan_autotune(int gpu, int temp, int fanpercent, bool *fan_optimal)
 	} else {
 		/* We're in the optimal range, make minor adjustments if the
 		 * temp is still drifting */
-		if (fanpercent > bot && temp < ga->lasttemp && temp < ga->targettemp) {
+		if (fanpercent > bot && temp < ga->lasttemp && ga->lasttemp < ga->targettemp) {
 			if (opt_debug)
 				applog(LOG_DEBUG, "Temperature dropping while in target range, decreasing fanspeed");
 			newpercent = ga->targetfan - 1;