Skip to content

Instantly share code, notes, and snippets.

@kotarou3
Last active November 27, 2025 13:42
Show Gist options
  • Select an option

  • Save kotarou3/d2cdf50286b96d45c17e3ea39ac2d673 to your computer and use it in GitHub Desktop.

Select an option

Save kotarou3/d2cdf50286b96d45c17e3ea39ac2d673 to your computer and use it in GitHub Desktop.
# lm-sensors configuration for the Asus Pro WS TRX50-SAGE WIFI motherboard
#
# Recommended drivers: asus-ec-sensors, nct6775, spd5118
chip "nct6798-isa-0290"
# Voltage labels are from HWiNFO, except Core0/1 and VDD_11_S3 are from the BIOS
label in0 "CPU Core0"
compute in0 @*1.11, @/1.11
label in1 "+5V"
compute in1 @*5, @/5
label in2 "AVSB"
label in3 "3VCC"
label in4 "+12V"
compute in4 @*12, @/12
label in5 "CPU VDDIO"
compute in5 @*1.11, @/1.11
label in6 "CPU Core1"
compute in6 @*1.11, @/1.11
label in7 "3VSB"
label in8 "VBAT"
label in9 "VTT"
label in10 "CHIPSET1 1.0V"
label in11 "VDD_11_S3 / MC"
compute in11 @*1.11, @/1.11
label in12 "VIN2"
label in13 "CPU VSOC"
compute in13 @*1.11, @/1.11
label in14 "CHIPSET1 1.8V"
compute in14 @*1.11, @/1.11
label temp1 "Motherboard"
label temp2 "CPU Socket"
ignore temp3 # Produces seemingly garbage values
ignore temp4 # Seems unused: Sits at 23°C regardless of conditions
ignore temp5 # Seems unused: Sits at 26°C regardless of conditions
ignore temp6 # Seems unused: Sits at -9°C regardless of conditions
ignore temp7 # Seems unused: Sits at 26°C regardless of conditions
# temp8~12 are "virtual" sensors configured by the BIOS depending on the
# temperature sources used for PWM fan control. Typically they are just
# copied over from the EC sensors.
# Using the EC sensors (asusec) directly will be more reliable than these
ignore temp8
ignore temp9
ignore temp10
ignore temp11
ignore temp12
label temp13 "CPU Tctl"
label fan1 "CHA_FAN1"
label fan2 "CPU_FAN"
label fan3 "CHA_FAN2"
label fan4 "CHA_FAN3"
label fan5 "CHA_FAN4"
label fan6 "W_PUMP+"
# Needs https://github.com/hramrach/lm-sensors/pull/12 to not have wrong values
label pwm1 "CHA_FAN1"
label pwm2 "CPU_FAN"
label pwm3 "CHA_FAN2"
label pwm4 "CHA_FAN3"
label pwm5 "CHA_FAN4"
label pwm6 "W_PUMP+"
# spd5118 does not autodetect these sensors, so they have to be added manually
# each boot with:
# # echo spd5118 0x50 > /sys/bus/i2c/devices/i2c-0/new_device
# # echo spd5118 0x52 > /sys/bus/i2c/devices/i2c-0/new_device
# # echo spd5118 0x50 > /sys/bus/i2c/devices/i2c-1/new_device
# # echo spd5118 0x52 > /sys/bus/i2c/devices/i2c-1/new_device
# Also needs https://github.com/hramrach/lm-sensors/pull/11 to parse correctly
chip "spd5118-i2c-0-50" # Path: /sys/devices/platform/AMDI0010:01/i2c-0
label temp1 "DIMM_E1"
chip "spd5118-i2c-0-52"
label temp1 "DIMM_G1"
chip "spd5118-i2c-1-50" # Path: /sys/devices/platform/AMDI0010:02/i2c-1
label temp1 "DIMM_A1"
chip "spd5118-i2c-1-52"
label temp1 "DIMM_C1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment