chip "via686a-*"

# VIA is very specific about the voltage sensor inputs, and our labels
# reflect what they say.  Unfortunately, they are not at all specific about
# how to convert any of the register values to real units.  Fortunately,
# Jonathan Yew <j.teh@iname.com> and Alex van Kaam <darkside@chello.nl>
# came through with some data for temp conversion and formulae for voltage 
# conversion. However, the conversions should be regarded as our best guess- 
# YMMV.  If you notice any glaring inaccuracies (eg. by comparing what sensors
# says to what your BIOS says when you boot up), please let us know so we can
# improve.

# On the Tyan S1598, the 2.5V sensor reads 0 and is not displayed in the BIOS.
# Linas Vepstas <linas@linas.org> reports that this sensor shows nothing of
# interest on the Abit KA7 (Athlon), and is also not displayed in the BIOS.
# Likewise, Johannes Drechsel-Burkhard <jdb@chello.at> reports that this 
# sensor is unavailable in the BIOS of his MSI K7T Pro (Thunderbird).  So, 
# if you have one of these boards you may want to uncomment the 'ignore 2.5V' 
# line below.

    label "2.0V" "Vcore0"
    label "2.5V" "Vcore1"
    label "3.3V" "I/O"
    label "5.0V" "+5V"
    label "12V" "+12V"

    label fan1  "CPU0 Fan"
    label fan2  "CPU1 Fan"

# VIA suggests that temp3 is an internal temp sensor for the 686a.  However,
# on the Tyan S1598 as well as the Abit KA7 (Athalon), the absolute values
# of the readings from that sensor are not valid.  The readings do seem to 
# correlate with temp changes, but the conversion factor may be quite 
# different from temp1 & temp2 (as noted above, VIA has not provided
# conversion info).  So, you may wish to 'ignore temp3'. 

# Johannes Drechsel-Burkhard <jdb@chello.at> notes that on his MSI K7T Pro,
# temp1 is the CPU temp and temp2 is the SYS temp.  

    label temp1 "CPU0 Temp"
    label temp2 "CPU1 Temp"
    label temp3 "SBr Temp"
    #ignore temp3

# Set your CPU core limits here.  For the other voltage sensors, the 
# built-in defaults should be fine.
#
#    set in0_min 2.0
#    set in0_max 2.5
     set in0_min 1.55
     set in0_max 1.65
     set in1_min 1.55
     set in1_max 1.65

# Set your temp limits here.  Remember, 'tempX_over' is the temp at which an
# alarm is triggered, and 'tempX_hyst' is the temp at which an alarm turns off.
# Setting tempX_hyst to a few degrees below the corresponding tempX_over 
# prevents an oscillation between alarm on and off states.  This kind of 
# oscillation is known as hyteresis, thus the name.  (You typically get the 
# most serious and troublesome hysteresis when a sensor triggers something to 
# reduce the temp, thus creating a negative feedback loop.  Even without that,
# we would still get some oscillation when the temp hovers around the limit 
# due to noise.)   

    set temp1_hyst 55
    set temp1_over 60
    set temp2_hyst 55
    set temp2_over 60
    set temp3_hyst 30
    set temp3_over 40

# You could set your fan limits too, but the defaults should be fine.

    set fan1_min 4000
    set fan2_min 4000

# For at least one Tyan S1598, the following corrections make the sensors
# readings more in-line with the BIOS readings on boot.  Try these, and 
# adjust as necessary. 

  #compute "2.0V" 1.02*@ ,  @/1.02
  #compute "3.3V" 1.02*@  ,  @/1.02
  #compute "5.0V" 1.009*@  ,  @/1.009
  #compute "12V" 1.04*@ ,  @/1.04
