Skip to content

Instantly share code, notes, and snippets.

@kotarou3
Last active December 13, 2025 01:01
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"
@uwugression
Copy link

thanks for this :) what is your reading on temp9 though? the default label on my temp9 is AUXTIN5 and it shows 90+ degrees (usually 94 or 95).

I am also struggling with unusually high chipset temperatures in BIOS ramping up to 90 degrees so I wonder if AUXTIN5 is actually the chipset temp?

@kotarou3
Copy link
Author

The raw values I'm getting at the moment are:

nct6798-isa-0290
SYSTIN:
  temp1_input: 35.000
CPUTIN:
  temp2_input: 33.000
AUXTIN0:
  temp3_input: 39.000
AUXTIN1:
  temp4_input: 23.000
AUXTIN2:
  temp5_input: 29.000
AUXTIN3:
  temp6_input: -9.000
AUXTIN4:
  temp7_input: 26.000
PECI Agent 0 Calibration:
  temp8_input: 33.000
Virtual_TEMP:
  temp9_input: 26.000
PCH_CHIP_CPU_MAX_TEMP:
  temp10_input: 0.000
PCH_CHIP_TEMP:
  temp11_input: 0.000
PCH_CPU_TEMP:
  temp12_input: 0.000
TSI0_TEMP:
  temp13_input: 32.375
  
asusec-isa-000a
CPU:
  temp1_input: 33.000
CPU Package:
  temp2_input: 32.000
T_Sensor:
  temp3_input: 26.000
VRM_E:
  temp4_input: 43.000
VRM_W:
  temp5_input: 44.000

In particular, temp8 is exactly equal to the EC's CPU temperature, and temp9 is equal to the EC's T_Sensor temperature, because my fans are configured to use those two temperatures for PWM control in the BIOS

How have you configured your fans in the BIOS?
You can check which fan monitors which sensor with the following command as well:

$ grep . "$(dirname $(grep -l nct6798 /sys/class/hwmon/*/name))"/*_temp_sel
/sys/class/hwmon/hwmon8/pwm1_temp_sel:8
/sys/class/hwmon/hwmon8/pwm2_temp_sel:8
/sys/class/hwmon/hwmon8/pwm2_weight_temp_sel:0
/sys/class/hwmon/hwmon8/pwm3_temp_sel:8
/sys/class/hwmon/hwmon8/pwm4_temp_sel:9
/sys/class/hwmon/hwmon8/pwm5_temp_sel:8
/sys/class/hwmon/hwmon8/pwm6_temp_sel:8

Perhaps if you don't use temp9 for fan PWM control, maybe it defaults to chipset temperature? I have no idea how it gets programmed into the sensor chip though.
Personally, I haven't figured out a way to read the chipset temperature in Linux yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment