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

Revision 909, 19.1 KB (checked in by mds, 13 years ago)

(mds) MTP008 driver patch from Kris Van Hees.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1# Hardware sensors configuration file
2#
3##########################################################################
4# HELPFUL HINT:                                                          #
5#       The 'set' lines (generally for min and max values)               #
6#       do not take effect until you run 'sensors -s' as root !!!        #
7#       We suggest you put 'sensors -s' in a /etc/rc.d/... file       #
8#       to be run at boot time after the modules are inserted !!!        #
9##########################################################################
10#
11# This configuration file will be used by all applications linked to
12# libsensors.
13
14# This config file consists of two parts: the heavily commented LM78
15# example, and the real parts. Search for '####' if you want to skip
16# to the real stuff.
17
18# Hash marks introduce comments, which continue until the end of a line
19#
20# Identifiers consisting of only digits and letters can be used
21# unquoted; other identifiers must be quoted. Escape characters within
22# quotes operate like those in C.
23
24# A 'chip' line specifies what the following 'label', 'compute', 'set' and
25# 'ignore' lines refer to. In this case, until the
26# next 'chip' line, everything refers to all lm78, lm78-j and lm79
27# chips. Other examples are *-isa-* for everything on the ISA bus, and
28# lm78-j-i2c-*-4e for all lm78-j chips on address 0x4e of any I2C bus.
29#
30# If more chip statements match a specific chip, they are all considered.
31# Later lines overrule earlier lines, so if you set the in0 label for
32# lm78-* to "This", and later on the in0 label for lm78-isa-* to "That",
33# "That" is used for LM78 chips on the ISA bus, and "This" for LM78
34# chips on a non-ISA bus.
35
36#chip "lm78-*" "lm78-j-*" "lm79-*"
37
38# A label line describes what a certain feature stands for on your
39# mainboard. Programs can retrieve these names and display them.
40# If no label is specified for a certain feature, the default name
41# (ie. 'fan1' for fan1) is used.
42
43# If you specify a label for in1, this label is also used for in1_min and
44# in1_max, unless they have their own labels declared. There are several
45# of these logical groups.
46
47# These are as advised in the LM78 and LM79 data sheets, and used on almost
48# any mainboard we have seen.
49
50#  label in0 "VCore 1"
51#  label in1 "VCore 2"
52#  label in2 "+3.3V"
53#  label in3 "+5V"
54#  label in4 "+12V"
55#  label in5 "-12V"
56#  label in6 "-5V"
57 
58# A compute line describes how to scale a certain feature. There are
59# two expressions in it: the first describes how the /proc value must
60# be translated to a user value, the second how a user value must be
61# translated to a /proc value. '@' is the value to operate on. You may
62# refer to other readable features (like '2 * vid').
63
64# Like for the label statement, there are logical groups here. They are
65# sometimes a bit different, though. For example, fan1_div is in the
66# logical label group of fan1 (it gets the same label if none is declared
67# for it), but it is not in the compute group of fan1 (as it uses a
68# completely different system of values).
69
70# For positive voltages (in0..in4), two resistors are used, with the following
71# formula (R1,R2: resistor values, Vs: read voltage, Vin: pin voltage)
72#   R1 = R2 * (Vs/Vin - 1)
73# For negative voltages (in5, in6) two resistors are used, with the following
74# formula (Rin,Rf: resistor values, Vs: read voltage, Vin: pin voltage)
75#   Rin = (Vs * Rf) / Vin
76
77# Here are the official LM78 and LM79 data sheet values.
78#       Vs     R1,Rin   R2,Rf    Vin
79# in3   +5.0      6.8    10     +2.98
80# in4  +12.0     30      10     +3.00
81# in5  -12.0    240      60     +3.00
82# in6   -5.0    100      60     +3.00
83
84# These would lead to these declarations:
85# compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
86# compute in4 ((30/10)+1)*@  ,  @/((30/10)+1)
87# compute in5 -(240/60)*@    ,  -@/(240/60)
88# compute in6 -(100/60)*@    ,  -@/(100/60)
89
90# On almost any mainboard we have seen, the Winbond compute values lead to
91# much better results, though.
92
93#       Vs     R1,Rin   R2,Rf    Vin
94# in4  +12.0     28      10     +3.00
95# in5  -12.0    210      60.4   +3.00
96# in6   -5.0     90.9    60.4   +3.00
97
98# These leads to these declarations:
99#  compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
100#  compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
101#  compute in5 -(210/60.4)*@  ,  -@/(210/60.4)
102#  compute in6 -(90.9/60.4)*@ ,  -@/(90.9/60.4)
103
104# Set statements set things like limits. Complete expressions can be
105# used. Not everything can sensibly be set: setting 'in0', for example,
106# is impossible! These settings are put through the compute translations;
107# so if we specify '12.8' for in6, '3.2' will actually be written!
108
109#set in0_max vid*1.05
110#set in0_min vid*0.95
111
112# Ignore statements tell certain features are not wanted. User programs can
113# still read them if they really want, though; this is just an advisory
114# marking. 'in0' would also invalidate 'in0_max' and 'in0_min'.
115#
116#ignore in0
117
118
119# There is one other feature: the 'bus' statement. An example is below.
120
121#bus "i2c-0" "SMBus PIIX4 adapter at e800" "Non-I2C SMBus adapter"
122
123# If we refer from now on to 'i2c-0' in 'chip' lines, this will run-time
124# be matched to this bus. So even if the PIIX4 is called 'i2c-5' at that
125# moment, because five other adapters were detected first, 'i2c-0' in
126# the config file would always only match this physical bus. In the above
127# config file, this feature is not needed; but the next lines would
128# only affect the LM75 chips on the PIIX4 adapter:
129
130#chip "lm75-i2c-0-*"
131
132# You should really use the output of /proc/bus/chips to generate bus lines,
133# because one mistyped characted will inhibit the match. Wildcards are not
134# yet supported; spaces at the end are ignored, though.
135
136
137
138
139
140#### Here begins the real configuration file
141
142chip "lm78-*" "lm78-j-*" "lm79-*" "w83781d-*" "sis5595-*"
143
144# These are as advised in the LM78 and LM79 data sheets, and used on almost
145# any mainboard we have seen.
146
147    label in0 "VCore 1"
148    label in1 "VCore 2"
149    label in2 "+3.3V"
150    label in3 "+5V"
151    label in4 "+12V"
152    label in5 "-12V"
153    label in6 "-5V"
154
155# For positive voltages (in0..in4), two resistors are used, with the following
156# formula (R1,R2: resistor values, Vs: read voltage, Vin: pin voltage)
157#   R1 = R2 * (Vs/Vin - 1)
158# For negative voltages (in5, in6) two resistors are used, with the following
159# formula (Rin,Rf: resistor values, Vs: read voltage, Vin: pin voltage)
160#   Rin = (Vs * Rf) / Vin
161
162# Here are the official LM78 and LM79 data sheet values.
163#       Vs     R1,Rin   R2,Rf    Vin
164# in3   +5.0      6.8    10     +2.98
165# in4  +12.0     30      10     +3.00
166# in5  -12.0    240      60     +3.00
167# in6   -5.0    100      60     +3.00
168
169# These would lead to these declarations:
170# compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
171# compute in4 ((30/10)+1)*@  ,  @/((30/10)+1)
172# compute in5 -(240/60)*@    ,  -@/(240/60)
173# compute in6 -(100/60)*@    ,  -@/(100/60)
174
175# On almost any mainboard we have seen, the Winbond compute values lead to
176# much better results, though.
177
178#       Vs     R1,Rin   R2,Rf    Vin
179# in4  +12.0     28      10     +3.00
180# in5  -12.0    210      60.4   +3.00
181# in6   -5.0     90.9    60.4   +3.00
182
183# These leads to these declarations:
184
185    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
186    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
187    compute in5 -(210/60.4)*@  ,  -@/(210/60.4)
188    compute in6 -(90.9/60.4)*@ ,  -@/(90.9/60.4)
189
190# Here, we assume the VID readings are valid, and we use a max. 5% deviation
191
192    set in0_min vid*0.95
193    set in0_max vid*1.05
194    set in1_min vid*0.95
195    set in1_max vid*1.05
196    set in2_min 3.3 * 0.95
197    set in2_max 3.3 * 1.05
198    set in3_min 5.0 * 0.95
199    set in3_max 5.0 * 1.05
200    set in4_min 12 * 0.95
201    set in4_max 12 * 1.05
202    set in5_min -12 * 0.95
203    set in5_max -12 * 1.05
204    set in6_min -5 * 0.95
205    set in6_max -5 * 1.05
206
207
208chip "w83782d-*" "w83783s-*" "w83627hf-*"
209
210# Same as above for w83781d except that in5 and in6 are computed differently.
211# Rather than an internal inverting op amp, the 82d/83s use standard positive
212# inputs and the negative voltages are level shifted by a 3.6V reference.
213# The math is convoluted, so we hope that your motherboard
214# uses the recommended resistor values.
215
216    label in0 "VCore 1"
217    label in1 "VCore 2"
218    label in2 "+3.3V"
219    label in3 "+5V"
220    label in4 "+12V"
221    label in5 "-12V"
222    label in6 "-5V"
223    label in7 "V5SB"
224    label in8 "VBat"
225
226    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
227    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
228    compute in5 (5.14 * @) - 14.91  ,  (@ + 14.91) / 5.14
229    compute in6 (3.14 * @) -  7.71  ,  (@ +  7.71) / 3.14
230    compute in7 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
231
232# set limits to  5% for the critical voltages
233# set limits to 10% for the non-critical voltages
234# set limits to 20% for the battery voltage
235
236    set in0_min vid*0.95
237    set in0_max vid*1.05
238    set in1_min vid*0.95
239    set in1_max vid*1.05
240    set in2_min 3.3 * 0.95
241    set in2_max 3.3 * 1.05
242    set in3_min 5.0 * 0.95
243    set in3_max 5.0 * 1.05
244    set in4_min 12 * 0.90
245    set in4_max 12 * 1.10
246    set in5_min -12 * 0.90
247    set in5_max -12 * 1.10
248    set in6_min -5 * 0.95
249    set in6_max -5 * 1.05
250    set in7_min 5 * 0.95
251    set in7_max 5 * 1.05
252    set in8_min 3.0 * 0.80
253    set in8_max 3.0 * 1.20
254
255# set up sensor types (thermistor is default)
256# 1 = PII/Celeron Diode; 2 = 3904 transistor;
257# 3435 = thermistor with Beta = 3435
258# If temperature changes very little, try 1 or 2.
259#   set sensor1 1
260#   set sensor2 2
261#   set sensor3 3435
262
263
264chip "as99127f-*"
265
266# Same as above for w83782d except that in5 and in6 negative voltages
267# are computed as in the w83781d.
268
269    label in0 "VCore 1"
270    label in1 "VCore 2"
271    label in2 "+3.3V"
272    label in3 "+5V"
273    label in4 "+12V"
274    label in5 "-12V"
275    label in6 "-5V"
276
277    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
278    compute in4 ((28/10)+1)*@  ,  @/((28/10)+1)
279    compute in5 -(210/60.4)*@  ,  -@/(210/60.4)
280    compute in6 -(90.9/60.4)*@ ,  -@/(90.9/60.4)
281
282# set limits to  5% for the critical voltages
283# set limits to 10% for the non-critical voltages
284# set limits to 20% for the battery voltage
285
286    set in0_min vid*0.95
287    set in0_max vid*1.05
288    set in1_min vid*0.95
289    set in1_max vid*1.05
290    set in2_min 3.3 * 0.95
291    set in2_max 3.3 * 1.05
292    set in3_min 5.0 * 0.95
293    set in3_max 5.0 * 1.05
294    set in4_min 12 * 0.90
295    set in4_max 12 * 1.10
296    set in5_min -12 * 0.90
297    set in5_max -12 * 1.10
298    set in6_min -5 * 0.95
299    set in6_max -5 * 1.05
300
301
302chip "gl518sm-*"
303
304# Factors and labels taken from GL518SM datasheet, they seem to give
305# reasonable values with EISCA connected Fan78
306
307  label vdd "+5V"
308  label vin1 "+3.3V"
309  label vin2 "+12V"
310  label vin3 "Vcore"
311
312# vin2 depends on external resistors (4,7k and 15k assumed here)
313# vin1 and vin3 require no scaling
314
315  compute vin2 (197/47)*@  ,  @/(197/47)
316
317  set vdd_min 4.8
318  set vdd_max 5.2
319  set vin1_min 3.20
320  set vin1_max 3.40
321  set vin2_min 11.0
322  set vin2_max 13.0
323  set vin3_min 2.10
324  set vin3_max 2.30
325  set fan1_off 0
326  set fan2_min 0
327  set iterate 0
328
329chip "gl520sm-*"
330
331# Factors and labels taken from GL520SM datasheet
332
333  label vdd "+5V"
334  label vin1 "+3.3V"
335  label vin2 "+12V"
336  label vin3 "Vcore"
337  label vin4 "-12V"
338
339# vin1 and vin3 require no scaling
340# vin2 depends on external resistors (4,7k and 15k assumed)
341 
342# vin4 = ((R1+R2)/R2)*@ - (R1/R2)*vdd
343#
344#       -12 --| R1 |---t---| R2 |-- +5
345#                      |
346#                    vin4
347#
348
349  compute vin2 (197/47)*@  ,  @/(197/47)
350  compute vin4 (5*@)-(4*vdd) , (@+4*vdd)/5
351
352  set vdd_min 4.8
353  set vdd_max 5.2
354  set vin1_min 3.20
355  set vin1_max 3.40
356  set vin2_min 11.0
357  set vin2_max 13.0
358  set vin3_min 2.10
359  set vin3_max 2.30
360  set two_temps 1
361
362chip "lm80-*"
363   
364# The values below should be correct if you own a qdi BX (brilliant1)
365# mainboard. If not, please contact us, so we can figure out better readings.
366# Many thanks go to Peter T. Breuer <ptb@it.uc3m.es> for helping us figure
367# out how to handle the LM80.
368
369# For positive voltages (in0..in4), two resistors are used, with the following
370# formula (R1,R2: resistor values, Vs: read voltage, Vin: pin voltage)
371#   R1 = R2 * (Vs/Vin - 1)
372# For negative voltages (in5, in6) two resistors are used, with the following
373# formula (R3,R4: resistor values, Vs: read voltage, Vin: pin voltage,
374# V5: +5V)
375#   R3 = R4 * (Vs - Vin) / (Vin - V5)
376
377# Here are the official LM78 and LM79 data sheet values.
378#       Vs      R1,R3   R2,R4    Vin
379#       +2.5V    23.7    75     +1.9
380#       +3.3V    22.1    30     +1.9
381#       +5.0     24      14.7   +1.9
382#      +12.0    160      30.1   +1.9
383#      -12.0    160      35.7   +1.9
384#       -5.0     36      16.2   +1.9
385
386# Now curiously enough, VCore is connected with (unknown) resistors, which
387# translate a +2.8V to +1.9V. So we use that in the computations below.
388
389    label in0 "+5V"
390    label in1 "VTT"
391    label in2 "+3.3V"
392    label in3 "+Vcore"
393    label in4 "+12V"
394    label in5 "-12V"
395    label in6 "-5V"
396
397    compute in0 (24/14.7 + 1) * @ ,       @ / (24/14.7 + 1)
398    compute in2 (22.1/30 + 1) * @ ,       @ / (22.1/30 + 1)
399    compute in3 (2.8/1.9) * @,            @ * 1.9/2.8
400    compute in4 (160/30.1 + 1) * @,       @ / (160/30.1 + 1)
401    compute in5 (160/35.7)*(@ - in0) + @, (@ + in0 * 160/35.7)/ (1 + 160/35.7)
402    compute in6 (36/16.2)*(@ - in0) + @,  (@ + in0 * 36/16.2) / (1 + 36/16.2)
403
404    set in0_min 5 * 0.95
405    set in0_max 5 * 0.95
406# What is your VTT? It is probably not this value...
407    set in1_min 2*0.95
408    set in1_max 2*1.05
409    set in2_min 3.3 * 0.95
410    set in2_max 3.3 * 1.05
411# What is your VCore? It is probably not this value...
412    set in3_min 1.9 * 0.95
413    set in3_max 1.9 * 1.05
414    set in4_min 12 * 0.95
415    set in4_max 12 * 1.05
416    set in5_min -12 * 1.05
417    set in5_max -12 * 0.95
418    set in6_min -5 * 1.05
419    set in6_max -5 * 0.95
420
421chip "maxilife-cg-*" "maxilife-co-*" "maxilife-as-*"
422
423   label fan1  "HDD Fan"
424   label fan2  "PCI Fan"
425   label fan3  "CPU Fan"
426   ignore fan4
427   
428   label temp2 "PCI Temp"
429   label temp4 "HDD Temp"
430   label temp5 "CPU Temp"
431   ignore temp6
432
433   label vid1  "V+12"
434   ignore vid5
435
436# vid1 need to be scaled by 6.337 other voltages
437# require no scaling
438
439   compute vid1 6.337*@ , @/6.337
440
441chip "maxilife-cg-*"
442
443   ignore temp1
444   label temp3  "BX Temp"
445   
446   label vid2   "Vcpu1"
447   label vid3   "Vcpu2"
448   ignore vid4
449
450chip "maxilife-co-*"
451
452   label temp1  "CPU 1 Temp"
453   label temp3  "CPU 2 Temp"
454   
455   label vid2   "Vcpu1"
456   label vid3   "Vcpu2"
457   label vid4   "VcacheL2"
458
459chip "maxilife-as-*"
460
461   ignore temp1
462   ignore temp3
463
464   label vid2   "Vcpu"
465   ignore vid3
466   ignore vid4
467
468chip "maxilife-nba-*"
469
470   label fan1  "CPU Fan"
471   label fan2  "PCI Fan"
472   label fan3  "HDD Fan"
473   label fan4  "Heat Sink Fan"
474
475   label temp1  "CPU 1 Temp"
476   label temp2  "CPU 2 Temp"
477   label temp3  "PCI/Ambient Temp"
478   label temp4  "HDD Temp"
479   label temp5  "Motherboard Temp"
480   label temp6  "CPU Reference Temp"
481
482   label vid1  "V+12"
483   label vid2  "Vcpu1"
484   label vid3  "Vcpu2"
485   label vid4  "VcacheL2"
486   label vid5  "V-12"
487
488chip "via686a-*"
489
490# VIA is very specific about the voltage sensor inputs, and our labels
491# reflect what they say.  Unfortunately, they are not at all specific about
492# how to convert any of the register values to real units.  Fortunately,
493# Jonathan Yew <j.teh@iname.com> and Alex van Kaam <darkside@chello.nl>
494# came through with some data for temp conversion and formulae for voltage
495# conversion. However, the conversions should be regarded as our best guess-
496# YMMV.  If you notice any glaring inaccuracies (eg. by comparing what sensors
497# says to what your BIOS says when you boot up), please let us know so we can
498# improve.
499
500# On the Tyan S1598, the 2.5V sensor reads 0 and is not displayed in the BIOS.
501# Linas Vepstas <linas@linas.org> reports that this sensor shows nothing of
502# interest on the Abit KA7 (Athlon), and is also not displayed in the BIOS.
503# Likewise, Johannes Drechsel-Burkhard <jdb@chello.at> reports that this
504# sensor is unavailable in the BIOS of his MSI K7T Pro (Thunderbird).  So,
505# if you have one of these boards you may want to uncomment the 'ignore 2.5V'
506# line below.
507
508    label "2.0V" "CPU core"
509    label "2.5V" "+2.5V"
510    #ignore "2.5V"
511    label "3.3V" "I/O"
512    label "5.0V" "+5V"
513    label "12V" "+12V"
514
515    label fan1  "CPU Fan"
516    label fan2  "P/S Fan"
517
518# VIA suggests that temp3 is an internal temp sensor for the 686a.  However,
519# on the Tyan S1598 as well as the Abit KA7 (Athalon), the absolute values
520# of the readings from that sensor are not valid.  The readings do seem to
521# correlate with temp changes, but the conversion factor may be quite
522# different from temp1 & temp2 (as noted above, VIA has not provided
523# conversion info).  So, you may wish to 'ignore temp3'.
524
525# Johannes Drechsel-Burkhard <jdb@chello.at> notes that on his MSI K7T Pro,
526# temp1 is the CPU temp and temp2 is the SYS temp. 
527
528    label temp1 "SYS Temp"
529    label temp2 "CPU Temp"
530    label temp3 "SBr Temp"
531    #ignore temp3
532
533# Set your CPU core limits here.  For the other voltage sensors, the
534# built-in defaults should be fine.
535
536    set in0_min 2.0
537    set in0_max 2.5
538
539# Set your temp limits here.  Remember, 'tempX_over' is the temp at which an
540# alarm is triggered, and 'tempX_hyst' is the temp at which an alarm turns off.
541# Setting tempX_hyst to a few degrees below the corresponding tempX_over
542# prevents an oscillation between alarm on and off states.  This kind of
543# oscillation is known as hyteresis, thus the name.  (You typically get the
544# most serious and troublesome hysteresis when a sensor triggers something to
545# reduce the temp, thus creating a negative feedback loop.  Even without that,
546# we would still get some oscillation when the temp hovers around the limit
547# due to noise.)   
548
549    set temp1_hyst 40
550    set temp1_over 45
551    set temp2_hyst 55
552    set temp2_over 60
553    set temp3_hyst 60
554    set temp3_over 65
555
556# You could set your fan limits too, but the defaults should be fine.
557
558    #set fan1_min 5000
559    #set fan2_min 5000
560
561# For at least one Tyan S1598, the following corrections make the sensors
562# readings more in-line with the BIOS readings on boot.  Try these, and
563# adjust as necessary.
564
565  #compute "2.0V" 1.02*@ ,  @/1.02
566  #compute "3.3V" 1.02*@  ,  @/1.02
567  #compute "5.0V" 1.009*@  ,  @/1.009
568  #compute "12V" 1.04*@ ,  @/1.04
569
570chip "mtp008-*"
571   
572# The values below should be correct if you own a Tyan S1834D motherboard.  If
573# not, please contact us, so we can figure out better readings.
574
575# For positive voltages outside the 0..4.09V range (in2..in4), two resistors
576# are used, with the following formula (R1,R2: resistor values, Vs: read
577# voltage, Vin: pin voltage)
578#   Vin = Vs * (R2 / (R1 + R2))
579# For negative voltages (in5) two resistors are used, with the following
580# formula (R3,R4: resistor values, Vs: read voltage, Vin: pin voltage)
581#   Vin = ((4.096 - Vs) * (R3 / (R3 + R4))) + Vs
582
583# Here are the official MTP008 data sheet values:
584#       Vs      R1,R3   R2,R4    Vin
585#      +12.0    28000   10000   +3.16
586#      -12.0   232000   56000   +0.96
587#       -5.0   120000   56000   +1.20
588
589    label in0 "VCore1"
590    label in1 "+3.3V"
591    label in2 "+12V"
592    label in3 "Vcore2"
593    ignore in4
594    label in5 "-12V"
595    label in6 "Vtt"
596
597    label fan1 "CPUFAN1"
598    label fan2 "CPUFAN2"
599    label fan3 "CPUFAN3"
600
601    label temp1 "CPU1 Temp"
602    label temp2 "CPU2 Temp"
603    ignore temp3
604
605    compute in2 @ * 38 / 10,            @ * 10 / 38
606    compute in5 (@ * 36 - 118.61) / 7,  (118.61 + 7 * @) / 36
Note: See TracBrowser for help on using the browser.