[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: fan control on thecus n2100



Frank A. Kingswood wrote:
> Martin Michlmayr wrote:
>> * Gaudenz Steinlin <gaudenz@debian.org> [2008-01-09 11:27]:
>>  
>>> How can I set the fan speed manually now and how do I enable automatic
>>> fan control (if possible)?
>>>     
>>
>> I don't know which tools to use to control it automatically, but here
>> are instructions for manual use:
>>
>>    By default, the fan should run at full speed. If you need to
>> regulate the speed, you need to
>>    locate the pwm files in /sys:
>> find /sys/ | grep pwm
>> /sys/devices/platform/IOP3xx-I2C.0/i2c-0/0-002e/pwm2
>> /sys/devices/platform/IOP3xx-I2C.0/i2c-0/0-002e/pwm1
>>
>>    If you want to stop the fan, you have to write the value zero to
>> these files:
>> echo 0 > /sys/devices/platform/IOP3xx-I2C.0/i2c-0/0-002e/pwm2
>> echo 0 > /sys/devices/platform/IOP3xx-I2C.0/i2c-0/0-002e/pwm1
>>
>>    You can activate full speed using the following commands:
>> echo 255 > /sys/devices/platform/IOP3xx-I2C.0/i2c-0/0-002e/pwm1
>> echo 255 > /sys/devices/platform/IOP3xx-I2C.0/i2c-0/0-002e/pwm2
>>
>>   
> See http://www.debonaras.org/wiki/Info/N2100FanControl for a shell
> script that regulates the fan by reading system and disk temperatures.
> Fan control has only a very small control range, and the script needs to
> be tuned for that, but when that is done it works just fine.

I've had a play with the script and found:

a) In the example /etc/init.d/temper stopping the daemon only does:

echo 255 >/sys/devices/platform/IOP3xx-I2C.0/i2c-0/0-002e/pwm2

which doesn't return the fan to full speed! You need to do

echo 255 >/sys/devices/platform/IOP3xx-I2C.0/i2c-0/0-002e/pwm2

as well I think, can somebody confirm this?

b) In /usr/local/sbin/temper the calculation R=$((1500000/$(cat $SPEED)))
for fan RPM seems to be rubbish, as $SPEED rises the reported RPM falls!

regards,

Colin

-- 
Colin Tuckley      |  +44(0)1903 236872  |  PGP/GnuPG Key Id
Debian Developer   |  +44(0)7799 143369  |     0x1B3045CE

Ethernet n.: something used to catch the etherbunny.


Reply to: