Silencing lm-sensors alarms

This guide might help you configure your lm-sensors.

This example is made using an Intel DH61AG motherboard.

After installing lm-sensors on my Ubuntu machine, I had some strange readings and alarms in the sensors output:

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +37.0°C  (high = +82.0°C, crit = +102.0°C)
Core 0:         +30.0°C  (high = +82.0°C, crit = +102.0°C)
Core 1:         +31.0°C  (high = +82.0°C, crit = +102.0°C)

nct6775-isa-0290
Adapter: ISA adapter
Vcore:          +0.74 V  (min =  +0.00 V, max =  +1.74 V)
in1:            +1.09 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
AVCC:           +3.34 V  (min =  +2.98 V, max =  +3.63 V)
+3.3V:          +3.34 V  (min =  +2.98 V, max =  +3.63 V)
in4:            +1.02 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in5:            +1.02 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
in6:            +1.06 V  (min =  +0.00 V, max =  +0.00 V)  ALARM
3VSB:           +3.34 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:           +3.26 V  (min =  +2.70 V, max =  +3.63 V)
fan1:             0 RPM  (min =    0 RPM, div = 128)
fan2:          1318 RPM  (min =    0 RPM, div = 64)  ALARM
fan3:             0 RPM  (min =    0 RPM, div = 128)
fan4:             0 RPM  (div = 128)
SYSTIN:         +46.0°C  (high = +0.0°C, hyst = +0.0°C)  ALARM  sensor = CPU diode
CPUTIN:         +38.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = CPU diode
AUXTIN:          -2.5°C    sensor = CPU diode
PECI Agent 0:   +35.5°C  (high = +80.0°C, hyst = +75.0°C)
PCH_CHIP_TEMP:  +58.0°C  (high = +80.0°C, hyst = +75.0°C)
PECI Agent 1:    +0.0°C  (high = +80.0°C, hyst = +75.0°C)
cpu0_vid:      +0.000 V
intrusion0:    OK


What's worse, I discovered that the system log was getting spammed with ALARM error messages like this:

sensord[ ]: Sensor alarm: Chip nct6775-isa-0290: SYSTIN: 46.0 C (limit = 0.0 C, hysteresis = 0.0 C) [ALARM]
sensord[ ]: Sensor alarm: Chip nct6775-isa-0290: in1: +1.09 V (min = +0.00 V, max = +0.00 V) [ALARM]
sensord[ ]: Sensor alarm: Chip nct6775-isa-0290: in4: +1.02 V (min = +0.00 V, max = +0.00 V) [ALARM]
sensord[ ]: Sensor alarm: Chip nct6775-isa-0290: in5: +1.02 V (min = +0.00 V, max = +0.00 V) [ALARM]
sensord[ ]: Sensor alarm: Chip nct6775-isa-0290: in6: +1.06 V (min = +0.00 V, max = +0.00 V) [ALARM]
sensord[ ]: Sensor alarm: Chip nct6775-isa-0290: fan2: 1278 RPM (min = 0 RPM, div = 32) [ALARM]


First, I needed some more information on these strange readings. The following command reveals all the available config parameters:

sensors -u

The output is something like this:

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:
  temp1_input: 36.000
  temp1_max: 82.000
  temp1_crit: 102.000
  temp1_crit_alarm: 0.000
Core 0:
  temp2_input: 30.000
  temp2_max: 82.000
  temp2_crit: 102.000
  temp2_crit_alarm: 0.000
Core 1:
  temp3_input: 31.000
  temp3_max: 82.000
  temp3_crit: 102.000
  temp3_crit_alarm: 0.000

nct6775-isa-0290
Adapter: ISA adapter
Vcore:
  in0_input: 0.736
  in0_min: 0.000
  in0_max: 1.744
  in0_alarm: 0.000
AVCC:
  in2_input: 3.344
  in2_min: 2.976
  in2_max: 3.632
  in2_alarm: 0.000
+3.3V:
  in3_input: 3.344
  in3_min: 2.976
  in3_max: 3.632
  in3_alarm: 0.000
3VSB:
  in7_input: 3.344
  in7_min: 2.976
  in7_max: 3.632
  in7_alarm: 0.000
Vbat:
  in8_input: 3.264
  in8_min: 2.704
  in8_max: 3.632
  in8_alarm: 0.000
fan2:
  fan2_input: 1318.000
  fan2_min: 0.000
  fan2_alarm: 0.000
  fan2_div: 64.000
SYSTIN:
  temp1_input: 46.000
  temp1_max: 0.000
  temp1_max_hyst: 0.000
  temp1_alarm: 0.000
  temp1_type: 1.000
  temp1_offset: 0.000
CPUTIN:
  temp2_input: 38.000
  temp2_max: 80.000
  temp2_max_hyst: 75.000
  temp2_alarm: 0.000
  temp2_type: 1.000
  temp2_offset: 0.000
AUXTIN:
  temp3_input: -2.500
  temp3_alarm: 0.000
  temp3_type: 1.000
  temp3_offset: 0.000
PECI Agent 0:
  temp6_input: 35.500
  temp6_max: 80.000
  temp6_max_hyst: 75.000
PCH_CHIP_TEMP:
  temp7_input: 58.000
  temp7_max: 80.000
  temp7_max_hyst: 75.000
PECI Agent 1:
  temp8_input: 0.000
  temp8_max: 80.000
  temp8_max_hyst: 75.000
cpu0_vid:
  cpu0_vid: 0.000
intrusion0:
  intrusion0_alarm: 0.000


Now we know the real names of these mysterious readings, and can silence the alarms by creating a custom configuration file:

/etc/sensors.d/custom.conf

The file would eventually look like this:

chip "nct6775-isa-0290"
    ignore fan1
    ignore fan3
    ignore fan4
    ignore in1
    ignore in4
    ignore in5
    ignore in6
    ignore temp8
    ignore cpu0_vid
    ignore intrusion0
    set fan2_min 200
    set temp1_max 80
    set temp1_max_hyst 75


The fan1-fan4 readings were showing 0 RPM since they don't exist. They needed to be ignored.

Voltages in1, in4, in5 and in6 were unknown, so I decided to just ignore them.

The only connected fan "fan2" was also giving an ALARM. This was because the fan2_min wasn't set. I set the minimum to 200 RPM, which seems to be a popular choice.

For SYSTIN I set a maximum temperature of 80 and a hysteresis of 75 degrees (temp1_max and temp1_max_hyst). This got rid of the ALARM.

The temp8, cpu0_vid, intrusion0 readings were nonsensical, so i just ignored them as well.

After creating the custom config file, reload the configuration by typing:

sensors -s

After all this, the sensors output is much nicer:

coretemp-isa-0000
Adapter: ISA adapter
Physical id 0:  +36.0°C  (high = +82.0°C, crit = +102.0°C)
Core 0:         +30.0°C  (high = +82.0°C, crit = +102.0°C)
Core 1:         +31.0°C  (high = +82.0°C, crit = +102.0°C)

nct6775-isa-0290
Adapter: ISA adapter
Vcore:          +0.74 V  (min =  +0.00 V, max =  +1.74 V)
AVCC:           +3.34 V  (min =  +2.98 V, max =  +3.63 V)
+3.3V:          +3.34 V  (min =  +2.98 V, max =  +3.63 V)
3VSB:           +3.34 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:           +3.26 V  (min =  +2.70 V, max =  +3.63 V)
fan2:          1318 RPM  (min =  200 RPM, div = 64)
SYSTIN:         +46.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = CPU diode
CPUTIN:         +38.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = CPU diode
AUXTIN:          -3.5°C    sensor = CPU diode
PECI Agent 0:   +35.5°C  (high = +80.0°C, hyst = +75.0°C)
PCH_CHIP_TEMP:  +58.0°C  (high = +80.0°C, hyst = +75.0°C)


Comments

Popular posts from this blog

How to fix the weird audio bug in Kingdom Come: Deliverance

Minecraft recv failed error... fixed!

Where does uTorrent keep its .torrent files?

How to install and play Curse of Monkey Island on Android

How to get rid of coil whine just by tweaking BIOS

Running Black Dahlia on modern PCs