Skip to contentSkip to conversation

lm-sensors: Add script for manual control of

PATCH In review Juerg Haefliger 2 participants 4 messages Jul 23, 2008 – Sep 22, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lm-sensors: Add script for manual control of

Add a script that provides manual control of the vt1211 PWM outputs. This script puts the vt1211 in automatic PWM mode and fools the chip into believing that there is a temp change to force the PWM outputs to specified values. This is necessary since the standard manual mode of the vt1211 doesn't seem to work.

Signed-off-by Juerg Haefliger <juergh at gmail.com>
prog/pwm/Module.mk +4 -2
Index: lm-sensors-3.0.0/prog/pwm/Module.mk
===================================================================
@@ -20,10 +20,12 @@
 PROGPWMDIR := $(MODULE_DIR)
 
 PROGPWMMAN8DIR := $(MANDIR)/man8
-PROGPWMMAN8FILES := $(MODULE_DIR)/fancontrol.8 $(MODULE_DIR)/pwmconfig.8
+PROGPWMMAN8FILES := $(MODULE_DIR)/fancontrol.8 $(MODULE_DIR)/pwmconfig.8 \
+                    $(MODULE_DIR)/vt1211_pwm.8
 
 PROGPWMTARGETS := $(MODULE_DIR)/fancontrol \
-                  $(MODULE_DIR)/pwmconfig
+                  $(MODULE_DIR)/pwmconfig \
+                  $(MODULE_DIR)/vt1211_pwm
 
 REMOVEPWMBIN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(SBINDIR)/%,$(PROGPWMTARGETS))
 REMOVEPWMMAN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(PROGPWMMAN8DIR)/%,$(PROGPWMMAN8FILES))
prog/pwm/vt1211_pwm new file +179 -0

179 lines not on this page · raw message

prog/pwm/vt1211_pwm.8 new file +52 -0

52 lines not on this page · raw message

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw

Re: [lm-sensors] [PATCH] lm-sensors: Add script for manual control

I was wondering what happened to this patch? I don't think it made it in. Is there a problem with it?

Thanks
...juerg

Quoted 8 lines · Juerg Haefliger

Add a script that provides manual control of the vt1211 PWM outputs. This script puts the vt1211 in automatic PWM mode and fools the chip into believing that there is a temp change to force the PWM outputs to specified values. This is necessary since the standard manual mode of the vt1211 doesn't seem to work.

Signed-off-by Juerg Haefliger <juergh at gmail.com>

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw

Re: [lm-sensors] [PATCH] lm-sensors: Add script for manual control

In reply to Juerg Haefliger

Hi Juerg,

That was posted while I was on vacation and I overlooked it, sorry. This is checked in now, with a small change: vt1211_pwm will not be installed by default, on the assumption that this chip isn't very popular, and most users will either not try to control their fans, or will be happy with the automatic mode. So you have to use "make install VT1211_PWM=1" to get the script installed. I hope that's OK with you.

BTW, are you certain you don't want write access to the SVN repository? This would avoid such delays. I will not always be available to commit other people's patches...

Quoted 15 lines · Juerg Haefliger

I was wondering what happened to this patch? I don't think it made it in. Is there a problem with it?

Thanks
...juerg

Quoted 7 lines · Juerg Haefliger

Add a script that provides manual control of the vt1211 PWM outputs. This script puts the vt1211 in automatic PWM mode and fools the chip into believing that there is a temp change to force the PWM outputs to specified values. This is necessary since the standard manual mode of the vt1211 doesn't seem to work.

Signed-off-by Juerg Haefliger <juergh at gmail.com>
Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#3 lore raw

Re: [lm-sensors] [PATCH] lm-sensors: Add script for manual control

In reply to Juerg Haefliger

Hi Jean,

Quoted 8 lines

Hi Juerg,

That was posted while I was on vacation and I overlooked it, sorry. This is checked in now, with a small change: vt1211_pwm will not be installed by default, on the assumption that this chip isn't very popular, and most users will either not try to control their fans, or will be happy with the automatic mode. So you have to use "make install VT1211_PWM=1" to get the script installed. I hope that's OK with you.

Sound good, thanks.

Quoted 3 lines

BTW, are you certain you don't want write access to the SVN repository? This would avoid such delays. I will not always be available to commit other people's patches...

OK then. Makes sense, thanks.

...juerg

Quoted 15 lines · Juerg Haefliger
Quoted 14 lines

I was wondering what happened to this patch? I don't think it made it in. Is there a problem with it?

Thanks
...juerg

Quoted 6 lines · Juerg Haefliger

Add a script that provides manual control of the vt1211 PWM outputs. This script puts the vt1211 in automatic PWM mode and fools the chip into believing that there is a temp change to force the PWM outputs to specified values. This is necessary since the standard manual mode of the vt1211 doesn't seem to work.

Quoted 5 lines
Quoted 1 line
Quoted 1 line
Signed-off-by Juerg Haefliger <juergh at gmail.com>

--
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors