1. 安装lm_sensors
$ sudo yum install lm_sensors
2. 配置探头信息
$ sudo sensors-detect
3. 在 /etc/sensors3.conf 中的配置传感器参数
$ sudo vi /etc/sensors3.conf
chip "it8782-*" label in0 "VCore" label in1 "+5V" label in2 "+12V" label in3 "+3.3V" label in4 "5VSB" label fan1 "SYS Fan 1" label fan2 "SYS Fan 2" ignore in7 compute in0 ((3/10) +1)*@ , @/((3/10) +1) compute in1 ((6.8/10)+1)*@ , @/((6.8/10)+1) compute in2 ((30/10) +1)*@ , @/((30/10) +1) compute in4 ((6.8/10)+1)*@ , @/((6.8/10)+1) set in0_min 0.91 set in0_max 1.21 set in1_min 5 * 0.95 set in1_max 5 * 1.05 set in2_min 12 * 0.95 set in2_max 12 * 1.05 set in3_min 3.3 * 0.95 set in3_max 3.3 * 1.05 set in4_min 5 * 0.95 set in4_max 5 * 1.05 set fan1_min 0 set fan2_min 0
4. 输出示例
it8782-isa-0a40 Adapter: ISA adapter VCore: +1.04 V (min = +0.92 V, max = +1.21 V) +5V: +5.05 V (min = +4.76 V, max = +5.24 V) +12V: +11.90 V (min = +11.39 V, max = +12.61 V) +3.3V: +3.33 V (min = +3.14 V, max = +3.47 V) 5VSB: +5.08 V (min = +4.76 V, max = +5.24 V) Vbat: +3.22 V SYS Fan 1: 0 RPM (min = 0 RPM) SYS Fan 2: 0 RPM (min = 0 RPM) temp1: +36.0°C (low = +8.0°C, high = -64.0°C) ALARM sensor = thermal diode temp2: +36.0°C (low = +20.0°C, high = +0.0°C) ALARM sensor = thermal diode intrusion0: ALARM