Skip to contentSkip to conversation

Need help setting up sensors on Gigabye GA-945GCM-S2L (IT8718F)

lm-sensors ianp 2 participants 3 messages Feb 20, 2014

lore
Share & tools
lore

ianp

author
#0 lore raw

I wish to share some more configurations as I set them up. Now I'm trying to configure my sensors on a Gigabyte GA-945GCM-S2L, running Linux 3.2.

$ dmesg | grep it87
it87: Found IT8718F chip at 0x290, revision 4
it87: Beeping is supported

Here's the default and unscaled sensors output:

$ sensors -u

it8718-isa-0290
Adapter: ISA adapter
in0:
  in0_input: 1.184
  in0_min: 0.848
  in0_max: 1.360
  in0_alarm: 0.000
  in0_beep: 0.000
in1:
  in1_input: 1.840
  in1_min: 1.712
  in1_max: 1.888
  in1_alarm: 1.000
  in1_beep: 0.000
in2:
  in2_input: 3.392
  in2_min: 3.136
  in2_max: 3.472
  in2_alarm: 0.000
  in2_beep: 0.000
in3:
  in3_input: 4.080
  in3_min: 0.000
  in3_max: 4.080
  in3_alarm: 1.000
  in3_beep: 0.000
in4:
  in4_input: 3.120
  in4_min: 2.896
  in4_max: 3.200
  in4_alarm: 0.000
  in4_beep: 0.000
in5:
  in5_input: 4.080
  in5_min: 0.000
  in5_max: 4.080
  in5_alarm: 1.000
  in5_beep: 0.000
in6:
  in6_input: 4.080
  in6_min: 0.000
  in6_max: 4.080
  in6_alarm: 1.000
  in6_beep: 0.000
in7:
  in7_input: 4.080
  in7_min: 0.000
  in7_max: 4.080
  in7_alarm: 1.000
  in7_beep: 0.000
Vbat:
  in8_input: 3.056
fan1:
  fan1_input: 1762.000
  fan1_min: 900.000
  fan1_alarm: 0.000
  fan1_beep: 1.000
fan2:
  fan2_input: 2089.000
  fan2_min: 0.000
  fan2_alarm: 0.000
  fan2_beep: 1.000
fan3:
  fan3_input: 0.000
  fan3_min: 0.000
  fan3_alarm: 0.000
  fan3_beep: 1.000
temp1:
  temp1_input: -55.000
  temp1_max: 55.000
  temp1_min: 20.000
  temp1_alarm: 0.000
  temp1_type: 4.000
  temp1_beep: 1.000
temp2:
  temp2_input: -2.000
  temp2_max: 55.000
  temp2_min: 20.000
  temp2_alarm: 0.000
  temp2_type: 4.000
  temp2_beep: 1.000
temp3:
  temp3_input: 42.000
  temp3_max: 60.000
  temp3_min: 127.000
  temp3_alarm: 0.000
  temp3_type: 3.000
  temp3_beep: 1.000
cpu0_vid:
  cpu0_vid: 3.500
intrusion0:
  intrusion0_alarm: 1.000

From the above, in0 is Vcore, in1 is Vram (DDR18V in the bios), and in2 is +3.3V. I'm assuming that in3 and in4 corresponds to +5V and +12V, but I will get there shortly. The configuration is now:

   label  in0  "Vcore"
   label  in1  "Vram"    # "DDR18V" in BIOS
   label  in2  "+3.3V"
   label  in4  "+12V"

For +12V scaling, and seeing that in4 is the only unscaled input sensor that is not at 4.080V, which is the maximum range for this Super-I/O chip, I decided to go ahead with the computation even with just two sample voltages that I have personally observed in the BIOS:

+12V BIOS samples: 12.302, 12.365

12.365 - 12.302 = 0.063

12.302 / (63/16) = 3.12431746

which is very close to in4 (3.120). At one time it read:

in4:
  in4_input: 3.140
  in4_min: 2.896
  in4_max: 3.200
  in4_alarm: 0.000
  in4_beep: 0.000

12.365 / (63/16) = 3.14031746

and still as close as it gets to in4 (3.140). So my compute statement for +12V scaling is:

   compute  in4  @*(63/16), @/(63/16)

Here's the sensors output, using my configuration thus far:

$ sensors

it8718-isa-0290
Adapter: ISA adapter
Vcore:        +1.18 V  (min =  +0.85 V, max =  +1.36 V)
Vram:         +1.84 V  (min =  +1.71 V, max =  +1.89 V)
+3.3V:        +3.39 V  (min =  +3.14 V, max =  +3.47 V)
in3:          +4.08 V  (min =  +0.00 V, max =  +4.08 V)  ALARM +12V:        +12.29 V  (min = +11.40 V, max = +12.60 V)
in5:          +4.08 V  (min =  +0.00 V, max =  +4.08 V)  ALARM
in6:          +4.08 V  (min =  +0.00 V, max =  +4.08 V)  ALARM
in7:          +4.08 V  (min =  +0.00 V, max =  +4.08 V)  ALARM Vbat:         +3.06 V
CPU Fan:     1721 RPM  (min =  900 RPM)
CHA Fan:     2096 RPM  (min =    0 RPM)
temp1:        -55.0°C  (low  = +20.0°C, high = +55.0°C)  sensor = thermistor temp2:         -2.0°C  (low  = +20.0°C, high = +55.0°C)  sensor = thermistor temp3:        +41.0°C  (low  = +127.0°C, high = +60.0°C)  sensor = thermal diode cpu0_vid:    +3.500 V
intrusion0:  ALARM

I'm now faced with the problem of determining +5V scaling, which is not even present in the BIOS monitoring section. Even if it were present, how could I determine which unscaled sensor input to match it up if in3, in5, in6, and in7 are all 4.080V?

Regarding temperatures, temp1 and temp2 don't look right. How can this invalid reading be rectified if  possible?

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

#1 lore raw

Hi Ian,

Quoted 11 lines · ianp

I wish to share some more configurations as I set them up. Now I'm trying to configure my sensors on a Gigabyte GA-945GCM-S2L, running Linux 3.2.

$ dmesg | grep it87
it87: Found IT8718F chip at 0x290, revision 4
it87: Beeping is supported
(...)
For +12V scaling, and seeing that in4 is the only unscaled input sensor that is not at 4.080V, which is the maximum range for this Super-I/O chip, I decided to go ahead with the computation even with just two sample voltages that I have personally observed in the BIOS:

+12V BIOS samples: 12.302, 12.365

Quoted 8 lines

12.365 - 12.302 = 0.063

12.302 / (63/16) = 3.12431746

which is very close to in4 (3.120). At one time it read:

in4:
  in4_input: 3.140

There's something weird here: 3.140 isn't a integer multiple of 0.016, so it is not possible that the IT8718F sensed that voltage value. Are you sure this is the exact value reported by "sensors"? Or is it a copy and paste error?

Quoted 10 lines

  in4_min: 2.896
  in4_max: 3.200
  in4_alarm: 0.000
  in4_beep: 0.000

12.365 / (63/16) = 3.14031746

and still as close as it gets to in4 (3.140). So my compute statement for +12V scaling is:

   compute  in4  @*(63/16), @/(63/16)

I have found a BIOS screenshot on the web (was hard to find):
http://img155.imageshack.us/img155/5831/dsc00004kz6.jpg

Sample value there is 12.175 V.

12.302 - 12.175 = 0.127
12.365 - 12.175 = 0.190

The would suggests that the scaling factor isn't exactly 63/16 (3.9375) but closer to 190/48 (3.9583.) However 190/48 doesn't map raw values to BIOS values so that can't be it.

Your original assumption was that 12.302 in the BIOS was 3.120 in "sensors". I think actually 12.365 in the BIOS was 3.120 in "sensors". If you put some load on the CPU, you may be able to collect another in4 value from "sensors" (presumably 3.104) that would match the 12.302 in the BIOS.

If I'm right then a scaling factor that would work would be somewhere between 12.302/3.104 and 12.365/3.120, i.e. 3.9633. Note that this isn't the first time this strange scaling factors shows up for Gigabyte boards:
http://jdelvare.nerim.net/devel/lm-sensors/config/sensors3-Gigabyte-7N400-Pro2.conf
http://jdelvare.nerim.net/devel/lm-sensors/config/sensors3-Gigabyte-890GPA-UD3H.conf
http://www.lm-sensors.org/wiki/Configurations/Gigabyte/EX38-DS4

So I would go with:

compute  in4  @*3.9633, @/3.9633

It maps the values seen in the BIOS with actual register values:

192 * 0.016 * 3.9633 = 12.175
194 * 0.016 * 3.9633 = 12.302
195 * 0.016 * 3.9633 = 12.365

Quoted 24 lines

Here's the sensors output, using my configuration thus far:

$ sensors

it8718-isa-0290
Adapter: ISA adapter
Vcore:        +1.18 V  (min =  +0.85 V, max =  +1.36 V)
Vram:         +1.84 V  (min =  +1.71 V, max =  +1.89 V)
+3.3V:        +3.39 V  (min =  +3.14 V, max =  +3.47 V)
in3:          +4.08 V  (min =  +0.00 V, max =  +4.08 V)  ALARM +12V:        +12.29 V  (min = +11.40 V, max = +12.60 V)
in5:          +4.08 V  (min =  +0.00 V, max =  +4.08 V)  ALARM
in6:          +4.08 V  (min =  +0.00 V, max =  +4.08 V)  ALARM
in7:          +4.08 V  (min =  +0.00 V, max =  +4.08 V)  ALARM Vbat:         +3.06 V
CPU Fan:     1721 RPM  (min =  900 RPM)
CHA Fan:     2096 RPM  (min =    0 RPM)
temp1:        -55.0°C  (low  = +20.0°C, high = +55.0°C)  sensor = thermistor temp2:         -2.0°C  (low  = +20.0°C, high = +55.0°C)  sensor = thermistor temp3:        +41.0°C  (low  = +127.0°C, high = +60.0°C)  sensor = thermal diode cpu0_vid:    +3.500 V
intrusion0:  ALARM

Quoted 1 line

I'm now faced with the problem of determining +5V scaling, which is not even present in the BIOS monitoring section. Even if it were present, how could I determine which unscaled sensor input to match it up if in3, in5, in6, and in7 are all 4.080V?

You can't. All evidence indicates that +5V is not monitored on this motherboard.

Quoted 1 line

Regarding temperatures, temp1 and temp2 don't look right. How can this invalid reading be rectified if  possible?

The BIOS shows a single temperature, so I'm afraid temp3 is the CPU temperature and temp1 and temp2 aren't connected.

Signature · 7 lines
Jean Delvare
Suse L3 Support

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
author
#2 lore raw
In reply to ianp

Hi Jean,

Quoted 5 lines · Jean Delvare
Quoted 4 lines

which is very close to in4 (3.120). At one time it read:

Quoted 9 lines
Quoted 2 lines

in4:
  in4_input: 3.140

There's something weird here: 3.140 isn't a integer multiple of 0.016, so it is not possible that the IT8718F sensed that voltage value. Are you sure this is the exact value reported by "sensors"? Or is it a copy
and paste error?

Sorry about that. I relied upon my memory seeing such value once from "sensors" when it really was 3.104 and not 3.140.

Quoted 9 lines

I have found a BIOS screenshot on the web (was hard to find):
http://img155.imageshack.us/img155/5831/dsc00004kz6.jpg

Sample value there is 12.175 V.

12.302 - 12.175 = 0.127
12.365 - 12.175 = 0.190

Early BIOS versions for this board didn't show the actual values for the sensors it monitors but instead it just displayed an "OK." This is true for the board's manual as well. I appreciate that you took your time to search the web when I had thought that I would never find one.

Your search result only reiterated my previous guide suggestions that it is recommended to have at least 3 voltage samples to facilitate an accurate computation, which I myself should have been keen to follow, but I was feeling lucky at that time. :-)

Quoted 21 lines

The would suggests that the scaling factor isn't exactly 63/16 (3.9375) but closer to 190/48 (3.9583.) However 190/48 doesn't map raw values to BIOS values so that can't be it.

Your original assumption was that 12.302 in the BIOS was 3.120 in "sensors". I think actually 12.365 in the BIOS was 3.120 in "sensors".
If you put some load on the CPU, you may be able to collect another in4 value from "sensors" (presumably 3.104) that would match the 12.302 in the BIOS.

If I'm right then a scaling factor that would work would be somewhere between 12.302/3.104 and 12.365/3.120, i.e. 3.9633. Note that this isn't the first time this strange scaling factors shows up for Gigabyte boards:
http://jdelvare.nerim.net/devel/lm-sensors/config/sensors3-Gigabyte-7N400-Pro2.conf
http://jdelvare.nerim.net/devel/lm-sensors/config/sensors3-Gigabyte-890GPA-UD3H.conf
http://www.lm-sensors.org/wiki/Configurations/Gigabyte/EX38-DS4

So I would go with:

Quoted 8 lines

  compute  in4  @*3.9633, @/3.9633

It maps the values seen in the BIOS with actual register values:

192 * 0.016 * 3.9633 = 12.175
194 * 0.016 * 3.9633 = 12.302
195 * 0.016 * 3.9633 = 12.365

You are correct about 3.104. I realize that it is not always the case that the formula one arrives at while following your guide maps raw values to BIOS values. In such special cases, one can try to find a correlation between BIOS values and "sensors" values like what you did above.

Quoted 9 lines
Quoted 2 lines

I'm now faced with the problem of determining +5V scaling, which is not

even present in the BIOS monitoring section. Even if it were present, how could I determine which unscaled sensor input to match it up if in3, in5, in6, and in7 are all 4.080V?

You can't. All evidence indicates that +5V is not monitored on this motherboard.

I'll have to let go of +5V monitoring then.

Quoted 7 lines
Quoted 2 lines

Regarding temperatures, temp1 and temp2 don't look right. How can this

invalid reading be rectified if  possible?

The BIOS shows a single temperature, so I'm afraid temp3 is the CPU temperature and temp1 and temp2 aren't connected.

I was expecting fan1 corresponds to temp1, fan2 to temp2 and so on, but in a perfect world that would have been the rule. This board is an oddball but I'm glad that I tried setting up sensors on it. This exercise has shown me that motherboard vendors don't always follow convention when it comes to sensors implementation.

Moreover, there's a reason why some people would say "Linux people know their hardware inside out" when one works closely with it. I can personally understand that reason the more I work my way inside Linux and with the underlying hardware as well.

I can now recommended to others that when using third-party monitoring software, to take the software's monitoring data with a grain of salt, use the vendor-supplied monitoring suite instead, or even better, go Free/Open Source Software. :-)

I will send in my configuration for this board as soon as I can finalize it.

Thank you for your valuable insights once again Jean.

ianp

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