]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ACPI: thinkpad-acpi: attempt to preserve fan state on resume
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 18 Oct 2008 17:23:52 +0000 (14:23 -0300)
committerLen Brown <len.brown@intel.com>
Wed, 22 Oct 2008 22:13:10 +0000 (18:13 -0400)
commit75700e53cd14ccc7a5a42547497dff11fe209186
tree33f4793b259d53147fe8c1064fd5470561ce6277
parent3fa8749e584b55f1180411ab1b51117190bac1e5
ACPI: thinkpad-acpi: attempt to preserve fan state on resume

Attempt to preserve fan state across sleep and hibernation if the fan
control mode is enabled.

For safety reasons, only the PWM OFF (fan at 100%) or maximum
closed-loop level (level 7) are preserved.  If the fan state was set
to anything else, it will not be restored.

Also, should the fan be at PWM OFF mode at resume, it will be left at
that state (but this is extremely unlikely, no ThinkPad firmware was
ever reported to do this).

For reference, the known states used for fan control upon resume by
the firmware  are either "auto" or "level 7" depending on whether the
laptop wakes due to normal conditions or a thermal emergency.

Fixes: http://bugzilla.kernel.org/show_bug.cgi?id=11331
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Richard Hartmann <richih.mailinglist@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/thinkpad_acpi.c