[ltp] [PATCH] ibm_acpi - Allow fan to be set to full speed

Thomas Renninger linux-thinkpad@linux-thinkpad.org
Mon, 22 Aug 2005 10:34:52 +0200


Ovidiu Achim wrote:
> Do you forseen for the future to be able to specify the fan level
> speed? I suppose there is way to do it.
> 
I just identified the EC address by looking at the DSDT code of the EC.
It came out that it's exactly the address already used for enabling disabling.
So I used some other values that used in DSDT/ibm_acpi module.

It came out that (damn I haven't saved our irc chat - don't know the exact value
limits any more), that values from x-y (e.g. 0x80, currently used to enable)
trigger some automatic fan control. Some others (e.g. 0x50) set it to permanent
full speed.
If IBM would share some specs we would probably find out that there are different
automatics (low, middle, high?) or whatever.
I don't know, but I could imagine that it is not possible to set a specific fan
speed directly, but that it is controlled by the embedded controller firmware.

If you are curious, you could try to:
echo 0x2f 0xXY >/proc/acpi/ecdump

0xXY == 0x00-0xff

    Thomas
> I'll test your patch this evening on my R51 and let you know.
> 
> Thanks,
> amo
> 
> On 8/21/05, Thomas Renninger <trenn@suse.de> wrote:
>>Efthym wrote:
>>>Hi Thomas,
>>>
>>>patch works for T21, ibm_acpi v0.11.
>>>When running on full-speed, /proc/acpi/ibm/fan:status reports disable
>>>instead of full-speed.
>>>Nevertheless, great job!
>>np.
>>
>>Hmmm, I do not dare to touch the enabled macro as it is used everywhere in
>>the module.
>>If you send ecdump output when disabled is displayed wrongly, maybe Borislav could
>>have a look at it, if this should really be integrated.
>>
>>       Thomas
>>--
>>The linux-thinkpad mailing list home page is at:
>>http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>>