RTSensors-2 Config file explained

Last Update: July 24th 2006

Go back

RTsensors-2 daemon can monitorize up to 2 temperatures and 2 fans. Every temperature-fan combo is defined in the config file as 'CPU' combo or 'BOX' combo. Obviously, the idea is to control CPU fan by CPU temperature and BOX fan by BOX temperature.

The text below shows every field in the config file, its format and some examples or avaliable values.

CHIP_NAME
 The hardware monitor name must be defined here.
 It accepts wildcards, like the command 'sensors' does.


Examples:
CHIP_NAME = w83697hf-*
CHIP_NAME = *-isa-0290
CHIP_NAME = w83697hf-isa-0290
CPU_TEMPERATURE
 Give the name of the temperature sensor showing the CPU temperature.
 To obtain the name, use the command:

	# sensors | grep temp
 and select the appropiate 'temp#' name

Examples:
CPU_TEMPERATURE = temp1
CPU_TEMPERATURE = temp2
CPU_TEMPERATURE = temp3
BOX_TEMPERATURE
 Give the name of the temperature sensor showing the BOX temperature.
 To obtain the name, use the command:

	# sensors | grep temp
 and select the appropiate 'temp#' name.

Examples:
BOX_TEMPERATURE = temp1
BOX_TEMPERATURE = temp2
BOX_TEMPERATURE = temp3
CPU_FAN / BOX_FAN
 The name 'fan#' showing the currenty fan speed must be defined here.
 To obtain the name, use the command:

	# sensors | grep fan
 and select the appropiate 'fan#' name. Names from 'fan1' to 'fan4' are supported.
 The name set here also defines 'fan#_div', 'pwm#' and 'pwm#_clk'.


Examples:
CPU_FAN = fan1
CPU_FAN = fan2
CPU_FAN = fan3
CPU_FAN = fan4
BOX_FAN = fan1
BOX_FAN = fan2
BOX_FAN = fan3
BOX_FAN = fan4
CPU_FAN_DIV / BOX_FAN_DIV
 The fan divisor for the fan defined in CPU_FAN / BOX_FAN must be placed here.
 For more info about fan divisors, see:
 http://www.lm-sensors.org/browser/lm-sensors/trunk/doc/fan-divisors


Examples:
CPU_FAN_DIV = 0x02
CPU_FAN_DIV = 0x08
BOX_FAN_DIV = 0x04
BOX_FAN_DIV = 0x10
CPU_FAN_PWMCLK / BOX_FAN_PWMCLK
 You should put a feasible clock divisor/divider for the fan defined in CPU_FAN / BOX_FAN.

Examples:
CPU_FAN_PWMCLK = 0x00
CPU_FAN_PWMCLK = 0x20
BOX_FAN_PWMCLK = 0x01
BOX_FAN_PWMCLK = 0x04
Here follows a list of known PWM clock registers:

Winbond W83627HF (PWM1_CLK and PWM2_CLK)

0x00 46.87 kHz
0x01
23.43 kHz
0x02
11.72 kHz
0x03
5.85 kHz
0x04
2.93 kHz
 
 Winbond W83637HF (PWM1_CLK, PWM2_CLK and PWM3_CLK)
 Leave Bit 8 = 0, and play with divider values. It usually works.
0x00-0x7F Divider
Bit 8 = 0
Clock= 24 MHz
Bit 8 = 1
Clock= 180 kHz
 
 Winbond W83697HF (PWM1_CLK and PWM2_CLK)
 Leave Bit 8 = 0, and play with divider values. It usually works.
0x00-0x7F Divider
Bit 8 = 0
Clock= 24 MHz
Bit 8 = 1
Clock= 180 kHz

 Supported soon: Winbond W83782D (PWM1_CLK, PWM2_CLK,
PWM3_CLK* and PWM4_CLK*)
 *Not avaliable in ISA bus.
0x00 46.87 kHz
0x01
23.43 kHz
0x02
11.72 kHz
0x03
5.85 kHz
0x04
2.93 kHz

 Supported soon: Winbond W83783S (PWM1_CLK and PWM2_CLK)
0x00 46.87 kHz
0x01
23.43 kHz
0x02
11.72 kHz
0x03
5.85 kHz
0x04
2.93 kHz

 Supported soon: Winbond W83791D (PWM1_CLK, PWM2_CLK, PWM3_CLK, PWM4_CLK )
 Leave Bit 8 = 0, and play with divider values. It usually works.
0x00-0x7F Divider
Bit 8 = 0
Clock= 24 MHz
Bit 8 = 1
Clock= 180 kHz
CPU_TEMP_MAX / BOX_TEMP_MAX
 Set the maximum desirable temperature here. When the CPU or BOX reaches this temperature fan speed increases slowly to the maximum.

Examples:
CPU_TEMP_MAX = 60
CPU_TEMP_MAX = 56
BOX_TEMP_MAX = 42.5
BOX_TEMP_MAX = 48
CPU_TEMP_RES / BOX_TEMP_RES
 This stands for the temperature resolution of the sensors. 0.5ºC is the default resolution. Leaving this field as default is recommended.

Examples:
CPU_TEMP_RES = 0.5
BOX_TEMP_RES = 0.5
CPU_RPM_MAX / BOX_RPM_MAX
 The nominal speed of your CPU or BOX fan should be defined here.

Examples:
CPU_RPM_MAX = 4500
CPU_RPM_MAX = 3000
BOX_RPM_MAX = 1500
BOX_RPM_MAX = 2500
CPU_RPM_MIN / BOX_RPM_MIN
 This field sets the minimum desirable fan speed. You can set it to zero if your motherboard is capable of read fan speeds when pwm=0.
 Some motherboards are not able to do so and setting a zero leads to bad readings. Hence this field is also used to avoid bad readings.
 If you are getting bad readings when the fan speed reaches the minimum, try increasing this field.

 Difference between CPU_RPM_MAX and CPU_RPM_MIN (
BOX_RPM_MAX and BOX_RPM_MIN) should be greater than 100.

Examples:
CPU_RPM_MIN = 0
CPU_RPM_MIN = 1500
BOX_RPM_MIN = 1000
BOX_RPM_MIN = 1200
CPU_RPM_K / BOX_RPM_K / CPU_PWM_TOL / BOX_PWM_TOL
Leave these values as default unless you know what are you doing.

Examples:
CPU_RPM_K = 3
CPU_PWM_TOL = 50
BOX_RPM_K = 2
BOX_PWM_TOL = 50
CPU_CONTROL / BOX_CONTROL
This field is used to enable fan constant speed. When set to 0, it disables the temperature based control. Then it follows the speed set in the field 'CPU_CONTROL_CONSTANT' or 'BOX_CONTROL_CONSTANT'. The default is temperature based control (=1).

Examples:
CPU_CONTROL = 0
CPU_CONTROL = 1
BOX_CONTROL = 0
BOX_CONTROL = 1
CPU_CONTROL_CONSTANT / BOX_CONTROL_CONSTANT
Set the RPM constant speed here. This field is irrelevant if CPU_CONTROL=1 or BOX_CONTROL=1.

Examples:
CPU_CONTROL_CONSTANT = 2000
CPU_CONTROL_CONSTANT = 1500
BOX_CONTROL_CONSTANT = 3000
BOX_CONTROL_CONSTANT = 1000

Go back

All contents copyright © 2003-2006  Carlos Olalla