Skip to contentSkip to conversation

pc87360 sensor-driver results

DISCUSSION Immanuel Kant 2 participants 21 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

I downloaded lm_sensors2 from cvs on 04/24/04 at around 7:30 EST. It compiled and installed successfully on a 2.4.26 kernel with i2c 2.8.4. The sensors-chip driver for my pc87366 was detected by sensors-detect and I can now see output from the driver using gkrellm or by output from "sensors". (Full output at the end of document)

My BIOS only displays sensor information about my 2 fans and the temperature of my cpu. The fan sensors are accurate, but the I do not understand the temperature readings.

Bios reports cpu fan speed of between 3614 and 3840 rpm; sensors reports fan 1 to be 3750 rpm
Bios reports case fan to be 2194 rpm; sensors reports 2142 rpm

Oddity: Running pwmconfig will restart both my fans correctly, but reports that "fan has not returned to speed". Rerunning sensors states that there is an overflow, and the rpm is reported to be -1. Also, I only have 2 fans controlled by this nat.semi. chip, but pwmconfig speaks strangely of 3 fans, and controllers overlapping. (Output of pwmconfig at end of document).

As for temperatures, I am not certain how they are to be read. I do not think they are getting updated. Both the closed case and open case reveal the exact same temperature (according to gkrellm). I am not sure how to use the offset or factor, or how to determine what really is my temperature before using those to adjust the numbers.

Here is output of sensors (before pwmconfig):
pc87366-isa-ecc0

Adapter: ISA adapter
in0:       +0.00 V  (min =  +0.07 V, max =   0.00 V)
in1:       +1.36 V  (min =  +0.00 V, max =   2.97 V)
in2:       +1.40 V  (min =  +0.00 V, max =   2.97 V)
in3:       +0.02 V  (min =  +0.00 V, max =   0.05 V)
in4:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in4:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in5:       +1.43 V  (min =  +0.00 V, max =   2.97 V)
in6:       +1.46 V  (min =  +0.00 V, max =   2.97 V)
in7:       +1.64 V  (min =  +0.00 V, max =   2.97 V)
in8:       +0.09 V  (min =  +0.00 V, max =   0.00 V)
in9:       +1.58 V  (min =  +0.00 V, max =   0.00 V)
in10:      +1.63 V  (min =  +0.00 V, max =   2.97 V)
fan1:     3529 RPM  (min =    0 RPM, div = 8)
fan2:     2142 RPM  (min =    0 RPM, div = 8)
fan3:       -1 RPM  (min =    0 RPM, div = 8)          OVERFLOW
temp1:       +64 C  (low  =  +201 C, high =    -1 C)  ALARM
temp1_crit:
            +128 C
temp2:       +19 C  (low  =  +201 C, high =    -1 C)
temp2_crit:
            +128 C
temp3:       +19 C  (low  =  +201 C, high =    -1 C)  ALARM
temp3_crit:
             -79 C

Output of Sensors (fans, after pwmconfig)

fan1:       -1 RPM  (min =    0 RPM, div = 8)          OVERFLOW
fan2:       -1 RPM  (min =    0 RPM, div = 8)          OVERFLOW
fan3:       -1 RPM  (min =    0 RPM, div = 8)          OVERFLOW

Output of pwmconfig:
Found the following PWM controls:
pc87366-isa-ecc0/pwm1
pc87366-isa-ecc0/pwm2
pc87366-isa-ecc0/pwm3

Found the following fan sensors:

   pc87366-isa-ecc0/fan1     current speed: 3750 RPM
   pc87366-isa-ecc0/fan2     current speed: 2142 RPM
   pc87366-isa-ecc0/fan3     current speed: 0 ... skipping!

Warning!!! This program will stop your fans, one at a time, for approximately 5 seconds each!!!
This may cause your processor temperature to rise!!! If you do not want to do this hit control-C now!!! Hit return to continue:

Testing pwm control pc87366-isa-ecc0/pwm1 ...
pc87366-isa-ecc0/fan1 ... speed was 3750 now -1
It appears that fan pc87366-isa-ecc0/fan1
is controlled by pwm pc87366-isa-ecc0/pwm1
Fan pc87366-isa-ecc0/fan1 has not returned to speed, please investigate!
pc87366-isa-ecc0/fan2 ... speed was 2142 now 2142
no correlation

Testing pwm control pc87366-isa-ecc0/pwm2 ...
pc87366-isa-ecc0/fan1 ... speed was 3750 now -1
It appears that fan pc87366-isa-ecc0/fan1
is controlled by pwm pc87366-isa-ecc0/pwm2
Fan pc87366-isa-ecc0/fan1 has not returned to speed, please investigate!
pc87366-isa-ecc0/fan2 ... speed was 2142 now -1
It appears that fan pc87366-isa-ecc0/fan2
is controlled by pwm pc87366-isa-ecc0/pwm2
Fan pc87366-isa-ecc0/fan2 has not returned to speed, please investigate!

Testing pwm control pc87366-isa-ecc0/pwm3 ...
pc87366-isa-ecc0/fan1 ... speed was 3750 now -1
It appears that fan pc87366-isa-ecc0/fan1
is controlled by pwm pc87366-isa-ecc0/pwm3
Fan pc87366-isa-ecc0/fan1 has not returned to speed, please investigate!
pc87366-isa-ecc0/fan2 ... speed was 2142 now -1
It appears that fan pc87366-isa-ecc0/fan2
is controlled by pwm pc87366-isa-ecc0/pwm3
Fan pc87366-isa-ecc0/fan2 has not returned to speed, please investigate!

Testing is complete.
Please verify that all fans have returned to their normal speed.

Screenshot of gkrellm with all sensors turned on with default values for offset and factor:
http://www.angelfire.com/ny3/mitechnologies/linux/snapshot6.jpeg

If possible, I would like to know if the temperature readings are a bug or if there is way to adjust them to display correct temperatures (my bios never reads more than about 130 degrees fahrenheit or about 55 degrees celcius).

Thanks!

#1 lore raw
Quoted 1 line

lm_sensors2 cvs 04/25/04 @ 8:30 est

8:30 PM I suppose?

Quoted 2 lines

I haven't been able to notice any changes from yesterday's cvs, but I probably don't know exactly what to look for.

Nothing visible actually. There were a few fixes but other, more important problems were still there, obviously.

Quoted 5 lines

I cat'ed around in my /proc/sys/dev/sensors/pc87366-isa-ecc0 area, and the temperatures reported seem to be accurate farhenheit temperatures, but I don't know if this is coincidence. My bios only shows 1 temperature reading, and it says exactly: CPU Temperature 46 C / 114.5 F (and the numbers keep rising).

It is a coincidence, see below.

Quoted 5 lines

Here are the outputs of the isadumps:
output of isadump 0x2e 0x2f 0x09 7
0 1 2 3 4 5 6 7 8 9 a b c d e f
(...)
f0: fc 07 07 00 00 00 00 00 00 00 00 00 00 00 00 00

      ^^^^^

Fan control is inverted, see below.

Quoted 5 lines

I used the echo command to set the fan divisors for fans 1 and 2 to 1
2. I get more updates, and they are very close to what my bios reports:
CPU Fan Speed 3614RPM
System Fan Speed 2194RPM

Great. At least this is working.

Quoted 4 lines

I also tried echoing minimum values for these fans (3000 and 1500 for fans 1 and 2) but nothing changed in sensors, but the proc entries for fan1 and fan2 did get updated. I echoed a value of 3000 for fan2, but only the proc fan2 file got updated,

Sounds like a bug but I couldn't find it. Please provide the output of "sensors", "sensors -u", "ls -l /proc/dev/sys/sensors/pc87366-isa-ecc0" and "cat /proc/dev/sys/sensors/pc87366-isa-ecc0/*" at a given time (after setting fam_min limits). This should help me determine whether the bug is in libsensors or sensors itself.

Quoted 4 lines

and no physical change (I was guessing that if I upped the minimum value, i could increase the speed). It might already be at a maxed out speed, so is there a way to test the fans by decreasing the speed?

No, it simply doesn't work that way. The fan min limit simply determines
below which speed an alarm will be triggered. It doesn't tell the fan to change speeds (this is what PWM is for).

Quoted 3 lines

pwmconfig can still turn off the fans, but there are still overflow messages in "sensors" and they don't go away (I left the computer idle for about half an hour to see if there would be any change).

As mentioned above, the fan speeds are inverted on your chip. This means
that 0 is full speed and 255 is minimal speed, while most chips work the other way around. The driver wasn't handling that case, which is why pwmconfig was missing the point. I've fixed that (will commit this evening). I don't know if it'll fix the overflow flags, please let me know.

Quoted 9 lines

temp1: +128 C (low = +201 C, high = -1 C)
temp1_crit:

            +201 C
temp2:      +128 C  (low  =  +201 C, high =    -1 C)
temp2_crit:
            +201 C
temp3:       -76 C  (low  =  +201 C, high =    -1 C)
temp3_crit:
            +201 C

I've found the bug for these. It's even more stupid than the first time... The temperature conversions were dead broken, it's now hopefully fixed. There was also a bug with overtemperature (crit) limit being read in the min limit register, which I fixed too. The output of sensors should now read:

temp1: +0 C (low = -55 C, high = +127 C)
temp1_crit:

            +127 C
temp2:        +0 C  (low  =   -55 C, high =  +127 C)
temp2_crit:
            +127 C
temp3:       +52 C  (low  =   -55 C, high =  +127 C)
temp3_crit:
            +127 C
Quoted 2 lines

I am wondering where all this chip is measuring the temperature; my bios reports only the cpu temp.

Now you see, it does only really report one temperature. I'm a bit surprised though, since temp3 is supposedly the PC87366's own temperature, not an external one. If you confirm that the values are inline with what the BIOS says, then either your BIOS is lying, or the PC87366 datasheet is (or I read it wrong).

If you have an extra fan (or a hair dryer) and have a physical access to
the system, it can be fun and useful to try to change the PC87366 environemental temperature, then do the same with the CPU, and see for which one the temperature response of temp3 is the more relevant.

Quoted 3 lines

I am going to go and see if there is a bios update for my motherboard (my bios is an AwardBios on an Asus board) so that I can see other sensor readings.

Yeah, it would help.

Quoted 2 lines

If there is anything specific you guys would like me to do, I will gladly see to it.

Test my new fixes after I commited them. I'll let you know when it's ready.

Thanks!

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Immanuel Kant
Quoted 6 lines

Awesome. Temp3 appears to be reporting accurate readings (in celcius) of what my bios says is the cpu temperature. The high and low temperatures are also stated correctly (with the default values, according to the pc87366 data sheet). The temperature is also slowly rising for temp3, so there there is definitely constant measurement happening.

Great :)

Quoted 3 lines

However, temp1 and temp2 still display negative -128 instead of zero. I'll look into my board and see if this chip is trying to measure other temperatures, but I doubt it.

That's accordingly strange. According to the datasheet, it should report either +127 (open diode) or 0 (unused). That said, -128 is obviously no random value. A dump of the registers would appreciate, see below.

Quoted 3 lines

Also, I tried looking for information about what temp3 should be reporting (the nat.semi. ship temp or the cpu temp) but was unable to locate anything. I'll have a closer look.

I have a theory about that. On the PC87366 (as opposed to the PC87365), there are three additional channels on the VLM (voltage level monitor) module. They are supposed to be temperature channels. This sounds strange, and at first (admittedly quick) read I thought that it was simply the three temperature channels of the TMS (temperature sensor) module, replicated for convenience (I didn't see how convenient if was, but still...). Now after reading it once again, the datasheet clearly states that these are different temperature measurements (thermistor based, as opposed to thermal diodes). So possibly your CPU temperature is there, and our temp3 is the PC87366 temperature. This also complies with the fact that an internal temperature measurement normally cannot be disabled, to temp3 really has to be the PC87366 temperature.

I will try to implement the three additional temperature channels this evening. Could you please provide the output for the following commands:

isadump -f 0xecd0 16 11
isadump -f 0xecd0 16 12
isadump -f 0xecd0 16 13
isadump -f 0xecf0 16 0
isadump -f 0xecf0 16 1
isadump -f 0xecf0 16 2

This will dump the registers value for all six temperature channels, hopefully this will bring some light ;)

Quoted 5 lines

Fans are working as they have. I can set minimum values without a problem. However I noticed 2 oddities:
1:) echoing a value that is greater than the current fan rotation speed will yield a different number for minimum in "sensors" or in the proc entry.

Nothing unusual here. Fan speed measurements have a limited (and non-linear) resolution. Only values of the form C/(r*d) can be measured and used as limits, where C is a clock frequency, r is a register value and d is the divisor. For the PC87366 the clock is 480000, and d is 1, 2, 4 or 8. r is naturally between 0 and 255. See below.

Note that this is *not* related to the fact that the limit is over the current measurement.

Quoted 3 lines

2:) the alarm flags don't wear off even if I set the minimum value under the current fans speed (after having a previous setting that was higher than the fan speed)

Nice catching, this was a bug. I was clearing the bits for temperatures and voltages, but not fans. This is fixed, thanks.

Quoted 4 lines

Pwmconfig still appears to be confused about the fans. After running it (and after it has shut down both my fans and restarted them), I get the overflow flags in "sensors" and the speeds are reported as -1.

OK, there must be something wrong then. I invite you to do some tests manually, rather than using pwmconfig. Just go to the /proc/sys/dev/sensors/pc87366-isa-ecc0 directory, and try echoing values (between 0 and 255) to the pwm files. See what happens each time, and report to me after you have found what is going wrong.

Quoted 3 lines

For he above, even though I echoed fan2 to have a min value of 2170, it is reporting 2181. I had a similar problem with fan1's min, but echoing 2400 gave no problems.

Remember the formula above. 480000/(2170*2) = 110.59, which is stored as
110 in the register. When applied the other way around, 480000/(110*2) = 2181, which is what you get. The difference is because we work with integer values.

OTOH, 480000/(2400*1) = 200, exactly. So there is no rounding done and the value you read back is exactly the same.

Quoted 8 lines

temp1_crit: 127.00 (temp1_crit)
temp1_status: 127.00 (temp1_status)
(...)
temp2_crit: 127.00 (temp2_crit)
temp2_status: 127.00 (temp2_status)
(...)
temp3_crit: 127.00 (temp3_crit)
temp3_status: 127.00 (temp3_status)

I'm surprised by the status values, looks like a bug, most likely in the
library. I'll take a look.

Quoted 1 line

Thanks for your continuing work on this driver!

Thanks a lot for testing :) I could hardly do anything without your help!

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#3 lore raw
In reply to Immanuel Kant
Quoted 6 lines

Here are the isadump outputs:

isadump -f 0xecd0 16 11
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 0b 81 59 ff 00 ff 00

Quoted 7 lines

isadump -f 0xecd0 16 12
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 0c 81 64 ff 00 ff 00

isadump -f 0xecd0 16 13
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 0d 81 5d ff 00 ff 00

Looks like there is something there (all three channels). However, I read the datasheet again and the conversion from register values to actual temperatures is somewhat complex, and requires data that only the motherboard manufacturer could provide. Basically, the values reported are voltages (like the eleven first channels of the VLM module). The difference is that one of the two external resistors used to divide the voltage is a thermistor, i.e. the resitor value depends on the temperature.

Since I already don't know how to compute the voltages (the wiring order and the resistor values are only known to the motherboard manufacturer), it get even worse here since I additionally don't know the formula of the resistor value depending on the temperature. So, unless you can get information from your motherboard manufacturer, we're stuck here.

BTW, did you get a Windows monitoring tool with the motherboard? Maybe we can learn something from there, if the manufacturer doesn't help.

Quoted 3 lines

Also, I did echo "50 -55 50" > temp3 to set the high and critical temperatures. It reports a temperature of 54 C, but I didn't see an alarm flag (I assumed there should be one).

Actually I wasn't reading the correct bits. I was assuming that bits in the alert registers were set whenever corresponding limits were crossed, but it looks like it does only happen after you explicitly enable each channel to act this way.

I changed the sensors program so that it reads the flags directly from the channel, much like I am doing for the fans. I also refactored temperature and voltage code, so sensors should be smaller and work better :)

Quoted 4 lines

The fans seem to be working with pwmconfig a lot better, though still some quirks exist. It can be run (shutting off the fans) and there are no longer overflow flags and the readings remain accurate (no longer changing to -1).

Yes, yesterday's change fixed that.

Quoted 2 lines

Here is the pwmconfig output (the main strangeness is in the testing of pwm3, to which I still have not attached a fan):

I don't see this as a strangeness. pwmconfig doesn't know that you don't have any fan here, he can't guess it so it just probes it, and sees that there is no working fan. Then it just ignores it. What else could be done?

Quoted 16 lines

Testing pwm control pc87366-isa-ecc0/pwm3 ...
pc87366-isa-ecc0/fan2 ... speed was 2162 now 1153
It appears that fan pc87366-isa-ecc0/fan2
is controlled by pwm pc87366-isa-ecc0/pwm3
Would you like to generate a detailed correlation (y)? Would you like to generate a graphical plot using gnuplot (y)?

    PWM 255 FAN 2162
    PWM 240 FAN 2162
    PWM 225 FAN 2162
    PWM 210 FAN 2162
    PWM 195 FAN 2162
    PWM 180 FAN 2162
    PWM 165 FAN 2162
    PWM 150 FAN 2162
    PWM 135 FAN 2162
    PWM 120 FAN 2162
Quoted 8 lines
    PWM 105 FAN 2162
    PWM 90 FAN 2162
    PWM 75 FAN 2162
    PWM 60 FAN 2162
    PWM 45 FAN 2162
    PWM 30 FAN 2162
    PWM 15 FAN 2162
    PWM 0 FAN 2162

This is admittedly strange. It first sees a correlation, but then the fan speed isn't supposed to change. Could it be a bug in pwmconfig?

Quoted 4 lines

However, I did do some pwm changes by echoing values to the pwm files in the proc entry. The fans did successfully change speed (I opened the case to see them slow down), but there was no change in speed reported in "sensors".

Sounds bad. Was it any better when reading from /proc directly?

Quoted 7 lines

I got overflow flags after echoing a value below a certain point.
For example:
echo 200 > pwm2 gives me in sensors
fan2: 2181 RPM (min = 2000 RPM, div = 2) OVERFLOW
which won't go away until I echo at least 228 and run the "sensors" command at least twice.

This looks very odd, but actually I think I see what happens. See below.

Quoted 5 lines

Hmm, this problem also exists with echoing values lower than 228 to pwm1. This time, I echo a value above or equal to 228 and I have to run sensors three times before the flag goes away.
I am guess this has to do with the the drivers need to refresh itself

Correct. There are two different phenomenon here. First, the driver buffers the readings for 2 seconds. This is meant to protect the chip against concurent and continuous accesses. Second, when an alarm triggers and a flag bit is set, further reading of the corresponding sensor is stopped until you clear it, which the driver does on each update. But the driver will still report the *old* value (and alert flag) this time. This is done so that you'll never miss an error.

This basically means that you may need up to 4 seconds (2 updates) to get valid and up-to-date readings after an error occured.

Now, we can imagine that when you change PWM or otherwise write anything
to the chip, it temporarily fails measuring the fan speeds, and set flags, which in turns prevents it from going on. If this is confirmed, this means that I should forcibly reset the fan alarm flags when writing anything to it, to kill false alarms.

So I'd like you to test (with the latest kernel driver and user-space tools) which actions are actually raising errors, and I'll add alarm clearers for them in the driver.

Quoted 1 line

(note: in dmesg I get a lot of "pc87360.o: Data update" messages).

Means that debugging is turned on and working :)

Quoted 2 lines

The flags for the fans get updated (both the overflow and alert flags) only after running "sensors" a few times.

4 seconds? ;)

(PWM files below)

Quoted 3 lines

255 0
255 0
255 1

This revealed a bug, since PWM is supposed to be enabled for all 3 fans.
I was not reading the fan configuration from the proper registers. It's hopefully fixed now.

This bug was likely to confuse pwmconfig, please retry and see if it helps.

Quoted 4 lines

One question: there is an enormous difference (by sound of fans) going from pwm 255 to 220 (or even 230 to 220), and going from 220 to anything lower is sometimes not even noticeable. Is this because there is an exponential relation between pwm and rpm?

This is too low-level for me. I know that PWM itself is linear, but I don't know how the fan does physically react to the modulation. I don't have any PWM-capable system myself so I have to experience with this.

Please test the updated driver and sensors program. As you load the driver, there should be some debugging output about fan configuration. Make sure that all bits read 1.

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#4 lore raw
In reply to Immanuel Kant
Quoted 2 lines

I can echo new pwm values to pwm1 and pwm2 in the proc entry, and I can hear the speeds change. However, no fan speeds are updated;

This is definitely strange, and I have to admit I'm clueless.

Quoted 3 lines

overflow flags are still shown when pwm values below 228 are issued and the fan#_status file displays "4". Whenever there is an overflow flag, the speed is reported as -1.

At least this is logical. Bit 2 (value 4) of fan status registers is for
fan overflow, and the reported speed of -1 is expected in this case.

Quoted 3 lines

Pwmconfig is working a lot better now. It creates a correlation list, but only for pwm values 255 and 240, then reports "-1" for everything else.

This at least corroborates what you experience when manually setting the
values.

Quoted 3 lines

Strangely, depending on the fan divisor, those 2 correlation values either make sense (the first is larger than the second) and sometimes it doesn't (the second value is larger).

It's irrelevant. The different values are the result of the limited accuracy of fan speed measurements. For a fan divisor of 8, 3750 RPM corresponds to a register value of 16, 3529 RPM to a register value of
17. It's the same speed, with some noise. Same for 2162 RPM and 2181 RPM for a fan divisor of 2: these speeds correspond to register values of 111 and 110 respectively, so it's simply the same value withe some noise.

Quoted 1 line

Other than this issue, I don't see any other problems.

Fine. I wish I was less puzzled by this issue. I've added some debugging to the driver, just in case, but I doubt it'll reveal anything.

I'd like you to dump the contents of all the fan registers before and after changing PWM values. I'd like to ensure that at least the driver does what I think it does. The dump command is:

isadump -f 0xecc0 16

Please alternate dumping and changing pwm values, and provide the results, together with the debug logs. Maybe it'll reveal something, although I doubt it. I also read the PWM section of the datasheet once again, but I cannot find anything explaining what you observe.

Quoted 6 lines

In order to play with fanconfig, I want to be able to see my cpu temperature (so I don't burn it out when I turn off the fans for too long), so would you know how easy/difficult it would be to get the chip to record the cpu temperature the "normal" way, considering it is already being monitored using the chip's other channels? If this will require soldering, please let me know.

Search your motherboard for thermal diode inputs. I have one on my Asus board. We could expect two of these on yours, corresponding to temp1 and temp2. If you have such inputs, then you just have to get compatible thermal diodes (there's a list in the PC87366 datasheet, page 206) and use them.

Thanks.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#5 lore raw
In reply to Immanuel Kant
Quoted 6 lines

I downloaded lm_sensors2 from cvs on 04/24/04 at around 7:30 EST. It compiled and installed successfully on a 2.4.26 kernel with i2c 2.8.4.

The sensors-chip driver for my pc87366 was detected by sensors-detect and I can now see output from the driver using gkrellm or by output from "sensors". (Full output at the end of document)

Good news :)

Quoted 7 lines

My BIOS only displays sensor information about my 2 fans and the temperature of my cpu. The fan sensors are accurate, but the I do not understand the temperature readings.

Bios reports cpu fan speed of between 3614 and 3840 rpm; sensors reports fan 1 to be 3750 rpm
Bios reports case fan to be 2194 rpm; sensors reports 2142 rpm

I'm a bit surprised by the 3614 and 2194. These values are theoretically impossible to obtain. The three other values, OTOH, are correct. All reported values should correspond to 480000/N for an integer value of N.

Could you please provide a list of all the readings reported by the BIOS and sensors for both fans?

Quoted 6 lines

Oddity: Running pwmconfig will restart both my fans correctly, but reports that "fan has not returned to speed". Rerunning sensors states that there is an overflow, and the rpm is reported to be -1. Also, I only have 2 fans controlled by this nat.semi. chip, but pwmconfig speaks strangely of 3 fans, and controllers overlapping. (Output of pwmconfig at end of document).

It's a bit early to try pwmconfig and fancontrol. These scripts run too many commands at a time to give us tha slightest chance to understand what happens if anything goes wrong (which is the case).

The PC87366 can monitor up to three fans. It looks like yours only uses two, but the driver doesn't care at the moment (and possibly the BIOS did not disabled the third channel anyway). And maybe you can add an extra fan in the case and it would then be monitored.

Quoted 5 lines

As for temperatures, I am not certain how they are to be read. I do not think they are getting updated. Both the closed case and open case reveal the exact same temperature (according to gkrellm). I am not sure how to use the offset or factor, or how to determine what really is my temperature before using those to adjust the numbers.

The remperature reading should require no offset nor scaling.

I would have expected the error flags not to wear off, but it's odd that the temperature itself doesn't. I will add flags cleaning in the driver, let's see if it helps.

Quoted 15 lines

Here is output of sensors (before pwmconfig):
pc87366-isa-ecc0

Adapter: ISA adapter
in0:       +0.00 V  (min =  +0.07 V, max =   0.00 V)
in1:       +1.36 V  (min =  +0.00 V, max =   2.97 V)
in2:       +1.40 V  (min =  +0.00 V, max =   2.97 V)
in3:       +0.02 V  (min =  +0.00 V, max =   0.05 V)
in4:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in4:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in5:       +1.43 V  (min =  +0.00 V, max =   2.97 V)
in6:       +1.46 V  (min =  +0.00 V, max =   2.97 V)
in7:       +1.64 V  (min =  +0.00 V, max =   2.97 V)
in8:       +0.09 V  (min =  +0.00 V, max =   0.00 V)
in9:       +1.58 V  (min =  +0.00 V, max =   0.00 V)
in10:      +1.63 V  (min =  +0.00 V, max =   2.97 V)

Some of these seem to be unused. This isn't surprising since the chip has a so many voltage channels. in0_min, in3_input, in3_max and in8_input are a bit surprising. The rest looks good. However, most readings would need scalling, but the exact forumlae depend on the motherboard. Since your BIOS doesn't seem to report them, there's not much we can do. Let's concentrate on fans and temperatures, since your BIOS provides values for these.

Quoted 3 lines
fan1:     3529 RPM  (min =    0 RPM, div = 8)
fan2:     2142 RPM  (min =    0 RPM, div = 8)
fan3:       -1 RPM  (min =    0 RPM, div = 8)          OVERFLOW

Looks OK. However, divisors are way too high. It doesn't hurt, but you would have more accurate readings with lower ones. I'd suggest a divisor of 1 for fan1 and 2 for fan2:

echo "1 2" > /proc/sys/dev/sensors/pc87366-isa-ecc0/fan_div

Then you should see the values changing more frequently around the average value.

You can also try setting min values:

echo 3000 > /proc/sys/dev/sensors/pc87366-isa-ecc0/fan1 echo 1500 > /proc/sys/dev/sensors/pc87366-isa-ecc0/fan2

Quoted 9 lines

temp1: +64 C (low = +201 C, high = -1 C) ALARM
temp1_crit:

            +128 C
temp2:       +19 C  (low  =  +201 C, high =    -1 C)
temp2_crit:
            +128 C
temp3:       +19 C  (low  =  +201 C, high =    -1 C)  ALARM
temp3_crit:
             -79 C

Looks admittedly strange. Will investigate.

Quoted 3 lines

Screenshot of gkrellm with all sensors turned on with default values for offset and factor:
http://www.angelfire.com/ny3/mitechnologies/linux/snapshot6.jpeg

Gkrellm is of no interest actually. It doesn't know of the PC87366 at all and obviously treats it in a generic way, applying arbitrary conversions to the readings. Only the output of sensors is interesting for now.

Quoted 4 lines

If possible, I would like to know if the temperature readings are a bug or if there is way to adjust them to display correct temperatures (my bios never reads more than about 130 degrees fahrenheit or about 55 degrees celcius).

I would need you to provide the output of the following commands, so that I can compare the values the chip really holds with what the driver reports:

isadump 0x2e 0x2f 7 0x09
isadump 0x2e 0x2f 7 0x0d
isadump 0x2e 0x2f 7 0x0e

isadump -f 0xecc0
isadump -f 0xecd0
isadump -f 0xecf0

There are other outputs I would need but isadump needs a few improvements before it works. I'll let you know when it's ready.

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#6 lore raw
In reply to Immanuel Kant

Quoting myself:

Quoted 7 lines

I would need you to provide the output of the following commands, so that I can compare the values the chip really holds with what the driver reports:

isadump 0x2e 0x2f 7 0x09
isadump 0x2e 0x2f 7 0x0d
isadump 0x2e 0x2f 7 0x0e

Don't! I got it wrong here. The correct commands are:

isadump 0x2e 0x2f 0x09 7
isadump 0x2e 0x2f 0x0d 7
isadump 0x2e 0x2f 0x0e 7

Sorry for the bogus info, I should have checked before sending.

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#7 lore raw
In reply to Immanuel Kant
Quoted 4 lines
Quoted 4 lines

If possible, I would like to know if the temperature readings are a bug or if there is way to adjust them to display correct temperatures(my bios never reads more than about 130 degrees fahrenheit or about 55 degrees celcius).

Yes, there was a bug in temperatures reporting, I just spotted it. A stupid one, as usual. It's fixed in CVS. Can you please give it a try? I've also added alert flags clearing, so fault conditions that have gone shouldn't show forever anymore. Please enable DEBUG (in Makefile), I've added some debug output as well.

The improved version of isadump is there too, if the driver still doesn't work as intended I'll tell you how to use it.

Thanks for testing.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#8 lore raw
In reply to Immanuel Kant

Quoting myself:

Quoted 2 lines

Test my new fixes after I commited them. I'll let you know when it's ready.

Changes commited. Please test :)

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#9 lore raw
In reply to Immanuel Kant
Quoted 2 lines

I re-ran pwmconfig, an this time, no correlation was detected with pwm3;

This is much more logical. On this chip, pwm1 controls fan1, pwm2 controls fan2 and pwm3 controls fan3 (at least that how National meant it). Since you have no fan3, it's logical that pwm3 has no effect.

Quoted 6 lines

The alarms for the temperatures seem to be working fine. From what I gather in the last e-mail is that the alarm flag will be displayed one time after the alarm has gone away, and then get cleared. This is exactly what happened here. (note: doing cat on the temp3_status file produced the same effect as having to run sensors before the flag was cleared).

Correct. Doing cat on the file or running sensors has the same effect:
sensors actually accesses the information through libsensors, which, on 2.6 kernels, reads them from sysfs.

Quoted 5 lines

As for the cpu temperature, it seems as though windows programs are also unable to detect it. Here is a link to screenshots of two windows programs I tried (both available online; the first is called speedfans and is freeware, the other is simply called hardware monitor and is shareware)

Yeah, I already heard of these. You could have tried Motherboard Monitor as well:
http://mbm.livewiredev.com/
Alex told me he had theoretical support for the PC87366, although only one user really had success so far.

Quoted 5 lines

http://themastermind3000.tripod.com/index.html

The first shot shows that the other temperatures are definitely a problem. It also shows some voltages, so hopefully that will aide in that aspect.

Looks mostly broken. This obviously means that the authors of these tools don't know more than I do about the resistor values and voltage orders. Since it is left to the motherboard manufacturers, this means that we are likely to see as many different configurations as there are different motherboards, except for in7-in10. Same for the extra temperatures. This make me feel like I'd better export raw values for these from the driver and let the user inquire from their motherboard maker for the correct labels and formulae.

Quoted 3 lines

The second shot calls the only reportable temperature the mainboard temperature, and it reports about 51 degrees...
So it seems that this cpu temperature problem is common.

Correct.

Quoted 4 lines

As for fans, this cvs is reporting 0 pwm to be the highest and 255 to be the lowest. For this reason, immediately after I execute pwmconfig, my fans turn off, and when the program tries to really turn off the fans, it turns them back on.

This is odd. Your chip's configuration says that the fans are inverted, so I thought I had to invert the logic in the driver as well... And doing so actually breaks things. Either I do not read the datasheet correctly (possible) or your motherboard maker did something nasty. Either way, I have disabled this "feature" and now ignore the invert flags completely. Hopefully if should revert the driver's behavior to what it was before.

Quoted 9 lines

Other than that, the fans' pwm altering is in good working order. All the pwm files have the "1" bit.
However, the speeds will still not get updated. There is an overflow flag if I echo anything above 27 (or 228 if pwm was used normally). I ran sensors several times (giving the computer about a minute of idle time) and cat'ed the fan#_status files several times. When pwm values above 27 were echoed, the status files stated "4". After echoing 27 or lower, the flags would wear off only after I either ran sensors or cat'ed the respective status file and waited at least 4 seconds.

I have a theory about this and would like you to do some additional tests. I think that when you slow the fan down with PWM, it simply drops below the lowest measurable speed for the given divisor. This triggers the OVERFLOW alarm. By design, the chip stops updating the values as long as any alarm flag is set. This is what you observe.

If I'm not mistaking, the "limit" value of PWM that causes the problem should change if you increase the fan divisor.

Second, I made the choice not to re-read the value if the "new data ready" bit is not set. My point was that the read value would either be the same as the previous one, or make no sense. It was probably a bad idea, because on error the "new data ready" bit is cleared, which is probably why we are missing the "0" reading that goes with the "OVERFLOW" flag. I've reverted this to the original behavior (read the fan speed regardless of the "new data ready" flag). Let me know if it helps.

Quoted 5 lines

Something similar happens with echoing minimum values. After echoing a minimum value higher than the reported speed, an alarm flag comes on normally. Then, after echoing a value lower than the fan speed, only after cat'ing the respective fan#_status file (which stated "3") or running sensors and then waiting 4 seconds will the flags go away.

This is expected.

Quoted 4 lines

For both temperatures and fans, the flags also are removed if gkrellm is running (I suppose since it is continuously querying the driver and forcing it to update); but even while gkrellm ran, the speeds would not get updated with pwm changes.

Yes, probably, although the flags should remain active if the error condition is still present (it's actually clear on read and reactivated by the chip a few cycles later).

Anyway, please test the new CVS driver and let me know if it solves (or at least alters) your PWM and fan issues.

Quoted 1 line

By the way, what are the temp#_status files reporting?

Chip-specific bitfield. From the driver code:
#define PC87365_STATUS_TEMP_MIN 0x02
#define PC87365_STATUS_TEMP_MAX 0x04
#define PC87365_STATUS_TEMP_CRIT 0x08
#define PC87365_STATUS_TEMP_OPEN 0x40
Other bits are not alarms (but still exported, mainly for debugging purposes at the moment). See the datasheet for details.

Quoted 2 lines

I will see what I can dig up about those other special channels for this chip, most likely this weekend.

Great, let me know if you find something. I'll try to collect as much data as possible from different sources on my side.

Thanks.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#10 lore raw
In reply to Immanuel Kant

Hi Sandeep,

A few extra hints and requests.

I have been adding a preliminary pc87366 section to sensors.conf.eg. Please manually copy to /etc/sensors.conf and test. There are a couple ignore lines you should uncomment.

I have also been updating the driver so that it honors the "external vref" configuration bit. Your voltages should report slightly higher values now (+2%). Vsb and AVdd have supposedly a value of +3.3V and that's what sensors should report.

Please try setting voltage limits (sensors -s should do for Vsb and AVdd) and report how it works.

I'd also like you to run the following set of dumps and send me back the output files, so that I can use this for reference while working on the driver. I have a similar set for a second PC87366 owner (completely different motherboard) and comparing results will be useful. Please dump at a time your chipset is working at best.

isadump -f 0xecc0 16 > pc87366-fans.dump

isadump -f 0xecd0 16 0 > pc87366-in0.dump
isadump -f 0xecd0 16 1 > pc87366-in1.dump
isadump -f 0xecd0 16 2 > pc87366-in2.dump
isadump -f 0xecd0 16 3 > pc87366-in3.dump
isadump -f 0xecd0 16 4 > pc87366-in4.dump
isadump -f 0xecd0 16 5 > pc87366-in5.dump
isadump -f 0xecd0 16 6 > pc87366-in6.dump
isadump -f 0xecd0 16 7 > pc87366-in7.dump
isadump -f 0xecd0 16 8 > pc87366-in8.dump
isadump -f 0xecd0 16 9 > pc87366-in9.dump
isadump -f 0xecd0 16 10 > pc87366-in10.dump
isadump -f 0xecd0 16 11 > pc87366-in11.dump
isadump -f 0xecd0 16 12 > pc87366-in12.dump
isadump -f 0xecd0 16 13 > pc87366-in13.dump

isadump -f 0xecf0 16 0 > pc87366-temp1.dump
isadump -f 0xecf0 16 1 > pc87366-temp2.dump
isadump -f 0xecf0 16 2 > pc87366-temp3.dump

Thanks.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#11 lore raw
In reply to Immanuel Kant

lm_sensors2 cvs 04/25/04 @ 8:30 est

I haven't been able to notice any changes from yesterday's cvs, but I probably don't know exactly what to look for.

I cat'ed around in my /proc/sys/dev/sensors/pc87366-isa-ecc0 area, and the temperatures reported seem to be accurate farhenheit temperatures, but I don't know if this is coincidence.
My bios only shows 1 temperature reading, and it says exactly: CPU Temperature 46 C / 114.5 F (and the numbers keep rising).

Here are the outputs of the isadumps:
output of isadump 0x2e 0x2f 0x09 7
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 00 09 00 00 00 00 00 00 00 00 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20: e9 15 bd a3 35 01 00 0a 00 00 0a 43 07 59 00 00 30: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60: ec c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70: 00 03 00 00 04 04 00 00 00 00 00 00 00 00 00 00 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: fc 07 07 00 00 00 00 00 00 00 00 00 00 00 00 00

output of isadump 0x2e 0x2f 0x0d 7
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 00 0d 00 00 00 00 00 00 00 00 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20: e9 15 bd a3 35 01 00 0a 00 00 0a 43 07 59 00 00 30: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60: ec d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70: 00 03 00 00 04 04 00 00 00 00 00 00 00 00 00 00 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

output of isadump 0x2e 0x2f 0x0e 7
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 00 0e 00 00 00 00 00 00 00 00 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20: e9 15 bd a3 35 01 00 0a 00 00 0a 43 07 59 00 00 30: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60: ec f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70: 00 03 00 00 04 04 00 00 00 00 00 00 00 00 00 00 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

output of isadump -f 0xecc0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 80 31 00 1a ff ff 00 10 00 00 00 00 00 00 3f 1b 10: 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 80: ff 10 00 00 df 12 00 00 ff 00 1f 04 00 00 00 00 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
c0: 00 ff 00 ff 00 ff a0 00 04 a0 00 26 ff 00 64 00
d0: 00 00 00 00 00 00 1f 05 02 0a 81 8c ff 00 00 00
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 05 00 00 00 00 00 00 00 02 02 81 34 7f c9 7f 00

output of isadump -f 0xecd0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 80 31 00 1a ff ff 00 10 00 00 00 00 00 00 3f 1b 10: 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 80: ff 10 00 00 df 12 00 00 ff 00 1f 04 00 00 00 00 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
c0: 00 ff 00 ff 00 ff a0 00 04 a0 00 26 ff 00 64 00
d0: 00 00 00 00 00 00 1f 05 02 0a 81 8d ff 00 00 00
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 05 00 00 00 00 00 00 00 02 02 81 34 7f c9 7f 00

output of isadump -f 0xecf0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 80 31 00 1a ff ff 00 10 00 00 00 00 00 00 3f 1b 10: 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 80: ff 10 00 00 df 12 00 00 ff 00 1f 04 00 00 00 00 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
c0: 00 ff 00 ff 00 ff a0 00 04 a0 00 26 ff 00 64 00
d0: 00 00 00 00 00 00 1f 05 02 0a 81 8c ff 00 00 00
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: 05 00 00 00 00 00 00 00 02 02 81 33 7f c9 7f 00

I used the echo command to set the fan divisors for fans 1 and 2 to 1 2. I get more updates, and they are very close to what my bios reports:
CPU Fan Speed 3614RPM
System Fan Speed 2194RPM

I also tried echoing minimum values for these fans (3000 and 1500 for fans 1 and 2) but nothing changed in sensors, but the proc entries for fan1 and fan2 did get updated. I echoed a value of 3000 for fan2, but only the proc fan2 file got updated, and no physical change (I was guessing that if I upped the minimum value, i could increase the speed). It might already be at a maxed out speed, so is there a way to test the fans by decreasing the speed?

pwmconfig can still turn off the fans, but there are still overflow messages in "sensors" and they don't go away (I left the computer idle for about half an hour to see if there would be any change).

here is the full output of sensors:
pc87366-isa-ecc0

Adapter: ISA adapter
in0:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in1:       +1.26 V  (min =  +0.00 V, max =   2.97 V)
in2:       +1.34 V  (min =  +0.00 V, max =   2.97 V)
in3:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in4:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in4:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in5:       +1.37 V  (min =  +0.00 V, max =   2.97 V)
in6:       +1.41 V  (min =  +0.00 V, max =   2.97 V)
in7:       +1.65 V  (min =  +0.00 V, max =   2.97 V)
in8:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in9:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in10:      +1.64 V  (min =  +0.00 V, max =   2.97 V)
fan1:     3692 RPM  (min =    0 RPM, div = 1)
fan2:     2162 RPM  (min =    0 RPM, div = 2)
fan3:       -1 RPM  (min =    0 RPM, div = 8)          OVERFLOW
temp1:      +128 C  (low  =  +201 C, high =    -1 C)
temp1_crit:
            +201 C
temp2:      +128 C  (low  =  +201 C, high =    -1 C)
temp2_crit:
            +201 C
temp3:       -76 C  (low  =  +201 C, high =    -1 C)
temp3_crit:
            +201 C

output of cat temp1
-1 201 201 128

temp1_status
131

temp2
-1 201 201 128

temp2_status
131

temp3
-1 201 201 -76

temp3_status
129

I am wondering where all this chip is measuring the temperature; my bios reports only the cpu temp. Once again, I am not sure if these readings above are correct (for farhenheit) or just a coincidental bug.

I am going to go and see if there is a bios update for my motherboard (my bios is an AwardBios on an Asus board) so that I can see other sensor readings.

If there is anything specific you guys would like me to do, I will gladly see to it.

#12 lore raw
In reply to Immanuel Kant

lm_sensors2 cvs 04/26/04 @ 6 pm EST

Awesome. Temp3 appears to be reporting accurate readings (in celcius) of what my bios says is the cpu temperature. The high and low temperatures are also stated correctly (with the default values, according to the pc87366 data sheet). The temperature is also slowly rising for temp3, so there there is definitely constant measurement happening.

However, temp1 and temp2 still display negative -128 instead of zero. I'll look into my board and see if this chip is trying to measure other temperatures, but I doubt it.

Also, I tried looking for information about what temp3 should be reporting (the nat.semi. ship temp or the cpu temp) but was unable to locate anything. I'll have a closer look.

I will do some environment changing this weekend. Every four months I clean out my cpu fan because it gets bogged with dust, and my bios reports a significantly lower temperature. If this change is shown on temp3, then I can confirm that the temp3 value is indeed the cpu temperature.

Fans are working as they have. I can set minimum values without a problem. However I noticed 2 oddities:
1:) echoing a value that is greater than the current fan rotation speed will yield a different number for minimum in "sensors" or in the proc entry. 2:) the alarm flags don't wear off even if I set the minimum value under the current fans speed (after having a previous setting that was higher than the fan speed)

Pwmconfig still appears to be confused about the fans. After running it (and after it has shut down both my fans and restarted them), I get the overflow flags in "sensors" and the speeds are reported as -1.

(the following output is after I did
echo "1 2" > /proc/sys/dev/sensors/pc87366-isa-ecc0/fan_div echo 3000 > /proc/sys/dev/sensors/pc87366-isa-ecc0/fan1 echo 1500 > /proc/sys/dev/sensors/pc87366-isa-ecc0/fan2 echo 3500 > /proc/sys/dev/sensors/pc87366-isa-ecc0/fan1 echo 2170 > /proc/sys/dev/sensors/pc87366-isa-ecc0/fan2 echo 2400 > /proc/sys/dev/sensors/pc87366-isa-ecc0/fan1)

output of sensors
pc87366-isa-ecc0

Adapter: ISA adapter
in0:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in1:       +1.25 V  (min =  +0.00 V, max =   2.97 V)
in2:       +1.32 V  (min =  +0.00 V, max =   2.97 V)
in3:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in4:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in4:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in5:       +1.36 V  (min =  +0.00 V, max =   2.97 V)
in6:       +1.41 V  (min =  +0.00 V, max =   2.97 V)
in7:       +1.65 V  (min =  +0.00 V, max =   2.97 V)
in8:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in9:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in10:      +1.63 V  (min =  +0.00 V, max =   2.97 V)
fan1:     3404 RPM  (min = 2400 RPM, div = 1)          ALARM
fan2:     2162 RPM  (min = 2181 RPM, div = 2)          ALARM
fan3:       -1 RPM  (min =    0 RPM, div = 8)          OVERFLOW
temp1:      -128 C  (low  =   -55 C, high =  +127 C)
temp1_crit:
            +127 C
temp2:      -128 C  (low  =   -55 C, high =  +127 C)
temp2_crit:
            +127 C
temp3:       +53 C  (low  =   -55 C, high =  +127 C)
temp3_crit:
            +127 C

For he above, even though I echoed fan2 to have a min value of 2170, it is reporting 2181. I had a similar problem with fan1's min, but echoing 2400 gave no problems.

output of sensors -u
pc87366-isa-ecc0
Adapter: ISA adapter
alarms_in: 0.00 (alarms_in)
alarms_temp: 0.00 (alarms_temp)
fan1: 3404.00 (fan1)
fan1_min: 2400.00 (fan1_min)
fan1_div: 1.00 (fan1_div)
fan1_status: 2.00 (fan1_status)
fan2: 2162.00 (fan2)
fan2_min: 2181.00 (fan2_min)
fan2_div: 2.00 (fan2_div)
fan2_status: 2.00 (fan2_status)
fan3: -1.00 (fan3)
fan3_min: 0.00 (fan3_min)
fan3_div: 8.00 (fan3_div)
fan3_status: 4.00 (fan3_status)
in0: 0.00 (in0)
in0_min: 0.00 (in0_min)
in0_max: 0.00 (in0_max)
in0_status: 0.00 (in0_status)
in1: 1.25 (in1)
in1_min: 0.00 (in1_min)
in1_max: 2.97 (in1_max)
in1_status: 129.00 (in1_status)
in2: 1.32 (in2)
in2_min: 0.00 (in2_min)
in2_max: 2.97 (in2_max)
in2_status: 129.00 (in2_status)
in3: 0.00 (in3)
in3_min: 0.00 (in3_min)
in3_max: 0.00 (in3_max)
in3_status: 0.00 (in3_status)
in4: 0.00 (in4)
in4_min: 0.00 (in4_min)
in4_max: 0.00 (in4_max)
in4_status: 0.00 (in4_status)
in5: 1.37 (in5)
in5_min: 0.00 (in5_min)
in5_max: 2.97 (in5_max)
in5_status: 129.00 (in5_status)
in6: 1.41 (in6)
in6_min: 0.00 (in6_min)
in6_max: 2.97 (in6_max)
in6_status: 129.00 (in6_status)
in7: 1.64 (in7)
in7_min: 0.00 (in7_min)
in7_max: 2.97 (in7_max)
in7_status: 129.00 (in7_status)
in8: 0.00 (in8)
in8_min: 0.00 (in8_min)
in8_max: 0.00 (in8_max)
in8_status: 0.00 (in8_status)
in9: 0.00 (in9)
in9_min: 0.00 (in9_min)
in9_max: 0.00 (in9_max)
in9_status: 0.00 (in9_status)
in10: 1.63 (in10)
in10_min: 0.00 (in10_min)
in10_max: 2.97 (in10_max)
in10_status: 129.00 (in10_status)
temp1: -128.00 (temp1)
temp1_min: -55.00 (temp1_min)
temp1_max: 127.00 (temp1_max)
temp1_crit: 127.00 (temp1_crit)
temp1_status: 127.00 (temp1_status)
temp2: -128.00 (temp2)
temp2_min: -55.00 (temp2_min)
temp2_max: 127.00 (temp2_max)
temp2_crit: 127.00 (temp2_crit)
temp2_status: 127.00 (temp2_status)
temp3: 53.00 (temp3)
temp3_min: -55.00 (temp3_min)
temp3_max: 127.00 (temp3_max)
temp3_crit: 127.00 (temp3_crit)
temp3_status: 127.00 (temp3_status)

ls -l /proc/sys/dev/sensors/pc87366-isa-ecc0

-r--r--r--    1 root     root            0 Apr 26 21:01 alarms
-rw-r--r--    1 root     root            0 Apr 26 21:01 fan1
-r--r--r--    1 root     root            0 Apr 26 21:01 fan1_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 fan2
-r--r--r--    1 root     root            0 Apr 26 21:01 fan2_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 fan3
-r--r--r--    1 root     root            0 Apr 26 21:01 fan3_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 fan_div
-rw-r--r--    1 root     root            0 Apr 26 21:01 in0
-r--r--r--    1 root     root            0 Apr 26 21:01 in0_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 in1
-rw-r--r--    1 root     root            0 Apr 26 21:01 in10
-r--r--r--    1 root     root            0 Apr 26 21:01 in10_status
-r--r--r--    1 root     root            0 Apr 26 21:01 in1_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 in2
-r--r--r--    1 root     root            0 Apr 26 21:01 in2_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 in3
-r--r--r--    1 root     root            0 Apr 26 21:01 in3_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 in4
-r--r--r--    1 root     root            0 Apr 26 21:01 in4_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 in5
-r--r--r--    1 root     root            0 Apr 26 21:01 in5_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 in6
-r--r--r--    1 root     root            0 Apr 26 21:01 in6_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 in7
-r--r--r--    1 root     root            0 Apr 26 21:01 in7_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 in8
-r--r--r--    1 root     root            0 Apr 26 21:01 in8_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 in9
-r--r--r--    1 root     root            0 Apr 26 21:01 in9_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 pwm1
-rw-r--r--    1 root     root            0 Apr 26 21:01 pwm2
-rw-r--r--    1 root     root            0 Apr 26 21:01 pwm3
-rw-r--r--    1 root     root            0 Apr 26 21:01 temp1
-rw-r--r--    1 root     root            0 Apr 26 21:01 temp1_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 temp2
-rw-r--r--    1 root     root            0 Apr 26 21:01 temp2_status
-rw-r--r--    1 root     root            0 Apr 26 21:01 temp3
-rw-r--r--    1 root     root            0 Apr 26 21:01 temp3_status

cat /proc/sys/dev/sensors/pc87366-isa-ecc0/*
0 0
2400 3404
2
2181 2162
2
0 -1
4
1 2 8
0.00 0.00 0.00
0
0.00 2.97 1.25
0.00 2.97 1.63
129
129
0.00 2.97 1.32
129
0.00 0.00 0.00
0
0.00 0.00 0.00
0
0.00 2.97 1.36
129
0.00 2.97 1.40
129
0.00 2.97 1.65
129
0.00 0.00 0.00
0
0.00 0.00 0.00
0
255 0
255 0
255 1
127 -55 127 -128
131
127 -55 127 -128
131
127 -55 127 53
129

Sad news is that my motherboard is a "custom" HP-Asus motherboard (P4B-LA) not supported by Asus themselves. HP doesn't seem to have any intrust in bios upgrades, so for now I am still without voltage readings in bios. I will keep trying to see if I can call into a higher level technician to see if they have any info on getting information from the nat.semi. chip through the bios.

Thanks for your continuing work on this driver!

#13 lore raw
In reply to Immanuel Kant

lm_sensors2 cvs 04/27/04 @ 7:00 pm EST

I am definitely agreeing with the idea that temp3 is the National Semiconductor's internet temperature. I left my bios on for about half an hour, and noticed that it reported the cpu temperature to be at 66 degrees celcius (which is definitely hotter than I expected). Doing "sensors" still yielded the 53 - 56 degree range (varying within that range), even though the bios was reporting a constant increase in temperature.

Here are the isadump outputs:

isadump -f 0xecd0 16 11
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 0b 81 59 ff 00 ff 00

isadump -f 0xecd0 16 12
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 0c 81 64 ff 00 ff 00

isadump -f 0xecd0 16 13
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 0d 81 5d ff 00 ff 00

isadump -f 0xecf0 16 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 05 00 00 00 00 00 00 00 02 00 83 80 7f c9 7f 00

isadump -f 0xecf0 16 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 05 00 00 00 00 00 00 00 02 01 83 80 7f c9 7f 00

isadump -f 0xecf0 16 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 05 00 00 00 00 00 00 00 02 02 81 37 7f c9 7f 00

Also, I did echo "50 -55 50" > temp3 to set the high and critical temperatures. It reports a temperature of 54 C, but I didn't see an alarm flag (I assumed there should be one). (ouput of sensors at the end of text)

The fans seem to be working with pwmconfig a lot better, though still some quirks exist. It can be run (shutting off the fans) and there are no longer overflow flags and the readings remain accurate (no longer changing to -1).

Here is the pwmconfig output (the main strangeness is in the testing of pwm3, to which I still have not attached a fan):

Found the following PWM controls:
pc87366-isa-ecc0/pwm1
pc87366-isa-ecc0/pwm2
pc87366-isa-ecc0/pwm3

Found the following fan sensors:

   pc87366-isa-ecc0/fan1     current speed: 3692 RPM
   pc87366-isa-ecc0/fan2     current speed: 2162 RPM
   pc87366-isa-ecc0/fan3     current speed: 0 ... skipping!

Warning!!! This program will stop your fans, one at a time, for approximately 5 seconds each!!!
This may cause your processor temperature to rise!!! If you do not want to do this hit control-C now!!! Hit return to continue:

Testing pwm control pc87366-isa-ecc0/pwm1 ...
pc87366-isa-ecc0/fan1 ... speed was 3692 now 3692
no correlation
pc87366-isa-ecc0/fan2 ... speed was 2162 now 2162
no correlation

No correlations were detected.
There is either no fan connected to the output of pc87366-isa-ecc0/pwm1, or the connected fan has no rpm-signal connected to one of the tested fan sensors. (Note: not all motherboards have
the pwm outputs connected to the fan connectors,
check out the hardware database on http://www.almico.com/forumindex.php)

Did you see/hear a fan stopping during the above test (n)? y

Testing pwm control pc87366-isa-ecc0/pwm2 ...
pc87366-isa-ecc0/fan1 ... speed was 3692 now 3692
no correlation
pc87366-isa-ecc0/fan2 ... speed was 2162 now 2162
no correlation

No correlations were detected.
There is either no fan connected to the output of pc87366-isa-ecc0/pwm2, or the connected fan has no rpm-signal connected to one of the tested fan sensors. (Note: not all motherboards have
the pwm outputs connected to the fan connectors,
check out the hardware database on http://www.almico.com/forumindex.php)

Did you see/hear a fan stopping during the above test (n)? y

Testing pwm control pc87366-isa-ecc0/pwm3 ...
pc87366-isa-ecc0/fan1 ... speed was 3692 now 3692
no correlation
pc87366-isa-ecc0/fan2 ... speed was 2162 now 1153
It appears that fan pc87366-isa-ecc0/fan2
is controlled by pwm pc87366-isa-ecc0/pwm3
Would you like to generate a detailed correlation (y)? Would you like to generate a graphical plot using gnuplot (y)?

    PWM 255 FAN 2162
    PWM 240 FAN 2162
    PWM 225 FAN 2162
    PWM 210 FAN 2162
    PWM 195 FAN 2162
    PWM 180 FAN 2162
    PWM 165 FAN 2162
    PWM 150 FAN 2162
    PWM 135 FAN 2162
    PWM 120 FAN 2162
    PWM 105 FAN 2162
    PWM 90 FAN 2162
    PWM 75 FAN 2162
    PWM 60 FAN 2162
    PWM 45 FAN 2162
    PWM 30 FAN 2162
    PWM 15 FAN 2162
    PWM 0 FAN 2162

Warning: empty y range [2162:2162], adjusting to [2140.38:2183.62]
Hit return to continue...

I have not played with fanconfig yet, but I will do so once I am sure I have a cpu temperature monitor.

However, I did do some pwm changes by echoing values to the pwm files in the proc entry. The fans did successfully change speed (I opened the case to see them slow down), but there was no change in speed reported in "sensors". I got overflow flags after echoing a value below a certain point.
For example:
echo 200 > pwm2 gives me in sensors
fan2: 2181 RPM (min = 2000 RPM, div = 2) OVERFLOW
which won't go away until I echo at least 228 and run the "sensors" command at least twice.
Hmm, this problem also exists with echoing values lower than 228 to pwm1. This time, I echo a value above or equal to 228 and I have to run sensors three times before the flag goes away.
I am guess this has to do with the the drivers need to refresh itself (note: in dmesg I get a lot of "pc87360.o: Data update" messages).

The flags for the fans get updated (both the overflow and alert flags) only after running "sensors" a few times.

output of sensors:
pc87366-isa-ecc0

Adapter: ISA adapter
in0:       +1.58 V  (min =  +0.00 V, max =   0.00 V)
in1:       +1.25 V  (min =  +0.00 V, max =   2.97 V)
in2:       +1.32 V  (min =  +0.00 V, max =   2.97 V)
in3:       +0.09 V  (min =  +0.00 V, max =   0.00 V)
in4:       +1.58 V  (min =  +0.00 V, max =   0.00 V)
in4:       +1.58 V  (min =  +0.00 V, max =   0.00 V)
in5:       +1.36 V  (min =  +0.00 V, max =   2.97 V)
in6:       +1.40 V  (min =  +0.00 V, max =   2.97 V)
in7:       +1.65 V  (min =  +0.00 V, max =   2.97 V)
in8:       +2.33 V  (min =  +0.00 V, max =   0.00 V)
in9:       +0.00 V  (min =  +0.05 V, max =   0.00 V)
in10:      +1.63 V  (min =  +0.00 V, max =   2.97 V)
fan1:     3692 RPM  (min = 3000 RPM, div = 1)          ALARM
fan2:     2162 RPM  (min = 2000 RPM, div = 2)          OVERFLOW
fan3:       -1 RPM  (min =    0 RPM, div = 8)          OVERFLOW
temp1:      -128 C  (low  =   -55 C, high =  +127 C)
temp1_crit:
            +127 C
temp2:      -128 C  (low  =   -55 C, high =  +127 C)
temp2_crit:
            +127 C
temp3:       +54 C  (low  =   -55 C, high =   +50 C)
temp3_crit:
             +50 C

*brief summary of what I did to get that status:
for fan1, echoed 3800 as min, then 3000 as min, but flag goes away after doing sensors twice
for fan2, echoed 200 for pwm2, then 255 for pwm2, and flag goes away after doing sensors twice

sensors -u
pc87366-isa-ecc0
Adapter: ISA adapter
alarms_in: 0.00 (alarms_in)
alarms_temp: 0.00 (alarms_temp)
fan1: 3692.00 (fan1)
fan1_min: 3000.00 (fan1_min)
fan1_div: 1.00 (fan1_div)
fan1_status: 1.00 (fan1_status)
fan2: 2162.00 (fan2)
fan2_min: 2000.00 (fan2_min)
fan2_div: 2.00 (fan2_div)
fan2_status: 1.00 (fan2_status)
fan3: -1.00 (fan3)
fan3_min: 0.00 (fan3_min)
fan3_div: 8.00 (fan3_div)
fan3_status: 4.00 (fan3_status)
in0: 1.58 (in0)
in0_min: 0.00 (in0_min)
in0_max: 0.00 (in0_max)
in0_status: 0.00 (in0_status)
in1: 1.23 (in1)
in1_min: 0.00 (in1_min)
in1_max: 2.97 (in1_max)
in1_status: 129.00 (in1_status)
in2: 1.32 (in2)
in2_min: 0.00 (in2_min)
in2_max: 2.97 (in2_max)
in2_status: 129.00 (in2_status)
in3: 0.09 (in3)
in3_min: 0.00 (in3_min)
in3_max: 0.00 (in3_max)
in3_status: 0.00 (in3_status)
in4: 1.58 (in4)
in4_min: 0.00 (in4_min)
in4_max: 0.00 (in4_max)
in4_status: 0.00 (in4_status)
in5: 1.36 (in5)
in5_min: 0.00 (in5_min)
in5_max: 2.97 (in5_max)
in5_status: 129.00 (in5_status)
in6: 1.40 (in6)
in6_min: 0.00 (in6_min)
in6_max: 2.97 (in6_max)
in6_status: 129.00 (in6_status)
in7: 1.65 (in7)
in7_min: 0.00 (in7_min)
in7_max: 2.97 (in7_max)
in7_status: 129.00 (in7_status)
in8: 2.33 (in8)
in8_min: 0.00 (in8_min)
in8_max: 0.00 (in8_max)
in8_status: 0.00 (in8_status)
in9: 0.00 (in9)
in9_min: 0.05 (in9_min)
in9_max: 0.00 (in9_max)
in9_status: 0.00 (in9_status)
in10: 1.64 (in10)
in10_min: 0.00 (in10_min)
in10_max: 2.97 (in10_max)
in10_status: 129.00 (in10_status)
temp1: -128.00 (temp1)
temp1_min: -55.00 (temp1_min)
temp1_max: 127.00 (temp1_max)
temp1_crit: 127.00 (temp1_crit)
temp1_status: 131.00 (temp1_status)
temp2: -128.00 (temp2)
temp2_min: -55.00 (temp2_min)
temp2_max: 127.00 (temp2_max)
temp2_crit: 127.00 (temp2_crit)
temp2_status: 131.00 (temp2_status)
temp3: 54.00 (temp3)
temp3_min: -55.00 (temp3_min)
temp3_max: 50.00 (temp3_max)
temp3_crit: 50.00 (temp3_crit)
temp3_status: 141.00 (temp3_status)

(the following are the proc entries so you know what I have echoed for values)
ls -l /proc/sys/dev/sensors/pc87366-isa-ecc0
total 0

-r--r--r--    1 root     root            0 Apr 27 21:26 alarms
-rw-r--r--    1 root     root            0 Apr 27 21:26 fan1
-r--r--r--    1 root     root            0 Apr 27 21:26 fan1_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 fan2
-r--r--r--    1 root     root            0 Apr 27 21:26 fan2_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 fan3
-r--r--r--    1 root     root            0 Apr 27 21:26 fan3_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 fan_div
-rw-r--r--    1 root     root            0 Apr 27 21:26 in0
-r--r--r--    1 root     root            0 Apr 27 21:26 in0_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 in1
-rw-r--r--    1 root     root            0 Apr 27 21:26 in10
-r--r--r--    1 root     root            0 Apr 27 21:26 in10_status
-r--r--r--    1 root     root            0 Apr 27 21:26 in1_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 in2
-r--r--r--    1 root     root            0 Apr 27 21:26 in2_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 in3
-r--r--r--    1 root     root            0 Apr 27 21:26 in3_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 in4
-r--r--r--    1 root     root            0 Apr 27 21:26 in4_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 in5
-r--r--r--    1 root     root            0 Apr 27 21:26 in5_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 in6
-r--r--r--    1 root     root            0 Apr 27 21:26 in6_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 in7
-r--r--r--    1 root     root            0 Apr 27 21:26 in7_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 in8
-r--r--r--    1 root     root            0 Apr 27 21:26 in8_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 in9
-r--r--r--    1 root     root            0 Apr 27 21:26 in9_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 pwm1
-rw-r--r--    1 root     root            0 Apr 27 21:26 pwm2
-rw-r--r--    1 root     root            0 Apr 27 21:26 pwm3
-rw-r--r--    1 root     root            0 Apr 27 21:26 temp1
-rw-r--r--    1 root     root            0 Apr 27 21:26 temp1_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 temp2
-rw-r--r--    1 root     root            0 Apr 27 21:26 temp2_status
-rw-r--r--    1 root     root            0 Apr 27 21:26 temp3
-rw-r--r--    1 root     root            0 Apr 27 21:26 temp3_status

cat /proc/sys/dev/sensors/pc87366-isa-ecc0/*
0 0
3000 3404
1
2000 2162
1
0 -1
4
1 2 8
0.00 0.00 1.58
0
0.00 2.97 1.23
0.00 2.97 1.64
129
129
0.00 2.97 1.32
129
0.00 0.00 0.09
0
0.00 0.00 1.58
0
0.00 2.97 1.37
129
0.00 2.97 1.40
129
0.00 2.97 1.65
129
0.00 0.00 2.33
0
0.05 0.00 0.00
0
255 0
255 0
255 1
127 -55 127 -128
131
127 -55 127 -128
131
50 -55 50 55
141

One question: there is an enormous difference (by sound of fans) going from pwm 255 to 220 (or even 230 to 220), and going from 220 to anything lower is sometimes not even noticeable. Is this because there is an exponential relation between pwm and rpm?

Thanks

#14 lore raw
In reply to Immanuel Kant

first, in relation to yesterday's lm_sensors (04/27 @ 7 pm)

Even the proc entries for fan speed don't get updated after echoing new pwm values; the fan#_status files say "4" and sensors will output an overflow flag, no matter how many times I cat the proc entries, run sensors, or leave the computer idle.

I re-ran pwmconfig, an this time, no correlation was detected with pwm3; the ouput it gave was:

Testing pwm control pc87366-isa-ecc0/pwm3 ...
pc87366-isa-ecc0/fan1 ... speed was 3529 now 3529
no correlation
pc87366-isa-ecc0/fan2 ... speed was 2222 now 2222
no correlation

No correlations were detected.
There is either no fan connected to the output of pc87366-isa-ecc0/pwm3, or the connected fan has no rpm-signal connected to one of the tested fan sensors. (Note: not all motherboards have
the pwm outputs connected to the fan connectors,
check out the hardware database on http://www.almico.com/forumindex.php)

So perhaps yesterday's incident was just a rare glitch based on a very specific configuration I had at that very moment I ran pwmconfig (though I don't know what it could be... I have the exact same modules loaded in the same desktop...).

Onto lm_sensors cvs 04/28/04 @ 7:15 pm EST

The alarms for the temperatures seem to be working fine. From what I gather in the last e-mail is that the alarm flag will be displayed one time after the alarm has gone away, and then get cleared. This is exactly what happened here. (note: doing cat on the temp3_status file produced the same effect as having to run sensors before the flag was cleared).

As for the cpu temperature, it seems as though windows programs are also unable to detect it. Here is a link to screenshots of two windows programs I tried (both available online; the first is called speedfans and is freeware, the other is simply called hardware monitor and is shareware)
http://themastermind3000.tripod.com/index.html

The first shot shows that the other temperatures are definitely a problem. It also shows some voltages, so hopefully that will aide in that aspect.
The second shot calls the only reportable temperature the mainboard temperature, and it reports about 51 degrees...
So it seems that this cpu temperature problem is common.

As for fans, this cvs is reporting 0 pwm to be the highest and 255 to be the lowest. For this reason, immediately after I execute pwmconfig, my fans turn off, and when the program tries to really turn off the fans, it turns them back on.

Other than that, the fans' pwm altering is in good working order. All the pwm files have the "1" bit.
However, the speeds will still not get updated. There is an overflow flag if I echo anything above 27 (or 228 if pwm was used normally). I ran sensors several times (giving the computer about a minute of idle time) and cat'ed the fan#_status files several times. When pwm values above 27 were echoed, the status files stated "4". After echoing 27 or lower, the flags would wear off only after I either ran sensors or cat'ed the respective status file and waited at least 4 seconds.

Something similar happens with echoing minimum values. After echoing a minimum value higher than the reported speed, an alarm flag comes on normally. Then, after echoing a value lower than the fan speed, only after cat'ing the respective fan#_status file (which stated "3") or running sensors and then waiting 4 seconds will the flags go away.

For both temperatures and fans, the flags also are removed if gkrellm is running (I suppose since it is continuously querying the driver and forcing it to update); but even while gkrellm ran, the speeds would not get updated with pwm changes.

(the outputs after doing
echo 3800 > fan1
echo 40 > pwm2
echo 3000 > fan1
echo 45 > temp3)

output of sensors:
pc87366-isa-ecc0

Adapter: ISA adapter
in0:       +1.58 V  (min =  +0.00 V, max =   0.00 V)
in1:       +1.29 V  (min =  +0.00 V, max =   2.97 V)
in2:       +1.34 V  (min =  +0.00 V, max =   2.97 V)
in3:       +0.09 V  (min =  +0.00 V, max =   0.00 V)
in4:       +1.58 V  (min =  +0.00 V, max =   0.00 V)
in5:       +1.39 V  (min =  +0.00 V, max =   2.97 V)
in6:       +1.42 V  (min =  +0.00 V, max =   2.97 V)
in7:       +1.65 V  (min =  +0.00 V, max =   2.97 V)
in8:       +2.33 V  (min =  +0.00 V, max =   0.00 V)
in9:       +0.00 V  (min =  +0.05 V, max =   0.00 V)
in10:      +1.63 V  (min =  +0.00 V, max =   2.97 V)
fan1:     3404 RPM  (min = 3000 RPM, div = 1)          ALARM
fan2:     2162 RPM  (min = 2000 RPM, div = 2)          OVERFLOW
fan3:       -1 RPM  (min =    0 RPM, div = 8)          OVERFLOW
temp1:      -128 C  (low  =   -55 C, high =  +127 C)  ALARM
temp1_crit:
            +127 C
temp2:      -128 C  (low  =   -55 C, high =  +127 C)  ALARM
temp2_crit:
            +127 C
temp3:       +52 C  (low  =   -55 C, high =   +45 C)  ALARM
temp3_crit:
            +127 C

sensors -u
pc87366-isa-ecc0
Adapter: ISA adapter
alarms_in: 0.00 (alarms_in)
alarms_temp: 0.00 (alarms_temp)
fan1: 3692.00 (fan1)
fan1_min: 3000.00 (fan1_min)
fan1_div: 1.00 (fan1_div)
fan1_status: 1.00 (fan1_status)
fan2: 2162.00 (fan2)
fan2_min: 2000.00 (fan2_min)
fan2_div: 2.00 (fan2_div)
fan2_status: 4.00 (fan2_status)
fan3: -1.00 (fan3)
fan3_min: 0.00 (fan3_min)
fan3_div: 8.00 (fan3_div)
fan3_status: 4.00 (fan3_status)
in0: 1.58 (in0)
in0_min: 0.00 (in0_min)
in0_max: 0.00 (in0_max)
in0_status: 0.00 (in0_status)
in1: 1.28 (in1)
in1_min: 0.00 (in1_min)
in1_max: 2.97 (in1_max)
in1_status: 129.00 (in1_status)
in2: 1.34 (in2)
in2_min: 0.00 (in2_min)
in2_max: 2.97 (in2_max)
in2_status: 129.00 (in2_status)
in3: 0.09 (in3)
in3_min: 0.00 (in3_min)
in3_max: 0.00 (in3_max)
in3_status: 0.00 (in3_status)
in4: 1.58 (in4)
in4_min: 0.00 (in4_min)
in4_max: 0.00 (in4_max)
in4_status: 0.00 (in4_status)
in5: 1.39 (in5)
in5_min: 0.00 (in5_min)
in5_max: 2.97 (in5_max)
in5_status: 129.00 (in5_status)
in6: 1.42 (in6)
in6_min: 0.00 (in6_min)
in6_max: 2.97 (in6_max)
in6_status: 129.00 (in6_status)
in7: 1.65 (in7)
in7_min: 0.00 (in7_min)
in7_max: 2.97 (in7_max)
in7_status: 129.00 (in7_status)
in8: 2.33 (in8)
in8_min: 0.00 (in8_min)
in8_max: 0.00 (in8_max)
in8_status: 0.00 (in8_status)
in9: 0.00 (in9)
in9_min: 0.05 (in9_min)
in9_max: 0.00 (in9_max)
in9_status: 0.00 (in9_status)
in10: 1.64 (in10)
in10_min: 0.00 (in10_min)
in10_max: 2.97 (in10_max)
in10_status: 129.00 (in10_status)
temp1: -128.00 (temp1)
temp1_min: -55.00 (temp1_min)
temp1_max: 127.00 (temp1_max)
temp1_crit: 127.00 (temp1_crit)
temp1_status: 131.00 (temp1_status)
temp2: -128.00 (temp2)
temp2_min: -55.00 (temp2_min)
temp2_max: 127.00 (temp2_max)
temp2_crit: 127.00 (temp2_crit)
temp2_status: 131.00 (temp2_status)
temp3: 52.00 (temp3)
temp3_min: -55.00 (temp3_min)
temp3_max: 45.00 (temp3_max)
temp3_crit: 127.00 (temp3_crit)
temp3_status: 133.00 (temp3_status)

By the way, what are the temp#_status files reporting?

I will see what I can dig up about those other special channels for this chip, most likely this weekend.

#15 lore raw
In reply to Immanuel Kant

lm_sensors2 cvs 04/29/04 @ 6:00 pm EST

The temperature and voltage monitoring are working just as they have.

For fans, it definitely is strange how this board is handling the fans' invertedness, but this cvs seems to have fixed the problem. All the pwm files say "255 1" before any of the values are changed.

I can echo new pwm values to pwm1 and pwm2 in the proc entry, and I can hear the speeds change. However, no fan speeds are updated; overflow flags are still shown when pwm values below 228 are issued and the fan#_status file displays "4". Whenever there is an overflow flag, the speed is reported as -1.

Pwmconfig is working a lot better now. It creates a correlation list, but only for pwm values 255 and 240, then reports "-1" for everything else. Strangely, depending on the fan divisor, those 2 correlation values either make sense (the first is larger than the second) and sometimes it doesn't (the second value is larger).

Here is the pwmconfig output when the fan_div file says "8 8 8"

Found the following PWM controls:
pc87366-isa-ecc0/pwm1
pc87366-isa-ecc0/pwm2
pc87366-isa-ecc0/pwm3

Found the following fan sensors:

   pc87366-isa-ecc0/fan1     current speed: 3750 RPM
   pc87366-isa-ecc0/fan2     current speed: 2222 RPM
   pc87366-isa-ecc0/fan3     current speed: 0 ... skipping!

Warning!!! This program will stop your fans, one at a time, for approximately 5 seconds each!!!
This may cause your processor temperature to rise!!! If you do not want to do this hit control-C now!!! Hit return to continue:

Testing pwm control pc87366-isa-ecc0/pwm1 ...
pc87366-isa-ecc0/fan1 ... speed was 3750 now -1
It appears that fan pc87366-isa-ecc0/fan1
is controlled by pwm pc87366-isa-ecc0/pwm1
Would you like to generate a detailed correlation (y)? Would you like to generate a graphical plot using gnuplot (y)? n

    PWM 255 FAN 3750
    PWM 240 FAN 3529
    PWM 225 FAN -1
    PWM 210 FAN -1
    PWM 195 FAN -1
    PWM 180 FAN -1
    PWM 165 FAN -1
    PWM 150 FAN -1
    PWM 135 FAN -1
    PWM 120 FAN -1
    PWM 105 FAN -1
    PWM 90 FAN -1
    PWM 75 FAN -1
    PWM 60 FAN -1
    PWM 45 FAN -1
    PWM 30 FAN -1
    PWM 15 FAN -1
    PWM 0 FAN -1

pc87366-isa-ecc0/fan2 ... speed was 2222 now 2222
no correlation

Testing pwm control pc87366-isa-ecc0/pwm2 ...
pc87366-isa-ecc0/fan1 ... speed was 3750 now 3529
no correlation
pc87366-isa-ecc0/fan2 ... speed was 2222 now -1
It appears that fan pc87366-isa-ecc0/fan2
is controlled by pwm pc87366-isa-ecc0/pwm2
Would you like to generate a detailed correlation (y)? Would you like to generate a graphical plot using gnuplot (y)? n

    PWM 255 FAN 2222
    PWM 240 FAN 2222
    PWM 225 FAN -1
    PWM 210 FAN -1
    PWM 195 FAN -1
    PWM 180 FAN -1
    PWM 165 FAN -1
    PWM 150 FAN -1
    PWM 135 FAN -1
    PWM 120 FAN -1
    PWM 105 FAN -1
    PWM 90 FAN -1
    PWM 75 FAN -1
    PWM 60 FAN -1
    PWM 45 FAN -1
    PWM 30 FAN -1
    PWM 15 FAN -1
    PWM 0 FAN -1

Testing pwm control pc87366-isa-ecc0/pwm3 ...
pc87366-isa-ecc0/fan1 ... speed was 3750 now 3750
no correlation
pc87366-isa-ecc0/fan2 ... speed was 2222 now 2222
no correlation

No correlations were detected.
There is either no fan connected to the output of pc87366-isa-ecc0/pwm3, or the connected fan has no rpm-signal connected to one of the tested fan sensors. (Note: not all motherboards have
the pwm outputs connected to the fan connectors,
check out the hardware database on http://www.almico.com/forumindex.php)

Did you see/hear a fan stopping during the above test (n)?

Testing is complete.
Please verify that all fans have returned to their normal speed.

And pwmconfig output when fan_div says "1 2 8"

Found the following fan sensors:

   pc87366-isa-ecc0/fan1     current speed: 3692 RPM
   pc87366-isa-ecc0/fan2     current speed: 2162 RPM
   pc87366-isa-ecc0/fan3     current speed: 0 ... skipping!

Warning!!! This program will stop your fans, one at a time, for approximately 5 seconds each!!!
This may cause your processor temperature to rise!!! If you do not want to do this hit control-C now!!! Hit return to continue:

Testing pwm control pc87366-isa-ecc0/pwm1 ...
pc87366-isa-ecc0/fan1 ... speed was 3692 now -1
It appears that fan pc87366-isa-ecc0/fan1
is controlled by pwm pc87366-isa-ecc0/pwm1
Would you like to generate a detailed correlation (y)? Would you like to generate a graphical plot using gnuplot (y)?

    PWM 255 FAN 3692
    PWM 240 FAN 3692
    PWM 225 FAN -1
    PWM 210 FAN -1
    PWM 195 FAN -1
    PWM 180 FAN -1
    PWM 165 FAN -1
    PWM 150 FAN -1
    PWM 135 FAN -1
    PWM 120 FAN -1
    PWM 105 FAN -1
    PWM 90 FAN -1
    PWM 75 FAN -1
    PWM 60 FAN -1
    PWM 45 FAN -1
    PWM 30 FAN -1
    PWM 15 FAN -1
    PWM 0 FAN -1
    Hit return to continue...

pc87366-isa-ecc0/fan2 ... speed was 2162 now 2162
no correlation

Testing pwm control pc87366-isa-ecc0/pwm2 ...
pc87366-isa-ecc0/fan1 ... speed was 3692 now 3428
no correlation
pc87366-isa-ecc0/fan2 ... speed was 2162 now -1
It appears that fan pc87366-isa-ecc0/fan2
is controlled by pwm pc87366-isa-ecc0/pwm2
Would you like to generate a detailed correlation (y)? Would you like to generate a graphical plot using gnuplot (y)? n

    PWM 255 FAN 2162
    PWM 240 FAN 2181
    PWM 225 FAN -1
    PWM 210 FAN -1
    PWM 195 FAN -1
    PWM 180 FAN -1
    PWM 165 FAN -1
    PWM 150 FAN -1
    PWM 135 FAN -1
    PWM 120 FAN -1
    PWM 105 FAN -1
    PWM 90 FAN -1
    PWM 75 FAN -1
    PWM 60 FAN -1
    PWM 45 FAN -1
    PWM 30 FAN -1
    PWM 15 FAN -1
    PWM 0 FAN -1

Testing pwm control pc87366-isa-ecc0/pwm3 ...
pc87366-isa-ecc0/fan1 ... speed was 3692 now 3692
no correlation
pc87366-isa-ecc0/fan2 ... speed was 2162 now 2162
no correlation

No correlations were detected.
There is either no fan connected to the output of pc87366-isa-ecc0/pwm3, or the connected fan has no rpm-signal connected to one of the tested fan sensors. (Note: not all motherboards have
the pwm outputs connected to the fan connectors,
check out the hardware database on http://www.almico.com/forumindex.php)

Did you see/hear a fan stopping during the above test (n)?

Testing is complete.
Please verify that all fans have returned to their normal speed.

Other than this issue, I don't see any other problems.

Output of sensors: (echo 200 > pwm2)

pc87366-isa-ecc0

Adapter: ISA adapter
in0:       +1.58 V  (min =  +0.00 V, max =   0.00 V)
in1:       +1.27 V  (min =  +0.00 V, max =   2.97 V)
in2:       +1.33 V  (min =  +0.00 V, max =   2.97 V)
in3:       +0.09 V  (min =  +0.00 V, max =   0.00 V)
in4:       +1.58 V  (min =  +0.00 V, max =   0.00 V)
in5:       +1.37 V  (min =  +0.00 V, max =   2.97 V)
in6:       +1.41 V  (min =  +0.00 V, max =   2.97 V)
in7:       +1.64 V  (min =  +0.00 V, max =   2.97 V)
in8:       +2.33 V  (min =  +0.00 V, max =   0.00 V)
in9:       +0.00 V  (min =  +0.05 V, max =   0.00 V)
in10:      +1.63 V  (min =  +0.00 V, max =   2.97 V)
fan1:     3692 RPM  (min =    0 RPM, div = 1)
fan2:       -1 RPM  (min =    0 RPM, div = 2)          OVERFLOW
fan3:       -1 RPM  (min =    0 RPM, div = 8)          OVERFLOW
temp1:      -128 C  (low  =   -55 C, high =  +127 C)  ALARM
temp1_crit:
            +127 C
temp2:      -128 C  (low  =   -55 C, high =  +127 C)  ALARM
temp2_crit:
            +127 C
temp3:       +52 C  (low  =   -55 C, high =   +45 C)  ALARM
temp3_crit:
            +127 C

In order to play with fanconfig, I want to be able to see my cpu temperature (so I don't burn it out when I turn off the fans for too long), so would you know how easy/difficult it would be to get the chip to record the cpu temperature the "normal" way, considering it is already being monitored using the chip's other channels? If this will require soldering, please let me know.

Thanks!

#16 lore raw
In reply to Immanuel Kant
Quoted 5 lines

Sorry about not responding for the last few days; I was unaware that I would be unavailable during the weekend, and was thus unable to get in contact with HP, Asustek, or National Semiconductor. I don't think I'll have time today, but it will certainly be on my agenda for this week.

No problem. I had plenty of other issues to work on, and this gave me some time to do some fixes and improvements to the driver.

Quoted 2 lines

The output of sensors has an overall better look and feeling; it is much cleaner.

Great :)

Quoted 2 lines

Fan speeds are still causing the same problem when pwm is changed here are the outputs of isadump -f 0xecc0 16 during pwm changing:

Let me summarize what I see here:

Quoted 3 lines

pwm1 and pwm2 is 255
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 ff 00 ff 00 ff ff 0f 60 ff 00 64 ff 00 64 00

1* Fan 2 is already broken at the beginning of the experiment, although both PWM are 255. Odd.

Quoted 7 lines

pwm2 is 200
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 ff 00 c8 00 ff ff 0f 60 ff 00 64 ff 00 64 00

pwm2 is 230
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 ff 00 e6 00 ff ff 0f 60 ff 00 64 ff 00 64 00

2* Changing PWM 2 has no effect.

Quoted 3 lines

pwm2 is 255 and pwm1 is 200
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 c8 00 ff 00 ff ff 00 64 ff 1b 60 ff 00 64 00

Fan 2 is working again, and now fan1 is broken.

Quoted 7 lines

pwm 1 is 230
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 e6 00 ff 00 ff ff 00 64 ff 1b 60 ff 00 64 00

pwm1 is 240
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 f0 00 ff 00 ff ff 00 64 ff 1c 60 ff 00 64 00

No change here.

Quoted 3 lines

pwm1 is 245 and pwm2 is 215
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 f5 00 d7 00 ff ff 00 64 ff 00 64 ff 00 64 00

Both fans are now OK.

I still don't get what's going on. If you want to experiment further, there are two things you may try:

1* Changing PWM base clock:

isaset -f 0xecc0 3
isaset -f 0xecc2 3

And play with PWM again, and see if it changed anything.

2* Disabling control and monitoring, and reenabling it.

isaset 0x2e 0x2f 7 9
isaset 0x2e 0x2f 0xf0 0
isaset 0x2e 0x2f 0xf0 0xfc

And play with PWM again, and see if it changed anything.

I doubt it'll work, but there's nothing smart I can think of at the moment.

I'll ask my other tester to try changing pwm values as well and tell me if he observes the same problems as you.

There's another thing I would like you to do:

isaset -f 0xecd9 9
isaset -f 0xecda 1

sleep 2100
isadump -f 0xecd0 16 9 > pc87366-in9.dump

isaset -f 0xecd9 9
isaset -f 0xecda 0

This will temporarily enable Vbat monitoring, wait for it to be updated (may take up to 34 minutes, thus the sleep) and grab its value, then disable it again.

My other tester has a strange value for Vbat (1.02V, should be 3.0V) and I wonder if it'll be the same for you or not.

And please provide in8 dump again:

isadump -f 0xecd0 16 9 > pc87366-in8.dump

It is disabled in your previous dump (while the driver now enables it on load, so it is enabled).

Thanks.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#17 lore raw
In reply to Immanuel Kant
Quoted 5 lines

lm_sensors cvs 05/05/04 @ 6:00 pm

Fan speeds are still problematic. I tried the isasets, but it didn't make any apparent difference.

OK... No more ideas at the moment.

Quoted 1 line

the in8 and in9 dumps are attached

Can't be. Both attached files are for in9.

Quoted 5 lines

;after running
isaset -f 0xecc0 3
isaset -f 0xecc2 3
will I need to set it back to the default setting? How would I do so, or will it not make a difference in testing the fans?

You do not need to, it's not a big change. If you want to, however, the commands would be:

isaset -f 0xecc0 0
isaset -f 0xecc2 0

Thanks.

#18 lore raw
In reply to Immanuel Kant

Sorry about not responding for the last few days; I was unaware that I would be unavailable during the weekend, and was thus unable to get in contact with HP, Asustek, or National Semiconductor. I don't think I'll have time today, but it will certainly be on my agenda for this week.

lm_sensors2 cvs 05/02/04 @ 5:20 EST

*Attached are the isadumps from the previous e-mail. If you need me to just write them into an e-mail, let me know.

The output of sensors has an overall better look and feeling; it is much cleaner.

Fan speeds are still causing the same problem when pwm is changed here are the outputs of isadump -f 0xecc0 16 during pwm changing:

pwm1 and pwm2 is 255
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 ff 00 ff 00 ff ff 0f 60 ff 00 64 ff 00 64 00

pwm2 is 200
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 ff 00 c8 00 ff ff 0f 60 ff 00 64 ff 00 64 00

pwm2 is 230
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 ff 00 e6 00 ff ff 0f 60 ff 00 64 ff 00 64 00

pwm2 is 255 and pwm1 is 200
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 c8 00 ff 00 ff ff 00 64 ff 1b 60 ff 00 64 00

pwm 1 is 230
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 e6 00 ff 00 ff ff 00 64 ff 1b 60 ff 00 64 00

pwm1 is 240
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 f0 00 ff 00 ff ff 00 64 ff 1c 60 ff 00 64 00

pwm1 is 245 and pwm2 is 215
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 f5 00 d7 00 ff ff 00 64 ff 00 64 ff 00 64 00

The voltage alarms are also working. I can echo a min or max value and an alarm flag will be displayed. Setting a value to take away the alarm will remove the alarm flag after sensors has been run once (or the status file cat'ed) and then run once again after waiting a few seconds. Also, for voltages that either aren't used or aren't monitored, setting a min or max value sets no flag (but sensors does report the updated value).

The sensors.conf file also correctly sets min and max values for the specified voltages, and hides unused values in readings from showing in "sensors."

output of sensors:
pc87366-isa-ecc0

Adapter: ISA adapter
in0:       +0.00 V  (min =  +0.99 V, max =   0.00 V)
in1:       +1.31 V  (min =  +0.00 V, max =   0.99 V)       ALARM
in2:       +0.82 V  (min =  +2.99 V, max =   3.02 V)       ALARM
in3:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in4:       +0.00 V  (min =  +0.00 V, max =   0.00 V)
in5:       +1.49 V  (min =  +0.00 V, max =   3.02 V)
in6:       +1.49 V  (min =  +0.00 V, max =   3.02 V)
Vsb:       +3.36 V  (min =  +3.12 V, max =   3.46 V)
Vdd:       +3.34 V  (min =  +0.00 V, max =   6.04 V)
AVdd:      +3.32 V  (min =  +3.12 V, max =   3.46 V)
fan1:     3779 RPM  (min =    0 RPM, div = 1)
fan2:     2162 RPM  (min =    0 RPM, div = 2)
S-IO Temp:   +47 C  (low  =   -55 C, high =  +127 C)
S-IO Crit:  +127 C

sensors -u
pc87366-isa-ecc0
Adapter: ISA adapter
alarms_in: 0.00 (alarms_in)
alarms_temp: 0.00 (alarms_temp)
fan1: 3503.00 (fan1)
fan1_min: 0.00 (fan1_min)
fan1_div: 1.00 (fan1_div)
fan1_status: 1.00 (fan1_status)
fan2: 2162.00 (fan2)
fan2_min: 0.00 (fan2_min)
fan2_div: 2.00 (fan2_div)
fan2_status: 1.00 (fan2_status)
in0: 0.00 (in0)
in0_min: 0.99 (in0_min)
in0_max: 0.00 (in0_max)
in0_status: 0.00 (in0_status)
in1: 1.33 (in1)
in1_min: 0.00 (in1_min)
in1_max: 0.99 (in1_max)
in1_status: 133.00 (in1_status)
in2: 0.82 (in2)
in2_min: 2.99 (in2_min)
in2_max: 3.02 (in2_max)
in2_status: 131.00 (in2_status)
in3: 0.00 (in3)
in3_min: 0.00 (in3_min)
in3_max: 0.00 (in3_max)
in3_status: 0.00 (in3_status)
in4: 0.00 (in4)
in4_min: 0.00 (in4_min)
in4_max: 0.00 (in4_max)
in4_status: 0.00 (in4_status)
in5: 1.47 (in5)
in5_min: 0.00 (in5_min)
in5_max: 3.02 (in5_max)
in5_status: 129.00 (in5_status)
in6: 1.50 (in6)
in6_min: 0.00 (in6_min)
in6_max: 3.02 (in6_max)
in6_status: 129.00 (in6_status)
Vsb: 3.36 (in7)
in7_min: 3.12 (in7_min)
in7_max: 3.46 (in7_max)
in7_status: 129.00 (in7_status)
Vdd: 3.34 (in8)
in8_min: 0.00 (in8_min)
in8_max: 6.04 (in8_max)
in8_status: 129.00 (in8_status)
AVdd: 3.32 (in10)
in10_min: 3.12 (in10_min)
in10_max: 3.46 (in10_max)
in10_status: 129.00 (in10_status)
S-IO Temp: 48.00 (temp3)
temp3_min: -55.00 (temp3_min)
temp3_max: 127.00 (temp3_max)
S-IO Crit: 127.00 (temp3_crit)
temp3_status: 129.00 (temp3_status)

#19 lore raw
In reply to Immanuel Kant

The isadumps didn't get attached, apparently. This time, they are. -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 ff 00 ff 00 ff ff 8a 00 ff 70 20 ff 00 64 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 00 00 00 ff 00 00 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 01 81 7a ff 00 00 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 0a 81 8d 92 84 00 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 0b 81 7c ff 00 ff 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 0c 81 73 ff 00 ff 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 0d 81 77 ff 00 ff 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 02 81 7c ff 00 00 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 03 00 00 ff 00 00 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 04 00 00 ff 00 00 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 05 81 7d ff 00 00 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 06 81 7f ff 00 00 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 07 81 8e 92 84 00 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 08 00 00 ff 00 00 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 00 00 00 00 00 00 1f 05 02 09 00 00 ff 00 00 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 05 00 00 00 00 00 00 00 02 00 83 80 7f c9 7f 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 05 00 00 00 00 00 00 00 02 01 83 80 7f c9 7f 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 05 00 00 00 00 00 00 00 02 02 81 30 7f c9 7f 00

#20 lore raw
In reply to Immanuel Kant

lm_sensors cvs 05/05/04 @ 6:00 pm

Fan speeds are still problematic. I tried the isasets, but it didn't make any apparent difference.

the in8 and in9 dumps are attached

;after running
isaset -f 0xecc0 3
isaset -f 0xecc2 3
will I need to set it back to the default setting? How would I do so, or will it not make a difference in testing the fans? -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 06 00 00 00 00 00 1f 05 02 09 80 ff ff 00 00 00 -------------- next part --------------
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 06 00 00 00 00 00 1f 05 02 09 81 ff ff 00 00 00