diff options
Diffstat (limited to 'nvkm/subdev/therm/base.c')
-rw-r--r-- | nvkm/subdev/therm/base.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nvkm/subdev/therm/base.c b/nvkm/subdev/therm/base.c index 3e9d941d..2ada3d71 100644 --- a/nvkm/subdev/therm/base.c +++ b/nvkm/subdev/therm/base.c @@ -267,8 +267,13 @@ _nouveau_therm_init(struct nouveau_object *object) if (ret) return ret; - if (priv->suspend >= 0) + if (priv->suspend >= 0) { + /* restore the pwm value only when on manual or auto mode */ + if (priv->suspend > 0) + nouveau_therm_fan_set(therm, true, priv->fan->percent); + nouveau_therm_fan_mode(therm, priv->suspend); + } priv->sensor.program_alarms(therm); return 0; } |