#    Sensors configuration file used by 'libsensors' for Tyan S2466-4M
#
# Edited by: kevin schlichter <kevins at tyan dot com> 05.16.03
# Update 07.30.03:kevin schlichter: add vid support
# Update 2009-Apr-01 Adam Thompson <athompso at athompso dot net>: radically 
#   updated for lm_sensors 3.0.2 & Linux kernel 2.6.27 (aka Ubuntu 8.10)
#
# Note that in the 2.6 series of kernels, with lm_sensors 3.0.2, it is
# no longer necessary to jump through force_subclient= and ignore_* hoops
# when loading the w83782d module; its default behaviour is sufficient
# to support itself correctly (and it finds the 3 subclients without any
# additional prompting).  This does NOT allow access to the other chip,
# a W83627HF, over I2C, but this second chip is mapped into the ISA I/O 
# space anyway, and loading the "w83627hf" module without any options 
# locates it and accesses it perfectly fine.  See also notes below about
# the inadvisability of overusing the I2C bus on this motherboard anyway.
# This has only been tested on MY board, which is the -4M variant, with
# BIOS 4.06.  Depending on your BIOS version, you may or may not want to 
# use the "init=0" module options INSTEAD OF setting various mins & maxes 
# below, particularly temperature-wise.  YMMV.
# -Adam Thompson, 2009-Apr-01
#####

# set min/max limits to  5% for the critical voltages
# set min/max limits to 10% for the non-critical voltages
# set min/max limits to 20% for the battery voltage


chip "w83782d-*"
    ignore  in0 
    ignore  in1
    label   in2 "AGP V"
    set     in2_min 3.3*0.95
    set     in2_max 3.3*1.05
    label   in3 " +5 V"
    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
    set     in3_min 5.0*0.95
    set     in3_max 5.0*1.05
    label   in4 "DDR V"
    ignore  in5
    ignore  in7
    label   in6 "3 VSB"
    set     in6_max 3.0*1.05
    set     in6_min 3.0*0.95
    label   in8 "Bat V"
    set     in8_min 3.3*0.80
    set     in8_max 3.3*1.20
    ignore  vid
    label   fan1 "Chassis Fan 2"
    label   fan2 "Chassis Fan 1"
    label   fan3 "PSU Fan"
    label   temp1 "VRM2 Temp"
    label   temp2 "CPU1 Temp"
    label   temp3 "CPU2 Temp"
#    set     temp1_type 2
#    set     temp1_max 40	
#    set     temp1_max_hyst 60	
#    set     temp2_type 2
#    set     temp2_max 70	
#    set     temp2_max_hyst 80	
#    set     temp3_type 2
#    set     temp3_max 70	
#    set     temp3_max_hyst 80	

# lm_sensors ticket#1795 (http://www.lm-sensors.org/ticket/1795) also 
# strongly suggests using the ISA bus where possible to avoid overloading
# the SMBus on Tyan motherboards.
# Accessing this via ISA inb/outb also avoids the need altogether to use
# force_subclient= options when loading the w83782d module.

chip "w83627hf-*"
    label   in0 "VCore1"
    set     in0_min cpu0_vid*0.95
    set     in0_max cpu0_vid*1.05
    label   in1 "VCore2"
    set     in1_min cpu0_vid*0.95
    set     in1_max cpu0_vid*1.05
    label   in2 "+3.3 V"
    set     in2_min 3.3*0.95
    set     in2_max 3.3*1.05
    ignore  in3
    label   in4 " +12 V"
    compute in4 ((3.8/1)+1)*@ , @/((3.8/1)+1)
    set     in4_max 12*0.90
    set     in4_min 12*1.10
    label   in5 " -12 V"
    compute in5 (5.14*@)-14.91 , (@+14.91)/5.14
    set     in5_max -12*0.90
    set     in5_min -12*1.10
    ignore  in6
    ignore  in7
    ignore  in8
    ignore  vid
    label   temp1 "VRM1 Temp"
    label   temp2 "AGP Temp"
    label   temp3 "DDR Temp"
    label   fan1 "CPU1 Fan"
    label   fan2 "CPU2 Fan"
    ignore  fan3 
#    set     temp1_type 2
#    set     temp1_max 40
#    set     temp1_max_hyst 37
#    set     temp2_type 2
#    set     temp2_max 52
#    set     temp2_max_hyst 47
#    set     temp3_type 2
#    set     temp3_max 52
#    set     temp3_max_hyst 47
    set     beep_enable 0
