Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Consider the fan optimal if fanspeed is dropping but within the optim…
Browse files Browse the repository at this point in the history
…al speed window.
  • Loading branch information
ckolivas committed Jun 14, 2012
1 parent 55e3217 commit 1e38883
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions adl.c
Expand Up @@ -1065,6 +1065,11 @@ static bool fan_autotune(int gpu, int temp, int fanpercent, int lasttemp, bool *
if (newpercent != fanpercent) {
applog(LOG_INFO, "Setting GPU %d fan percentage to %d", gpu, newpercent);
set_fanspeed(gpu, newpercent);
/* If the fanspeed is going down and we're below the top speed,
* consider the fan optimal to prevent minute changes in
* fanspeed delaying GPU engine speed changes */
if (newpercent < fanpercent && *fan_window)
return true;
return false;
}
return true;
Expand Down

0 comments on commit 1e38883

Please sign in to comment.