Skip to content

Instantly share code, notes, and snippets.

@soxfor
Last active April 21, 2017 11:24
Show Gist options
  • Save soxfor/4ff938fa9ac221d188bb27c3ce27ba07 to your computer and use it in GitHub Desktop.
Save soxfor/4ff938fa9ac221d188bb27c3ce27ba07 to your computer and use it in GitHub Desktop.
lm_sensors config for ASRock H81M-VG4 R2.0
#
# ASRock H81M-VG4 R2.0
#
# Got the info needed from
# https://gist.github.com/michalzielanski/52356e6116b3fa94b0350c8956433a07
#
# From Nuvoton NCT6776D Data Sheet:
# - 8-bit Analog to Digital Converter (ADC). Voltage range 0 - 2.048V,
# 8mV LSB (256 steps x 8mV = 2.048V).
# - Scaling equation: (Value * 8mV * (R1 + R2)) / R2 [1]
# (* 8 already done by driver)## From ASRock A-Tuning Utility config file (H81MVG4R2.xml)
# CPU Input Volt Reg: 0x20 R1: 0 R2: 1
# +3.3v Reg: 0x23 R1: 0x22 (34) R2: 0x22 (34)
# +12v Reg: 0x25 R1: 0x38 (56) R2: 0x0A (10)
# +5v Reg: 0x26 R1: 0x14 (20) R2: 0x0A (10)
#
# From nct6776 driver source code (nct6775.c) [2]
# - Registers map:
# 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x550 0x551
# in0 in1 in2 in3 in4 in5 in6 in7 in8
# VCCIN? ? AVCC +3.3 ? +12v +5v 3VSB VBat
#
# [1] http://forums.tweaktown.com/asrock/56753-asrock-e3c224d2i-e3c226d2i-lm-sensors-linux-configuration-post479087.html#post479087
# [2] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/hwmon/nct6775.c
#
chip "nct6776-isa-0290"
label in0 "CPU Input Volt." # As per H81MVGR2.xml, but seems more like CPU SA Voltage
# unknown - not used?
ignore in1
# AVCC - Analog +3.3V power input. Internally supply power to all analog
label in2 AVCC
set in2_min 3.3 * 0.95
set in2_max 3.3 * 1.05
label in3 "+3.3v"
set in3_min 3.3 * 0.95
set in3_max 3.3 * 1.05
# unknown - not used?
ignore in4
label in5 "+12v"
compute in5 @ * ((56 + 10) / 10), @ / ((56 + 10) / 10)
set in5_min 12 * 0.95
set in5_max 12 * 1.05
label in6 "+5v"
compute in6 @ * ((20 + 10) / 10), @ / ((20 + 10) / 10)
set in6_min 5 * 0.95
set in6_max 5 * 1.05
# 3VSB - +3.3V stand-by power supply for the digital circuits
label in7 3VSB
set in7_min 3.3 * 0.95
set in7_max 3.3 * 1.05
label in8 "VBat"
set in8_min 3.0 * 0.90
set in8_max 3.3 * 1.10
label fan1 "Case FAN"
set fan1_min 800
label fan2 "CPU FAN"
set fan2_min 600
# Ignoring other fan inputs since ASRock H81M-VG4 R2.0 only has 2 fan headers
ignore fan3 # AUXFANIN
ignore fan4 # AUXFANIN0
ignore fan5 # AUXFANIN1
ignore fan6 # CPUFANIN2
label temp1 "M/B Temp"
set temp1_max 60
set temp1_max_hyst 55
ignore temp2 # Ignoring CPUTIN since it goes down with CPU load and up when idle
ignore temp3 # AUXTIN
label temp7 "CPU Temp" # PECI Agent 0
set temp7_max 80
set temp7_max_hyst 75
ignore temp8 # PCH_CHIP_TEMP 0ºC
ignore temp9 # PCH_CPU_TEMP 0ºC
ignore temp10 # PCH_MCH_TEMP 0ºC
ignore intrusion0
ignore intrusion1
ignore beep_enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment