pwmconfig
Hi all,
I gave a try to pwmconfig and there are two bugs I'd like to report:
1* The script hangs if the config file does not exist. It creates the file /etc/fancontrol, and hangs right after, with the message "Loading configuration from ..." (it should display the file name, that is, /etc/fancontrol, there). Patch attached, I'll commit it unless someone objects.
2* After running pwmconfig, the temperatures reported by sensors are all wrong (and not by a few degrees).
Before:
M/B Temp: +31?C (limit = +42?C, hysteresis = +40?C) CPU Temp: +51.4?C (limit = +60?C, hysteresis = +56?C) P/S Temp: +31.4?C (limit = +42?C, hysteresis = +40?C)
After:
M/B Temp: -45?C (limit = +42?C, hysteresis = +40?C)
CPU Temp: +217.4?C (limit = +60?C, hysteresis = +56?C) P/S Temp: +211.4?C (limit = +42?C, hysteresis = +40?C)
Weird, isn't it? Running 'sensors -s' doesn't make them back to normal, I have to reboot in order to do so.
My sensor chip is an a99127f.
Additionally, pwmconfig does not work for me, but maybe that's just my system not supporting it.
Signature · 17 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/ -------------- next part -------------- Index: pwmconfig =================================RCS file: /home/cvs/lm_sensors2/prog/pwm/pwmconfig,v retrieving revision 1.2 diff -u -r1.2 pwmconfig --- pwmconfig 5 Jul 2003 16:00:20 -0000 1.2 +++ pwmconfig 21 Jul 2003 09:54:36 -0000 @@ -307,6 +307,7 @@ touch $X chmod 0660 $X chown root.root $X + FCCONFIG=$X else AskPath fi
Hi Jean,
thanks for testing and patching pwmconfig.
Regarding the tempsensor issue, does the same thing happen if you change PWM values manually?
Quoted 2 lines
Additionally, pwmconfig does not work for me, but maybe that's just my system not supporting it.
You mean your fans don't respond to PWM changes? There's a high chance your mainboard has no support, maybe this page has some info on it: http://www.almico.com/forumindex.php
If you're a bit crazy, you could add the fan control circuit yourself, then my homepage may be of use for you: http://www.hdev.de
Regards,
Marius
Quoted 2 lines
thanks for testing and patching pwmconfig.
Patch commited to CVS btw.
Quoted 2 lines
Regarding the tempsensor issue, does the same thing happen if you change PWM values manually?
I didn't try that. What values am I supposed to put there? I have two pwm files and their default values are different:
hyperion:/proc/sys/dev/sensors/as99127f-i2c-3-2d> cat pwm1 0 1 hyperion:/proc/sys/dev/sensors/as99127f-i2c-3-2d> cat pwm2 143 1
I just don't know what the values mean, so please tell me what I'm supposed to write to the files.
BTW, reading from the files did not break anything, at least :)
Quoted 6 lines
Quoted 2 lines
Additionally, pwmconfig does not work for me, but maybe that's just my system not supporting it.
You mean your fans don't respond to PWM changes? There's a high chance your mainboard has no support, maybe this page has some info on it:
http://www.almico.com/forumindex.php
Ah, that's the page I had been looking for. In your script, you suggest to go there: http://www.almico.com/speedfan.php. Don't you think we should change this URI in your script to
http://www.almico.com/forumindex.php? That's where the information really is.
BTW, I think I'll give a try to FanSpeed. That way I'll know what my hardware supports.
Quoted 2 lines
If you're a bit crazy, you could add the fan control circuit yourself, then my homepage may be of use for you: http://www.hdev.de
I am crazy for sure, but probably not to that extent ;) Nice work you did however.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 3 lines
BTW, I think I'll give a try to FanSpeed. That way I'll know what my hardware supports.
OK, this was an interesting experience I guess. FanSpeed 4.08 detected almost everything accurately, even some things I didn't get first with lm_sensors (and some things lm_sensors just doesn't do, such as the HDD temperature, 44 deg C). It detects two fan regulators, just as lm_sensors do, and they don't work, just as with lm_sensors. So that must be my hardware not supporting it, period.
But at least this doesn't break my temperature readings.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 7 lines
I didn't try that. What values am I supposed to put there? I have two pwm files and their default values are different:
hyperion:/proc/sys/dev/sensors/as99127f-i2c-3-2d> cat pwm1 0 1 hyperion:/proc/sys/dev/sensors/as99127f-i2c-3-2d> cat pwm2 143 1
The first value can take 0-255 giving the fan speed, the second one sould AFAIK be 0 or 1, for on/off, actually I didn't code that cleanly in fancontrol and pwmconfig. What happens to your temps when doing:
echo 0 0 > /proc/sys/dev/sensors/as99127f-i2c-3-2d/pwm1 echo 255 1 > /proc/sys/dev/sensors/as99127f-i2c-3-2d/pwm1
and:
echo 0 > /proc/sys/dev/sensors/as99127f-i2c-3-2d/pwm1 echo 255 > /proc/sys/dev/sensors/as99127f-i2c-3-2d/pwm1
Quoted 5 lines
Ah, that's the page I had been looking for. In your script, you suggest to go there: http://www.almico.com/speedfan.php. Don't you think we should change this URI in your script to
http://www.almico.com/forumindex.php? That's where the information really is.
Committed this.
Marius