Skip to content

Instantly share code, notes, and snippets.

@rindeal
Last active August 26, 2024 17:09
Show Gist options
  • Save rindeal/1dc9c6ba4109336d174f805e3cd30a37 to your computer and use it in GitHub Desktop.
Save rindeal/1dc9c6ba4109336d174f805e3cd30a37 to your computer and use it in GitHub Desktop.
lm-sensors configuration file for `ASRock B660M-HDV` motherboard
#
# lm-sensors configuration file for `ASRock B660M-HDV` motherboard
#
# File location: /etc/sensors.d/ASRock-B660M-HDV.conf
# Vendor URL: https://www.asrock.com/mb/Intel/B660M-HDV/
# Upstream URL: https://gist.github.com/rindeal/1dc9c6ba4109336d174f805e3cd30a37
#
# Based on: https://github.com/petersulyok/asrock_z690_extreme/blob/1154e46b1dae0d2a02cf6ed623c4e6c6024c40c8/B550_Steel_Legend.conf
#
#
# dmidecode:
# ```
# System Information
# Manufacturer: ASRock
# Product Name: B660M-HDV
# ```
#
# dmesg:
# ```
# nct6775: Found NCT6798D or compatible chip at 0x2e:0x2a0
# ```
#
# `sensors-detect` log:
# ```
# Found `Nuvoton NCT6798D Super IO Sensors' Success!
# (address 0x2a0, driver `nct6775')
# ```
#
# `B660MHDV.xml`:
# ```xml
# <SioHwmSetting>
# <Item Name="SIO8_V" Bank="4" Reg="0x80" R1="0" R2="1" Ref="0" Offset="0" />
# <Item Name="P3P3_V" Bank="4" Reg="0x83" R1="0x22" R2="0x22" Ref="0" Offset="0" />
# <Item Name="P5P0_V" Bank="4" Reg="0x81" R1="0x02" R2="0x01" Ref="0" Offset="0" />
# <Item Name="P12_V" Bank="4" Reg="0x84" R1="0x6E" R2="0x0A" Ref="0" Offset="0" />
# <Item Name="SIO1_V" Bank="4" Reg="0x85" R1="1" R2="1" Ref="0" Offset="0" />
# <Item Name="SIO2_V" Bank="4" Reg="0x8C" R1="0" R2="1" Ref="0" Offset="0.050" />
# <Item Name="SIO3_V" Bank="4" Reg="0x86" R1="0" R2="1" Ref="0" Offset="0" />
# <Item Name="SIO4_V" Bank="4" Reg="0x8B" R1="1" R2="1" Ref="0" Offset="0" />
# <Item Name="SIO5_V" Bank="4" Reg="0x8D" R1="1" R2="1" Ref="0" Offset="0" />
# <Item Name="SIO6_V" Bank="4" Reg="0x8A" R1="1" R2="1" Ref="0" Offset="0" />
# </SioHwmSetting>
# <Voltage Enable="1">
# <Item Index="0" Name="SIO8_V" Enable="1" LANID="STR_SYSINFO_CPU_VCORE">CPU Vcore Volt.</Item>
# <Item Index="1" Name="P3P3_V" Enable="1" LANID="STR_SYSINFO_3P3V">+3.3V Volt.</Item>
# <Item Index="2" Name="P5P0_V" Enable="1" LANID="STR_SYSINFO_5P0V">+5.0V Volt.</Item>
# <Item Index="3" Name="P12_V" Enable="1" LANID="STR_SYSINFO_12V">+12V Volt.</Item>
# <Item Index="4" Name="SIO3_V" Enable="1" LANID="STR_SYSINFO_DRAM">DRAM Volt.</Item>
# <Item Index="6" Name="SIO1_V" Enable="1" LANID="STR_SYSINFO_VCCIN_AUX_V">VCCIN_AUX Volt.</Item>
# <Item Index="10" Name="SIO6_V" Enable="1" LANID="STR_SYSINFO_1P05PROC_V">+1.05 PROC Volt.</Item>
# <Item Index="4" Name="SIO4_V" Enable="1" LANID="STR_SYSINFO_0P82PCH_V">+0.82 PCH Volt.</Item>
# <Item Index="4" Name="SIO2_V" Enable="1" LANID="STR_SYSINFO_1P5PCH_V">+1.05 PCH Volt.</Item>
# </Voltage>
# <Temperature Enable="1">
# <Item Name="CPUTIN" Bank="1" Reg="0x50" TempSource="0x10">CPU_TEMP</Item>
# <!--
# <Item Name="CPUTIN" Bank="1" Reg="0x50">CPU_TEMP</Item>
# -->
# <!--
# <Item Name="SYSTIN" Bank="0" Reg="0x73">MB_TEMP</Item>
# -->
# <Item Name="SYSTIN" Bank="4" Reg="0x90" PatchMB="0">MB_TEMP</Item>
# <Item Name="AUXTIN" Bank="2" Reg="0x50" />
# </Temperature>
# <Fan Enable="1">
# <Item Index="0" Name="CPU_TEMP" Enable="1" Control="Temperature" LANID="STR_SYSINFO_CPU_TEMP">CPU Temperature</Item>
# <Item Index="1" Name="MB_TEMP" Enable="1" Control="Temperature" LANID="STR_SYSINFO_MB_TEMP">M/B Temperature</Item>
# <Item Index="2" Name="FAN2" Enable="1" Control="FanReading" LANID="STR_SYSINFO_CPU_FAN1">CPU Fan1 Speed</Item>
# <Item Index="3" Name="FAN1" Enable="1" Control="FanReading" LANID="STR_SYSINFO_CPU_FAN2">CPU Fan2 Speed</Item>
# <Item Index="4" Name="FAN7" Enable="1" Control="FanReading" LANID="STR_SYSINFO_CHASSIS_FAN1">Chassis Fan1 Speed</Item>
# <Item Index="5" Name="FAN5" Enable="1" Control="FanReading" LANID="STR_SYSINFO_CHASSIS_FAN2">Chassis Fan2 Speed</Item>
# <!--Item Index="6" Name="FAN3" Enable="1" Control="FanReading" LANID="STR_SYSINFO_CHASSIS_FAN4">Chassis Fan4 Speed</Item>
# <Item Index="6" Name="FAN8" Enable="1" Control="FanReading" LANID="STR_SYSINFO_CHASSIS_FAN5">Chassis Fan5 Speed</Item-->
# <!--Item Index="7" Name="FAN1" Enable="1" Control="FanReading" LANID="STR_SYSINFO_CHASSIS_FAN4">Chassis Fan4 Speed</Item-->
# </Fan>
# <FanReading Enable="1">
# <Item Name="FAN7" Bank="4" HighReg="0xC4" LowReg="0xC5">SYSFANIN</Item>
# <Item Name="FAN2" Bank="4" HighReg="0xC2" LowReg="0xC3">CPUFANIN</Item>
# <Item Name="FAN3" Bank="4" HighReg="0xC8" LowReg="0xC9">AUXFANIN0</Item>
# <Item Name="FAN8" Bank="4" HighReg="0xCA" LowReg="0xCB">AUXFANIN</Item>
# <Item Name="FAN5" Bank="4" HighReg="0xC6" LowReg="0xC7">AUXFANIN1</Item>
# <Item Name="FAN4" Bank="4" HighReg="0xCE" LowReg="0xCF">CPUFANIN2</Item>
# <Item Name="FAN1" Bank="4" HighReg="0xC0" LowReg="0xC1">CPUFANIN2</Item>
# </FanReading>
# ```
chip "nct6798-isa-02a0"
label vendor "Nuvoton"
label chip "NCT6798D-R"
### Voltages ###
##########################################################################
label in0 "CPU Vcore"
compute in0 @*(0/1 + 1),@
set in0_min 0.2
set in0_max 1.35
set in0_beep 1
label in1 "+5.0V"
compute in1 @*(2/1 + 1),@
set in1_min 5 * 0.95
set in1_max 5 * 1.05
set in1_beep 1
# missing from B660MHDV.xml
label in2 "+3.3V (AVCC)"
set in3_min 3.3 * 0.95
set in3_max 3.3 * 1.05
set in3_beep 1
label in3 "+3.3V (3VCC)"
# for some reason, we need to add `0` not `1`
compute in3 @*(34/34 + 0),@
set in3_min 3.3 * 0.95
set in3_max 3.3 * 1.05
set in3_beep 1
label in4 "+12.0V"
compute in4 @*(110/10 + 1),@
set in4_min 12 * 0.95
set in4_max 12 * 1.05
set in4_beep 1
label in5 "VCCIN_AUX"
compute in5 @*(1/1 + 1),@
set in5_min 1.5
set in5_max 2.1
set in5_beep 1
label in6 "DRAM"
compute in6 @*(0/1 + 1),@
set in6_min 1.1
set in6_max 1.65
set in6_beep 1
# missing from B660MHDV.xml
label in7 "3VSB"
set in3_min 3.3 * 0.95
set in3_max 3.3 * 1.05
set in3_beep 1
# missing from B660MHDV.xml
label in8 "VBAT"
set in8_min 2.7
set in8_max 3.3
set in8_beep 1
# missing from B660MHDV.xml
label in9 "in9 (1.056-1.072V)"
ignore in9
label in10 "+1.05 PROC"
# for some reason, we need to add `0` not `1`
compute in10 @*(1/1 + 0),@
set in10_min 0.95
set in10_max 1.8
set in10_beep 1
label in11 "+0.82 PCH"
compute in11 @*(1/1 + 0),@
set in11_min 0.72
set in11_max 1.3
set in11_beep 1
label in12 "+1.05 PCH"
compute in12 @*(0/1 + 1) + 0.050,@
set in12_min 0.95
set in12_max 1.5
set in12_beep 1
label in13 "VCCSA"
compute in13 @*(1/1 + 1),@
set in13_min 0.9
set in13_max 1.35
set in13_beep 1
# missing from B660MHDV.xml
label in14 "in14 / VIN7 (1.504-1.512V)"
ignore in14
### Fan speeds ###
##########################################################################
label fan1 "CPU_FAN2 (InFrUp)"
label fan2 "CPU_FAN1 (Cooler)"
set fan2_min 200
set fan2_beep 1
label fan3 "CHA_FAN1 (InFrLow)"
label fan4 "CHA_FAN2 (ExReUp)"
label fan5 "fan5 / NOT_CONNECTED"
ignore fan5
label fan6 "fan6 / NOT_CONNECTED"
ignore fan6
label fan7 "fan7 / NOT_CONNECTED"
ignore fan7
### Temperatures ###
##########################################################################
label temp1 "MB (SuperIO)" # SYSTIN
label temp2 "CPU (VRM)" # CPUTIN
label temp3 "temp3 / AUXTIN0 (11-12C)"
ignore temp3
label temp4 "temp4 / AUXTIN1 (22-23C)"
ignore temp4
label temp5 "temp5 / AUXTIN2 (36C)"
ignore temp5
label temp6 "temp6 / AUXTIN3 (-1C)"
ignore temp6
label temp7 "CPU (PECI)" # PECI Agent 0
label temp8 "AUXTIN4 (25-40C)"
ignore temp8
# PCH temperatures (all showing 0°C, likely not connected)
label temp9 "temp9 / PCH_CHIP_CPU_MAX_TEMP (0C)"
ignore temp9
label temp10 "temp10 / PCH_CHIP_TEMP (0C)"
ignore temp10
label temp11 "temp11 / PCH_CPU_TEMP (0C)"
ignore temp11
label temp12 "temp12 / PCH_MCH_TEMP (0C)"
ignore temp12
### Misc ###
##########################################################################
# Intrusion detection (showing ALARM, might not be connected)
ignore intrusion0
ignore intrusion1
# Disable beep
set beep_enable 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment