Re: Fan control Thecus N2100/Debian Lenny
* Riku Voipio <[EMAIL PROTECTED]> [2008-01-24 22:58]: > > Looks like the pwm* arn't getting a value on boot that matches the state > > of the fan? > That has been fixed, although I'm not sure it has landed any of > the Debian kernels yet. It is definetly coming to 2.6.24. I put your 2.6.24 changes into our 2.6.23 kernel. -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Fan control Thecus N2100/Debian Lenny
Joey Hess wrote: > I was able to at least turn the fan off by echoing things to the pwm* > files. I haven't figured out how to turn it back on. :-) pwm1 = pwm2 = 0 is fan stop pwm1 = pwm2 = 255 is fan full speed pwm1 = 0; pwm2 = is variable speed where is between about 60 which is the lowest value at which the fan will reliably start rotating and approx 100 which seems to be full speed. Colin -- Colin Tuckley | +44(0)1903 236872 | PGP/GnuPG Key Id Debian Developer | +44(0)7799 143369 | 0x1B3045CE Try to learn from other people's mistakes, you haven't time to make them all yourself! - Anon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Fan control Thecus N2100/Debian Lenny
On Thu, Jan 24, 2008 at 02:50:55PM -0500, Joey Hess wrote: > Looks like the pwm* arn't getting a value on boot that matches the state > of the fan? That has been fixed, although I'm not sure it has landed any of the Debian kernels yet. It is definetly coming to 2.6.24. -- "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 Thecus N2100/Debian Lenny
On Thu, 24 Jan 2008 14:04:30 +0200 Riku Voipio <[EMAIL PROTECTED]> wrote: > Sorry, I think I got you confused. > > go to the directory where the pwm files is. In my system, the command > would be: > > cd /sys/class/i2c-adapter/i2c-0/0-002e/ > > and execute the following command there: > > grep . * Ah yes, now it is clear. Here are the results: fan1_exp:65535 fan1_input:73 fan1_max:169 fan1_min:0 fan2_exp:65535 fan2_input:169 fan2_max:169 fan2_min:0 in0_input:1696000 in0_max:204 in0_min:204 in1_input:1328000 in1_max:204 in1_min:204 in2_input:1696000 in2_max:204 in2_min:204 in3_input:904000 in3_max:204 in3_min:204 name:F75375 pwm1:0 pwm2:0 temp1_input:3 temp1_max:6 temp1_max_hyst:55000 temp2_input:3 temp2_max:6 temp2_max_hyst:55000 Al -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Fan control Thecus N2100/Debian Lenny
Martin Michlmayr wrote: > * Joey Hess <[EMAIL PROTECTED]> [2008-01-24 14:31]: > > I was able to at least turn the fan off by echoing things to the pwm* > > files. I haven't figured out how to turn it back on. :-) > > Write 255 to both files. Hmm, some more investigation. Both files had 0 after a reboot. And the fan was on. Then I wrote 0 to both files, redundantly. This actually turned the fan off! Writing 255 to pwm1 turned it back on. Followed by 255 to pwm2, with no change. Now both files have 255. If I echo 0 to pwm1, it turns off, 255, turns it back on. Looks like the pwm* arn't getting a value on boot that matches the state of the fan? -- see shy jo signature.asc Description: Digital signature
Re: Fan control Thecus N2100/Debian Lenny
* Joey Hess <[EMAIL PROTECTED]> [2008-01-24 14:31]: > I was able to at least turn the fan off by echoing things to the pwm* > files. I haven't figured out how to turn it back on. :-) Write 255 to both files. -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Fan control Thecus N2100/Debian Lenny
Al wrote: > On Thu, 24 Jan 2008 08:13:21 + > Colin Tuckley <[EMAIL PROTECTED]> wrote: > > > Hmm... I can only think of three reasons it's not working then: > > > > 1) The hardware is broken somehow. Mine has a 3 pin fan connector, > > does yours and is it plugged in correctly? > > > > 2) There is a bios setting of some sort that has disabled fan control > > - but I have no idea how you'd check that unless redboot has a > > mechanism. > > > > 3) The design got changed, is your N2100 very new (or perhaps very > > old)? > > I won't have time until tomorrow night to open the case and take a > look at the fan connector, so I can't say at the moment what that looks > like. > > Yes, this is a very new machine, it arrived about a week ago. > It had the v2.1.06 firmware, which I think would point to a quite recent > manufacture date. > > Maybe all I can do for now is wait and see what others report on the > recently manufactured N2100's My n2100 is similarly a very new model, shipped with the 2.1.06 firmware 2 weeks ago. The fan is plugged in and running at apparently full speed. (Although, before I put debian on it, at one point the box beeped long and loud and the firmware complained that the fan had failed. It seemed to be spinning when I checked. Odd.) It is a 3 wire fan. I was able to at least turn the fan off by echoing things to the pwm* files. I haven't figured out how to turn it back on. :-) [EMAIL PROTECTED]:/sys>find |grep pwm ./class/i2c-adapter/i2c-0/0-002e/pwm2 ./class/i2c-adapter/i2c-0/0-002e/pwm1 [EMAIL PROTECTED]:/sys/class/i2c-adapter/i2c-0/0-002e>cat pwm2 0 [EMAIL PROTECTED]:/sys/class/i2c-adapter/i2c-0/0-002e>cat pwm1 0 [EMAIL PROTECTED]:/sys/class/i2c-adapter/i2c-0/0-002e>grep . * fan1_exp:247 fan1_input:5949 fan1_max:159 fan1_min:0 fan2_exp:247 fan2_input:159 fan2_max:159 fan2_min:0 in0_input:172 in0_max:204 in0_min:204 in1_input:1336000 in1_max:204 in1_min:204 in2_input:172 in2_max:204 in2_min:204 in3_input:904000 in3_max:204 in3_min:204 name:F75375 pwm1:0 pwm2:0 temp1_input:38000 temp1_max:6 temp1_max_hyst:55000 temp2_input:38000 temp2_max:6 temp2_max_hyst:55000 -- see shy jo signature.asc Description: Digital signature
Re: Fan control Thecus N2100/Debian Lenny
On Wed, Jan 23, 2008 at 02:04:56PM -0800, Al wrote: > On Wed, Jan 23, 2008 at 10:22:50AM +0200, Riku Voipio wrote: > > Never heard of such problem. Which kernel version are you running? > > can you send the output of the following command: > > > > /sys/class/i2c-adapter/i2c-0/0-002e# grep . * > Hmmm, I can't quit figure out what that grep command means, but > the result is "No such file or directory" Sorry, I think I got you confused. go to the directory where the pwm files is. In my system, the command would be: cd /sys/class/i2c-adapter/i2c-0/0-002e/ and execute the following command there: grep . * The command is a trick to print both the name and value of each file in this directory. The output should look somewhat like: fan1_exp:0 fan1_full:0 fan1_input:0 fan1_min:0 fan2_exp:0 fan2_full:0 fan2_input:0 fan2_min:0 in0_input:1720 in0_max:2040 in0_min:0 in1_input:1344 in1_max:2040 in1_min:0 in2_input:1720 in2_max:2040 in2_min:0 in3_input:912 in3_max:2040 in3_min:0 modalias:f75375 name:f75375 pwm1:0 pwm1_enable:0 pwm1_mode:0 pwm2:0 pwm2_enable:0 pwm2_mode:0 temp1_input:49000 temp1_max:6 temp1_max_hyst:55000 temp2_input:46000 temp2_max:6 temp2_max_hyst:55000 uevent:DRIVER=f75375 uevent:PHYSDEVBUS=i2c uevent:PHYSDEVDRIVER=f75375 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Fan control Thecus N2100/Debian Lenny
On Thu, 24 Jan 2008 08:13:21 + Colin Tuckley <[EMAIL PROTECTED]> wrote: > Hmm... I can only think of three reasons it's not working then: > > 1) The hardware is broken somehow. Mine has a 3 pin fan connector, > does yours and is it plugged in correctly? > > 2) There is a bios setting of some sort that has disabled fan control > - but I have no idea how you'd check that unless redboot has a > mechanism. > > 3) The design got changed, is your N2100 very new (or perhaps very > old)? I won't have time until tomorrow night to open the case and take a look at the fan connector, so I can't say at the moment what that looks like. Yes, this is a very new machine, it arrived about a week ago. It had the v2.1.06 firmware, which I think would point to a quite recent manufacture date. Maybe all I can do for now is wait and see what others report on the recently manufactured N2100's Thanks for the help! Al -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Fan control Thecus N2100/Debian Lenny
Al wrote: > So these are the only .pwm files in /sys. > I've modified the script with the correct paths for my machine, and it > will write the changes to the .pwm files, but the fan never changes > speed, even with zero values in both .pwm files. Hmm... I can only think of three reasons it's not working then: 1) The hardware is broken somehow. Mine has a 3 pin fan connector, does yours and is it plugged in correctly? 2) There is a bios setting of some sort that has disabled fan control - but I have no idea how you'd check that unless redboot has a mechanism. 3) The design got changed, is your N2100 very new (or perhaps very old)? Colin -- Colin Tuckley | +44(0)1903 236872 | PGP/GnuPG Key Id Debian Developer | +44(0)7799 143369 | 0x1B3045CE Linux is not The Answer. Yes is the answer. Linux is The Question. - Neo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Fan control Thecus N2100/Debian Lenny
On Wed, 23 Jan 2008 22:22:33 + Colin Tuckley <[EMAIL PROTECTED]> wrote: > My version of the script (which works) is based on the one on the > Debonaires site and uses the tree from /sys/devices/platform *not* > from /sys/class Here's what I show: from /sys/devices/platform/IOP3xx-I2C.0 I have the following symlink: i2c-adapter:i2c-0 -> ../../../class/i2c-adapter/i2c-0 Which results in the /sys/class/i2c-adapter/i2c-0/0-002e path. So this is the same as: /sys/devices/platform/IOP3xx-I2C.0/i2c-adapter:i2c-0/0-002e The results of find /sys/ | grep pwm: /sys/class/i2c-adapter/i2c-0/0-002e/pwm2 /sys/class/i2c-adapter/i2c-0/0-002e/pwm1 So these are the only .pwm files in /sys. I've modified the script with the correct paths for my machine, and it will write the changes to the .pwm files, but the fan never changes speed, even with zero values in both .pwm files. Al -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Fan control Thecus N2100/Debian Lenny
Al wrote: > On Wed, Jan 23, 2008 at 10:22:50AM +0200, Riku Voipio wrote: >> Never heard of such problem. Which kernel version are you running? >> can you send the output of the following command: >> >> /sys/class/i2c-adapter/i2c-0/0-002e# grep . * > > Hmmm, I can't quit figure out what that grep command means, but > the result is "No such file or directory" > > The kernel version is 2.6.22-3-iop32x My version of the script (which works) is based on the one on the Debonaires site and uses the tree from /sys/devices/platform *not* from /sys/class Colin -- Colin Tuckley | +44(0)1903 236872 | PGP/GnuPG Key Id Debian Developer | +44(0)7799 143369 | 0x1B3045CE Common Sense is the collection of prejudices acquired by age eighteen. - A. Einstein -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Fan control Thecus N2100/Debian Lenny
On Wed, Jan 23, 2008 at 10:22:50AM +0200, Riku Voipio wrote: > Never heard of such problem. Which kernel version are you running? > can you send the output of the following command: > > /sys/class/i2c-adapter/i2c-0/0-002e# grep . * Hmmm, I can't quit figure out what that grep command means, but the result is "No such file or directory" The kernel version is 2.6.22-3-iop32x -- Al -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Fan control Thecus N2100/Debian Lenny
On Tue, Jan 22, 2008 at 08:39:12PM -0800, Al wrote: > /sys/class/i2c-adapter/i2c-0/0-002e/pwm1, (and pwm2) already had values > of zero before I made any changes. > So, echo 0 > /sys/class/i2c-adapter/i2c-0/0-002e/pwm2 > echo 0 > /sys/class/i2c-adapter/i2c-0/0-002e/pwm1 > has no affect on fan operation. > Is something missing in a lenny install, or am I overlooking some > detail? Never heard of such problem. Which kernel version are you running? can you send the output of the following command: /sys/class/i2c-adapter/i2c-0/0-002e# grep . * -- "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]