センサ(lm-sensor)カスタマイズ

D2700DC用のlm-sensor定義ファイルを作成する

元々の表示(lm-sensor導入後の表示)
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +39.0°C  (crit = +100.0°C)
Core 1:       +38.0°C  (crit = +100.0°C)

w83627dhg-isa-0290
Adapter: ISA adapter
Vcore:        +1.22 V  (min =  +0.00 V, max =  +1.74 V)
in1:          +1.01 V  (min =  +0.19 V, max =  +1.14 V)
AVCC:         +3.41 V  (min =  +2.98 V, max =  +3.63 V)
+3.3V:        +3.41 V  (min =  +2.98 V, max =  +3.63 V)
in4:          +1.02 V  (min =  +1.02 V, max =  +0.85 V)  ALARM
in5:          +1.52 V  (min =  +0.90 V, max =  +0.27 V)  ALARM
in6:          +1.04 V  (min =  +1.54 V, max =  +1.05 V)  ALARM
3VSB:         +3.36 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:         +3.25 V  (min =  +2.70 V, max =  +3.30 V)
fan1:        2636 RPM  (min = 8437 RPM, div = 32)  ALARM
fan2:           0 RPM  (min =  224 RPM, div = 128)  ALARM
fan3:           0 RPM  (min =  376 RPM, div = 128)  ALARM
fan4:           0 RPM  (min = 1318 RPM, div = 128)  ALARM
fan5:           0 RPM  (min =  458 RPM, div = 128)  ALARM
temp1:        +53.0°C  (high = -32.0°C, hyst = -53.0°C)  ALARM  sensor = diode
temp2:       +110.5°C  (high = +80.0°C, hyst = +75.0°C)  ALARM  sensor = diode
temp3:        +39.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
cpu0_vid:    +2.050 V
intrusion0:  ALARM
定義ファイル無効でID確認
$ sensors -c /dev/null
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +40.0°C  (crit = +100.0°C)
Core 1:       +38.0°C  (crit = +100.0°C)

w83627dhg-isa-0290
Adapter: ISA adapter
in0:          +1.22 V  (min =  +0.00 V, max =  +1.74 V)
in1:          +1.01 V  (min =  +0.19 V, max =  +1.14 V)
in2:          +3.41 V  (min =  +2.98 V, max =  +3.63 V)
in3:          +3.41 V  (min =  +2.98 V, max =  +3.63 V)
in4:          +1.02 V  (min =  +1.02 V, max =  +0.85 V)  ALARM
in5:          +1.52 V  (min =  +0.90 V, max =  +0.27 V)  ALARM
in6:          +1.04 V  (min =  +1.54 V, max =  +1.05 V)  ALARM
in7:          +3.36 V  (min =  +2.98 V, max =  +3.63 V)
in8:          +3.25 V  (min =  +2.70 V, max =  +3.30 V)
fan1:        2812 RPM  (min = 8437 RPM, div = 32)  ALARM
fan2:           0 RPM  (min =  224 RPM, div = 128)  ALARM
fan3:           0 RPM  (min =  376 RPM, div = 128)  ALARM
fan4:           0 RPM  (min = 1318 RPM, div = 128)  ALARM
fan5:           0 RPM  (min =  458 RPM, div = 128)  ALARM
temp1:        +52.0°C  (high = -32.0°C, hyst = -53.0°C)  ALARM  sensor = diode
temp2:       +110.5°C  (high = +80.0°C, hyst = +75.0°C)  ALARM  sensor = diode
temp3:        +39.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
cpu0_vid:    +2.050 V
intrusion0:  ALARM
専用の定義ファイルを作成

/etc/sensors.d/d2700dc.conf

# Intel D2700DC based on BIOS values
#

chip "w83627dhg-*"

    ignore  cpu0_vid
    ignore  intrusion0

# Voltages

    # Processor Vcc
    label   in0            "Vcore"
    set     in0_min        0.75 * 0.99
    set     in0_max        1.21 * 1.01

    # +12.0V
    label   in1            "+12V"
    compute in1            12*@, @/12
    set     in1_min        12 * 0.95
    set     in1_max        12 * 1.05

    # +3.3V
    label   in3            "+3.3V"
    set     in3_min        3.3 * 0.95
    set     in3_max        3.3 * 1.05

    # +5.0V
    label   in4            "+5V"
    compute in4            5*@, @/5
    set     in4_min        5.0 * 0.95
    set     in4_max        5.0 * 1.05

    # Memory Vcc
    label   in5            "Vdimm"
    set     in5_min        1.5 * 0.95
    set     in5_max        1.5 * 1.05

    # PCH Vcc
    label   in6            "PCH"
    set     in6_min        1.05 * 0.95
    set     in6_max        1.05 * 1.05

    # +3.3V Standby
    label   in7            "3VSB"
    set     in7_min        3.3 * 0.95
    set     in7_max        3.3 * 1.05

# FAN
    label   fan1           "Case fan"
    set     fan1_min       1000
    ignore  fan2
    ignore  fan3
    ignore  fan4
    ignore  fan5

# Temperatures

    # Memory Temperature
    label   temp1          "SO-DIMM temp"
    set     temp1_max      80
    set     temp1_max_hyst 75

    # Always on 110.5
    ignore  temp2

    # VR Temperature
    label   temp3          "VR temp"
    set     temp3_max      80
    set     temp3_max_hyst 75
最大・最小値のセット
$ sudo sensors -s
最終的な表示
$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +41.0°C  (crit = +100.0°C)
Core 1:       +39.0°C  (crit = +100.0°C)

w83627dhg-isa-0290
Adapter: ISA adapter
Vcore:        +1.22 V  (min =  +0.74 V, max =  +1.22 V)
+12V:        +12.10 V  (min = +11.42 V, max = +12.58 V)
AVCC:         +3.41 V  (min =  +2.98 V, max =  +3.63 V)
+3.3V:        +3.41 V  (min =  +2.98 V, max =  +3.63 V)
+5V:          +5.08 V  (min =  +4.76 V, max =  +5.24 V)
Vdimm:        +1.52 V  (min =  +1.42 V, max =  +1.58 V)
PCH:          +1.04 V  (min =  +1.00 V, max =  +1.10 V)
3VSB:         +3.36 V  (min =  +2.98 V, max =  +3.63 V)
Vbat:         +3.25 V  (min =  +2.70 V, max =  +3.30 V)
Case fan:    2860 RPM  (min = 1004 RPM, div = 8)
DIMM temp:    +53.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
VR temp:      +39.5°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode