From 666d724b8a2319764cecde2f759089ede588f924 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 5 Sep 2011 13:48:06 +1000 Subject: [PATCH] Set a safe starting fan speed if we're automanaging the speeds. --- adl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/adl.c b/adl.c index a8cd5a85..cbbacd5f 100644 --- a/adl.c +++ b/adl.c @@ -77,6 +77,8 @@ static ADL_ADAPTER_SPEED_SET ADL_Adapter_Speed_Set; static int iNumberAdapters; static LPAdapterInfo lpInfo = NULL; +static int set_fanspeed(int gpu, int iFanSpeed); + void init_adl(int nDevs) { int i, devices = 0, last_adapter = -1, gpu = 0, dummy = 0; @@ -292,8 +294,11 @@ void init_adl(int nDevs) /* Set some default temperatures for autotune when enabled */ ga->targettemp = opt_targettemp; ga->overtemp = opt_overheattemp; - if (opt_autofan) + if (opt_autofan) { ga->autofan = true; + /* Set a safe starting default if we're automanaging fan speeds */ + set_fanspeed(gpu, 85); + } if (opt_autoengine) ga->autoengine = true;