Re: [PATCH] acerhdf: Fix fan activation with new thermal governor

From: Zhang Rui
Date: Sun Feb 24 2013 - 21:58:31 EST


On Sun, 2013-02-24 at 12:28 +0100, Borislav Petkov wrote:
> On Sat, Feb 23, 2013 at 08:20:10PM +0100, Borislav Petkov wrote:
> > From: Borislav Petkov <bp@xxxxxxx>
> >
> > The new step_wise thermal governor wasn't able to handle the one-trip
> > point design of acerhdf where we want to turn off the fan if we go under
> > the 'fanoff' temperature and to turn it on only after exceeding the
> > 'fanon' temperature.
> >
> > Do that by looking at the current fan state and return the temperature
> > accordingly.
> >
> > Suggested-by: Zhang Rui <rui.zhang@xxxxxxxxx>
> > Cc: Peter Feuerer <peter@xxxxxxxx>
> > Cc: Andreas Mohr <andi@xxxxxxxx>
> > Cc: Alexander Lam <azl@xxxxxxxxxxxxxx>
> > Signed-off-by: Borislav Petkov <bp@xxxxxxx>
>
> Ok, ignore this one for now - the suspend/resume path doesn't pan out
> somehow, need to do some more handholding here.
>
hmm,
this reminds me that we should do a thermal_zone_device_update() for
each registered thermal zone when resuming from system suspend.

thanks,
rui

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/