Re: fan control on thecus n2100

2008-01-10 Thread Colin Tuckley
Frank A. Kingswood wrote:
 Martin Michlmayr wrote:
 * Gaudenz Steinlin [EMAIL PROTECTED] [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=$((150/$(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.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: fan control on thecus n2100

2008-01-10 Thread John Winters
Colin Tuckley wrote:
[snip]
 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?

Sorry - I can't see the difference between those two.

Incidentally, I too have looked at that script.  There are references to
needing to work out a couple of values to suit your machine but no
indication of what the values represent or how you would work them out. 
Can anyone provide more information?

TIA,
John


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: fan control on thecus n2100

2008-01-10 Thread Colin Tuckley
John Winters wrote:

 Sorry - I can't see the difference between those two.

Oops! Typo.

You need to set both pwm1 and pwm2 to 255 to make the fan run at full speed
I think - anyone confirm? The existing script only does one of them.

Also, I've just noticed that it sets the fan to full speed *before* it kills
the daemon, which is unsafe since the daemon might run again before it gets
killed and leave you with a slow or stopped fan!

 Incidentally, I too have looked at that script.  There are references to
 needing to work out a couple of values to suit your machine but no
 indication of what the values represent or how you would work them out. 
 Can anyone provide more information?

The values are the temp difference for fan control FAN_RNG - which I've left
as 10 Degrees C and FAN_MIN which is the lowest fan speed control value to
output when not either stopping the fan (0) or running it at full speed
(255). I've currently got mine set to 60 rather than the provided 70.

I suspect it depends on how many hard drives you have fitted (one in my
case) and how good the airflow is in the box, with some of the ventilation
mods from the Debonaires page you can probably use a lower value. The idea
being that in the ideal case the fan would come on at it's slowest speed as
the box initially warms up and stay there all the time rather than coming on
too fast and then being cycled off and on again.

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.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: fan control on thecus n2100

2008-01-10 Thread Steve Gane




Colin Tuckley wrote:

  John Winters wrote:
  
Incidentally, I too have looked at that script.  There are references to
needing to work out a couple of values to suit your machine but no
indication of what the values represent or how you would work them out. 
Can anyone provide more information?

  
  
The values are the temp difference for fan control FAN_RNG - which I've left
as 10 Degrees C and FAN_MIN which is the lowest fan speed control value to
output when not either stopping the fan (0) or running it at full speed
(255). I've currently got mine set to 60 rather than the provided 70.

I suspect it depends on how many hard drives you have fitted (one in my
case) and how good the airflow is in the box, with some of the ventilation
mods from the Debonaires page you can probably use a lower value. The idea
being that in the ideal case the fan would come on at it's slowest speed as
the box initially warms up and stay there all the time rather than coming on
too fast and then being cycled off and on again.
  

Actually, it depends on the precise nature of your fan and it's control
system. The "minimum PWM setting for which the fan reliably runs"
varies considerably from one unit to the next, as does "the maximum PWM
number beyond which the fan speed ceases to increase". For me, anything
less than 62 and the fan is too easily stopped and does not restart,
anything greater than 90 is equivalent to 255. So, although the PWM has
a setting range of 256, my fan is only controlled over a range of about
30!

  
regards,

Colin

  






-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: fan control on thecus n2100

2008-01-10 Thread Colin Tuckley
Steve Gane wrote:

 Actually, it depends on the precise nature of your fan and it's control
 system. The minimum PWM setting for which the fan reliably runs varies
 considerably from one unit to the next, as does the maximum PWM number
 beyond which the fan speed ceases to increase. For me, anything less
 than 62 and the fan is too easily stopped and does not restart, anything
 greater than 90 is equivalent to 255. So, although the PWM has a setting
 range of 256, my fan is only controlled over a range of about 30!

Yes, I've discovered that too.

My fan won't start with a value less than 60 but will keep going once
running down to about 56.

Also the N2100 seems to have problems reading the actual fan tacho values, I
get a sudden drop in reported speed once the pwm value gets to about 80
despite being able to hear the fan actually running faster! Also note that
Riku's driver reports actual fan speed rather than tacho value and so the
calc at the end of the script isn't required.

There is also a bug in your /etc/init.d/temper script. You set the pwm value
to 255 for full speed before you stop the daemon. There is a chance that the
daemon might change the value again before the init.d script gets to killing
it, resulting in a possibly stopped or slow running fan. I've just updated
the Wiki.

regards,

Colin

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

Banging your head against the wall uses 120 calories an hour.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: fan control on thecus n2100

2008-01-10 Thread Colin Tuckley
Steve Gane wrote:

 Hey, it's not *my* script. But I think it does the job quite well.

Oh, your name is in the comment at the top of the page, so I assumed it was
yours.

Colin

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

APATHY ERROR: Don't bother striking any key.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: fan control on thecus n2100

2008-01-10 Thread Steve Gane

Colin Tuckley wrote:

There is also a bug in your /etc/init.d/temper script. You set the pwm value
to 255 for full speed before you stop the daemon. There is a chance that the
daemon might change the value again before the init.d script gets to killing
it, resulting in a possibly stopped or slow running fan. I've just updated
the Wiki.
  

Hey, it's not *my* script. But I think it does the job quite well.

regards,

Colin

  



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



fan control on thecus n2100

2008-01-09 Thread Gaudenz Steinlin
Hi

With kernel 2.6.23 the F75375 driver for the fan control was updated.
AFAICS it should now support automatic fan control, but I did not
suceeed in enableing it. Is there any documentation for the files in 
/sys/devices/platform/IOP3xx-I2C.0/i2c-adapter\:i2c-0/0-002e/

How can I set the fan speed manually now and how do I enable automatic
fan control (if possible)?

Gaudenz

-- 
Ever tried. Ever failed. No matter.
Try again. Fail again. Fail better.
~ Samuel Beckett ~


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: fan control on thecus n2100

2008-01-09 Thread Martin Michlmayr
* Gaudenz Steinlin [EMAIL PROTECTED] [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

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: fan control on thecus n2100

2008-01-09 Thread Riku Voipio
On Wed, Jan 09, 2008 at 11:27:22AM +0100, Gaudenz Steinlin wrote:
 suceeed in enableing it. Is there any documentation for the files in 
 /sys/devices/platform/IOP3xx-I2C.0/i2c-adapter\:i2c-0/0-002e/

see: Documentation/hwmon/sysfs-interface

 How can I set the fan speed manually now and how do I enable automatic
 fan control (if possible)?

Martin already explained the manual control. Automatic control using
just the fintek chip would require reliable reading of fan speed, which
does not appear to be the case on N2100. However, such tool can be
written for userland (I think someone did already?).

-- 
rm -rf only sounds scary if you don't have backups


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: fan control on thecus n2100

2008-01-09 Thread Frank A. Kingswood

Martin Michlmayr wrote:

* Gaudenz Steinlin [EMAIL PROTECTED] [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.


Frank


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]