root/lm-sensors/trunk/etc/sensors.conf.eg @ 2385

Revision 2385, 55.7 KB (checked in by khali, 9 years ago)

Fix typo.

Discard it8507-* and it8712-*.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1# Sensors configuration file used by 'libsensors'
2#------------------------------------------------
3#
4##########################################################################
5#                                                                        #
6#    PLEASE READ THIS HELPFUL HINT!!!                                    #
7#                                                                        #
8#       The 'set' lines (generally for min and max values)               #
9#       do not take effect until you run 'sensors -s' as root !!!        #
10#       We suggest you put 'sensors -s' in a /etc/rc.d/... file          #
11#       to be run at boot time after the modules are inserted !!!        #
12#                                                                        #
13##########################################################################
14#
15#
16# OVERVIEW
17# --------
18# This configuration file will be used by all userspace applications
19# linked to libsensors. It is NOT used by the lm_sensors drivers directly.
20#
21# This config file consists of two parts: the heavily commented LM78
22# example, and the real parts. Search for '####' if you want to skip
23# to the real stuff.
24#
25# Hash marks introduce comments, which continue until the end of a line
26#
27# Identifiers consisting of only digits and letters can be used
28# unquoted; other identifiers must be quoted. Escape characters within
29# quotes operate like those in C.
30#
31#
32# CHIP LINES
33# ----------
34# A 'chip' line specifies what the following 'label', 'compute', 'set' and
35# 'ignore' lines refer to. In this case, until the
36# next 'chip' line, everything refers to all lm78, lm78-j and lm79
37# chips. Other examples are *-isa-* for everything on the ISA bus, and
38# lm78-j-i2c-*-4e for all lm78-j chips on address 0x4e of any I2C bus.
39#
40# If more chip statements match a specific chip, they are all considered.
41# Later lines overrule earlier lines, so if you set the in0 label for
42# lm78-* to "This", and later on the in0 label for lm78-isa-* to "That",
43# "That" is used for LM78 chips on the ISA bus, and "This" for LM78
44# chips on a non-ISA bus.
45#
46#       chip "lm78-*" "lm78-j-*" "lm79-*"
47#
48#
49# FEATURE NAMES
50# -------------
51# Feature names are used in 'label', 'compute', 'set', and 'ignore' lines.
52# Example feature names are 'in0', 'temp2', 'in3_min', and 'temp3_over'.
53# These features are defined for each chip in lib/chips.c.
54#
55# Undefined features will be silently ignored in 'label' and 'compute' lines.
56# Undefined features in 'set' lines will result in 'Unknonw feature name'
57# when running 'sensors -s'.
58#
59# Unfortunately, feature names starting with a number must be in
60# double quotes or you get 'parse error, expecting 'NAME''.
61#
62# If you have trouble, verify the features in lib/chips.c!!!
63#
64#
65# LABEL LINES
66# -----------
67# A label line describes what a certain feature stands for on your
68# mainboard. Programs can retrieve these names and display them.
69# If no label is specified for a certain feature, the default name
70# (ie. 'fan1' for fan1) is used.
71#
72# If you specify a label for in1, this label is also used for in1_min and
73# in1_max, unless they have their own labels declared. There are several
74# of these logical groups.
75#
76# These are as advised in the LM78 and LM79 data sheets, and used on most
77# boards we have seen.
78#
79#       label in0 "VCore 1"
80#       label in1 "VCore 2"
81#       label in2 "+3.3V"
82#       label in3 "+5V"
83#       label in4 "+12V"
84#       label in5 "-12V"
85#       label in6 "-5V"
86#
87#
88# COMPUTE LINES
89# -------------
90# A compute line describes how to scale a certain feature. There are
91# two expressions in it: the first describes how the /proc value must
92# be translated to a user value, the second how a user value must be
93# translated to a /proc value. '@' is the value to operate on. You may
94# refer to other readable features (like '2 * vid').
95#
96# The following operators are valid: + - * / ( ) ^ `
97# ^ is e**x and ` is ln(x) (valid in library version 2.0.0 /
98# lm_sensors 2.8.0 or higher)
99#
100# Like for the label statement, there are logical groups here. They are
101# sometimes a bit different, though. For example, fan1_div is in the
102# logical label group of fan1 (it gets the same label if none is declared
103# for it), but it is not in the compute group of fan1 (as it uses a
104# completely different system of values).
105#
106#
107# VOLTAGE COMPUTATION DETAILS
108# ---------------------------
109# Most voltage sensors in sensor chips have a range of 0 to 4.096 Volts.
110# This is generally sufficient for the 3.3 and CPU (2.5V, for example)
111# supply voltages, so the sensor chip reading is the actual voltage.
112#
113# Other supply voltages must be scaled with an external resistor network.
114# The chip driver generally reports the 'raw' value 0 - 4.09 V, and the
115# userspace application must convert this raw value to an actual voltage.
116# The 'compute' lines provide this facility.
117#
118# Unfortunately the resistor values vary among motherboard types.
119# Therefore you may have to adjust the computations in this file
120# to match your motherboard.
121#
122# For positive voltages (in3, in4), two resistors are used, with the following
123# formula (R1,R2: resistor values, Vs: read voltage, Vin: pin voltage)
124#       R1 = R2 * (Vs/Vin - 1)
125# For negative voltages (in5, in6) two resistors are used, with the following
126# formula (Rin,Rf: resistor values, Vs: read voltage, Vin: pin voltage)
127#       Rin = (Vs * Rf) / Vin
128#
129# Note: Some chips use a different formula, see it87 section for example.
130#
131# Here are the official LM78 and LM79 data sheet values.
132#             Vs     R1,Rin   R2,Rf    Vin
133#       in3   +5.0      6.8    10     +2.98
134#       in4  +12.0     30      10     +3.00
135#       in5  -12.0    240      60     +3.00
136#       in6   -5.0    100      60     +3.00
137#
138# These would lead to these declarations:
139#       compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
140#       compute in4 ((30/10)+1)*@  ,  @/((30/10)+1)
141#       compute in5 -(240/60)*@    ,  -@/(240/60)
142#       compute in6 -(100/60)*@    ,  -@/(100/60)
143#
144# On almost any mainboard we have seen, the Winbond compute values lead to
145# much better results, though.
146#
147#             Vs     R1,Rin   R2,Rf    Vin
148#       in4  +12.0     28      10     +3.00
149#       in5  -12.0    210      60.4   +3.00
150#       in6   -5.0     90.9    60.4   +3.00
151#
152# These leads to these declarations:
153#       compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
154#       compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
155#       compute in5 -(210/60.4)*@  ,  -@/(210/60.4)
156#       compute in6 -(90.9/60.4)*@ ,  -@/(90.9/60.4)
157#
158#
159# SET LINES
160# ---------
161# Set statements set things like limits. Complete expressions can be
162# used. Not everything can sensibly be set: setting 'in0', for example,
163# is impossible! These settings are put through the compute translations;
164# so if we specify '12.8' for in6, '3.2' will actually be written!
165#
166# Important note: In the 'sensors' program, these only take effect
167# after running 'sensors -s'!!!
168#
169# Here are some examples:
170#
171#       set in0_max vid*1.05
172#       set in0_min vid*0.95
173#       set temp1_over 40
174#       set temp1_hyst 37
175#
176# Think of tempx_over as 'alarm set' and tempx_hyst as 'alarm clear'
177# thresholds. In most cases the 'over' value should be higher than
178# the 'hyst' value by several degrees.
179#
180#
181# IGNORE LINES
182# ------------
183# Ignore statements tell certain features are not wanted. User programs can
184# still read them if they really want, though; this is just an advisory
185# marking. 'in0' would also invalidate 'in0_max' and 'in0_min'.
186# 'ignore' does not disable anything in the actual sensor chip; it
187# simply advises the user program to not access that data.
188#
189#       ignore in0
190#
191#
192# STATEMENT ORDER
193# ---------------
194# Statements can go in any order, EXCEPT that some statements depend
195# on others. Dependencies could be either in the library or the driver.
196# A 'compute' statement must go before a 'set' statement
197# for the same feature or else the 'set' won't be computed correctly.
198# This is a library dependency.
199# A 'set fan1_div' statement must go before a 'set fan1_min' statement,
200# because the driver uses the divisor in calculating the minimum.
201# Also, one should set vrm prior to using vid in any formula.
202#
203#
204# BUS LINES
205# ---------
206# There is one other feature: the 'bus' statement. An example is below.
207#
208#       bus "i2c-0" "SMBus PIIX4 adapter at e800" "Non-I2C SMBus adapter"
209#
210# If we refer from now on to 'i2c-0' in 'chip' lines, this will run-time
211# be matched to this bus. So even if the PIIX4 is called 'i2c-5' at that
212# moment, because five other adapters were detected first, 'i2c-0' in
213# the config file would always only match this physical bus. In the above
214# config file, this feature is not needed; but the next lines would
215# only affect the LM75 chips on the PIIX4 adapter:
216#
217#       chip "lm75-i2c-0-*"
218#
219# You should really use the output of /proc/bus/chips to generate bus lines,
220# because one mistyped characted will inhibit the match. Wildcards are not
221# yet supported; spaces at the end are ignored, though.
222#
223#
224##########################################################################
225#### Here begins the real configuration file
226
227
228chip "lm78-*" "lm78-j-*" "lm79-*" "w83781d-*"
229
230# These are as advised in the LM78 and LM79 data sheets, and used on almost
231# any mainboard we have seen.
232
233    label in0 "VCore 1"
234    label in1 "VCore 2"
235    label in2 "+3.3V"
236    label in3 "+5V"
237    label in4 "+12V"
238    label in5 "-12V"
239    label in6 "-5V"
240
241# For positive voltages (in3, in4), two resistors are used, with the following
242# formula (R1,R2: resistor values, Vs: read voltage, Vin: pin voltage)
243#   R1 = R2 * (Vs/Vin - 1)
244# For negative voltages (in5, in6) two resistors are used, with the following
245# formula (Rin,Rf: resistor values, Vs: read voltage, Vin: pin voltage)
246#   Rin = (Vs * Rf) / Vin
247#
248# Here are the official LM78 and LM79 data sheet values.
249#       Vs     R1,Rin   R2,Rf    Vin
250# in3   +5.0      6.8    10     +2.98
251# in4  +12.0     30      10     +3.00
252# in5  -12.0    240      60     +3.00
253# in6   -5.0    100      60     +3.00
254#
255# These would lead to these declarations:
256# compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
257# compute in4 ((30/10)+1)*@  ,  @/((30/10)+1)
258# compute in5 -(240/60)*@    ,  -@/(240/60)
259# compute in6 -(100/60)*@    ,  -@/(100/60)
260#
261# On almost any mainboard we have seen, the Winbond compute values lead to
262# much better results, though.
263#
264#       Vs     R1,Rin   R2,Rf    Vin
265# in4  +12.0     28      10     +3.00
266# in5  -12.0    210      60.4   +3.00
267# in6   -5.0     90.9    60.4   +3.00
268#
269# These leads to these declarations:
270
271    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
272    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
273    compute in5 -(210/60.4)*@  ,  -@/(210/60.4)
274    compute in6 -(90.9/60.4)*@ ,  -@/(90.9/60.4)
275
276# Here, we assume the VID readings are valid, and we use a max. 5% deviation
277
278    set in0_min vid*0.95
279    set in0_max vid*1.05
280    set in1_min vid*0.95
281    set in1_max vid*1.05
282    set in2_min 3.3 * 0.95
283    set in2_max 3.3 * 1.05
284    set in3_min 5.0 * 0.95
285    set in3_max 5.0 * 1.05
286    set in4_min 12 * 0.95
287    set in4_max 12 * 1.05
288    set in5_max -12 * 0.95
289    set in5_min -12 * 1.05
290    set in6_max -5 * 0.95
291    set in6_min -5 * 1.05
292
293# Examples for lm78, lm78j, lm79 temperature limits
294#    set temp_over 40
295#    set temp_hyst 37
296
297# Examples for w83781d temperature limits
298#    set temp1_over 40
299#    set temp1_hyst 37
300#    set temp2_over 52
301#    set temp2_hyst 47
302#    set temp3_over 52
303#    set temp3_hyst 47
304
305# Ignore fans you don't actually have
306#    ignore fan1
307#    ignore fan2
308#    ignore fan3
309
310# In case a lm78 is used together with a lm75, the lm78 temp sensor will
311# generally show the M/B temperature while the lm75 temp sensor will show
312# the CPU temperature.
313#    label temp "M/B Temp"
314
315
316chip "lm75-*"
317
318# Most boards don't need scaling. Following is
319# for the Asus TX97-E. If it doesn't work for you, feel free to complain.
320#   compute temp @*2.0, @/2.0
321
322# Examples for temperature limits
323#    set temp_over 70   
324#    set temp_hyst 65   
325
326# In case a lm75 is used together with a lm78, the lm78 temp sensor will
327# generally show the M/B temperature while the lm75 temp sensor will show
328# the CPU temperature.
329#    label temp "CPU Temp"
330
331
332chip "sis5595-*"
333
334    label in0 "VCore 1"
335    label in1 "VCore 2"
336    label in2 "+3.3V"
337    label in3 "+5V"
338    label in4 "+12V"
339
340    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
341    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
342
343    set in0_min 2.0 * 0.95
344    set in0_max 2.0 * 1.05
345    set in1_min 2.0 * 0.95
346    set in1_max 2.0 * 1.05
347    set in2_min 3.3 * 0.95
348    set in2_max 3.3 * 1.05
349    set in3_min 5.0 * 0.95
350    set in3_max 5.0 * 1.05
351    set in4_min 12 * 0.95
352    set in4_max 12 * 1.05
353
354#
355# SiS5595 temperature calculation
356# The driver currently includes a calculation due to the wide
357# variation in thermistor types on SiS5595 motherboards.
358# The driver currently has a calculation of t = (.83x + 52.12).
359# One user reports the correct formula of t = (.345x - 12).
360# So you want to put a compute line in sensors.conf that has
361# the inverse of the driver formula, and put your formula on top of it.
362# The inverse of the driver formula is x = (1.20t - 62.77)
363# So the final formula is newt = (.345(1.20t - 62.77)) - 12).
364# Put this in the sensors.conf file as
365# compute temp ((.345 * ((1.20 * @) - 62.77)) - 12), ...
366# where ... is the inverse function I leave to you.
367#
368# Look in your 'Vendor.ini' file to see which one is present
369# on your motherboard. Look for the line like:
370#       [Temp1]
371#            ThermistorType     = NTC-10KC15-1608-1P
372# Fix up a 'compute' line to match your thermistor type.
373# Warning. You still don't have enough information to do this.
374#            ThermistorType     = NTC-10KC15-1608-1P (10K at 25C; Beta = 3435)
375#   compute temp ((X * ((1.20 * @) - 62.77)) - Y), ...
376#            ThermistorType     = NTC-103KC15-1608-1P  (??)
377#   compute temp ((X * ((1.20 * @) - 62.77)) - Y), ...
378#            ThermistorType     = NTC-103AT-2 (10K at 25C; Beta = 3435)
379#   compute temp ((X * ((1.20 * @) - 62.77)) - Y), ...
380#            ThermistorType     = NTC-103JT   (10K at 25C; Beta = 3435)
381#   compute temp ((X * ((1.20 * @) - 62.77)) - Y), ...
382
383# examples for sis5595 temperature limits;
384# for sis5595, temp_hyst is really the low limit, not a hysteresis value
385#    set temp_over 40
386#    set temp_hyst 37
387
388
389chip "w83782d-*" "w83627hf-*"
390
391# Same as above for w83781d except that in5 and in6 are computed differently.
392# Rather than an internal inverting op amp, the 82d/83s use standard positive
393# inputs and the negative voltages are level shifted by a 3.6V reference.
394# The math is convoluted, so we hope that your motherboard
395# uses the recommended resistor values.
396
397    label in0 "VCore 1"
398    label in1 "VCore 2"
399    label in2 "+3.3V"
400    label in3 "+5V"
401    label in4 "+12V"
402    label in5 "-12V"
403    label in6 "-5V"
404    label in7 "V5SB"
405    label in8 "VBat"
406
407    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
408    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
409    compute in5 (5.14 * @) - 14.91  ,  (@ + 14.91) / 5.14
410    compute in6 (3.14 * @) -  7.71  ,  (@ +  7.71) / 3.14
411    compute in7 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
412
413# adjust this if your vid is wrong; see doc/vid
414#   set vrm 9.0
415
416# set limits to  5% for the critical voltages
417# set limits to 10% for the non-critical voltages
418# set limits to 20% for the battery voltage
419
420    set in0_min vid*0.95
421    set in0_max vid*1.05
422    set in1_min vid*0.95
423    set in1_max vid*1.05
424    set in2_min 3.3 * 0.95
425    set in2_max 3.3 * 1.05
426    set in3_min 5.0 * 0.95
427    set in3_max 5.0 * 1.05
428    set in4_min 12 * 0.90
429    set in4_max 12 * 1.10
430    set in5_max -12 * 0.90
431    set in5_min -12 * 1.10
432    set in6_max -5 * 0.95
433    set in6_min -5 * 1.05
434    set in7_min 5 * 0.95
435    set in7_max 5 * 1.05
436    set in8_min 3.0 * 0.80
437    set in8_max 3.0 * 1.20
438
439# set up sensor types (thermistor is default)
440# 1 = PII/Celeron Diode; 2 = 3904 transistor;
441# 3435 = thermistor with Beta = 3435
442# If temperature changes very little, try 1 or 2.
443#   set sensor1 1
444#   set sensor2 2
445#   set sensor3 3435
446
447# examples for temperature limits
448#    set temp1_over 40
449#    set temp1_hyst 37
450#    set temp2_over 52
451#    set temp2_hyst 47
452#    set temp3_over 52
453#    set temp3_hyst 47
454
455
456chip "w83783s-*"
457
458# Same as above for w83781d except that in5 and in6 are computed differently.
459# Rather than an internal inverting op amp, the 82d/83s use standard positive
460# inputs and the negative voltages are level shifted by a 3.6V reference.
461# The math is convoluted, so we hope that your motherboard
462# uses the recommended resistor values.
463
464    label in0 "VCore 1"
465    label in2 "+3.3V"
466    label in3 "+5V"
467    label in4 "+12V"
468    label in5 "-12V"
469    label in6 "-5V"
470
471    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
472    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
473    compute in5 (5.14 * @) - 14.91  ,  (@ + 14.91) / 5.14
474    compute in6 (3.14 * @) -  7.71  ,  (@ +  7.71) / 3.14
475
476# adjust this if your vid is wrong; see doc/vid
477#   set vrm 9.0
478
479# set limits to  5% for the critical voltages
480# set limits to 10% for the non-critical voltages
481# set limits to 20% for the battery voltage
482
483    set in0_min vid*0.95
484    set in0_max vid*1.05
485    set in2_min 3.3 * 0.95
486    set in2_max 3.3 * 1.05
487    set in3_min 5.0 * 0.95
488    set in3_max 5.0 * 1.05
489    set in4_min 12 * 0.90
490    set in4_max 12 * 1.10
491    set in5_max -12 * 0.90
492    set in5_min -12 * 1.10
493    set in6_max -5 * 0.95
494    set in6_min -5 * 1.05
495
496# set up sensor types (thermistor is default)
497# 1 = PII/Celeron Diode; 2 = 3904 transistor;
498# 3435 = thermistor with Beta = 3435
499# If temperature changes very little, try 1 or 2.
500#   set sensor1 1
501#   set sensor2 2
502
503# examples for temperature limits
504#    set temp1_over 40
505#    set temp1_hyst 37
506#    set temp2_over 52
507#    set temp2_hyst 47
508
509
510chip "w83697hf-*"
511
512# Same as above for w83781d except that in5 and in6 are computed differently.
513# Rather than an internal inverting op amp, the 82d/83s use standard positive
514# inputs and the negative voltages are level shifted by a 3.6V reference.
515# The math is convoluted, so we hope that your motherboard
516# uses the recommended resistor values.
517
518# no in1 on this chip.
519
520    label in0 "VCore"
521    label in2 "+3.3V"
522    label in3 "+5V"
523    label in4 "+12V"
524    label in5 "-12V"
525    label in6 "-5V"
526    label in7 "V5SB"
527    label in8 "VBat"
528
529# Tyan Trinity S2495 KT400 has a few differences. Thanks to Eric Schumann
530# for proving this information.
531#    label in2 "VAgp"
532#    label in5 "+3.3V"
533#    label in6 "Vdimm"
534#    label in7 "VBat"
535#    label in8 "V5SB"
536#
537# For Epox 8K3A you should swap in7 and in8:
538#    label in7 "V5SB"
539#    label in8 "VBat"
540#
541# You'll also want to comment out the in5 and in6 compute lines right below.
542
543    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
544    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
545    compute in5 (5.14 * @) - 14.91  ,  (@ + 14.91) / 5.14
546    compute in6 (3.14 * @) -  7.71  ,  (@ +  7.71) / 3.14
547    compute in7 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
548
549# 697HF does not have VID inputs so you MUST set your core
550# voltage limits below. Currently set for 1.8V core.
551#               vvv
552
553    set in0_min 1.8 * 0.95
554    set in0_max 1.8 * 1.05
555
556    set in2_min 3.3 * 0.95
557    set in2_max 3.3 * 1.05
558    set in3_min 5.0 * 0.95
559    set in3_max 5.0 * 1.05
560    set in4_min 12 * 0.90
561    set in4_max 12 * 1.10
562    set in5_max -12 * 0.90
563    set in5_min -12 * 1.10
564    set in6_max -5 * 0.95
565    set in6_min -5 * 1.05
566    set in7_min 5 * 0.95
567    set in7_max 5 * 1.05
568    set in8_min 3.0 * 0.80
569    set in8_max 3.0 * 1.20
570
571# And for Tyan Trinity S2495 KT400:
572#    set in2_min 1.5 * 0.95
573#    set in2_max 1.5 * 1.05
574#    set in5_min 3.3 * 0.95
575#    set in5_max 3.3 * 1.05
576#    set in6_min 2.5 * 0.95
577#    set in6_max 2.5 * 1.05
578#    set in7_min 3.0 * 0.90
579#    set in7_max 3.0 * 1.10
580#    set in8_min 5 * 0.95
581#    set in8_max 5 * 1.05
582
583# set up sensor types (thermistor is default)
584# 1 = PII/Celeron Diode; 2 = 3904 transistor;
585# 3435 = thermistor with Beta = 3435
586# If temperature changes very little, try 1 or 2.
587#   set sensor1 1
588#   set sensor2 2
589#   set sensor3 3435
590
591# examples for temperature limits
592#    set temp1_over 40
593#    set temp1_hyst 37
594#    set temp2_over 52
595#    set temp2_hyst 47
596
597
598chip "w83627thf-*" "w83637hf-*"
599
600# Rather than an internal inverting op amp, the 627thf uses standard positive
601# inputs and the negative voltages are level shifted by a 3.6V reference
602# (same as 82d/83s).
603# The math is convoluted, so we hope that your motherboard
604# uses the recommended resistor values.
605# Note that in1 (+12V) is the usual in4, and in4 (-12V) is the usual in5.
606# Data sheet is obviously wrong for in4, the usual formula should work.
607# No in5 nor in6.
608
609    label in0 "VCore"
610    label in1 "+12V"
611    label in2 "+3.3V"
612    label in3 "+5V"
613    label in4 "-12V"
614    label in7 "V5SB"
615    label in8 "VBat"
616
617# Mori Hiroyuki reported to need this (P4P800)
618#   compute in0 @/2, @*2
619
620    compute in1 ((28/10)+1)*@, @/((28/10)+1)
621    compute in3 ((34/51)+1)*@, @/((34/51)+1)
622    compute in4 (5.14*@)-14.91, (@+14.91)/5.14
623    compute in7 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
624
625# adjust this if your vid is wrong; see doc/vid
626#   set vrm 9.0
627
628# set limits to  5% for the critical voltages
629# set limits to 10% for the non-critical voltages
630# set limits to 20% for the battery voltage
631# if your vid is wrong, you'll need to adjust in0_min and in0_max
632
633    set in0_min vid * 0.95
634    set in0_max vid * 1.05
635    set in1_min 12 * 0.90
636    set in1_max 12 * 1.10
637    set in2_min 3.3 * 0.95
638    set in2_max 3.3 * 1.05
639    set in3_min 5.0 * 0.95
640    set in3_max 5.0 * 1.05
641    set in4_min -12 * 0.90
642    set in4_max -12 * 1.10
643    set in7_min 5 * 0.95
644    set in7_max 5 * 1.05
645    set in8_min 3.0 * 0.80
646    set in8_max 3.0 * 1.20
647
648# set up sensor types (thermistor is default)
649# 1 = PII/Celeron Diode; 2 = 3904 transistor;
650# 3435 = thermistor with Beta = 3435
651# If temperature changes very little, try 1 or 2.
652#   set sensor1 1
653#   set sensor2 2
654#   set sensor3 3435
655
656    label temp1 "M/B Temp"
657    label temp2 "CPU Temp"
658#   ignore temp3
659
660# examples for temperature limits
661#    set temp1_over 40
662#    set temp1_hyst 37
663#    set temp2_over 52
664#    set temp2_hyst 47
665#    set temp3_over 52
666#    set temp3_hyst 47
667
668#   ignore fan1
669    label fan2 "CPU Fan"
670#   ignore fan3
671
672
673chip "as99127f-*"
674
675# Asus won't release a datasheet so this is guesswork.
676# Thanks to Guntram Blohm, Jack, Ed Harrison, Artur Gawryszczak,
677# Victor G. Marimon and others for their feedback.
678
679# Dual power plane
680    label in0 "VCore 1"
681    label in1 "VCore 2"
682# Single power plane (A7V133, A7M266)
683#   label in0 "VCore"
684#   ignore in1
685
686    label in2 "+3.3V"
687    label in3 "+5V"
688    label in4 "+12V"
689# These last two may not make sense on all motherboards.
690    label in5 "-12V"
691    label in6 "-5V"
692
693    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
694    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
695# AS99127F rev.1 (same as w83781d)
696    compute in5 -(240/60.4)*@ ,  -@/(240/60.4)
697    compute in6 -(90.9/60.4)*@ ,  -@/(90.9/60.4)
698# AS99127F rev.2 (same as w83782d)
699#   compute in5 (5.14 * @) - 14.91 , (@ + 14.91) / 5.14
700#   compute in6 (3.14 * @) -  7.71 , (@ +  7.71) / 3.14
701
702# Depending on your motherboard, you have to choose between three formulae
703# for temp2. Quoting Artur Gawryszczak:
704# "I guess, that the formula "temp2 (@*30/43)+25, (@-25)*43/30" is correct
705# for those Asus motherboards, which get CPU temperature from internal
706# thermal diode (Pentium Coppermine, and above), and "temp2 @*2.0, @/2.0"
707# is correct for Athlon/Duron boards, which use a thermistor in the
708# socket."
709# The third formula was found and reported by Victor G. Marimon.
710# Asus CUV4X, Asus A7V8X
711#   compute temp2 (@*30/43)+25, (@-25)*43/30
712# Asus A7V133, Asus A7M266
713    compute temp2 @*2.0, @/2.0
714# Asus CUSL2, Asus CUV266-DLS
715#   compute temp2 (@*60/43)+25, (@-25)*43/60
716
717# See comments above if temp3 looks bad. What works for temp2 is likely
718# to work for temp3.
719    compute temp3 @*2.0, @/2.0
720
721# Most Asus boards have temperatures settled like that:
722    label temp1 "M/B Temp"
723    label temp2 "CPU Temp"
724# However, some A7N8X boards (Deluxe rev.2, -X) have them swapped:
725#   label temp1 "CPU Temp"
726#   label temp2 "M/B Temp"
727# If you know other boards where they are swapped, let us know and
728# we'll update the list.
729
730# adjust this if your vid is wrong; see doc/vid
731#   set vrm 9.0
732
733# set limits to  5% for the critical voltages
734# set limits to 10% for the non-critical voltages
735# set limits to 20% for the battery voltage
736
737    set in0_min vid*0.95
738    set in0_max vid*1.05
739    set in1_min vid*0.95
740    set in1_max vid*1.05
741    set in2_min 3.3 * 0.95
742    set in2_max 3.3 * 1.05
743    set in3_min 5.0 * 0.95
744    set in3_max 5.0 * 1.05
745    set in4_min 12 * 0.90
746    set in4_max 12 * 1.10
747    set in5_max -12 * 0.90
748    set in5_min -12 * 1.10
749    set in6_max -5 * 0.95
750    set in6_min -5 * 1.05
751
752# examples for temperature limits
753#    set temp1_over 40
754#    set temp1_hyst 37
755#    set temp2_over 52
756#    set temp2_hyst 47
757#    set temp3_over 52
758#    set temp3_hyst 47
759
760# The A7N8X-X board is known to need this:
761# (reported by Roberto Sebastiano <robs@multiplayer.it>)
762#    compute fan1  @/2,  2*@
763
764
765chip "gl518sm-*"
766
767# IMPORTANT: in0, in1, and in2 values (+5, +3, and +12) CANNOT be read
768#            unless you use the slow 'iterate' method. Limits will still
769#            work even when iterate=0. See ../doc/chips/gl518sm.
770#
771# Factors and labels taken from GL518SM datasheet, they seem to give
772# reasonable values with EISCA connected Fan78
773
774  label vdd "+5V"
775  label vin1 "+3.3V"
776  label vin2 "+12V"
777  label vin3 "Vcore"
778
779# vin2 depends on external resistors (4,7k and 15k assumed here)
780# vin1 and vin3 require no scaling
781
782  compute vin2 (197/47)*@  ,  @/(197/47)
783
784  set vdd_min 4.8
785  set vdd_max 5.2
786  set vin1_min 3.20
787  set vin1_max 3.40
788  set vin2_min 11.0
789  set vin2_max 13.0
790  set vin3_min 2.10
791  set vin3_max 2.30
792  set fan1_off 0
793  set fan2_min 0
794# set iterate 2
795
796
797chip "gl520sm-*"
798
799# Factors and labels taken from GL520SM datasheet
800
801  label vdd "+5V"
802  label vin1 "+3.3V"
803  label vin2 "+12V"
804  label vin3 "Vcore"
805  label vin4 "-12V"
806
807# vin1 and vin3 require no scaling
808# vin2 depends on external resistors (4,7k and 15k assumed)
809
810# vin4 = ((R1+R2)/R2)*@ - (R1/R2)*vdd
811#
812#       -12 --| R1 |---t---| R2 |-- +5
813#                      |
814#                    vin4
815#
816
817  compute vin2 (197/47)*@  ,  @/(197/47)
818  compute vin4 (5*@)-(4*vdd) , (@+4*vdd)/5
819
820  set vdd_min 4.8
821  set vdd_max 5.2
822  set vin1_min 3.20
823  set vin1_max 3.40
824  set vin2_min 11.0
825  set vin2_max 13.0
826  set vin3_min 2.10
827  set vin3_max 2.30
828  set two_temps 1
829
830
831chip "lm80-*"
832
833# The values below should be correct if you own a qdi BX (brilliant1)
834# mainboard. If not, please contact us, so we can figure out better readings.
835# Many thanks go to Peter T. Breuer <ptb@it.uc3m.es> for helping us figure
836# out how to handle the LM80.
837
838# For positive voltages (in0..in4), two resistors are used, with the following
839# formula (R1,R2: resistor values, Vs: read voltage, Vin: pin voltage)
840#   R1 = R2 * (Vs/Vin - 1)
841# For negative voltages (in5, in6) two resistors are used, with the following
842# formula (R3,R4: resistor values, Vs: read voltage, Vin: pin voltage,
843# V5: +5V)
844#   R3 = R4 * (Vs - Vin) / (Vin - V5)
845
846# Here are the official LM78 and LM79 data sheet values.
847#       Vs      R1,R3   R2,R4    Vin
848#       +2.5V    23.7    75     +1.9
849#       +3.3V    22.1    30     +1.9
850#       +5.0     24      14.7   +1.9
851#      +12.0    160      30.1   +1.9
852#      -12.0    160      35.7   +1.9
853#       -5.0     36      16.2   +1.9
854
855# Now curiously enough, VCore is connected with (unknown) resistors, which
856# translate a +2.8V to +1.9V. So we use that in the computations below.
857
858    label in0 "+5V"
859    label in1 "VTT"
860    label in2 "+3.3V"
861    label in3 "+Vcore"
862    label in4 "+12V"
863    label in5 "-12V"
864    label in6 "-5V"
865
866    compute in0 (24/14.7 + 1) * @ ,       @ / (24/14.7 + 1)
867    compute in2 (22.1/30 + 1) * @ ,       @ / (22.1/30 + 1)
868    compute in3 (2.8/1.9) * @,            @ * 1.9/2.8
869    compute in4 (160/30.1 + 1) * @,       @ / (160/30.1 + 1)
870    compute in5 (160/35.7)*(@ - in0) + @, (@ + in0 * 160/35.7)/ (1 + 160/35.7)
871    compute in6 (36/16.2)*(@ - in0) + @,  (@ + in0 * 36/16.2) / (1 + 36/16.2)
872
873    set in0_min 5 * 0.95
874    set in0_max 5 * 0.95
875# What is your VTT? It is probably not this value...
876    set in1_min 2*0.95
877    set in1_max 2*1.05
878    set in2_min 3.3 * 0.95
879    set in2_max 3.3 * 1.05
880# What is your VCore? It is probably not this value...
881    set in3_min 1.9 * 0.95
882    set in3_max 1.9 * 1.05
883    set in4_min 12 * 0.95
884    set in4_max 12 * 1.05
885    set in5_min -12 * 1.05
886    set in5_max -12 * 0.95
887    set in6_min -5 * 1.05
888    set in6_max -5 * 0.95
889
890# examples for lm80 temperature limits
891# WARNING - nonstandard names and functions for the lm80!!!
892# All 4 of these limits apply to the single temperature sensor.
893# "hot" is like the standard alarm for most chips.
894# "os" is the threshold for the overtemperature shutdown output.
895# "os" may or may not do anything on your motherboard but it should
896#  be set higher than the "hot" thresholds.
897# Note that the /proc file 'temp" also has five entries instead of
898# the usual three.
899#    set temp_hot_hyst 45
900#    set temp_hot_max  52
901#    set temp_os_hyst  57
902#    set temp_os_max   62
903
904
905chip "maxilife-cg-*" "maxilife-co-*" "maxilife-as-*"
906
907   label fan1  "HDD Fan"
908   label fan2  "PCI Fan"
909   label fan3  "CPU Fan"
910   ignore fan4
911
912   label temp2 "PCI Temp"
913   label temp4 "HDD Temp"
914   label temp5 "CPU Temp"
915   ignore temp6
916
917   label vid1  "V+12"
918   ignore vid5
919
920# vid1 need to be scaled by 6.337 other voltages
921# require no scaling
922
923   compute vid1 6.337*@ , @/6.337
924
925
926chip "maxilife-cg-*"
927
928   ignore temp1
929   label temp3  "BX Temp"
930
931   label vid2   "Vcpu1"
932   label vid3   "Vcpu2"
933   ignore vid4
934
935
936chip "maxilife-co-*"
937
938   label temp1  "CPU 1 Temp"
939   label temp3  "CPU 2 Temp"
940
941   label vid2   "Vcpu1"
942   label vid3   "Vcpu2"
943   label vid4   "VcacheL2"
944
945
946chip "maxilife-as-*"
947
948   ignore temp1
949   ignore temp3
950
951   label vid2   "Vcpu"
952   ignore vid3
953   ignore vid4
954
955
956chip "maxilife-nba-*"
957
958   label fan1  "CPU Fan"
959   label fan2  "PCI Fan"
960   label fan3  "HDD Fan"
961   label fan4  "Heat Sink Fan"
962
963   label temp1  "CPU 1 Temp"
964   label temp2  "CPU 2 Temp"
965   label temp3  "PCI/Ambient Temp"
966   label temp4  "HDD Temp"
967   label temp5  "Motherboard Temp"
968   label temp6  "CPU Reference Temp"
969
970   label vid1  "V+12"
971   label vid2  "Vcpu1"
972   label vid3  "Vcpu2"
973   label vid4  "VcacheL2"
974   label vid5  "V-12"
975
976
977chip "via686a-*"
978
979# VIA is very specific about the voltage sensor inputs, and our labels
980# reflect what they say.  Unfortunately, they are not at all specific about
981# how to convert any of the register values to real units.  Fortunately,
982# Jonathan Yew <j.teh@iname.com> and Alex van Kaam <darkside@chello.nl>
983# came through with some data for temp conversion and formulae for voltage
984# conversion. However, the conversions should be regarded as our best guess-
985# YMMV.
986
987# On the Tyan S1598, the 2.5V sensor reads 0 and is not displayed in the BIOS.
988# Linas Vepstas <linas@linas.org> reports that this sensor shows nothing of
989# interest on the Abit KA7 (Athlon), and is also not displayed in the BIOS.
990# Likewise, Johannes Drechsel-Burkhard <jdb@chello.at> reports that this
991# sensor is unavailable in the BIOS of his MSI K7T Pro (Thunderbird).  So,
992# if you have one of these boards you may want to uncomment the 'ignore 2.5V'
993# line below.
994
995    label "2.0V" "CPU core"
996    label "2.5V" "+2.5V"
997    #ignore "2.5V"
998    label "3.3V" "I/O"
999    label "5.0V" "+5V"
1000    label "12V" "+12V"
1001
1002    label fan1  "CPU Fan"
1003    label fan2  "P/S Fan"
1004
1005# VIA suggests that temp3 is an internal temp sensor for the 686a.  However,
1006# on the Tyan S1598 as well as the Abit KA7 (Athalon), the absolute values
1007# of the readings from that sensor are not valid.  The readings do seem to
1008# correlate with temp changes, but the conversion factor may be quite
1009# different from temp1 & temp2 (as noted above, VIA has not provided
1010# conversion info).  So, you may wish to 'ignore temp3'.
1011
1012# Johannes Drechsel-Burkhard <jdb@chello.at> notes that on his MSI K7T Pro,
1013# temp1 is the CPU temp and temp2 is the SYS temp.
1014
1015    label temp1 "SYS Temp"
1016    label temp2 "CPU Temp"
1017    label temp3 "SBr Temp"
1018    #ignore temp3
1019
1020# Set your CPU core limits here.  For the other voltage sensors, the
1021# built-in defaults should be fine.
1022
1023    set in0_min 2.0
1024    set in0_max 2.5
1025
1026# Set your temp limits here.  Remember, 'tempX_over' is the temp at which an
1027# alarm is triggered, and 'tempX_hyst' is the temp at which an alarm turns off.
1028# Setting tempX_hyst to a few degrees below the corresponding tempX_over
1029# prevents an oscillation between alarm on and off states.  This kind of
1030# oscillation is known as hyteresis, thus the name.  (You typically get the
1031# most serious and troublesome hysteresis when a sensor triggers something to
1032# reduce the temp, thus creating a negative feedback loop.  Even without that,
1033# we would still get some oscillation when the temp hovers around the limit
1034# due to noise.)
1035
1036    set temp1_hyst 40
1037    set temp1_over 45
1038    set temp2_hyst 55
1039    set temp2_over 60
1040    set temp3_hyst 60
1041    set temp3_over 65
1042
1043# You could set your fan limits too, but the defaults should be fine.
1044
1045    #set fan1_min 5000
1046    #set fan2_min 5000
1047
1048# For at least one Tyan S1598, the following corrections make the sensors
1049# readings more in-line with the BIOS readings on boot.  Try these, and
1050# adjust as necessary.
1051
1052  #compute "2.0V" 1.02*@ ,  @/1.02
1053  #compute "3.3V" 1.02*@  ,  @/1.02
1054  #compute "5.0V" 1.009*@  ,  @/1.009
1055  #compute "12V" 1.04*@ ,  @/1.04
1056
1057
1058chip "mtp008-*"
1059
1060# The values below should be correct if you own a Tyan S1834D motherboard.
1061# If not, please contact us, so we can figure out better readings.
1062# FOR TYAN S2510 SEE END OF THIS SECTION.
1063
1064# For positive voltages outside the 0..4.09V range (in2..in4), two resistors
1065# are used, with the following formula (R1,R2: resistor values, Vs: read
1066# voltage, Vin: pin voltage)
1067#   Vin = Vs * (R2 / (R1 + R2))
1068# For negative voltages (in5) two resistors are used, with the following
1069# formula (R3,R4: resistor values, Vs: read voltage, Vin: pin voltage)
1070#   Vin = ((4.096 - Vs) * (R3 / (R3 + R4))) + Vs
1071
1072# Here are the official MTP008 data sheet values:
1073#       Vs      R1,R3   R2,R4    Vin
1074#      +12.0    28000   10000   +3.16
1075#      -12.0   232000   56000   +0.96
1076#       -5.0   120000   56000   +1.20
1077
1078    label in0 "VCore1"
1079    label in1 "+3.3V"
1080    label in2 "+12V"
1081    label in3 "Vcore2"
1082    ignore in4
1083    label in5 "-12V"
1084    label in6 "Vtt"
1085
1086    label fan1 "CPU1 Fan"
1087    label fan2 "CPU2 Fan"
1088    label fan3 "fan3"
1089
1090    label temp1 "CPU1 Temp"
1091    label temp2 "CPU2 Temp"
1092    ignore temp3
1093
1094    compute in2 @ * 38 / 10,            @ * 10 / 38
1095    compute in5 (@ * 36 - 118.61) / 7,  (118.61 + 7 * @) / 36
1096
1097# examples for temperature limits
1098#    set temp1_over 40
1099#    set temp1_hyst 37
1100#    set temp2_over 52
1101#    set temp2_hyst 47
1102#    set temp3_over 52
1103#    set temp3_hyst 47
1104
1105# End of standard mtp008 configuration
1106
1107# TYAN S2510 INFORMATION
1108# This motherboard has two mtp008's which are hooked up differently,
1109# so they must be configured separately.
1110# For this motherboard, COMMENT OUT the above mtp008 section and
1111# UNCOMMENT the following two sections.
1112#
1113#chip "mtp008-i2c-*-2c"
1114#    label in0 "VCore1"
1115#    set in0_min 1.60
1116#    set in0_max 1.80
1117#    label in1 "+3.3V"
1118#    label in2 "+12V"
1119#    label in3 "Vcore2"
1120#    set in3_min 1.60
1121#    set in3_max 1.80
1122#    ignore in4
1123#    label in5 "-12V"
1124#    label in6 "Vtt"
1125#    label fan1 "CPU1 Fan"
1126#    label fan2 "CPU2 Fan"
1127#    label fan3 "fan3"
1128#    label temp1 "CPU1 Temp"
1129#    label temp2 "CPU2 Temp"
1130#    ignore temp3
1131#    compute in2 @ * 38 / 10,           @ * 10 / 38
1132#    compute in5 (@ * 36 - 118.61) / 7, (118.61 + 7 * @) / 36
1133#
1134#chip "mtp008-i2c-*-2e"
1135#    ignore in0
1136#    label in1 "+3.3V"
1137#    ignore in2
1138#    label in3 "+5V"
1139#    set in3_min 4.50
1140#    set in3_max 5.50
1141#    ignore in4
1142#    label in5 "+3.3V"
1143#    ignore in6
1144#    label fan1 "fan4"
1145#    label fan2 "fan5"
1146#    label fan3 "fan6"
1147#    ignore temp1
1148#    label temp2 "MB Temp"
1149#    set temp2_over 52
1150#    set temp2_hyst 47
1151#    ignore temp3
1152
1153chip "adm1025-*" "ne1619-*"
1154
1155# The ADM1025 has integrated scaling resistors, rather
1156# than external resistors common to most sensor devices.
1157# These apply to the 6 voltage inputs in0-in5 (+2.5V, VCore,
1158# +3.3V, +5V, +12V, VCC). As the scaling is fixed inside
1159# the chip for these inputs, it is fairly certain that the
1160# motherboard connections match these labels, and that the
1161# driver computations are correct. Therefore they do not need to
1162# be overridden here.
1163
1164    label in0 "+2.5V"
1165    label in1 "VCore"
1166    label in2 "+3.3V"
1167    label in3 "+5V"
1168    label in4 "+12V"
1169    label in5 "VCC"
1170
1171# Tolerate a 5% deviance for CPU power-supply
1172    set in1_min vid * 0.95
1173    set in1_max vid * 1.05
1174# Tolerate a 10% deviance for other voltages
1175    set in0_min 2.5 * 0.90
1176    set in0_max 2.5 * 1.10
1177    set in2_min 3.3 * 0.90
1178    set in2_max 3.3 * 1.10
1179    set in3_min 5.0 * 0.90
1180    set in3_max 5.0 * 1.10
1181    set in4_min 12 * 0.90
1182    set in4_max 12 * 1.10
1183    set in5_min 3.3 * 0.90
1184    set in5_max 3.3 * 1.10
1185
1186# Depending on how your chipset is hardwired, you may or may not have
1187# +12V readings (will show as 0.0V if you don't have it).
1188#   ignore in4
1189
1190# VCC is the power-supply voltage of the ADM1025 chipset, generally
1191# redundant with +3.3V so you may want to hide it.
1192#   ignore in5
1193
1194# Adjust this if your vid is wrong; see doc/vid
1195    set vrm 9.0
1196
1197# Temperatures
1198    label temp1 "CPU Temp"
1199    label temp2 "M/B Temp"
1200    set temp1_low 10
1201    set temp1_high 60
1202    set temp2_low 10
1203    set temp2_high 45
1204
1205
1206chip "lm87-*"
1207#
1208# The LM87 has integrated scaling resistors, rather
1209# than external resistors common to most sensor devices.
1210# These apply to the first 6 voltage inputs in0-in5
1211# (+2.5, Vccp1, +3.3, +5, 12, +Vccp2). As the scaling is fixed inside
1212# the chip for these inputs, it is fairly certain that the
1213# motherboard connections match these labels, and that the
1214# driver computations are correct. Therefore they do not need to
1215# be overridden here.
1216#
1217# Note: AIN1 (-12?), AIN2 (-5?) and CPU2_temp require changing
1218# #defines in the driver and recompiling!!!
1219#
1220# This chip has non-standard entries in lib/chips.c so
1221# the feature names are quite different from other chips.
1222# For this chip, libsensors anticipates the correct labeling.
1223# This is great if it's correct but makes it a little more
1224# difficult if you want to change it.
1225#
1226# This may not have been a good idea, so it may be changed in the future.
1227# Here is an entry with everything commented out so you can
1228# uncomment the appropriate line if you want to change it.
1229#
1230# Warning - feature names starting with a number must be enclosed
1231# with double quotes.
1232#
1233# It is unlikely you will need to use the following 6 lines (see above)
1234#   label "2.5V" "xxx"
1235#   label Vccp1 "xxx"
1236#   label "3.3V" "xxx"
1237#   label "5V" "xxx"
1238#   label "12V" "xxx"
1239#   label Vccp2 "xxx"
1240
1241#   label fan1 "xxx"
1242#   label fan2 "xxx"
1243#   label temp1 "xxx"
1244#   label CPU_Temp "xxx"
1245#   label CPU2_Temp "xxx"
1246#
1247#   set AmbTemp_min xxx
1248#   set Vccp1_min xxx
1249#   set "3.3V_min" xxx
1250#   set "5V_min" xxx
1251#   set "12V_min" xxx
1252#   set Vccp2_min xxx
1253#
1254#   set AmbTemp_max xxx
1255#   set Vccp1_max xxx
1256#   set "3.3V_max" xxx
1257#   set "5V_max" xxx
1258#   set "12V_max" xxx
1259#   set Vccp2_max xxx
1260#
1261#   set fan1_div xxx
1262#   set fan2_div xxx
1263#   set fan1_min xxx
1264#   set fan2_min xxx
1265#   set temp1_min xxx
1266#   set temp1_max xxx
1267#   set temp2_min xxx
1268#   set temp2_max xxx
1269#   set temp3_min xxx
1270#   set temp3_max xxx
1271
1272# It is unlikely you will need to use the following 6 lines (see above)
1273#   compute "2.5V" xxx
1274#   compute Vccp1 xxx
1275#   compute "3.3V" xxx
1276#   compute "5V" xxx
1277#   compute "12V" xxx
1278#   compute Vccp2 xxx
1279
1280#   compute temp1 xxx
1281#   compute CPU_Temp xxx
1282#   compute CPU2_Temp xxx
1283
1284# LM87 AIN1 and AIN2 Section
1285# As described above, the driver must be recompiled to use either or
1286# both of these. -12 and -5 may be reversed on your board, this is
1287# just a guess, the datasheet gives no guidance.
1288#   label AIN1 "-12V"
1289#   label AIN2 "-5V"
1290#   set AIN1_min -12 * 0.95
1291#   set AIN2_min -5 * 0.95
1292#   set AIN1_max -12 * 1.05
1293#   set AIN2_max -5 * 0.95
1294#   compute AIN1 (7.50 * @) - 21.45  ,  (@ + 21.45) / 7.50
1295#   compute AIN2 (4.05 * @) - 10.07  ,  (@ + 10.07) / 4.05
1296
1297chip "adm9240-*" "ds1780-*" "lm81-*"
1298#
1299# These chips have non-standard entries in lib/chips.c so
1300# the feature names are quite different from other chips.
1301# For these chips, libsensors anticipates the correct labeling.
1302# This is great if it's correct but makes it a little more
1303# difficult if you want to change it.
1304#
1305# This may not have been a good idea, so it may be changed in the future.
1306# Here is an entry with everything commented out so you can
1307# uncomment the appropriate line if you want to change it.
1308#
1309# Warning - feature names starting with a number must be enclosed
1310# with double quotes.
1311#
1312#   label "2.5V" "xxx"
1313#   label Vccp1 "xxx"
1314#   label "3.3V" "xxx"
1315#   label "5V" "xxx"
1316#   label "12V" "xxx"
1317#   label Vccp2 "xxx"
1318#   label fan1 "xxx"
1319#   label fan2 "xxx"
1320#   label temp "xxx"
1321#
1322#   set Vccp1_min xxx
1323#   set "2.5V_min" xxx
1324#   set "3.3V_min" xxx
1325#   set "5V_min" xxx
1326#   set "12V_min" xxx
1327#   set Vccp2_min xxx
1328#
1329#   set Vccp1_max xxx
1330#   set "2.5V_max" xxx
1331#   set "3.3V_max" xxx
1332#   set "5V_max" xxx
1333#   set "12V_max" xxx
1334#   set Vccp2_max xxx
1335#
1336#   set fan1_div xxx
1337#   set fan2_div xxx
1338#   set fan1_min xxx
1339#   set fan2_min xxx
1340#   set temp1_hyst xxx
1341#   set temp1_over xxx
1342
1343#   compute "2.5V" xxx
1344#   compute Vccp1 xxx
1345#   compute "3.3V" xxx
1346#   compute "5V" xxx
1347#   compute "12V" xxx
1348#   compute Vccp2 xxx
1349#   compute temp xxx
1350
1351chip "adm1024-*"
1352#
1353# These settings work for me, adjust for your system
1354#
1355    label fan1 "CPU1 fan"
1356    label fan2 "CPU2 fan"
1357    label temp "SYS Temp"
1358    label temp1 "CPU2 Temp"
1359    label temp2 "CPU1 Temp"
1360    ignore "2.5V" # This register is also used for temp2
1361    ignore "Vccp1"
1362    ignore "Vccp2"
1363
1364
1365chip "it87-*"
1366
1367# The values below have been tested on Asus CUSI, CUM motherboards.
1368
1369# Voltage monitors as advised in the It8705 data sheet
1370
1371    label in0 "VCore 1"
1372    label in1 "VCore 2"
1373    label in2 "+3.3V"
1374    label in3 "+5V"
1375    label in4 "+12V"
1376    label in5 "-12V"
1377    label in6 "-5V"
1378    label in7 "Stdby"
1379    label in8 "VBat"
1380
1381    set in0_min 1.5 * 0.95
1382    set in0_max 1.5 * 1.05
1383    set in1_min 2.4
1384    set in1_max 2.6
1385    set in2_min 3.3 * 0.95
1386    set in2_max 3.3 * 1.05
1387    set in3_min 5.0 * 0.95
1388    set in3_max 5.0 * 1.05
1389    set in4_min 12 * 0.95
1390    set in4_max 12 * 1.05
1391    set in5_max -12 * 0.95
1392    set in5_min -12 * 1.05
1393    set in6_max -5 * 0.95
1394    set in6_min -5 * 1.05
1395    set in7_min 5 * 0.95
1396    set in7_max 5 * 1.05
1397    #the chip does not support in8 min/max
1398
1399    # vid is not monitored by IT8705F
1400    # and is not supported by driver at this time
1401    ignore  vid
1402
1403# If 3.3V reads 2X too high (Soyo Dragon and Asus A7V8X-X, for example),
1404# comment out following line.
1405    compute in2   2*@ , @/2
1406#
1407    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
1408    compute in4 ((30/10) +1)*@  , @/((30/10) +1)
1409# For this family of chips the negative voltage equation is different from
1410# the lm78.  The chip uses two external resistor for scaling but one is
1411# tied to a positive reference voltage.  See ITE8705/12 datasheet (SIS950
1412# data sheet is wrong)
1413# Vs = (1 + Rin/Rf) * Vin - (Rin/Rf) * Vref.
1414# Vref = 4.096 volts, Vin is voltage measured, Vs is actual voltage.
1415
1416# The next two are negative voltages (-12 and -5).
1417# The following formulas must be used. Unfortunately the datasheet
1418# does not give recommendations for Rin, Rf, but we can back into
1419# them based on a nominal +2V input to the chip, together with a 4.096V Vref.
1420# Formula:
1421#    actual V = (Vmeasured * (1 + Rin/Rf)) - (Vref * (Rin/Rf))
1422#    For -12V input use Rin/Rf = 6.68
1423#    For -5V input use Rin/Rf = 3.33
1424# Then you can convert the forumula to a standard form like:
1425    compute in5 (7.67 * @) - 27.36  ,  (@ + 27.36) / 7.67
1426    compute in6 (4.33 * @) - 13.64  ,  (@ + 13.64) / 4.33
1427#
1428# this much simpler version is reported to work for a
1429# Elite Group K7S5A board
1430#
1431#   compute in5 -(36/10)*@, -@/(36/10)
1432#   compute in6 -(56/10)*@, -@/(56/10)
1433#
1434    compute in7 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
1435
1436# Temperature
1437#
1438# Important - if your temperature readings are completely whacky
1439# you probably need to change the sensor type.
1440# Adujst and uncomment the appropriate lines below.
1441# The old method (modprobe it87 temp_type=0xXX) is no longer supported.
1442#
1443# 2 = thermistor; 3 = thermal diode; 0 = unused
1444#   set sensor1 3
1445#   set sensor2 3
1446#   set sensor3 3
1447# If a given sensor isn't used, you will probably want to ignore it
1448# (see ignore statement right below).
1449
1450    label temp1       "M/B Temp"
1451    set   temp1_over  40
1452    set   temp1_low   15
1453    label temp2       "CPU Temp"
1454    set   temp2_over  45
1455    set   temp2_low   15
1456#   ignore temp3
1457    label temp3       "Temp3"
1458    set   temp3_over  45
1459    set   temp3_low   15
1460
1461# The A7V8X-X has temperatures inverted, and needs a conversion for
1462# CPU temp. Thanks to Preben Randhol for the formula.
1463#   label temp1       "CPU Temp"
1464#   label temp2       "M/B Temp"
1465#   compute temp1     (-15.096+1.4893*@), (@+15.096)/1.4893
1466
1467# The A7V600 also has temperatures inverted, and needs a different
1468# conversion for CPU temp. Thanks to Dariusz Jaszkowski for the formula.
1469#   label temp1       "CPU Temp"
1470#   label temp2       "M/B Temp"
1471#   compute temp1     (@+128)/3, (3*@-128)
1472
1473# Fans
1474    set fan1_min 0
1475    set fan2_min 3000
1476#   ignore fan3
1477    set fan3_min 3000
1478
1479# The following is for the Inside Technologies 786LCD which uses either a
1480# IT8705F or a SIS950 for monitoring with the SIS630.
1481# You will need to load the it87 module as follows to select the correct
1482# temperature sensor type.
1483# modprobe it87 temp_type=0x31
1484# The sensors-detect program reports lm78 and a sis5595 and lists the it87 as
1485# a misdetect.  Don't do the modprobe for the lm78 or sis5595 as suggested.
1486#
1487# delete or comment out above it87 section and uncomment the following.
1488#chip "it87-*"
1489#    label in0 "VCore 1"
1490#    label in1 "VCore 2"
1491#    label in2 "+3.3V"
1492#    label in3 "+5V"
1493#    label in4 "+12V"
1494#    label in5 "3.3 Stdby"
1495#    label in6 "-12V"
1496#    label in7 "Stdby"
1497#    label in8 "VBat"
1498    # in0 will depend on your processor VID value, set to voltage specified in
1499    # bios setup screen
1500#    set in0_min 1.7 * 0.95
1501#    set in0_max 1.7 * 1.05
1502#    set in1_min 2.4
1503#    set in1_max 2.6
1504#    set in2_min 3.3 * 0.95
1505#    set in2_max 3.3 * 1.05
1506#    set in3_min 5.0 * 0.95
1507#    set in3_max 5.0 * 1.05
1508    # +- 12V are very poor tolerance on this board. Verified with voltmeter
1509#    set in4_min 12 * 0.90
1510#    set in4_max 12 * 1.10
1511#    set in5_min 3.3 * 0.95
1512#    set in5_max 3.3 * 1.05
1513#    set in6_max -12 * 0.90
1514#    set in6_min -12 * 1.10
1515#    set in7_min 5 * 0.95
1516#    set in7_max 5 * 1.05
1517    # vid not monitored by IT8705F
1518#    ignore  vid
1519
1520#    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
1521#    compute in4 ((30/10) +1)*@  , @/((30/10) +1)
1522#    compute in6 (1+232/56)*@ - 4.096*232/56, (@ + 4.096*232/56)/(1+232/56)
1523#    compute in7 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
1524    # Temperature
1525#    label temp1       "CPU Temp"
1526#    ignore temp2
1527#    ignore temp3
1528    # Fans
1529#    set fan1_min 3000
1530#    ignore fan2
1531#    ignore fan3
1532
1533
1534chip "fscpos-*"
1535# Fujitsu-Siemens Poseidon chip
1536
1537# Temperature
1538
1539    label temp1       "Temp1/CPU"
1540    label temp2       "Temp2/MB"
1541    label temp3       "Temp2/AUX"
1542
1543# Fans
1544
1545    label  fan1       "Fan1"
1546    ignore  fan2
1547    ignore  fan3
1548
1549# Voltage
1550
1551    label volt12      "+12V"
1552    label volt5       "+5V"
1553    label voltbatt    "+3.3V"
1554
1555
1556chip "fscscy-*"
1557# Fujitsu-Siemens Scylla chip
1558
1559# Temperature
1560
1561    label temp1       "Temp1/CPU0"
1562    label temp2       "Temp2/CPU1"
1563    label temp3       "Temp3/MB"
1564    label temp4       "Temp4/AUX"
1565
1566# Fans
1567
1568    label  fan1       "Fan1/CPU0"
1569    label  fan2       "Fan2/CPU0"
1570    label  fan3       "Fan3"
1571    label  fan4       "Fan4"
1572    label  fan5       "Fan5"
1573    label  fan6       "Fan6"
1574
1575# Voltage
1576
1577    label volt12      "+12V"
1578    label volt5       "+5V"
1579    label voltbatt    "+3.3V"
1580
1581
1582chip "fscher-*"
1583# Fujitsu-Siemens Hermes chip
1584
1585# Temperature
1586    label temp1       "Temp1/CPU"
1587    label temp2       "Temp2/MB"
1588    label temp3       "Temp3/AUX"
1589
1590# Fans
1591    label fan1        "Fan1/PS"
1592    label fan2        "Fan2/CPU"
1593    label fan3        "Fan3/AUX"
1594
1595# Voltage
1596    label in0         "+12V"
1597    label in1         "+5V"
1598    label in2         "Battery"
1599
1600# Compute Voltages using mainboard dependant MRO-values
1601# (see doc/chips/fscher)
1602#                           M    R             O               O                  M    R
1603    compute in0       (@ * (49 * 33) / 255) + (0 / 100), (@ - (0 / 100)) * 255 / (49 * 33)
1604    compute in1       (@ * (20 * 33) / 255) + (0 / 100), (@ - (0 / 100)) * 255 / (20 * 33)
1605    compute in2       (@ * (10 * 33) / 255) + (0 / 100), (@ - (0 / 100)) * 255 / (10 * 33)
1606
1607# Read documentation before enabling pwm settings (see doc/chips/fscher)
1608# WARNING: IMPROPER VALUES MAY DAMAGE YOUR SYSTEM DUE TO OVERHEATING!
1609
1610# Allow fans to turn off
1611#    set pwm1          0
1612#    set pwm2          0
1613#    set pwm3          0
1614
1615# Min cooling
1616#    set pwm1          2
1617#    set pwm2          1
1618#    set pwm3          1
1619
1620# Max cooling
1621#    set pwm1          255
1622#    set pwm2          255
1623#    set pwm3          255
1624
1625
1626chip "pcf8591-*"
1627#
1628#    values for the Philips PCF8591 chip
1629#
1630# Analog inputs
1631
1632   ignore ain_conf
1633   set    ain_conf    0
1634   label  ch0         "Chan. 0"
1635   label  ch1         "Chan. 1"
1636   label  ch2         "Chan. 2"
1637   label  ch3         "Chan. 3"
1638
1639# Analog output
1640
1641   ignore aout_enable
1642   set    aout_enable 1
1643   label  aout        "Output"
1644   set    aout        0
1645
1646chip "adm1021-*" "adm1023-*" "max1617-*" "max1617a-*" "thmc10-*" "lm84-*" "gl523sm-*" "mc1066-*"
1647
1648   label temp           "Board"
1649   label remote_temp    "CPU"
1650#   set temp_low                40
1651#   set temp_over               70
1652#   set remote_temp_low         40
1653#   set remote_temp_over        70
1654
1655chip "lm83-*"
1656
1657   label temp1 "M/B Temp"
1658   label temp2 "D1 Temp"
1659   label temp3 "CPU Temp"
1660   label temp4 "D3 Temp"
1661
1662# ignore D1 and/or D3 readings if not used
1663#   ignore temp2
1664#   ignore temp4
1665
1666# change high limits to fit your needs
1667#   set temp1_high 55
1668#   set temp2_high 60
1669#   set temp3_high 65
1670#   set temp4_high 60
1671
1672# change critical limit to fit your needs
1673# only one limit for all four temperatures
1674# should be higher than each of the high limits above
1675#   set tcrit 85
1676
1677chip "lm90-*" "adm1032-*"
1678
1679   label temp1 "M/B Temp"
1680   label temp2 "CPU Temp"
1681   label tcrit1 "M/B Crit"
1682   label tcrit2 "CPU Crit"
1683
1684# change high and low limits to fit your needs
1685#   set temp1_low  10
1686#   set temp1_high 55
1687#   set temp2_low  10
1688#   set temp2_high 66
1689
1690# change critical limits to fit your needs
1691# should be higher than the corresponding high limit above
1692#   set tcrit1 75
1693#   set tcrit2 85
1694
1695# change the hysteresis values (to critical limits) to fit your needs
1696# note #1: hyst2 will be automatically set with the same delta
1697# note #2: the internal register, which stores a single, relative value
1698# for both channels, cannot hold values greater than 31, so the delta
1699# between critical temperatures and respective absolute hysteresis can
1700# never exceed this value
1701#   set hyst1 70
1702
1703chip "vt1211-*" "vt8231-*"
1704#
1705# temp1 and in6 are not implemented in vt1211 / vt8231
1706#
1707#                                                       1 for temp, 0 for volt.
1708#       Sensor          Voltage Mode    Temp Mode       config bit
1709#       --------        ------------    ---------       --------------
1710#       Reading 1                       temp3
1711#       UCH1/Reading2   in0             temp2           0x04 (4)
1712#       UCH2            in1             temp4           0x08 (8)
1713#       UCH3            in2             temp5           0x10 (16)
1714#       UCH4            in3             temp6           0x20 (32)
1715#       UCH5            in4             temp7           0x40 (64)
1716#       3.3V            in5
1717#
1718# set uch1-2 to temp mode, uch3-5 to voltage mode
1719#
1720    set config 12
1721    ignore in0
1722    ignore in1
1723    ignore temp5
1724    ignore temp6
1725    ignore temp7
1726
1727# IMPORTANT: If you get "ERROR: Can't get TEMPX data!" from "sensors",
1728# where X is 2, 4, 5, 6 or 7, although you have this UCH set to
1729# temperature, this generally means that this UCH isn't (physically)
1730# used for temperature, so you should add an ignore statement for tempX
1731# and change the "config" value to reflect the fact that this UCH is
1732# probably used for voltage.
1733
1734#   label in0 "unused"
1735#   label in1 "unused"
1736    label in2 "VCore1"
1737    label in3 "+5V"
1738    label in4 "+12V"
1739    label in5 "+3.3V"
1740
1741    label temp2 "MB1 Temp"
1742    label temp3 "Proc Temp"
1743    label temp4 "MB2 Temp"
1744#
1745#   All voltage calculations have the form
1746#       ((@ * 100) - 3) / (K * 95.8), (@ * K * 0.958) + .03
1747#   where K = R2 / (R1 + R2).
1748#   Use the following K values based on input voltage.
1749#   This of course assumes the mobo has the resistors
1750#   recommended by Via in the datasheet.
1751#       Voltage                 K
1752#       VCore                   1.0
1753#       2.5                     0.8333
1754#       3.3 (in5 internal)      0.6296
1755#       3.5 (3.3V ext.)         0.5952
1756#       5.0                     0.4167
1757#       12.0                    0.1754
1758#
1759#   compute in0 ((@ * 100) - 3) / (0.5952 * 95.8), (@ * 0.5952 * 0.958) + .03
1760#   compute in1 ((@ * 100) - 3) / (0.8333 * 95.8), (@ * 0.8333 * 0.958) + .03
1761    compute in2 ((@ * 100) - 3) / (0.5952 * 95.8), (@ * 0.5952 * 0.958) + .03
1762    compute in3 ((@ * 100) - 3) / (0.4167 * 95.8), (@ * 0.4167 * 0.958) + .03
1763    compute in4 ((@ * 100) - 3) / (0.1754 * 95.8), (@ * 0.1754 * 0.958) + .03
1764    compute in5 ((@ * 100) - 3) / (0.6296 * 95.8), (@ * 0.6296 * 0.958) + .03
1765
1766    set vrm 9.1
1767#   set in0_min 2.5 * 0.95
1768#   set in0_max 2.5 * 1.05
1769#   set in1_min 2.5 * 0.95
1770#   set in1_max 2.5 * 1.05
1771    set in2_min vid * 0.97
1772    set in2_max vid * 1.03
1773    set in3_min 5.0 * 0.95
1774    set in3_max 5.0 * 1.05
1775    set in4_min 12.0 * 0.90
1776    set in4_max 12.0 * 1.10
1777    set in5_min 3.3 * 0.95
1778    set in5_max 3.3 * 1.05
1779
1780    compute temp3  (@ - 65) / 0.9686,  (@ * 0.9686) + 65
1781#
1782# thermistor calculations.
1783# 3435 is the thermistor beta.
1784# '^' is the e**x operator; '`' is the ln(x) operator
1785# (valid in library version 1.4.0 / lm_sensors 2.7.1 or higher)
1786# This assumes that the thermistor forms a resistor divider with a resistor
1787# equal to its nominal value @ 25C. If not, the math gets even harder.
1788#
1789    compute temp2  (1 / (((1 / 3435) * (` ((253 - @) / (@ - 43)))) + (1 / 298.15)))  - 273.15, \
1790                   253 - (210 / (1 + (1 / (^ (((3435 * (25 - @)) / ((@ + 273.15) * 298.15)))))))
1791    compute temp4  (1 / (((1 / 3435) * (` ((253 - @) / (@ - 43)))) + (1 / 298.15)))  - 273.15, \
1792                   253 - (210 / (1 + (1 / (^ (((3435 * (25 - @)) / ((@ + 273.15) * 298.15)))))))
1793    compute temp5  (1 / (((1 / 3435) * (` ((253 - @) / (@ - 43)))) + (1 / 298.15)))  - 273.15, \
1794                   253 - (210 / (1 + (1 / (^ (((3435 * (25 - @)) / ((@ + 273.15) * 298.15)))))))
1795    compute temp6  (1 / (((1 / 3435) * (` ((253 - @) / (@ - 43)))) + (1 / 298.15)))  - 273.15, \
1796                   253 - (210 / (1 + (1 / (^ (((3435 * (25 - @)) / ((@ + 273.15) * 298.15)))))))
1797    compute temp7  (1 / (((1 / 3435) * (` ((253 - @) / (@ - 43)))) + (1 / 298.15)))  - 273.15, \
1798                   253 - (210 / (1 + (1 / (^ (((3435 * (25 - @)) / ((@ + 273.15) * 298.15)))))))
1799
1800    set temp2_hyst 40
1801    set temp2_over 45
1802    set temp3_hyst 60
1803    set temp3_over 65
1804    set temp4_hyst 40
1805    set temp4_over 45
1806
1807    set fan1_min 3000
1808    set fan2_min 3000
1809
1810chip "bmc-*"
1811#
1812# You should not need compute lines here, the driver will
1813# do all the conversions.
1814# For label lines, copy from syslog/dmesg when the bmcsensors
1815# module is inserted.
1816#
1817# for example:
1818# label temp1 "Ambient Temp"
1819
1820
1821
1822#
1823chip "smsc47m1-*"
1824
1825    set fan1_min 3000
1826    set fan2_min 3000
1827
1828#
1829# This example was tested vs. Asus P4S333
1830#
1831chip "asb100-*"
1832    set vrm 9.0
1833
1834    label in0 "VCore 1"
1835    set in0_min vid * 0.95
1836    set in0_max vid * 1.05
1837
1838    label in1 "VCore 2"
1839    ignore in1
1840    set in1_min vid * 0.95
1841    set in1_max vid * 1.05
1842
1843    label in2 "+3.3V"
1844    set in2_min 3.3 * 0.95
1845    set in2_max 3.3 * 1.05
1846
1847    label in3 "+5V"
1848    compute in3 1.68 * @ ,  @ / 1.68
1849    set in3_min 5.0 * 0.95
1850    set in3_max 5.0 * 1.05
1851
1852    label in4 "+12V"
1853    compute in4 3.8 * @ , @ / 3.8
1854    set in4_min 12  * 0.90
1855    set in4_max 12  * 1.10
1856
1857    label in5 "-12V (reserved)"
1858    #ignore in5
1859    compute in5 -@ * 3.97 ,  -@ / 3.97
1860    set in5_max -12 * 0.90
1861    set in5_min -12 * 1.10
1862
1863    label in6 "-5V (reserved)"
1864    #ignore in6
1865    compute in6 -@ * 1.666 , -@ / 1.666
1866    set in6_max -5  * 0.95
1867    set in6_min -5  * 1.05
1868
1869    label temp1 "M/B Temp"
1870    set temp1_over 45
1871    set temp1_hyst 40
1872
1873    label temp2 "CPU Temp (Intel)"
1874    #ignore temp2
1875    set temp2_over 60
1876    set temp2_hyst 50
1877
1878    # PWRTMP connector on P4S333, for external sensor
1879    label temp3 "Power Temp"
1880    #ignore temp3
1881    set temp3_over 45
1882    set temp3_hyst 40
1883
1884
1885    # Used for Athlon diode, ignore for P4S333
1886    label temp4 "CPU Temp (AMD)"
1887    set temp4_over 60
1888    set temp4_hyst 50
1889    #ignore temp4
1890
1891    label fan1 "CPU Fan"
1892    set fan1_div 4
1893    set fan1_min 2000
1894
1895    label fan2 "Chassis Fan"
1896    set fan2_div 2
1897    set fan2_min 4000
1898
1899    label fan3 "Power Fan"
1900    set fan3_div 2
1901    set fan3_min 4000
1902
Note: See TracBrowser for help on using the browser.