diff --git a/etc/sensors.conf.eg b/etc/sensors.conf.eg index 95b79e5b..03da07c4 100644 --- a/etc/sensors.conf.eg +++ b/etc/sensors.conf.eg @@ -2270,3 +2270,18 @@ chip "adm1031-*" chip "w83l785ts-*" label temp1 "CPU Diode" + +chip "lm92-*" + + label temp "CPU Temp" + +# Change limits as you see fit +# set temp_low 14 +# set temp_high 60 +# set temp_crit 72 +# Hysteresis is computed from critical limit for Linux 2.6, +# and from high limit for Linux 2.4. That might change in the future. +# Whatever, the same relative hysteresis is used for all of low, high +# and critical limits. +# set temp_hyst 70 # Linux 2.6 +# set temp_hyst 58 # Linux 2.4 diff --git a/lib/chips.c b/lib/chips.c index 374c046b..2ac8cb10 100644 --- a/lib/chips.c +++ b/lib/chips.c @@ -4747,7 +4747,7 @@ static sensors_chip_feature lm92_features[] = { SENSORS_LM92_TEMP_CRIT, "temp_crit", SENSORS_LM92_TEMP, SENSORS_LM92_TEMP, RW, LM92_SYSCTL_TEMP, VALUE(4), 4 }, { SENSORS_LM92_TEMP_HYST, "temp_hyst", SENSORS_LM92_TEMP, SENSORS_LM92_TEMP, - RW, LM92_SYSCTL_TEMP, VALUE(5), 4 }, + RW, LM92_SYSCTL_TEMP, VALUE(5), 4 , "temp1_crit_hyst", 3 }, { SENSORS_LM92_ALARMS, "alarms", NOMAP, NOMAP, R, LM92_SYSCTL_ALARMS, VALUE(1), 0 }, { 0 } diff --git a/lib/proc.c b/lib/proc.c index f5b1222c..14c1080d 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -487,6 +487,8 @@ int getsysname(const sensors_chip_feature *feature, char *sysname, { "temp_hyst", "temp1_max_hyst", TEMPMAG }, { "temp_low", "temp1_min", TEMPMAG }, { "temp_over", "temp1_max", TEMPMAG }, + { "temp_high", "temp1_max", TEMPMAG }, + { "temp_crit", "temp1_crit", TEMPMAG }, { "pwm1", "pwm1", 0, "fan1_pwm" }, { "pwm2", "pwm2", 0, "fan2_pwm" }, { "pwm3", "pwm3", 0, "fan3_pwm" },