root/lm-sensors/branches/lm-sensors-3.0.0/etc/sensors.conf.eg @ 4773

Revision 4773, 69.6 KB (checked in by khali, 7 years ago)

More cleanups: drop legacy references, sections for drivers not
yet ported to Linux 2.6, etc.

  • 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 and lm79
37# chips. Other examples are *-isa-* for everything on the ISA bus, and
38# lm78-i2c-*-4e for all lm78 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-*" "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 'Unknown 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#
63# LABEL LINES
64# -----------
65# A label line describes what a certain feature stands for on your
66# mainboard. Programs can retrieve these names and display them.
67# If no label is specified for a certain feature, the default name
68# (ie. 'fan1' for fan1) is used.
69#
70# These are as advised in the LM78 and LM79 data sheets, and used on most
71# boards we have seen.
72#
73#       label in0 "VCore 1"
74#       label in1 "VCore 2"
75#       label in2 "+3.3V"
76#       label in3 "+5V"
77#       label in4 "+12V"
78#       label in5 "-12V"
79#       label in6 "-5V"
80#
81#
82# COMPUTE LINES
83# -------------
84# A compute line describes how to scale a certain feature. There are
85# two expressions in it: the first describes how the driver value must
86# be translated to a user value, the second how a user value must be
87# translated to a driver value. '@' is the value to operate on. You may
88# refer to other readable features (like 'cpu0_vid * 1.05').
89#
90# The following operators are valid: + - * / ( ) ^ `
91# ^ is e**x and ` is ln(x)
92#
93# Where it makes sense, compute lines are inherited by subfeatures.
94# For example, the compute line for 'in0' is automatically applied to
95# 'in0_min' and 'in0_max' as well.
96#
97#
98# VOLTAGE COMPUTATION DETAILS
99# ---------------------------
100# Most voltage sensors in sensor chips have a range of 0 to 4.096 Volts.
101# This is generally sufficient for the 3.3 and CPU (2.5V, for example)
102# supply voltages, so the sensor chip reading is the actual voltage.
103#
104# Other supply voltages must be scaled with an external resistor network.
105# The chip driver generally reports the 'raw' value 0 - 4.09 V, and the
106# userspace application must convert this raw value to an actual voltage.
107# The 'compute' lines provide this facility.
108#
109# Unfortunately the resistor values vary among motherboard types.
110# Therefore you may have to adjust the computations in this file
111# to match your motherboard.
112#
113# For positive voltages (in3, in4), two resistors are used, with the following
114# formula (R1,R2: resistor values, Vs: read voltage, Vin: pin voltage)
115#       R1 = R2 * (Vs/Vin - 1)
116# For negative voltages (in5, in6) two resistors are used, with the following
117# formula (Rin,Rf: resistor values, Vs: read voltage, Vin: pin voltage)
118#       Rin = (Vs * Rf) / Vin
119#
120# Note: Some chips use a different formula, see it87 section for example.
121#
122# Here are the official LM78 and LM79 data sheet values.
123#             Vs     R1,Rin   R2,Rf    Vin
124#       in3   +5.0      6.8    10     +2.98
125#       in4  +12.0     30      10     +3.00
126#       in5  -12.0    240      60     +3.00
127#       in6   -5.0    100      60     +3.00
128#
129# These would lead to these declarations:
130#       compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
131#       compute in4 ((30/10)+1)*@  ,  @/((30/10)+1)
132#       compute in5 -(240/60)*@    ,  -@/(240/60)
133#       compute in6 -(100/60)*@    ,  -@/(100/60)
134#
135# On almost any mainboard we have seen, the Winbond compute values lead to
136# much better results, though.
137#
138#             Vs     R1,Rin   R2,Rf    Vin
139#       in4  +12.0     28      10     +3.15
140#       in5  -12.0    210      60.4   +3.45
141#       in6   -5.0     90.9    60.4   +3.33
142#
143# These leads to these declarations:
144#       compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
145#       compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
146#       compute in5 -(210/60.4)*@  ,  -@/(210/60.4)
147#       compute in6 -(90.9/60.4)*@ ,  -@/(90.9/60.4)
148#
149# NOTE: On many motherboards, the -5V and -12V sensors are not connected.
150# Add ignore lines so these readings will not be displayed. For example:
151#       ignore in5
152#       ignore in6
153#
154#
155# TEMPERATURE COMPUTATION EXAMPLES
156# --------------------------------
157# There are two common ways to adjust temperature readings.
158# One is to adjust by a constant. The other is to change the
159# temperature sensor type.
160#
161# Add 5 degrees to temperature sensor 1:
162#       compute temp1 @+5,@-5
163#
164# Sensor type adjustments (certain chips only):
165#       set temp1_type 1    # PII/Celeron Diode
166#       set temp1_type 2    # 3904 transistor
167#       set temp1_type 3    # thermal diode
168#       set temp1_type 4    # thermistor
169#       set temp1_type 5    # AMD AMDSI
170#       set temp1_type 6    # Intel PECI
171#
172# Often, a temperature sensor is disconnected; disable it with an ignore line:
173#       ignore temp3
174#
175#
176# SET LINES
177# ---------
178# Set statements set things like limits. Complete expressions can be
179# used. Not everything can sensibly be set: setting 'in0', for example,
180# is impossible! These settings are put through the compute translations;
181# so if we specify '12.8' for in6, '3.2' will actually be written!
182#
183# Important note: In the 'sensors' program, these only take effect
184# after running 'sensors -s'!!!
185#
186# Here are some examples:
187#
188#       set in0_max cpu0_vid*1.05
189#       set in0_min cpu0_vid*0.95
190#       set temp1_max 40
191#       set temp1_max_hyst 37
192#
193# Think of tempx_max as 'alarm set' and tempx_max_hyst as 'alarm clear'
194# thresholds. In most cases the 'max' value should be higher than
195# the 'max_hyst' value by several degrees.
196#
197# All the set statements from this file are commented out by default.
198# The reason is that the proper limits are highly system-dependent,
199# and writing improper limits may have all sorts of weird effects,
200# from beeping to CPU throttling to instant reboot. If you want to
201# actually set the limits, remove the comment marks.
202#
203#
204# IGNORE LINES
205# ------------
206# Ignore statements tell certain features are not wanted. As with compute
207# statements, 'ignore in0' would also invalidate 'in0_max' and 'in0_min'.
208# 'ignore' does not disable anything in the actual sensor chip; it
209# simply prevents the user program from accessing that data.
210#
211#       ignore in0
212#
213#
214# STATEMENT ORDER
215# ---------------
216# Statements can go in any order, EXCEPT that some statements depend
217# on others. Dependencies could be either in the library or the driver.
218# A 'compute' statement must go before a 'set' statement
219# for the same feature or else the 'set' won't be computed correctly.
220# This is a library dependency.
221# A 'set fan1_div' statement must go before a 'set fan1_min' statement,
222# because the driver uses the divisor in calculating the minimum.
223#
224#
225# BUS LINES
226# ---------
227# There is one other feature: the 'bus' statement. An example is below.
228#
229#       bus "i2c-0" "SMBus PIIX4 adapter at e800"
230#
231# If we refer from now on to 'i2c-0' in 'chip' lines, this will run-time
232# be matched to this bus. So even if the PIIX4 is called 'i2c-5' at that
233# moment, because five other adapters were detected first, 'i2c-0' in
234# the config file would always only match this physical bus. In the above
235# config file, this feature is not needed; but the next lines would
236# only affect the LM75 chips on the PIIX4 adapter:
237#
238#       chip "lm75-i2c-0-*"
239#
240# You should really use the output of /proc/bus/chips to generate bus lines,
241# because one mistyped characted will inhibit the match. Wildcards are not
242# yet supported; spaces at the end are ignored, though.
243#
244#
245# BEEPS
246# -----
247# Some chips support alarms with beep warnings. When an alarm is triggered
248# you can be warned by a beeping signal through your computer speaker. It
249# is possible to enable beeps for all alarms on a chip using the following
250# line:
251#
252#       set beep_enable 1
253#
254# or disable them using:
255#
256#       set beep_enable 0
257#
258#
259##########################################################################
260#### Here begins the real configuration file
261
262
263chip "lm78-*" "lm79-*" "w83781d-*"
264
265# These are as advised in the LM78 and LM79 data sheets, and used on almost
266# any mainboard we have seen.
267
268    label in0 "VCore 1"
269    label in1 "VCore 2"
270    label in2 "+3.3V"
271    label in3 "+5V"
272    label in4 "+12V"
273    label in5 "-12V"
274    label in6 "-5V"
275
276# For positive voltages (in3, in4), two resistors are used, with the following
277# formula (R1,R2: resistor values, Vs: read voltage, Vin: pin voltage)
278#   R1 = R2 * (Vs/Vin - 1)
279# For negative voltages (in5, in6) two resistors are used, with the following
280# formula (Rin,Rf: resistor values, Vs: read voltage, Vin: pin voltage)
281#   Rin = (Vs * Rf) / Vin
282#
283# Here are the official LM78 and LM79 data sheet values.
284#       Vs     R1,Rin   R2,Rf    Vin
285# in3   +5.0      6.8    10     +2.98
286# in4  +12.0     30      10     +3.00
287# in5  -12.0    240      60     +3.00
288# in6   -5.0    100      60     +3.00
289#
290# These would lead to these declarations:
291# compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
292# compute in4 ((30/10)+1)*@  ,  @/((30/10)+1)
293# compute in5 -(240/60)*@    ,  -@/(240/60)
294# compute in6 -(100/60)*@    ,  -@/(100/60)
295#
296# On almost any mainboard we have seen, the Winbond compute values lead to
297# much better results, though.
298#
299#       Vs     R1,Rin   R2,Rf    Vin
300# in4  +12.0     28      10     +3.15
301# in5  -12.0    210      60.4   +3.45
302# in6   -5.0     90.9    60.4   +3.33
303#
304# These leads to these declarations:
305
306    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
307    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
308    compute in5 -(210/60.4)*@  ,  -@/(210/60.4)
309    compute in6 -(90.9/60.4)*@ ,  -@/(90.9/60.4)
310
311# Here, we assume the VID readings are valid, and we use a max. 5% deviation
312
313#    set in0_min cpu0_vid*0.95
314#    set in0_max cpu0_vid*1.05
315#    set in1_min cpu0_vid*0.95
316#    set in1_max cpu0_vid*1.05
317#    set in2_min 3.3 * 0.95
318#    set in2_max 3.3 * 1.05
319#    set in3_min 5.0 * 0.95
320#    set in3_max 5.0 * 1.05
321#    set in4_min 12 * 0.95
322#    set in4_max 12 * 1.05
323#    set in5_min -12 * 0.95
324#    set in5_max -12 * 1.05
325#    set in6_min -5 * 0.95
326#    set in6_max -5 * 1.05
327
328# Examples for lm78, lm79 temperature limits
329#    set temp1_max      40
330#    set temp1_max_hyst 37
331
332# Examples for w83781d temperature limits
333#    set temp1_max      40
334#    set temp1_max_hyst 37
335#    set temp2_max      52
336#    set temp2_max_hyst 47
337#    set temp3_max      52
338#    set temp3_max_hyst 47
339
340# Examples of fan low speed limits
341#    set fan1_min 3000
342#    set fan2_min 3000
343#    set fan3_min 3000
344
345# Ignore fans you don't actually have
346#    ignore fan1
347#    ignore fan2
348#    ignore fan3
349
350# In case a lm78 is used together with a lm75, the lm78 temp sensor will
351# generally show the M/B temperature while the lm75 temp sensor will show
352# the CPU temperature.
353#    label temp1 "M/B Temp"
354
355# Uncomment the following line to enable beeps for all alarms on this chip
356#    set beep_enable 1
357
358
359
360chip "lm75-*"
361
362# Most boards don't need scaling. Following is for the Asus TX97-E.
363#   compute temp1 @*2.0, @/2.0
364
365# Examples for temperature limits
366#    set temp1_max      70
367#    set temp1_max_hyst 65
368
369# In case a lm75 is used together with a lm78, the lm78 temp sensor will
370# generally show the M/B temperature while the lm75 temp sensor will show
371# the CPU temperature.
372#    label temp1 "CPU Temp"
373
374
375chip "sis5595-*"
376
377    label in0 "VCore 1"
378    label in1 "VCore 2"
379    label in2 "+3.3V"
380    label in3 "+5V"
381    label in4 "+12V"
382
383    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
384    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
385
386#    set in0_min 2.0 * 0.95
387#    set in0_max 2.0 * 1.05
388#    set in1_min 2.0 * 0.95
389#    set in1_max 2.0 * 1.05
390#    set in2_min 3.3 * 0.95
391#    set in2_max 3.3 * 1.05
392#    set in3_min 5.0 * 0.95
393#    set in3_max 5.0 * 1.05
394#    set in4_min 12 * 0.95
395#    set in4_max 12 * 1.05
396
397#
398# SiS5595 temperature calculation
399# The driver currently includes a calculation due to the wide
400# variation in thermistor types on SiS5595 motherboards.
401# The driver currently has a calculation of t = (.83x + 52.12).
402# One user reports the correct formula of t = (.345x - 12).
403# So you want to put a compute line in sensors.conf that has
404# the inverse of the driver formula, and put your formula on top of it.
405# The inverse of the driver formula is x = (1.20t - 62.77)
406# So the final formula is newt = (.345(1.20t - 62.77)) - 12).
407# Put this in the sensors.conf file as
408# compute temp1 ((.345 * ((1.20 * @) - 62.77)) - 12), ...
409# where ... is the inverse function I leave to you.
410#
411# Look in your 'Vendor.ini' file to see which one is present
412# on your motherboard. Look for the line like:
413#       [Temp1]
414#            ThermistorType     = NTC-10KC15-1608-1P
415# Fix up a 'compute' line to match your thermistor type.
416# Warning. You still don't have enough information to do this.
417#            ThermistorType     = NTC-10KC15-1608-1P (10K at 25C; Beta = 3435)
418#   compute temp1 ((X * ((1.20 * @) - 62.77)) - Y), ...
419#            ThermistorType     = NTC-103KC15-1608-1P  (??)
420#   compute temp1 ((X * ((1.20 * @) - 62.77)) - Y), ...
421#            ThermistorType     = NTC-103AT-2 (10K at 25C; Beta = 3435)
422#   compute temp1 ((X * ((1.20 * @) - 62.77)) - Y), ...
423#            ThermistorType     = NTC-103JT   (10K at 25C; Beta = 3435)
424#   compute temp1 ((X * ((1.20 * @) - 62.77)) - Y), ...
425
426# examples for sis5595 temperature limits;
427#    set temp1_max      40
428#    set temp1_max_hyst 37
429
430
431chip "w83782d-*" "w83627hf-*"
432
433# Same as above for w83781d except that in5 and in6 are computed differently.
434# Rather than an internal inverting op amp, the 82d/83s use standard positive
435# inputs and the negative voltages are level shifted by a 3.6V reference.
436# The math is convoluted, so we hope that your motherboard
437# uses the recommended resistor values.
438
439    label in0 "VCore 1"
440    label in1 "VCore 2"
441    label in2 "+3.3V"
442    label in3 "+5V"
443    label in4 "+12V"
444    label in5 "-12V"
445    label in6 "-5V"
446    label in7 "V5SB"
447    label in8 "VBat"
448
449# Abit BP6 motherboard has a few differences. VCore1 and VCore2 are the core
450# voltages of the two processors. Vtt is memory bus termination resistors
451# voltage.
452#    label in1 "Vtt"
453#    label in8 "VCore2"
454
455    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
456    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
457    compute in5 (5.14 * @) - 14.91  ,  (@ + 14.91) / 5.14
458    compute in6 (3.14 * @) -  7.71  ,  (@ +  7.71) / 3.14
459    compute in7 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
460
461# set limits to  5% for the critical voltages
462# set limits to 10% for the non-critical voltages
463# set limits to 20% for the battery voltage
464
465#    set in0_min cpu0_vid*0.95
466#    set in0_max cpu0_vid*1.05
467#    set in1_min cpu0_vid*0.95
468#    set in1_max cpu0_vid*1.05
469#    set in2_min 3.3 * 0.95
470#    set in2_max 3.3 * 1.05
471#    set in3_min 5.0 * 0.95
472#    set in3_max 5.0 * 1.05
473#    set in4_min 12 * 0.90
474#    set in4_max 12 * 1.10
475#    set in5_max -12 * 0.90
476#    set in5_min -12 * 1.10
477#    set in6_max -5 * 0.95
478#    set in6_min -5 * 1.05
479#    set in7_min 5 * 0.95
480#    set in7_max 5 * 1.05
481#    set in8_min 3.0 * 0.80
482#    set in8_max 3.0 * 1.20
483
484# set up sensor types (thermistor is default)
485# 1 = PII/Celeron Diode; 2 = 3904 transistor;
486# 3435 = thermistor with Beta = 3435
487# If temperature changes very little, try 1 or 2.
488#   set temp1_type 1
489#   set temp2_type 2
490#   set temp3_type 3435
491
492# examples for temperature limits
493#    set temp1_max      40
494#    set temp1_max_hyst 37
495#    set temp2_max      52
496#    set temp2_max_hyst 47
497#    set temp3_max      52
498#    set temp3_max_hyst 47
499
500
501chip "w83783s-*"
502
503# Same as above for w83781d except that in5 and in6 are computed differently.
504# Rather than an internal inverting op amp, the 82d/83s use standard positive
505# inputs and the negative voltages are level shifted by a 3.6V reference.
506# The math is convoluted, so we hope that your motherboard
507# uses the recommended resistor values.
508
509    label in0 "VCore 1"
510    label in2 "+3.3V"
511    label in3 "+5V"
512    label in4 "+12V"
513    label in5 "-12V"
514    label in6 "-5V"
515
516    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
517    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
518    compute in5 (5.14 * @) - 14.91  ,  (@ + 14.91) / 5.14
519    compute in6 (3.14 * @) -  7.71  ,  (@ +  7.71) / 3.14
520
521# set limits to  5% for the critical voltages
522# set limits to 10% for the non-critical voltages
523# set limits to 20% for the battery voltage
524
525#   set in0_min cpu0_vid*0.95
526#   set in0_max cpu0_vid*1.05
527#   set in2_min 3.3 * 0.95
528#   set in2_max 3.3 * 1.05
529#   set in3_min 5.0 * 0.95
530#   set in3_max 5.0 * 1.05
531#   set in4_min 12 * 0.90
532#   set in4_max 12 * 1.10
533#   set in5_max -12 * 0.90
534#   set in5_min -12 * 1.10
535#   set in6_max -5 * 0.95
536#   set in6_min -5 * 1.05
537
538# set up sensor types (thermistor is default)
539# 1 = PII/Celeron Diode; 2 = 3904 transistor;
540# 3435 = thermistor with Beta = 3435
541# If temperature changes very little, try 1 or 2.
542#   set temp1_type 1
543#   set temp2_type 2
544
545# examples for temperature limits
546#    set temp1_max      40
547#    set temp1_max_hyst 37
548#    set temp2_max      52
549#    set temp2_max_hyst 47
550
551
552chip "w83697hf-*"
553
554# Same as above for w83781d except that in5 and in6 are computed differently.
555# Rather than an internal inverting op amp, the 82d/83s use standard positive
556# inputs and the negative voltages are level shifted by a 3.6V reference.
557# The math is convoluted, so we hope that your motherboard
558# uses the recommended resistor values.
559
560# no in1 on this chip.
561
562    label in0 "VCore"
563    label in2 "+3.3V"
564    label in3 "+5V"
565    label in4 "+12V"
566    label in5 "-12V"
567    label in6 "-5V"
568    label in7 "V5SB"
569    label in8 "VBat"
570
571# Tyan Trinity S2495 KT400 has a few differences. Thanks to Eric Schumann
572# for proving this information. Same is true for Epox 8K3A and 8KHA+.
573# Thanks to Thomas Schorpp for additional feedback.
574#    label in2 "VAgp"
575#    label in5 "+3.3V" # aka. Vio
576#    label in6 "Vdimm"
577#    label in7 "VBat"
578#    label in8 "V5SB"
579#
580# You'll also want to comment out the in5 and in6 compute lines right below,
581# and rename compute in7 to compute in8.
582
583    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
584    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
585    compute in5 (5.14 * @) - 14.91  ,  (@ + 14.91) / 5.14
586    compute in6 (3.14 * @) -  7.71  ,  (@ +  7.71) / 3.14
587    compute in7 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
588
589# 697HF does not have VID inputs so you MUST set your core
590# voltage limits below. Currently set for 1.8V core.
591#               vvv
592
593#   set in0_min 1.8 * 0.95
594#   set in0_max 1.8 * 1.05
595
596#   set in2_min 3.3 * 0.95
597#   set in2_max 3.3 * 1.05
598#   set in3_min 5.0 * 0.95
599#   set in3_max 5.0 * 1.05
600#   set in4_min 12 * 0.90
601#   set in4_max 12 * 1.10
602#   set in5_max -12 * 0.90
603#   set in5_min -12 * 1.10
604#   set in6_max -5 * 0.95
605#   set in6_min -5 * 1.05
606#   set in7_min 5 * 0.95
607#   set in7_max 5 * 1.05
608#   set in8_min 3.0 * 0.80
609#   set in8_max 3.0 * 1.20
610
611# And for Tyan Trinity S2495 KT400 and Epox 8K3A and 8KHA+:
612#    set in2_min 1.5 * 0.95
613#    set in2_max 1.5 * 1.05
614#    set in5_min 3.3 * 0.95
615#    set in5_max 3.3 * 1.05
616#    set in6_min 2.5 * 0.95 # 2.6 on Epox
617#    set in6_max 2.5 * 1.05 # 2.6 on Epox
618#    set in7_min 3.0 * 0.90
619#    set in7_max 3.0 * 1.10
620#    set in8_min 5 * 0.90
621#    set in8_max 5 * 1.10
622
623# set up sensor types (thermistor is default)
624# 1 = PII/Celeron Diode; 2 = 3904 transistor;
625# 3435 = thermistor with Beta = 3435
626# If temperature changes very little, try 1 or 2.
627#   set temp1_type 1
628#   set temp2_type 2
629#   set temp3_type 3435
630
631# examples for temperature limits
632#    set temp1_max      40
633#    set temp1_max_hyst 37
634#    set temp2_max      52
635#    set temp2_max_hyst 47
636
637
638chip "w83627thf-*" "w83637hf-*"
639
640# Rather than an internal inverting op amp, the 627thf uses standard positive
641# inputs and the negative voltages are level shifted by a 3.6V reference
642# (same as 82d/83s).
643# The math is convoluted, so we hope that your motherboard
644# uses the recommended resistor values.
645# Note that in1 (+12V) is the usual in4, and in4 (-12V) is the usual in5.
646# Data sheet is obviously wrong for in4, the usual formula should work.
647# No in5 nor in6.
648
649    label in0 "VCore"
650    label in1 "+12V"
651    label in2 "+3.3V"
652    label in3 "+5V"
653    label in4 "-12V"
654    label in7 "V5SB"
655    label in8 "VBat"
656
657# Mori Hiroyuki reported to need this (P4P800)
658#   compute in0 @/2, @*2
659
660    compute in1 ((28/10)+1)*@, @/((28/10)+1)
661    compute in3 ((34/51)+1)*@, @/((34/51)+1)
662    compute in4 (5.14*@)-14.91, (@+14.91)/5.14
663    compute in7 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
664
665# set limits to  5% for the critical voltages
666# set limits to 10% for the non-critical voltages
667# set limits to 20% for the battery voltage
668# if your vid is wrong, you'll need to adjust in0_min and in0_max
669
670#   set in0_min cpu0_vid * 0.95
671#   set in0_max cpu0_vid * 1.05
672#   set in1_min 12 * 0.90
673#   set in1_max 12 * 1.10
674#   set in2_min 3.3 * 0.95
675#   set in2_max 3.3 * 1.05
676#   set in3_min 5.0 * 0.95
677#   set in3_max 5.0 * 1.05
678#   set in4_min -12 * 1.10
679#   set in4_max -12 * 0.90
680#   set in7_min 5 * 0.95
681#   set in7_max 5 * 1.05
682#   set in8_min 3.0 * 0.80
683#   set in8_max 3.0 * 1.20
684
685# set up sensor types (thermistor is default)
686# 1 = PII/Celeron Diode; 2 = 3904 transistor;
687# 3435 = thermistor with Beta = 3435
688# If temperature changes very little, try 1 or 2.
689#   set temp1_type 1
690#   set temp2_type 2
691#   set temp3_type 3435
692
693    label temp1 "M/B Temp"
694    label temp2 "CPU Temp"
695#   ignore temp3
696
697# examples for temperature limits
698#    set temp1_max      40
699#    set temp1_max_hyst 37
700#    set temp2_max      52
701#    set temp2_max_hyst 47
702#    set temp3_max      52
703#    set temp3_max_hyst 47
704
705#   ignore fan1
706    label fan2 "CPU Fan"
707#   ignore fan3
708
709
710# Here are configurations for Winbond W83792AD/D chip.
711chip "w83792d-*"
712
713    label in0 "VCoreA"
714    label in1 "VCoreB"
715    label in2 "VIN0"
716    label in3 "VIN1"
717    label in4 "VIN2"
718    label in5 "VIN3"
719    label in6 "5VCC"
720    label in7 "5VSB"
721    label in8 "VBAT"
722    label fan1 "Fan1"
723    label fan2 "Fan2"
724    label fan3 "Fan3"
725    label fan4 "Fan4"
726    label fan5 "Fan5"
727    label fan6 "Fan6"
728    label fan7 "Fan7"
729    label temp1 "Temp1"
730    label temp2 "Temp2"
731    label temp3 "Temp3"
732
733#    set in0_min 1.4
734#    set in0_max 1.6
735#    set in1_min 1.4
736#    set in1_max 1.6
737#    set in2_min 3.2
738#    set in2_max 3.4
739#    set in3_min 3.1
740#    set in3_max 3.3
741#    set in4_min 1.4
742#    set in4_max 1.5
743#    set in5_min 2.6
744#    set in5_max 2.65
745#    set in6_min 5 * 0.95
746#    set in6_max 5 * 1.05
747#    set in7_min 5 * 0.95
748#    set in7_max 5 * 1.05
749#    set in8_min 3 * 0.95
750#    set in8_max 3 * 1.05
751
752# fan1 adjustments examples
753
754#   set fan1_div 4
755#   set fan1_min 1500
756
757# temp2 limits examples
758
759#    set temp2_max      42
760#    set temp2_max_hyst 37
761
762# ignore examples
763
764#    ignore fan7
765#    ignore temp3
766
767
768# Here are configurations for Winbond W83793 chip.
769chip "w83793-*"
770
771    label in0 "VCoreA"
772    label in1 "VCoreB"
773    label in2 "Vtt"
774    label in5 "+3.3V"
775    label in6 "+12V"
776    label in7 "+5V"
777    label in8 "5VSB"
778    label in9 "VBAT"
779
780    compute in6 12*@ ,  @/12
781
782    label temp1 "CPU1 Temp"
783    label temp2 "CPU2 Temp"
784   
785# fan1 adjustments examples
786
787#   set fan1_min 1500
788
789# temp2 limits examples
790
791#   set temp2_max       45
792#   set temp2_max_hyst  40
793
794# ignore examples
795
796#    ignore fan7
797#    ignore temp3
798
799
800chip "as99127f-*"
801
802# Asus won't release a datasheet so this is guesswork.
803# Thanks to Guntram Blohm, Jack, Ed Harrison, Artur Gawryszczak,
804# Victor G. Marimon and others for their feedback.
805
806# Dual power plane
807    label in0 "VCore 1"
808    label in1 "VCore 2"
809# Single power plane (A7V133, A7M266, CUV4X)
810#   label in0 "VCore"
811#   ignore in1
812
813    label in2 "+3.3V"
814    label in3 "+5V"
815    label in4 "+12V"
816# These last two may not make sense on all motherboards.
817    label in5 "-12V"
818    label in6 "-5V"
819
820    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
821    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
822# AS99127F rev.1 (same as w83781d)
823    compute in5 -(240/60.4)*@ ,  -@/(240/60.4)
824    compute in6 -(90.9/60.4)*@ ,  -@/(90.9/60.4)
825# AS99127F rev.2 (same as w83782d)
826#   compute in5 (5.14 * @) - 14.91 , (@ + 14.91) / 5.14
827#   compute in6 (3.14 * @) -  7.71 , (@ +  7.71) / 3.14
828
829# Depending on your motherboard, you may have to use any of two formulae
830# for temp2. Quoting Artur Gawryszczak (edited to reflect subsequent fixes
831# to the driver):
832# "I guess, that the formula "(@*15/43)+25, (@-25)*43/15" is correct
833# for those Asus motherboards, which get CPU temperature from internal
834# thermal diode (Pentium Coppermine, and above), while no formula is needed
835# for Athlon/Duron boards, which use a thermistor in the socket."
836# An alternative formula was then found and reported by Victor G. Marimon.
837
838# Asus A7V133, Asus A7M266
839#   No compute line is needed
840# Asus CUV4X, Asus A7V8X
841#   compute temp2 (@*15/43)+25, (@-25)*43/15
842# Asus CUSL2, Asus CUV266-DLS, Asus TUSL2-C
843#   compute temp2 (@*30/43)+25, (@-25)*43/30
844
845# See comments above if temp3 looks bad. What works for temp2 is likely
846# to work for temp3 for dual-CPU boards, such as the CUV4X-D.
847
848# Most Asus boards have temperatures settled like that:
849    label temp1 "M/B Temp"
850    label temp2 "CPU Temp"
851# However, some boards have them swapped (A7N8X Deluxe rev.2,
852# A7N8X-E Deluxe rev.2, CUV4X):
853#   label temp1 "CPU Temp"
854#   label temp2 "M/B Temp"
855
856# Most boards have no temp3 by default, except for dual-CPU boards.
857#   label temp3 "CPU 2 Temp"
858#   ignore temp3
859
860# set limits to  5% for the critical voltages
861# set limits to 10% for the non-critical voltages
862# set limits to 20% for the battery voltage
863
864#    set in0_min cpu0_vid*0.95
865#    set in0_max cpu0_vid*1.05
866#    set in1_min cpu0_vid*0.95
867#    set in1_max cpu0_vid*1.05
868#    set in2_min 3.3 * 0.95
869#    set in2_max 3.3 * 1.05
870#    set in3_min 5.0 * 0.95
871#    set in3_max 5.0 * 1.05
872#    set in4_min 12 * 0.90
873#    set in4_max 12 * 1.10
874#    set in5_min -12 * 0.90
875#    set in5_max -12 * 1.10
876#    set in6_min -5 * 0.95
877#    set in6_max -5 * 1.05
878
879# examples for temperature limits
880#    set temp1_max      40
881#    set temp1_max_hyst 37
882#    set temp2_max      52
883#    set temp2_max_hyst 47
884#    set temp3_max      52
885#    set temp3_max_hyst 47
886
887
888chip "gl518sm-*"
889
890# IMPORTANT: in0, in1, and in2 values (+5, +3, and +12) CANNOT be read
891#
892# Factors and labels taken from GL518SM datasheet, they seem to give
893# reasonable values with EISCA connected Fan78
894
895  label in0 "+5V"
896  label in1 "+3.3V"
897  label in2 "+12V"
898  label in3 "Vcore"
899
900# in2 depends on external resistors (4,7k and 15k assumed here)
901# in1 and in3 require no scaling
902
903  compute in2 (197/47)*@  ,  @/(197/47)
904
905#  set in0_min 4.8
906#  set in0_max 5.2
907#  set in1_min 3.20
908#  set in1_max 3.40
909#  set in2_min 11.0
910#  set in2_max 13.0
911#  set in3_min 2.10
912#  set in3_max 2.30
913#  set fan2_min 0
914
915
916chip "gl520sm-*"
917
918# Factors and labels taken from GL520SM datasheet
919
920# The GL520SM has two application modes. In mode 1 it has two thermistor
921# inputs, in mode 2 it has only one and an extra (negative) voltage input.
922# The mode is supposed to be set properly by your BIOS so you should not
923# need to change it. Note that you have either temp2 or in4, not both.
924
925  label in0 "+5V"
926  label in1 "+3.3V"
927  label in2 "+12V"
928  label in3 "Vcore"
929  label in4 "-12V"
930
931# in1 and in3 require no scaling
932# in2 depends on external resistors (4,7k and 15k assumed)
933
934# in4 = ((R1+R2)/R2)*@ - (R1/R2)*vdd
935#
936#       -12 --| R1 |---t---| R2 |-- +5
937#                      |
938#                    vin4
939#
940
941  compute in2 (197/47)*@  ,  @/(197/47)
942  compute in4 (5*@)-(4*in0) , (@+4*in0)/5
943
944#  set in0_min 4.8
945#  set in0_max 5.2
946#  set in1_min 3.20
947#  set in1_max 3.40
948#  set in2_min 11.0
949#  set in2_max 13.0
950#  set in3_min 2.10
951#  set in3_max 2.30
952
953
954chip "lm80-*"
955
956# The values below should be correct if you own a qdi BX (brilliant1)
957# mainboard. Many thanks go to Peter T. Breuer for helping us figure
958# out how to handle the LM80.
959
960# For positive voltages (in0..in4), two resistors are used, with the following
961# formula (R1,R2: resistor values, Vs: read voltage, Vin: pin voltage)
962#   R1 = R2 * (Vs/Vin - 1)
963# For negative voltages (in5, in6) two resistors are used, with the following
964# formula (R3,R4: resistor values, Vs: read voltage, Vin: pin voltage,
965# V5: +5V)
966#   R3 = R4 * (Vs - Vin) / (Vin - V5)
967
968# Here are the official LM80 data sheet values.
969#       Vs      R1,R3   R2,R4    Vin
970#       +2.5V    23.7    75     +1.9
971#       +3.3V    22.1    30     +1.9
972#       +5.0     24      14.7   +1.9
973#      +12.0    160      30.1   +1.9
974#      -12.0    160      35.7   +1.9
975#       -5.0     36      16.2   +1.9
976
977# Now curiously enough, VCore is connected with (unknown) resistors, which
978# translate a +2.8V to +1.9V. So we use that in the computations below.
979
980    label in0 "+5V"
981    label in1 "VTT"
982    label in2 "+3.3V"
983    label in3 "+Vcore"
984    label in4 "+12V"
985    label in5 "-12V"
986    label in6 "-5V"
987
988    compute in0 (24/14.7 + 1) * @ ,       @ / (24/14.7 + 1)
989    compute in2 (22.1/30 + 1) * @ ,       @ / (22.1/30 + 1)
990    compute in3 (2.8/1.9) * @,            @ * 1.9/2.8
991    compute in4 (160/30.1 + 1) * @,       @ / (160/30.1 + 1)
992    compute in5 (160/35.7)*(@ - in0) + @, (@ + in0 * 160/35.7)/ (1 + 160/35.7)
993    compute in6 (36/16.2)*(@ - in0) + @,  (@ + in0 * 36/16.2) / (1 + 36/16.2)
994
995#    set in0_min 5 * 0.95
996#    set in0_max 5 * 1.05
997# What is your VTT? It is probably not this value...
998#    set in1_min 2*0.95
999#    set in1_max 2*1.05
1000#    set in2_min 3.3 * 0.95
1001#    set in2_max 3.3 * 1.05
1002# What is your VCore? It is probably not this value...
1003#    set in3_min 1.9 * 0.95
1004#    set in3_max 1.9 * 1.05
1005#    set in4_min 12 * 0.95
1006#    set in4_max 12 * 1.05
1007#    set in5_min -12 * 1.05
1008#    set in5_max -12 * 0.95
1009#    set in6_min -5 * 1.05
1010#    set in6_max -5 * 0.95
1011
1012# All 4 of these limits apply to the single temperature sensor.
1013# "crit" may or may not do anything on your motherboard but it should
1014#  be set higher than the "max" thresholds.
1015#    set temp1_max_hyst   45
1016#    set temp1_max        52
1017#    set temp1_crit_hyst  57
1018#    set temp1_crit       62
1019
1020
1021chip "via686a-*"
1022
1023# VIA is very specific about the voltage sensor inputs, and our labels
1024# reflect what they say.  Unfortunately, they are not at all specific about
1025# how to convert any of the register values to real units.  Fortunately,
1026# Jonathan Yew and Alex van Kaam came through with some data for temp
1027# conversion and formulae for voltage conversion. However, the conversions
1028# should be regarded as our best guess - YMMV.
1029
1030# On the Tyan S1598, the 2.5V sensor reads 0 and is not displayed in the BIOS.
1031# Linas Vepstas reports that this sensor shows nothing of
1032# interest on the Abit KA7 (Athlon), and is also not displayed in the BIOS.
1033# Likewise, Johannes Drechsel-Burkhard reports that this
1034# sensor is unavailable in the BIOS of his MSI K7T Pro (Thunderbird).  So,
1035# if you have one of these boards you may want to uncomment the 'ignore in1'
1036# line below.
1037
1038    label in0 "CPU core"
1039    label in1 "+2.5V"
1040    #ignore in1
1041    label in2 "I/O"
1042    label in3 "+5V"
1043    label in4 "+12V"
1044
1045    label fan1  "CPU Fan"
1046    label fan2  "P/S Fan"
1047
1048# VIA suggests that temp3 is an internal temp sensor for the 686a.  However,
1049# on the Tyan S1598 as well as the Abit KA7 (Athalon), the absolute values
1050# of the readings from that sensor are not valid.  The readings do seem to
1051# correlate with temp changes, but the conversion factor may be quite
1052# different from temp1 & temp2 (as noted above, VIA has not provided
1053# conversion info).  So, you may wish to 'ignore temp3'.
1054
1055# Johannes Drechsel-Burkhard notes that on his MSI K7T Pro,
1056# temp1 is the CPU temp and temp2 is the SYS temp. Hugo van der Merwe notes
1057# the same for his Gigabyte GA-7DXC, Olivier Martin for his Gigabyte
1058# GA-7ZM and Patrick Thomson for his Chaintech CT-5ATA.
1059# Thomas Anglmaier notes: on Epox EP-7kxa temp2 is CPU and temp1 is SYS.
1060
1061    label temp1 "SYS Temp"
1062    label temp2 "CPU Temp"
1063    label temp3 "SBr Temp"
1064    #ignore temp3
1065
1066# Set your CPU core limits here if the BIOS did not.
1067
1068    #set in0_min 1.70 * 0.95
1069    #set in0_max 1.70 * 1.05
1070
1071# Other voltage values are standard so we can enforce the limits.
1072
1073#    set in1_min 2.5 * 0.95
1074#    set in1_max 2.5 * 1.05
1075#    set in2_min 3.3 * 0.95
1076#    set in2_max 3.3 * 1.05
1077#    set in3_min 5 * 0.9
1078#    set in3_max 5 * 1.1
1079#    set in4_min 12 * 0.9
1080#    set in4_max 12 * 1.1
1081
1082# Set your temp limits here.  Remember, 'tempX_max' is the temp at which an
1083# alarm is triggered, and 'tempX_max_hyst' is the temp at which an alarm turns off.
1084# Setting tempX_max_hyst to a few degrees below the corresponding tempX_max
1085# prevents an oscillation between alarm on and off states.  This kind of
1086# oscillation is known as hyteresis, thus the name.  (You typically get the
1087# most serious and troublesome hysteresis when a sensor triggers something to
1088# reduce the temp, thus creating a negative feedback loop.  Even without that,
1089# we would still get some oscillation when the temp hovers around the limit
1090# due to noise.)
1091
1092#    set temp1_max_hyst 40
1093#    set temp1_max      45
1094#    set temp2_max_hyst 55
1095#    set temp2_max      60
1096#    set temp3_max_hyst 60
1097#    set temp3_max      65
1098
1099# You could set your fan limits too, but the defaults should be fine.
1100
1101    #set fan1_min 5000
1102    #set fan2_min 5000
1103
1104
1105chip "adm1025-*" "ne1619-*"
1106
1107# The ADM1025 has integrated scaling resistors, rather
1108# than external resistors common to most sensor devices.
1109# These apply to the 6 voltage inputs in0-in5 (+2.5V, VCore,
1110# +3.3V, +5V, +12V, VCC). As the scaling is fixed inside
1111# the chip for these inputs, it is fairly certain that the
1112# motherboard connections match these labels, and that the
1113# driver computations are correct. Therefore they do not need to
1114# be overridden here.
1115
1116    label in0 "+2.5V"
1117    label in1 "VCore"
1118    label in2 "+3.3V"
1119    label in3 "+5V"
1120    label in4 "+12V"
1121    label in5 "VCC"
1122
1123# Tolerate a 5% deviance for CPU power-supply
1124#    set in1_min cpu0_vid * 0.95
1125#    set in1_max cpu0_vid * 1.05
1126# Tolerate a 10% deviance for other voltages
1127#    set in0_min 2.5 * 0.90
1128#    set in0_max 2.5 * 1.10
1129#    set in2_min 3.3 * 0.90
1130#    set in2_max 3.3 * 1.10
1131#    set in3_min 5.0 * 0.90
1132#    set in3_max 5.0 * 1.10
1133#    set in4_min 12 * 0.90
1134#    set in4_max 12 * 1.10
1135#    set in5_min 3.3 * 0.90
1136#    set in5_max 3.3 * 1.10
1137
1138# Depending on how your chipset is hardwired, you may or may not have
1139# +12V readings (will show as 0.0V if you don't have it).
1140#   ignore in4
1141
1142# VCC is the power-supply voltage of the ADM1025 chipset, generally
1143# redundant with +3.3V so you may want to hide it.
1144#   ignore in5
1145
1146# Temperatures
1147    label temp1 "CPU Temp"
1148    label temp2 "M/B Temp"
1149#    set temp1_min 10
1150#    set temp1_max 60
1151#    set temp2_min 10
1152#    set temp2_max 45
1153
1154
1155chip "lm87-*"
1156#
1157# The LM87 has integrated scaling resistors, rather
1158# than external resistors common to most sensor devices.
1159# These apply to the first 6 voltage inputs in0-in5
1160# (+2.5, Vccp1, +3.3, +5, 12, +Vccp2). As the scaling is fixed inside
1161# the chip for these inputs, it is fairly certain that the
1162# motherboard connections match these labels, and that the
1163# driver computations are correct. Therefore they do not need to
1164# be overridden here.
1165
1166   label in0  "+2.5V"
1167   label in1  "VCore"
1168   label in2  "+3.3V"
1169   label in3  "+5V"
1170   label in4  "+12V"
1171#   label in5  "VCore2"
1172
1173   label fan1 "CPU Fan"
1174#   label fan2 "Case Fan"
1175   label temp1 "M/B Temp"
1176   label temp2 "CPU Temp"
1177#   label temp3 "AUX Temp"
1178
1179#   set in1_min  cpu0_vid * 0.95
1180#   set in1_max  cpu0_vid * 1.05
1181#   set in2_min  3.3 * 0.92
1182#   set in2_max  3.3 * 1.08
1183#   set in3_min    5 * 0.92
1184#   set in3_max    5 * 1.08
1185#   set in4_min   12 * 0.90
1186#   set in4_max   12 * 1.10
1187
1188# These ones are mutually exclusive with temp3. If you have temp3,
1189# comment out these lines as they will trigger errors on "sensors -s".
1190#   set in0_min  2.5 * 0.92
1191#   set in0_max  2.5 * 1.08
1192#   set in5_min  cpu0_vid * 0.95
1193#   set in5_max  cpu0_vid * 1.05
1194
1195# Increase fan clock dividers if your fans read 0 RPM while you know
1196# they are connected and running.
1197#   set fan1_div 4
1198#   set fan2_div 4
1199
1200#   set fan1_min 3000
1201#   set fan2_min 3000
1202
1203#   set temp1_min   5
1204#   set temp1_max  65
1205#   set temp2_min   5
1206#   set temp2_max  70
1207
1208# Uncomment if you actually have temp3 (which means you don't have 2.5V
1209# nor Vccp2, as they are mutually exclusive).
1210#   set temp3_min   5
1211#   set temp3_max  70
1212
1213# LM87 AIN1 and AIN2 Section
1214# -12 and -5 may be reversed on your board, this is
1215# just a guess, the datasheet gives no guidance.
1216#   label in6 "-12V"
1217#   label in7 "-5V"
1218#   compute in6 (7.50 * @) - 21.45  ,  (@ + 21.45) / 7.50
1219#   compute in7 (4.05 * @) - 10.07  ,  (@ + 10.07) / 4.05
1220#   set in6_min -12 * 0.95
1221#   set in7_min -5 * 0.95
1222#   set in6_max -12 * 1.05
1223#   set in7_max -5 * 1.05
1224
1225
1226chip "it87-*" "it8712-*"
1227
1228# The values below have been tested on Asus CUSI, CUM motherboards.
1229
1230# Voltage monitors as advised in the It8705 data sheet
1231
1232    label in0 "VCore 1"
1233    label in1 "VCore 2"
1234    label in2 "+3.3V"
1235    label in3 "+5V"
1236    label in4 "+12V"
1237    label in5 "-12V"
1238    label in6 "-5V"
1239    label in7 "Stdby"
1240    label in8 "VBat"
1241
1242# Incubus Saturnus reports that the IT87 chip on Asus A7V8X-X seems
1243# to report the VCORE voltage approximately 0.05V higher than the board's
1244# BIOS does. Although it doesn't make much sense physically, uncommenting
1245# the next line should bring the readings in line with the BIOS' ones in
1246# this case.
1247# compute in0 -0.05+@ , @+0.05
1248
1249# If 3.3V reads around 1.65V, uncomment the following line:
1250#    compute in2   2*@ , @/2
1251
1252    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
1253# A number of Gigabyte boards (GA-8IPE1000Pro, GA-8KNXP, GA-7N400-L) use
1254# a different resistor combination for +5V:
1255#    compute in3 ((10/10)+1)*@ ,  @/((10/10)+1)
1256
1257    compute in4 ((30/10) +1)*@  , @/((30/10) +1)
1258# For this family of chips the negative voltage equation is different from
1259# the lm78.  The chip uses two external resistor for scaling but one is
1260# tied to a positive reference voltage.  See ITE8705/12 datasheet (SIS950
1261# data sheet is wrong)
1262# Vs = (1 + Rin/Rf) * Vin - (Rin/Rf) * Vref.
1263# Vref = 4.096 volts, Vin is voltage measured, Vs is actual voltage.
1264
1265# The next two are negative voltages (-12 and -5).
1266# The following formulas must be used. Unfortunately the datasheet
1267# does not give recommendations for Rin, Rf, but we can back into
1268# them based on a nominal +2V input to the chip, together with a 4.096V Vref.
1269# Formula:
1270#    actual V = (Vmeasured * (1 + Rin/Rf)) - (Vref * (Rin/Rf))
1271#    For -12V input use Rin/Rf = 6.68
1272#    For -5V input use Rin/Rf = 3.33
1273# Then you can convert the forumula to a standard form like:
1274    compute in5 (7.67 * @) - 27.36  ,  (@ + 27.36) / 7.67
1275    compute in6 (4.33 * @) - 13.64  ,  (@ + 13.64) / 4.33
1276#
1277# this much simpler version is reported to work for a
1278# Elite Group K7S5A board
1279#
1280#   compute in5 -(36/10)*@, -@/(36/10)
1281#   compute in6 -(56/10)*@, -@/(56/10)
1282#
1283    compute in7 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
1284
1285#    set in0_min 1.5 * 0.95
1286#    set in0_max 1.5 * 1.05
1287#    set in1_min 2.4
1288#    set in1_max 2.6
1289#    set in2_min 3.3 * 0.95
1290#    set in2_max 3.3 * 1.05
1291#    set in3_min 5.0 * 0.95
1292#    set in3_max 5.0 * 1.05
1293#    set in4_min 12 * 0.95
1294#    set in4_max 12 * 1.05
1295#    set in5_max -12 * 0.95
1296#    set in5_min -12 * 1.05
1297#    set in6_max -5 * 0.95
1298#    set in6_min -5 * 1.05
1299#    set in7_min 5 * 0.95
1300#    set in7_max 5 * 1.05
1301    #the chip does not support in8 min/max
1302
1303# Temperature
1304#
1305# Important - if your temperature readings are completely whacky
1306# you probably need to change the sensor type.
1307# Adujst and uncomment the appropriate lines below.
1308#
1309# 2 = thermistor; 3 = thermal diode; 0 = unused
1310#   set temp1_type 3
1311#   set temp2_type 3
1312#   set temp3_type 3
1313# If a given sensor isn't used, you will probably want to ignore it
1314# (see ignore statement right below).
1315
1316    label temp1       "M/B Temp"
1317#    set   temp1_max   40
1318#    set   temp1_min   15
1319    label temp2       "CPU Temp"
1320#    set   temp2_max   45
1321#    set   temp2_min   15
1322#   ignore temp3
1323    label temp3       "Temp3"
1324#    set   temp3_max   45
1325#    set   temp3_min   15
1326
1327# The A7V8X-X has temperatures inverted, and needs a conversion for
1328# CPU temp. Thanks to Preben Randhol for the formula.
1329#   label temp1       "CPU Temp"
1330#   label temp2       "M/B Temp"
1331#   compute temp1     (-15.096+1.4893*@), (@+15.096)/1.4893
1332
1333# The A7V600 also has temperatures inverted, and needs a different
1334# conversion for CPU temp. Thanks to Dariusz Jaszkowski for the formula.
1335#   label temp1       "CPU Temp"
1336#   label temp2       "M/B Temp"
1337#   compute temp1     (@+128)/3, (3*@-128)
1338
1339# Fans
1340#   set fan1_min 0
1341#   set fan2_min 3000
1342#   ignore fan3
1343#   set fan3_min 3000
1344
1345
1346chip "it8716-*"
1347
1348# Voltages
1349
1350    label  in0  "VCore"
1351    label  in1  "VDDR"
1352    label  in2  "+3.3V"    # VCC3
1353    label  in3  "+5V"      # VCC
1354    label  in4  "+12V"
1355#   label  in5  "-12V"
1356#   label  in6  "-5V"
1357    label  in7  "5VSB"     # VCCH
1358    label  in8  "VBat"
1359
1360    compute in3  ((6.8/10)+1)*@ , @/((6.8/10)+1)
1361    compute in4  ((30/10)+1)*@  , @/((30/10)+1)
1362#   compute in5  (1+232/56)*@ - 4.096*232/56 , (@ + 4.096*232/56)/(1+232/56)
1363#   compute in6  (1+120/56)*@ - 4.096*120/56 , (@ + 4.096*120/56)/(1+120/56)
1364    compute in7  ((6.8/10)+1)*@ , @/((6.8/10)+1)
1365
1366# If vid (nominal CPU voltage) isn't correct, hardcode the correct value
1367# instead.
1368#    set in0_min  cpu0_vid * 0.95
1369#    set in0_max  cpu0_vid * 1.05
1370#    set in1_min  1.8 * 0.95
1371#    set in1_max  1.8 * 1.05
1372#    set in2_min  3.3 * 0.95
1373#    set in2_max  3.3 * 1.05
1374#    set in3_min    5 * 0.95
1375#    set in3_max    5 * 1.05
1376#    set in4_min   12 * 0.95
1377#    set in4_max   12 * 1.05
1378#    set in5_max  -12 * 0.95
1379#    set in5_min  -12 * 1.05
1380#    set in6_max   -5 * 0.95
1381#    set in6_min   -5 * 1.05
1382#    set in7_min    5 * 0.95
1383#    set in7_max    5 * 1.05
1384# The chip does not support in8 min/max
1385
1386# Temperatures
1387
1388# If you are lucky, the BIOS has set the proper sensor types for you.
1389# If your temperature readings are completely whacky you probably
1390# need to change the sensor types. Adujst and uncomment the
1391# appropriate lines below.
1392#
1393# 2 = thermistor; 3 = thermal diode; 0 = unused
1394#   set temp1_type  3
1395#   set temp2_type  3
1396#   set temp3_type  3
1397
1398# If a given sensor isn't used, you will probably want to ignore it
1399# as well (see ignore statement right below).
1400# The CPU sensor can be any of temp1, temp2 or temp3 - it's motherboard
1401# dependent. Same for the motherboard temperature.
1402
1403#   label  temp1  "CPU Temp"
1404#   label  temp2  "M/B Temp"
1405#   ignore temp3
1406
1407#   set temp1_max  60
1408#   set temp1_min  10
1409#   set temp2_max  50
1410#   set temp2_min  10
1411
1412# Fans
1413
1414# The CPU fan can be any of fan1, fan2 or fan3 - it's motherboard
1415# dependent. Same for the case fan.
1416
1417#   label  fan1 "CPU Fan"
1418#   label  fan2 "Case Fan"
1419#   ignore fan3
1420
1421#   set fan1_min 2000
1422#   set fan2_min 2000
1423
1424
1425chip "fscpos-*"
1426# Fujitsu-Siemens Poseidon chip
1427
1428# Temperature
1429
1430    label temp1       "Temp1/CPU"
1431    label temp2       "Temp2/MB"
1432    label temp3       "Temp3/AUX"
1433
1434# Fans
1435
1436    label fan1        "Fan1"
1437    label fan2        "Fan2"
1438    label fan3        "Fan3"
1439
1440# Voltage
1441
1442    label in0         "+12V"
1443    label in1         "+5V"
1444    label in2         "Battery"
1445
1446
1447chip "fscscy-*"
1448# Fujitsu-Siemens Scylla chip
1449
1450# Temperature
1451
1452    label temp1       "Temp1/CPU0"
1453    label temp2       "Temp2/CPU1"
1454    label temp3       "Temp3/MB"
1455    label temp4       "Temp4/AUX"
1456
1457# Fans
1458
1459    label  fan1       "Fan1/CPU0"
1460    label  fan2       "Fan2/CPU0"
1461    label  fan3       "Fan3"
1462    label  fan4       "Fan4"
1463    label  fan5       "Fan5"
1464    label  fan6       "Fan6"
1465
1466# Voltage
1467
1468    label in0         "+12V"
1469    label in1         "+5V"
1470    label in2         "+3.3V"
1471
1472
1473chip "fscher-*"
1474# Fujitsu-Siemens Hermes chip
1475
1476# Temperature
1477    label temp1       "Temp1/CPU"
1478    label temp2       "Temp2/MB"
1479    label temp3       "Temp3/AUX"
1480
1481# Fans
1482    label fan1        "Fan1/PS"
1483    label fan2        "Fan2/CPU"
1484    label fan3        "Fan3/AUX"
1485
1486# Voltage
1487    label in0         "+12V"
1488    label in1         "+5V"
1489    label in2         "Battery"
1490
1491# Compute Voltages using mainboard dependant MRO-values
1492# (see the fscher driver documentation in the kernel tree)
1493#                           M    R             O               O                  M    R
1494    compute in0       (@ * (49 * 33) / 255) + (0 / 100), (@ - (0 / 100)) * 255 / (49 * 33)
1495    compute in1       (@ * (20 * 33) / 255) + (0 / 100), (@ - (0 / 100)) * 255 / (20 * 33)
1496    compute in2       (@ * (10 * 33) / 255) + (0 / 100), (@ - (0 / 100)) * 255 / (10 * 33)
1497
1498
1499chip "pcf8591-*"
1500#
1501#    values for the Philips PCF8591 chip
1502#
1503# Analog inputs
1504
1505# You may discard ch2 and ch3 if you don't use them (depends on the input
1506# configuration)
1507#  ignore in2
1508#  ignore in3
1509
1510   label  in0         "Chan. 0"
1511   label  in1         "Chan. 1"
1512   label  in2         "Chan. 2"
1513   label  in3         "Chan. 3"
1514
1515# The driver assumes Vref = 2.56V and Agnd = 0V. If it doesn't match
1516# your hardware, you have to use compute lines. The example below is
1517# correct for Vref = 5.0V and Agnd = 0V.
1518#  compute in0 (@ * 500 / 256), (@ * 256 / 500)
1519#  compute in1 (@ * 500 / 256), (@ * 256 / 500)
1520#  compute in2 (@ * 500 / 256), (@ * 256 / 500)
1521#  compute in3 (@ * 500 / 256), (@ * 256 / 500)
1522
1523
1524chip "adm1021-*" "adm1023-*" "max1617-*" "max1617a-*" "thmc10-*" "lm84-*" "gl523sm-*" "mc1066-*"
1525
1526   label temp1          "Board Temp"
1527   label temp2          "CPU Temp"
1528#   set temp1_min       40
1529#   set temp1_max       70
1530#   set temp2_min       40
1531#   set temp2_max       70
1532
1533chip "lm83-*"
1534
1535   label temp1 "M/B Temp"
1536   label temp2 "D1 Temp"
1537   label temp3 "CPU Temp"
1538   label temp4 "D3 Temp"
1539
1540# ignore D1 and/or D3 readings if not used
1541#   ignore temp2
1542#   ignore temp4
1543
1544# change high limits to fit your needs
1545#   set temp1_max 55
1546#   set temp2_max 60
1547#   set temp3_max 65
1548#   set temp4_max 60
1549
1550# change critical limit to fit your needs
1551# only one limit for all four temperatures
1552# should be higher than each of the high limits above
1553#   set temp3_crit 85
1554
1555
1556chip "max1619-*"
1557
1558   label temp1 "M/B Temp"
1559   label temp2 "CPU Temp"
1560
1561# change high and low limits to fit your needs
1562#   set temp2_min   10
1563#   set temp2_max   100
1564
1565# change critical limit and hysteresis to fit your needs
1566#   set temp2_crit       50
1567#   set temp2_crit_hyst  40
1568
1569
1570chip "lm90-*" "adm1032-*" "lm86-*" "max6657-*" "adt7461-*" "max6680-*"
1571
1572   label temp1 "M/B Temp"
1573   label temp2 "CPU Temp"
1574   label temp1_crit "M/B Crit"
1575   label temp2_crit "CPU Crit"
1576
1577# change high and low limits to fit your needs
1578#   set temp1_min 10
1579#   set temp1_max 55
1580#   set temp2_min 10
1581#   set temp2_max 66
1582
1583# change critical limits to fit your needs
1584# should be higher than the corresponding high limit above
1585#   set temp1_crit 75
1586#   set temp2_crit 85
1587
1588# change the hysteresis values (to critical limits) to fit your needs
1589# note #1: hyst2 will be automatically set with the same delta
1590# note #2: the internal register, which stores a single, relative value
1591# for both channels, cannot hold values greater than 31, so the delta
1592# between critical temperatures and respective absolute hysteresis can
1593# never exceed this value
1594#   set temp1_crit_hyst 70
1595
1596chip "lm99-*"
1597
1598   label temp1 "G/C Temp"
1599   label temp2 "GPU Temp"
1600   label temp1_crit "G/C Crit"
1601   label temp2_crit "GPU Crit"
1602
1603# note #1: only the LM99 needs this; for a LM89, comment the compute line
1604# out
1605# note #2: there is no way for us to differentiate between a LM89 and a
1606# LM99; you have to know what you have; LM99 are frequently found on
1607# graphics cards, most notably nVidia ones
1608   compute temp2 @+16, @-16
1609
1610# change high and low limits to fit your needs
1611#   set temp1_min  10
1612#   set temp1_max  90
1613#   set temp2_min  10
1614#   set temp2_max 100
1615
1616# change critical limits to fit your needs
1617# should be higher than the corresponding high limit above
1618#   set temp1_crit 100
1619#   set temp2_crit 110
1620
1621# change the hysteresis values (to critical limits) to fit your needs
1622# note #1: hyst2 will be automatically set with the same delta
1623# note #2: the internal register, which stores a single, relative value
1624# for both channels, cannot hold values greater than 31, so the delta
1625# between critical temperatures and respective absolute hysteresis can
1626# never exceed this value
1627#   set temp1_crit_hyst 105
1628
1629
1630chip "lm63-*"
1631
1632   label temp1       "M/B Temp"
1633   label temp2       "CPU Temp"
1634   label temp2_crit  "CPU Crit"
1635   label fan1        "CPU Fan"
1636
1637# Change limits to fit your needs. Note that temp2_crit is read-only.
1638#   set temp1_max        50
1639#   set temp2_min        10
1640#   set temp2_max        70
1641#   set temp2_crit_hyst  75
1642#   set fan1_min         2000
1643
1644
1645chip "vt1211-*"
1646
1647    label in0 "+3.3V"
1648    label in1 "+2.5V"
1649    label in2 "VCore"
1650    label in3 "+5V"
1651    label in4 "+12V"
1652    label in5 "+3.3V"
1653
1654    label temp1 "CPU Temp"
1655    label temp2 "Int Temp"
1656
1657    label fan1 "Case Fan"
1658    label fan2 "CPU Fan"
1659
1660# All voltage calculations have the form
1661#    compute inX  @ * (1 + R1 / R2), @ / (1 + R1 / R2)
1662#
1663# The following are the resistor values as recommended by VIA
1664#       Voltage         R1      R2
1665#       -------         ----    ----
1666#       VCore           -       -       (no scaling)
1667#        3.3            6.8k    10k
1668#        2.5            2k      10k
1669#        5.0            14k     10k
1670#       12.0            47k     10k
1671#
1672# The VT1211 internal 3.3V (in5) is scaled by the driver and doesn't
1673# need to be adjusted here. VCore doesn't need scaling at all.
1674
1675    compute in0  @ * (1 + 6.8 / 10),  @ / (1 + 6.8 / 10)
1676    compute in1  @ * (1 +   2 / 10),  @ / (1 +   2 / 10)
1677    compute in3  @ * (1 +  14 / 10),  @ / (1 +  14 / 10)
1678    compute in4  @ * (1 +  47 / 10),  @ / (1 +  47 / 10)
1679
1680#   set in0_min 3.3 * 0.95
1681#   set in0_max 3.3 * 1.05
1682#   set in1_min 2.5 * 0.95
1683#   set in1_max 2.5 * 1.05
1684# If your vid is wrong, hardcode the CPU voltage (e.g. 1.4)
1685#   set in2_min cpu0_vid * 0.97
1686#   set in2_max cpu0_vid * 1.03
1687#   set in3_min 5.0 * 0.95
1688#   set in3_max 5.0 * 1.05
1689#   set in4_min 12.0 * 0.90
1690#   set in4_max 12.0 * 1.10
1691    set in5_min 3.3 * 0.95
1692    set in5_max 3.3 * 1.05
1693
1694# The temperature calculations are of the form
1695#    compute tempX  (@ - Offset) / Gain, (@ * Gain) + Offset
1696#
1697# The following are the gain and offset values as recommended by VIA
1698#       Diode Type      Gain    Offset
1699#       ----------      ----    ------
1700#       Intel CPU       0.9528  88.638
1701#                       0.9686  65.000  *)
1702#       VIA C3 Ezra     0.9528  83.869
1703#       VIA C3 Ezra-T   0.9528  73.869
1704#
1705# *) These are the values from the previous sensors.conf. I don't know
1706# where they came from or how they got derived.
1707#
1708# The VT1211 internal temperature (temp2) is scaled by the driver
1709# and doesn't need to be adjusted here.
1710
1711    compute temp1  (@ - 73.869) / 0.9528,  (@ * 0.9528) + 73.869
1712
1713# The thermistor calculations are of the form
1714#    compute tempX  1 / (1 / 298.15 - (` Vmax / @ - 1)) / B) - 273.15, \
1715#                   Vmax / (1 + (^ (B / 298.15 - B / (273.15 + @))))
1716#
1717# B is the thermistor beta value, Vmax is the reference voltage, '^' is the
1718# exp() operator and '`' is the ln() operator.
1719# Given B = 3435 and Vmax = 2.2V and assuming that the thermistor forms a
1720# resistor divider with a resistor equal to the thermistor's nominal value at
1721# 25 degrees C, the following compute lines can be used:
1722
1723    compute temp3  1 / (1 / 298.15 - (` (2.2 / @ - 1)) / 3435) - 273.15, \
1724                   2.2 / (1 + (^ (3435 / 298.15 - 3435 / (273.15 + @))))
1725    compute temp4  1 / (1 / 298.15 - (` (2.2 / @ - 1)) / 3435) - 273.15, \
1726                   2.2 / (1 + (^ (3435 / 298.15 - 3435 / (273.15 + @))))
1727    compute temp5  1 / (1 / 298.15 - (` (2.2 / @ - 1)) / 3435) - 273.15, \
1728                   2.2 / (1 + (^ (3435 / 298.15 - 3435 / (273.15 + @))))
1729    compute temp6  1 / (1 / 298.15 - (` (2.2 / @ - 1)) / 3435) - 273.15, \
1730                   2.2 / (1 + (^ (3435 / 298.15 - 3435 / (273.15 + @))))
1731    compute temp7  1 / (1 / 298.15 - (` (2.2 / @ - 1)) / 3435) - 273.15, \
1732                   2.2 / (1 + (^ (3435 / 298.15 - 3435 / (273.15 + @))))
1733
1734#    set temp1_max_hyst 80
1735#    set temp1_max      85
1736#    set temp2_max_hyst 60
1737#    set temp2_max      65
1738#    set temp3_max_hyst 60
1739#    set temp3_max      65
1740#    set temp4_max_hyst 40
1741#    set temp4_max      45
1742
1743#    set fan1_min 3000
1744#    set fan2_min 3000
1745
1746chip "vt8231-*"
1747
1748    label in1 "+2.5V"
1749    label in2 "VCore"
1750    label in3 "+5V"
1751    label in4 "+12V"
1752    label in5 "+3.3V"
1753
1754    label temp1 "CPU Temp"
1755    label temp2 "M/B Temp"
1756
1757# Here are the resistor values as recommended by VIA:
1758#   Voltage                     R1      R2
1759#   VCore                       no scaling
1760#    2.5                        2k      10k
1761#    3.5 (3.3V ext.)            6.8k    10k
1762#    5.0                        14k     10k
1763#   12.0                        47k     10k
1764
1765#   compute in0  @ * (1 + 6.8 / 10),  @ / (1 + 6.8 / 10)
1766    compute in1  @ * (1 +   2 / 10),  @ / (1 +   2 / 10)
1767    compute in3  @ * (1 +  14 / 10),  @ / (1 +  14 / 10)
1768    compute in4  @ * (1 +  47 / 10),  @ / (1 +  47 / 10)
1769# in5 is scaled internally so scaling is done by the driver.
1770
1771#   set in0_min 2.5 * 0.95
1772#   set in0_max 2.5 * 1.05
1773#   set in1_min 2.5 * 0.95
1774#   set in1_max 2.5 * 1.05
1775# Replace "2.0" with your nominal CPU voltage for in2.
1776#   set in2_min 2.0 * 0.95
1777#   set in2_max 2.0 * 1.05
1778#   set in3_min 5.0 * 0.95
1779#   set in3_max 5.0 * 1.05
1780#   set in4_min 12.0 * 0.95
1781#   set in4_max 12.0 * 1.05
1782#   set in5_min 3.3 * 0.95
1783#   set in5_max 3.3 * 1.05
1784
1785# For Intel CPU:
1786    compute temp1  (@ - 65) / 0.9686,  (@ * 0.9686) + 65
1787
1788# For VIA EPIA CPU (provided by Roger Lucas):
1789#   compute temp1  (@ - 45) / 0.7809,  (@ * 0.7809) + 45
1790
1791# Thermistor calculations
1792# 3435 is the thermistor beta, 2.2 is the reference voltage.
1793# '^' is the e**x operator; '`' is the ln(x) operator
1794# This assumes that the thermistor forms a resistor divider with a resistor
1795# equal to its nominal value at 25 degrees C.
1796
1797    compute temp2  1 / (1 / 298.15 - (` (2.2 / @ - 1)) / 3435) - 273.15, \
1798                   2.2 / (1 + (^ (3435 / 298.15 - 3435 / (273.15 + @))))
1799    compute temp3  1 / (1 / 298.15 - (` (2.2 / @ - 1)) / 3435) - 273.15, \
1800                   2.2 / (1 + (^ (3435 / 298.15 - 3435 / (273.15 + @))))
1801
1802#    set temp1_max_hyst 60
1803#    set temp1_max      65
1804#    set temp2_max_hyst 40
1805#    set temp2_max      45
1806
1807#    set fan1_min 3000
1808#    set fan2_min 3000
1809
1810
1811chip "smsc47m1-*"
1812
1813# SMSC LPC47M10x, LPC47M13x, LPC47M14x and LPC47B27x chips
1814
1815#    set fan1_min 3000
1816#    set fan2_min 3000
1817
1818chip "smsc47m192-*"
1819
1820# Temperature and voltage input from SMSC LPC47M192 and LPC47M997 chips
1821# This example works on a Gigabyte K8U motherboard
1822# Voltages are scaled internally, no computations needed
1823
1824    label in0 "+2.5V"
1825#    set in0_min  2.5 * 0.95
1826#    set in0_max  2.5 * 1.05
1827
1828    label in1 "VCore"
1829#    set in1_min  cpu0_vid * 0.95
1830#    set in1_max  cpu0_vid * 1.05
1831
1832    label in2 "+3.3V"
1833#    set in2_min  3.3 * 0.95
1834#    set in2_max  3.3 * 1.05
1835
1836    label in3 "+5V"
1837#    set in3_min  5.0 * 0.95
1838#    set in3_max  5.0 * 1.05
1839
1840    label in4 "+12V"
1841#    set in4_min  12.0 * 0.95
1842#    set in4_max  12.0 * 1.05
1843
1844    label in5 "VCC"
1845#    set in5_min  3.3 * 0.95
1846#    set in5_max  3.3 * 1.05
1847
1848    label in6 "+1.5V"
1849#    set in6_min  1.5 * 0.95
1850#    set in6_max  1.5 * 1.05
1851#   ignore in6
1852
1853    label in7 "+1.8V"
1854#    set in7_min  1.8 * 0.95
1855#    set in7_max  1.8 * 1.05
1856#   Haven't yet heard from any board that has 1.8V connected, so
1857#   this might be more appropriate:
1858#   ignore in7
1859   
1860    label temp1 "Chip Temp"
1861#    set temp1_min   0
1862#    set temp1_max   60
1863
1864    label temp2 "CPU Temp"
1865#    set temp2_min   0
1866#    set temp2_max   60
1867
1868    label temp3 "Sys Temp"
1869#    set temp3_min   0
1870#    set temp3_max   60
1871
1872#
1873# This example was tested vs. Asus P4S333
1874#
1875chip "asb100-*"
1876
1877    label in0 "VCore 1"
1878    #set in0_min cpu0_vid * 0.95
1879    #set in0_max cpu0_vid * 1.05
1880
1881    label in1 "VCore 2"
1882    ignore in1
1883    #set in1_min cpu0_vid * 0.95
1884    #set in1_max cpu0_vid * 1.05
1885
1886    label in2 "+3.3V"
1887    #set in2_min 3.3 * 0.95
1888    #set in2_max 3.3 * 1.05
1889
1890    label in3 "+5V"
1891    compute in3 1.68 * @ ,  @ / 1.68
1892    #set in3_min 5.0 * 0.95
1893    #set in3_max 5.0 * 1.05
1894
1895    label in4 "+12V"
1896    compute in4 3.8 * @ , @ / 3.8
1897    #set in4_min 12  * 0.90
1898    #set in4_max 12  * 1.10
1899
1900    label in5 "-12V (reserved)"
1901    #ignore in5
1902    compute in5 -@ * 3.97 ,  -@ / 3.97
1903    #set in5_max -12 * 0.90
1904    #set in5_min -12 * 1.10
1905
1906    label in6 "-5V (reserved)"
1907    #ignore in6
1908    compute in6 -@ * 1.666 , -@ / 1.666
1909    #set in6_max -5  * 0.95
1910    #set in6_min -5  * 1.05
1911
1912    label temp1 "M/B Temp"
1913    #set temp1_max      45
1914    #set temp1_max_hyst 40
1915
1916    label temp2 "CPU Temp (Intel)"
1917    #ignore temp2
1918    #set temp2_max      60
1919    #set temp2_max_hyst 50
1920
1921    # PWRTMP connector on P4S333, for external sensor
1922    label temp3 "Power Temp"
1923    #ignore temp3
1924    #set temp3_max      45
1925    #set temp3_max_hyst 40
1926
1927
1928    # Used for Athlon diode, ignore for P4S333
1929    label temp4 "CPU Temp (AMD)"
1930    #set temp4_max      60
1931    #set temp4_max_hyst 50
1932    #ignore temp4
1933
1934    label fan1 "CPU Fan"
1935    #set fan1_div 4
1936    #set fan1_min 2000
1937
1938    label fan2 "Chassis Fan"
1939    #set fan2_div 2
1940    #set fan2_min 4000
1941
1942    label fan3 "Power Fan"
1943    #set fan3_div 2
1944    #set fan3_min 4000
1945
1946#
1947# Sample configuration for the Intel S845WD1-E
1948# courtesy of Marcus Schopen
1949#
1950chip "lm85c-*" "adm1027-*" "adt7463-*" "lm85-*" "lm85b-*"
1951
1952# Voltage inputs
1953# Depending on the hardware setup, the ADT7463 may not have in4.
1954   label in0   "V1.5"      # AGP on Intel S845WD1-E
1955   label in1   "VCore"
1956   label in2   "V3.3"
1957   label in3   "V5"
1958   label in4   "V12"
1959
1960# Temperature inputs
1961   label temp1  "CPU Temp"
1962   label temp2  "Board Temp"
1963   label temp3  "Remote Temp"
1964
1965# Fan inputs
1966   label fan1   "CPU_Fan"
1967#   label fan2   "Fan2"
1968#   label fan3   "Fan3"
1969#   label fan4   "Fan4"
1970
1971# Voltage scaling is done on-chip.  No 'compute' directive
1972# should be necessary.  If in0 has external scaling set
1973# it here.
1974
1975#   compute in0  @ * 2.5,   @ / 2.5
1976
1977# Adjust fans speeds for actual pulses per rev
1978#   compute fan1  @ * 2,  @ / 2    # 1 pulse per rev
1979#   compute fan2  @ / 2,  @ * 2    # 4 pulse per rev
1980
1981# Ignore fans you (or your motherboard) don't have
1982#   ignore fan2
1983#   ignore fan3
1984#   ignore fan4
1985
1986# Set voltage limits
1987#   set in0_min  1.5 * 0.95
1988#   set in0_max  1.5 * 1.05
1989#   set in1_min  cpu0_vid * 0.95
1990#   set in1_max  cpu0_vid * 1.05
1991#   set in2_min  3.3 * 0.95
1992#   set in2_max  3.3 * 1.05
1993#   set in3_min  5.0 * 0.95
1994#   set in3_max  5.0 * 1.05
1995#   set in4_min   12 * 0.95
1996#   set in4_max   12 * 1.05
1997
1998# Set Fan limits
1999#   set fan1_min 4000
2000
2001# Set Temp Limits
2002#   set temp1_min 10
2003#   set temp1_max 50
2004#   set temp2_min 10
2005#   set temp2_max 35
2006#   set temp3_min 10
2007#   set temp3_max 35
2008
2009chip "pc87366-*"
2010
2011# Voltage inputs
2012
2013   label in7   "Vsb"
2014   label in8   "Vdd"
2015   label in9   "Vbat"
2016   label in10  "AVdd"
2017
2018   compute in7   @*2, @/2
2019   compute in8   @*2, @/2
2020   compute in10  @*2, @/2
2021
2022# These are the operating conditions as recommended by National
2023# Semiconductor
2024   set in7_min   3.0
2025   set in7_max   3.6
2026   set in8_min   3.0
2027   set in8_max   3.6
2028#   set in9_min   2.4
2029#   set in9_max   3.6
2030   set in10_min  3.0
2031   set in10_max  3.6
2032
2033# Temperature inputs
2034
2035   label temp1       "CPU0 Temp"
2036   label temp1_crit  "CPU0 Crit"
2037   label temp2       "CPU1 Temp"
2038   label temp2_crit  "CPU1 Crit"
2039   label temp3       "S-IO Temp"
2040   label temp3_crit  "S-IO Crit"
2041
2042#   set temp1_min    0
2043#   set temp1_max   70
2044#   set temp1_crit  85
2045#   set temp2_min    0
2046#   set temp2_max   70
2047#   set temp2_crit  85
2048#   set temp3_min    0
2049#   set temp3_max   70
2050#   set temp3_crit  85
2051
2052# Thermistors
2053# On some systems, thermistors are used instead of thermal diodes.
2054# Note that these are the same pins used differently, so you really
2055# can't have them all on a given system.
2056#   ignore temp1
2057#   ignore temp2
2058   ignore temp4
2059   ignore temp5
2060   ignore temp6
2061
2062# 3435 is the thermistor beta.
2063# This assumes that the thermistor forms a resistor divider with a resistor
2064# equal to its nominal value at 25 degres Celsius. If not, change the values.
2065# We also assume that you have a working in10 (which is forcibly enabled by
2066# default). If not, use 3.3 instead, but you lose accuracy.
2067
2068   compute temp4  3435 / (` (1 / (1 - @ / in10) - 1) + 3435 / 298.15) - 273.15, \
2069                  in10 * (1 - 1 / (1 + (^ (3435 / (273.15 + @) - 3435 / 298.15))))
2070   compute temp5  3435 / (` (1 / (1 - @ / in10) - 1) + 3435 / 298.15) - 273.15, \
2071                  in10 * (1 - 1 / (1 + (^ (3435 / (273.15 + @) - 3435 / 298.15))))
2072   compute temp6  3435 / (` (1 / (1 - @ / in10) - 1) + 3435 / 298.15) - 273.15, \
2073                  in10 * (1 - 1 / (1 + (^ (3435 / (273.15 + @) - 3435 / 298.15))))
2074
2075#   set temp4_min    0
2076#   set temp4_max   70
2077#   set temp4_crit  85
2078#   set temp5_min    0
2079#   set temp5_max   70
2080#   set temp5_crit  85
2081#   set temp6_min    0
2082#   set temp6_max   70
2083#   set temp6_crit  85
2084
2085# Fan inputs
2086
2087# Ignore fans you don't have
2088#   ignore fan2
2089#   ignore fan3
2090
2091#   set fan1_min 2000
2092#   set fan2_min 2000
2093#   set fan3_min 2000
2094
2095
2096chip "adm1030-*"
2097
2098   label temp1 "SYS Temp"
2099   label temp2 "CPU Temp"
2100   label temp1_crit "SYS Crit"
2101   label temp2_crit "CPU Crit"
2102
2103#   set temp1_max  60
2104#   set temp2_max  70
2105#   set temp1_crit 85
2106#   set temp2_crit 85
2107
2108   label fan1 "CPU Fan"
2109
2110#   set fan1_min 2000
2111
2112
2113chip "adm1031-*"
2114
2115   label temp1 "SYS Temp"
2116   label temp2 "CPU Temp"
2117   label temp3 "AUX Temp"
2118   label temp1_crit "SYS Crit"
2119   label temp2_crit "CPU Crit"
2120   label temp3_crit "AUX Crit"
2121
2122#   set temp1_max  60
2123#   set temp2_max  70
2124#   set temp3_max  70
2125#   set temp1_crit 85
2126#   set temp2_crit 85
2127#   set temp3_crit 85
2128
2129   label fan1 "CPU Fan"
2130   label fan2 "Case Fan"
2131
2132#   set fan1_min 2000
2133#   set fan2_min 2000
2134
2135
2136chip "w83l785ts-*"
2137
2138   label temp1 "CPU Diode"
2139
2140chip "lm92-*"
2141
2142   label temp1 "CPU Temp"
2143
2144# Change limits as you see fit
2145#   set temp1_min 14
2146#   set temp1_max 60
2147#   set temp1_crit 72
2148# Hysteresis is computed from critical limit
2149# The same relative hysteresis is used for all of low, high
2150# and critical limits.
2151#   set temp1_crit_hyst 70
2152
2153
2154# Winbond W83627EHF configuration originally contributed by Leon Moonen
2155# This is for an Asus P5P800, voltages for A8V-E SE.
2156chip "w83627ehf-*" "w83627dhg-*"
2157
2158    label in0 "VCore"
2159    label in2 "AVCC"
2160    label in3 "3VCC"
2161    label in7 "VSB"
2162    label in8 "VBAT"
2163
2164# +12V is in1 and +5V is in6 as recommended by datasheet
2165    compute in1 @*(1+(56/10)),  @/(1+(56/10))
2166    compute in6 @*(1+(22/10)),  @/(1+(22/10))
2167#    set in1_min   12.0*0.9
2168#    set in1_max   12.0*1.1
2169#    set in6_min   5.0*0.95
2170#    set in6_max   5.0*1.05
2171
2172# Set the 3.3V
2173#    set in2_min   3.3*0.95
2174#    set in2_max   3.3*1.05
2175#    set in3_min   3.3*0.95
2176#    set in3_max   3.3*1.05
2177#    set in7_min   3.3*0.95
2178#    set in7_max   3.3*1.05
2179#    set in8_min   3.3*0.95
2180#    set in8_max   3.3*1.05
2181
2182# Fans
2183   label fan1      "Case Fan"
2184   label fan2      "CPU Fan"
2185   label fan3      "Aux Fan"
2186#  ignore fan3
2187#  ignore fan4
2188#  set fan1_min    1200
2189#  set fan2_min    1700
2190
2191# Temperatures
2192   label temp1     "Sys Temp"
2193   label temp2     "CPU Temp"
2194   label temp3     "AUX Temp"
2195   
2196#  ignore temp3
2197#  set temp1_max       45
2198#  set temp1_max_hyst  40
2199#  set temp2_max       45
2200#  set temp2_max_hyst  40
2201
2202
2203# Fintek F71805F/FG configuration
2204# This is the recommended wiring and resistor values from the F71805F/FG
2205# datasheet. Your motherboard manufacturer may or may not have followed
2206# these.
2207chip "f71805f-*"
2208# Voltages
2209   label in0 "+3.3V"
2210   label in1 "Vtt1.2V"
2211   label in2 "Vram"
2212   label in3 "Vchip"
2213   label in4 "+5V"
2214   label in5 "+12V"
2215   label in6 "Vcc1.5V"
2216   label in7 "Vcore"
2217   label in8 "5VSB"
2218
2219   # in0 is scaled internally
2220   compute in2  @*(1+100/100), @/(1+100/100)
2221   compute in3  @*(1+100/47),  @/(1+100/47)
2222   compute in4  @*(1+200/47),  @/(1+200/47)
2223   compute in5  @*(1+200/20),  @/(1+200/20)
2224   compute in8  @*(1+200/47),  @/(1+200/47)
2225
2226   # in0 is the chip's own VCC.
2227   set in0_min  3.0
2228   set in0_max  3.6
2229
2230   #set in1_min  1.2 * 0.95
2231   #set in1_max  1.2 * 1.05
2232   #set in2_min  2.5 * 0.95
2233   #set in2_max  2.6 * 1.05
2234   #set in3_min  3.3 * 0.95
2235   #set in3_max  3.3 * 1.05
2236   #set in4_min  5.0 * 0.95
2237   #set in4_max  5.0 * 1.05
2238   #set in5_min 12.0 * 0.95
2239   #set in5_max 12.0 * 1.05
2240   #set in6_min  1.5 * 0.95
2241   #set in6_max  1.5 * 1.05
2242   # in7 nominal value depends on the CPU model
2243   #set in7_min  1.4 * 0.95
2244   #set in7_max  1.4 * 1.05
2245   #set in8_min  5.0 * 0.95
2246   #set in8_max  5.0 * 1.05
2247
2248# Fans
2249   label fan1 "CPU Fan"
2250   label fan2 "Sys Fan"
2251   label fan3 "Aux Fan"
2252
2253   #set fan1_min 2100
2254   #set fan2_min 1400
2255   #set fan3_min 1400
2256
2257# Temperatures
2258   label temp1 "CPU Temp"
2259   label temp2 "Sys Temp"
2260   label temp3 "Aux Temp"
2261
2262   #set temp1_max       60
2263   #set temp1_max_hyst  58
2264   #set temp2_max       50
2265   #set temp2_max_hyst  48
2266   #set temp3_max       50
2267   #set temp3_max_hyst  48
2268
2269
2270# Abit Uguru sensor part configuration.
2271# The Abit Uguru is relativly straight forward to configure.
2272# label statements:
2273# The voltage (in) temp and fan sensors are usualy in the same order as listed
2274# in the BIOS, but not always!
2275# compute statements:
2276# The temp and fan sensors don't need any compute statements. Most voltage
2277# inputs are directly connected to the IC and thus don't need an compute line
2278# because the 0-3494 mV voltage given by the kernel driver is correct. The sen-
2279# sors for higher voltages however are connect through a divider and measure
2280# ranges of: 0-4361mV, 0-6248mV or 0-14510mV. Thus the measured voltages must
2281# be multiplied by resp. 1.248, 1.788 or 4.153. 3.3 volt sources use the 1.248
2282# mutiplier, 5 volt the 1.788 and 12 volt the 4.153.
2283# set statements:
2284# The Abit BIOS sets reasonable treshholds and allows changing them, thus
2285# set statements may be ommited. The abituguru kernel driver does support
2286# them if you want to add them.
2287#
2288# The configuration below is for the Kv8Pro and AV8 this is the default as this
2289# driver is developed and tested on a Kv8Pro.
2290# Configurations for many other Abit boards can be found at:
2291# http://www.lm-sensors.org/trac/wiki/Configurations/Abit
2292# If your motherboard isn't listed there and you create a configuration for it
2293# please add it there.
2294
2295chip "abituguru-*"
2296
2297   label in0 "CPU Core Voltage"
2298   label in1 "DDR Voltage"
2299   label in2 "DDR VTT Voltage"
2300   label in3 "NB Voltage"
2301   label in4 "SB Voltage"
2302   label in5 "HyperTransport Voltage"
2303   label in6 "AGP VDDQ Voltage"
2304   label in7 "ATX +5V"
2305   compute in7 @*1.788 , @/1.788
2306   label in8 "ATX +3.3V"
2307   compute in8 @*1.248 , @/1.248
2308   label in9 "Standby Voltage (+5V)"
2309   compute in9 @*1.788 , @/1.788
2310   label in10 "3VDual Voltage"
2311   compute in10 @*1.248 , @/1.248
2312
2313   label temp1 "CPU Temperature"
2314   label temp2 "SYS Temperature"
2315   label temp3 "PWM Temperature"
2316   ignore temp4
2317   ignore temp5
2318   ignore temp6
2319   ignore temp7
2320
2321   label fan1 "CPU FAN Speed"
2322   label fan2 "NB FAN Speed"
2323   label fan3 "SYS FAN Speed"
2324   label fan4 "AUX1 FAN Speed"
2325   label fan5 "AUX2 FAN Speed"
2326   ignore fan6
2327
2328chip "k8temp-*"
2329
2330   label temp1 "Core0 Temp"
2331   label temp2 "Core0 Temp"
2332   label temp3 "Core1 Temp"
2333   label temp4 "Core1 Temp"
2334
2335
2336#
2337# Sample configuration for the SMSC DME1737 and ASUS A8000
2338#
2339chip "dme1737-*"
2340
2341# Voltage inputs
2342   label in0   "V5stby"
2343   label in1   "Vccp"
2344   label in2   "V3.3"
2345   label in3   "V5"
2346   label in4   "V12"
2347   label in5   "V3.3stby"
2348   label in6   "Vbat"
2349
2350# Temperature inputs
2351   label temp1   "RD1 Temp"
2352   label temp2   "Int Temp"
2353   label temp3   "CPU Temp"
2354
2355# Fan inputs
2356   label fan1   "CPU_Fan"
2357   label fan2   "Fan2"
2358   label fan3   "Fan3"
2359   label fan4   "Fan4"
2360   label fan5   "Fan5"
2361   label fan6   "Fan6"
2362
2363# Set voltage limits
2364#   set in0_min   5.0 * 0.95
2365#   set in0_max   5.0 * 1.05
2366#   set in1_min   1.4 * 0.95
2367#   set in1_max   1.4 * 1.05
2368#   set in2_min   3.3 * 0.95
2369#   set in2_max   3.3 * 1.05
2370#   set in3_min   5.0 * 0.95
2371#   set in3_max   5.0 * 1.05
2372#   set in4_min  12.0 * 0.95
2373#   set in4_max  12.0 * 1.05
2374#   set in5_min   3.3 * 0.95
2375#   set in5_max   3.3 * 1.05
2376#   set in6_min   3.0 * 0.95
2377#   set in6_max   3.0 * 1.05
2378
2379# Set Temp Limits
2380#   set temp1_min 10
2381#   set temp1_max 75
2382#   set temp2_min 10
2383#   set temp2_max 75
2384#   set temp3_min 10
2385#   set temp3_max 75
2386
2387# Set Fan limits
2388#   set fan1_min 1000
2389#   set fan2_min 1000
2390#   set fan3_min 1000
2391#   set fan4_min 1000
2392#   set fan5_min 1000
2393#   set fan6_min 1000
2394
2395
2396#
2397# sample configuration for the Fintek f71882fg and f71883fg
2398#
2399# The configuration below is for the Epox EP-9U1697 GLI board, which has a
2400# Fintek f71883fg relabeled as Epox ep1308, this is the default config as this
2401# driver is developed and tested on an Epox EP-9U1697 GLI board.
2402#
2403# Premade configurations for other boards can be found at:
2404# http://www.lm-sensors.org/trac/wiki/Configurations/
2405# If your motherboard isn't listed there and you create a configuration for it
2406# please add it there.
2407#
2408chip "f71882fg-*"
2409
2410# Temperature
2411    label temp1       "CPU"
2412    label temp2       "System"
2413    ignore temp3
2414
2415# Fans
2416    label fan1        "CPU"
2417    label fan2        "System"
2418    label fan3        "Power"
2419    label fan4        "Aux"
2420
2421# Voltage
2422    label in0         "3.3V"
2423    label in1         "Vcore"
2424    label in2         "Vdimm"
2425    label in3         "Vchip"
2426    label in4         "+5V"
2427    label in5         "12V"
2428    label in6         "5VSB"
2429    label in7         "3VSB"
2430    label in8         "Battery"
2431
2432# never change the in0, in7 and in8 compute, these are hardwired in the chip!
2433    compute in0       (@ * 2), (@ / 2)
2434    compute in2       (@ * 2), (@ / 2)
2435    compute in3       (@ * 2), (@ / 2)
2436    compute in4       (@ * 5.25), (@ / 5.25)
2437    compute in5       (@ * 12.83), (@ / 12.83)
2438    compute in6       (@ * 5.25), (@ / 5.25)
2439    compute in7       (@ * 2), (@ / 2)
2440    compute in8       (@ * 2), (@ / 2)
Note: See TracBrowser for help on using the browser.