Skip to contentSkip to conversation

vt1211 patch

lm-sensors Juerg Haefliger 2 participants 8 messages May 25, 2006 – May 31, 2006

lore
Share & tools
lore
#0 lore raw

Oops, forgot to include the lm_sensors mailinglist...

Quoted 1 line

So basically manual control is impossible?

I think so yes, but the datasheet is not clear. I should check with Via eventually.

Quoted 3 lines

I can either choose fan on or fan auto
Can you give me a simple way to test the switching off of a fan? I experimented multiple values in all the files and I can't get it off.

Let's see if I can remember (I currently don't have access to the datasheets). Try the following:
cat pwmX (should return 255)
echo 2 > pwmX_enable
echo 100 > pwmX_auto_point4_temp

Now 'cat pwmX' should return 0 do indicate 0% duty-cycle. If your board has the PWM outputs connected the associated fan should be turned off. If it is indeed, be careful not to blow anything up!

...juerg

Quoted 7 lines

Besides:

# echo 0> pwm2_auto_point1_temp && cat pwm2_auto_point1_pwm

2

#1 lore raw
Quoted 5 lines

Let's see if I can remember (I currently don't have access to the datasheets). Try the following:
cat pwmX (should return 255)
echo 2 > pwmX_enable
echo 100 > pwmX_auto_point4_temp

Just realized that the temps are in millicelcius so the last line should read something like:
echo 300000 > pwmX_auto_point4_temp
The value written just needs to be large enough to saturate the register at 255 (it gets divided by 1000 in the driver before being written to the reg).

I can give it a try on my machine next week earliest when I have access to it again.

...juerg

#2 lore raw
In reply to Juerg Haefliger

Hi,

Quoted 6 lines · Juerg Haefliger

Just realized that the temps are in millicelcius so the last line should read something like:
echo 300000 > pwmX_auto_point4_temp
The value written just needs to be large enough to saturate the register at 255 (it gets divided by 1000 in the driver before being written to the reg).

I tried your instructions, but nothing seems to happen:

| # cat pwm?_enable
| 2
| 2
| 
| # cat pwm?_auto_point4_temp
| 255000
| 255000

BTW that value seems the max I can set it to

sensors shows:

| CPU: 3105 RPM (min = 0 RPM, div = 2)

#3 lore raw
In reply to Juerg Haefliger
Quoted 9 lines

I tried your instructions, but nothing seems to happen:

| # cat pwm?_enable
| 2
| 2
|
| # cat pwm?_auto_point4_temp
| 255000
| 255000

Ok, so good so far.

Quoted 1 line

BTW that value seems the max I can set it to

yes, the register saturates at 255 which gets multiplied by 1000 by the driver.

Quoted 3 lines

sensors shows:

| CPU: 3105 RPM (min = 0 RPM, div = 2)

what does 'cat pwm?' show?

...juerg

#7 lore raw
In reply to Juerg Haefliger

Fabien,

I discovered some problems with the auto_point sysfs files to register mapping. Try the attached vt1211 driver until I generate an official kernel patch.

Then do the following sequence:
echo 2 > pwmX_enable
echo 1 > pwmX_auto_channels_temp
echo 300000 > pwmX_auto_point1_temp

From this point on you should be able to set the PWM duty cycle from 0-255 (0-100%) via the pwmX_auto_point2_pwm files. For example 'echo 128 > pwmX_auto_point2_pwm' sets the duty cycle to 50% and 'cat pwmX' should now read back 128 as the well.

...juerg

Quoted 10 lines · Fabien Wernli

Hi,

Quoted 1 line · Juerg Haefliger

hmm... can you dump the content of all the sysfs files?

there you go

http://www.wernli.name/vt1211/sysfs.cpio.bz2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vt1211.c
Type: application/octet-stream
Size: 32901 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20060531/f69f4e39/vt1211-0001.obj