On 05/12/11 14:37, Vadim Zhukov wrote:
Hello all.
Here is a patch that allows for me to work on other things. :) Basically,
it makes OS choose fan mode instead of firmware. Main feature here is
enabling of "disengadged" mode when temperature goes critical, picking
80C as a "red line". Now I can fully load CPU on my X201i -
say, "make -j 4" - and it still works instead of being powering off by
acpitz(4).
All information was taken from Linux's thinkpad_acpi.c:
http://lxr.free-electrons.com/source/drivers/platform/x86/thinkpad_acpi.c
(look at "2f" register).
I also fixed a few style nits here and there.
That's a nice approach you are taking here. Switching to disengaged only
when cpu gets too hot and letting firmware handle fan autoregulation
otherwise. When I find the time I, maybe I will finish my patch to allow
fan regulation from userspace, but then certeinly keep your approach as
failsafe.
Christopher