First shot at Asus M2N-SLI Deluxe config file
Subsystems (3)
All,
Here's a first shot at a config file for an Asus M2N-SLI Deluxe motherboard. It may also work for other versions of the M2N-SLI; I don't know.
Matt Roberds
# First cut at a minimal sensors3.conf for Asus M2N-SLI Deluxe motherboard # Matt Roberds, 20 Feb 2008
chip "it8716-*"
# Voltages
label in0 "VCore"
label in1 "VDDR"
ignore in2 # 3.3 V?
label in3 "+5V" # VCC
label in4 "+12V"
label in5 "-12V"
label in6 "-5V"
label in7 "5VSB" # VCCH
label in8 "VBat"
compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1)
compute in4 ((30/10)+1)*@ , @/((30/10)+1)
compute in7 ((6.8/10)+1)*@ , @/((6.8/10)+1)# in5 and in6 appear to be wrong (I get around -17 V and -9 V with these # 'compute' lines), but I'm not sure how to adjust the 'compute' lines.
compute in5 (1+232/56)*@ - 4.096*232/56 , (@ + 4.096*232/56)/(1+232/56)
compute in6 (1+120/56)*@ - 4.096*120/56 , (@ + 4.096*120/56)/(1+120/56)# Temperatures
# Not sure. temp1 always reads close to what k8temp reports for Core0.
# temp3 always reads approximate ambient temperature. temp2 is between # temp1 and temp3.
# Fans
label fan1 "CPU Fan"
label fan2 "Chassis Fan 1"
label fan3 "Power Supply Fan"chip "ADT7475-*"
# For some reason, ignoring vccp, remote1, and remote2 doesn't work. Is
# it because they have ALARM set?
# Voltages
ignore vccp
label vcc "+3.3V"# Temperatures
# Not 100% sure. remote1 and 2 don't appear to be hooked up; local is
# on board the adt7475 chip itself.
ignore remote1
ignore remote2
# Fans
label fan1 "Chassis Fan 4"
label fan2 "Chassis Fan 2"
label fan3 "Chassis Fan 3"ignore fan4
chip "k8temp-*"
label temp1 "Core0 Temp"
label temp3 "Core1 Temp"
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Matt,
Quoted 3 lines · Matt Roberds
Here's a first shot at a config file for an Asus M2N-SLI Deluxe motherboard. It may also work for other versions of the M2N-SLI; I don't know.
Note, I have a configuration file for the Asus M2N32-SLI; it might have common points with your board:
http://khali.linux-fr.org/devel/lm-sensors/sensors-Asus-M2N32-SLI.conf
Once you have a good configuration file for your board, you could add it to the wiki:
http://www.lm-sensors.org/wiki/Configurations/Asus
Comments on your configuration file:
Quoted 11 lines
# First cut at a minimal sensors3.conf for Asus M2N-SLI Deluxe motherboard # Matt Roberds, 20 Feb 2008
chip "it8716-*"
# Voltages
label in0 "VCore" label in1 "VDDR"ignore in2 # 3.3 V?
I would be very surprised if +3.3V wasn't monitored. Doesn't it show in the BIOS?
Quoted 11 lines
label in3 "+5V" # VCC label in4 "+12V" label in5 "-12V" label in6 "-5V" label in7 "5VSB" # VCCH label in8 "VBat"compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1) compute in4 ((30/10)+1)*@ , @/((30/10)+1) compute in7 ((6.8/10)+1)*@ , @/((6.8/10)+1)
Quoted 5 lines
# in5 and in6 appear to be wrong (I get around -17 V and -9 V with these # 'compute' lines), but I'm not sure how to adjust the 'compute' lines.compute in5 (1+232/56)*@ - 4.096*232/56 , (@ + 4.096*232/56)/(1+232/56) compute in6 (1+120/56)*@ - 4.096*120/56 , (@ + 4.096*120/56)/(1+120/56)
Most modern motherboards do not monitor -5V, and in general they don't monitor -12V either. Look in your BIOS, it probably doesn't display these either. So either these voltage inputs are unused, or they are used for something else. Try commenting out the compute statements and see if the raw voltage value rings a bell. Comparing with what the BIOS displays might help as well.
Quoted 6 lines
# Temperatures
# Not sure. temp1 always reads close to what k8temp reports for Core0.
# temp3 always reads approximate ambient temperature. temp2 is between # temp1 and temp3.
What does the BIOS display?
Quoted 8 lines
# Fans
label fan1 "CPU Fan" label fan2 "Chassis Fan 1" label fan3 "Power Supply Fan"
Quoted 4 lines
chip "ADT7475-*"
# For some reason, ignoring vccp, remote1, and remote2 doesn't work. Is
# it because they have ALARM set?
"vccp", "remote1" and "remote2" are not standard sysfs names, so I am not surprised that libsensors doesn't recognize them. Should be in<N> and temp<N>.
Quoted 5 lines
# Voltages
ignore vccp label vcc "+3.3V"
"vcc" isn't a standard name either, I guess that this label statement has no effect?
Quoted 22 lines
# Temperatures
# Not 100% sure. remote1 and 2 don't appear to be hooked up; local is
# on board the adt7475 chip itself.ignore remote1
ignore remote2# Fans
label fan1 "Chassis Fan 4" label fan2 "Chassis Fan 2" label fan3 "Chassis Fan 3"ignore fan4
chip "k8temp-*"
label temp1 "Core0 Temp"
label temp3 "Core1 Temp"
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 6 lines · Matt Roberds
All,
Here's a first shot at a config file for an Asus M2N-SLI Deluxe motherboard. It may also work for other versions of the M2N-SLI; I don't know.
I do, it won't work the "Asus M2N-SLI" and the "Asus M2N-SLI Deluxe" are 2 completely different boards, don't know why Asus choose these confusing names, but that is how things are.
Regards,
Hans
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 3 lines · Jean Delvare
Quoted 2 lines · Matt Roberds
Here's a first shot at a config file for an Asus M2N-SLI Deluxe motherboard.
My second shot is attached. I have changed the name to inlclude the "deluxe" designation. This second shot also requires a small patch to Jordan Crouse's latest adt7475.c driver to work; a diff is attached as well.
Quoted 6 lines
Quoted 3 lines
chip "it8716-*"
ignore in2 # 3.3 V?
I would be very surprised if +3.3V wasn't monitored. Doesn't it show in the BIOS?
It shows in the BIOS, but appears to be monitored by the adt7475 chip, not the it8716. This input always reads 0 V on the it8716.
Quoted 3 lines
Most modern motherboards do not monitor -5V, and in general they don't monitor -12V either. Look in your BIOS, it probably doesn't display these either.
Running it with no compute lines gave 0 V, and the BIOS only reports VCore, +3.3V, +5V, and +12V values, so I set the -5V and -12V to ignore.
Quoted 5 lines
Quoted 3 lines
# Not sure. temp1 always reads close to what k8temp reports for Core0.
# temp3 always reads approximate ambient temperature. temp2 is between # temp1 and temp3.What does the BIOS display?
It only displays two temperatures: CPU and MB. I have revised the labels based on the temperature readings and the labels in your M2N32-SLI configuration.
Quoted 8 lines
Quoted 4 lines
chip "ADT7475-*"
# For some reason, ignoring vccp, remote1, and remote2 doesn't work. # Is it because they have ALARM set?
"vccp", "remote1" and "remote2" are not standard sysfs names, so I am not surprised that libsensors doesn't recognize them. Should be in<N> and temp<N>.
Those names are coming from the adt7475 driver. I modified Jordan Crouse's latest driver to report the standard names; a diff is attached.
Quoted 4 lines
Quoted 1 line
label vcc "+3.3V""vcc" isn't a standard name either, I guess that this label statement has no effect?
Correct. With the attached diff, it works again.
Matt Roberds
# Second cut at a minimal sensors3.conf for Asus M2N-SLI Deluxe motherboard # Based on existing entries in sensors3.conf and Jean Delvare's configuration
# for the Asus M2N32-SLI # Matt Roberds, 21 Feb 2008
chip "it8716-*"
# Voltages
label in0 "VCore"
label in1 "VDDR" # Not in BIOS ignore in2 # 3.3 V is monitored by adt7475
label in3 "+5V" # VCC
label in4 "+12V"
ignore in5 # -12 V not monitored
ignore in6 # -5 V not monitored
label in7 "5VSB" # Not in BIOS
label in8 "VBat" # Not in BIOS
# Vcore, VDDR, and Vbat are connected directly, so no compute # line is needed for these. For +5V, +12V and 5VSB, the default # resistors seem to have been used.
compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1)
compute in4 ((30/10)+1)*@ , @/((30/10)+1)
compute in7 ((6.8/10)+1)*@ , @/((6.8/10)+1)
# Temperatures
# Not sure. temp1 always reads close to what k8temp reports for Core0,
# and to what the BIOS reports as the CPU temperature. temp2 is between # temp1 and temp3; it is close to what the BIOS reports as the motherboard # temperature. temp3 always reads approximate ambient temperature.
label temp1 "CPU Temp"
label temp2 "MB Temp"
label temp3 "MB Temp"
# Fans
label fan1 "CPU Fan"
label fan2 "Chassis Fan 1"
label fan3 "Power Supply Fan" # Ignore fans you don't have
# ignore fan2
# ignore fan3
chip "adt7475-*"
# Note: this section depends on some further hacks I have made to # Jordan Crouse's driver
# Voltages
ignore in1
label in2 "+3.3V"# Temperatures
# temp1 and temp3 don't appear to be hooked up; temp2 is on board the # adt7475 chip itself.
ignore temp1
label temp2 "ADT7475 Temp"
ignore temp3
# Fans
label fan1 "Chassis Fan 4"
label fan2 "Chassis Fan 2"
label fan3 "Chassis Fan 3"ignore fan4
# Ignore fans you don't have
# ignore fan1 # ignore fan2 # ignore fan3
chip "k8temp-*"
label temp1 "core0 temp"
label temp3 "core1 temp"
*** adt7475-jc-1.c 2008-01-24 10:24:14.000000000 -0600
--- adt7475-mcr-1.c 2008-02-21 07:47:25.000000000 -0600
***************
*** 218,225 ****
switch(sattr->nr) {
case LABEL:
! return sprintf(buf, "%s\n",
! sattr->index == 0 ? "vccp" : "vcc");
case ALARM:
return sprintf(buf, "%d\n",
(data->alarms >> (sattr->index + 1)) & 1);
--- 218,225 ----
switch(sattr->nr) {
case LABEL:
! return sprintf(buf, "in%s\n",
! sattr->index == 0 ? "1" : "2");
case ALARM:
return sprintf(buf, "%d\n",
(data->alarms >> (sattr->index + 1)) & 1);
***************
*** 257,263 ****
static ssize_t show_temp(struct device *dev, struct device_attribute *attr,
char *buf)
{
! static const char *labels[] = {"remote1", "local", "remote2"};
struct adt7475_data *data = adt7475_update_device(dev); struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr);
--- 257,264 ----
static ssize_t show_temp(struct device *dev, struct device_attribute *attr,
char *buf)
{
! static const char *labels[] = {"temp1", "temp2", "temp3"};
! /* was remote1, local, remote2 - mcr */
struct adt7475_data *data = adt7475_update_device(dev); struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr);
***************
*** 750,756 ****
const char *name;
struct attribute_group group;
} adt7475_chips[ADT7475_MAX_ID] = {
! { .name = "ADT7475",
.group = {
.attrs = adt7475_attrs,
}
--- 751,757 ----
const char *name;
struct attribute_group group;
} adt7475_chips[ADT7475_MAX_ID] = {
! { .name = "adt7475",
.group = {
.attrs = adt7475_attrs,
}
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 9 lines · Matt Roberds
Quoted 3 lines · Jean Delvare
Quoted 2 lines · Matt Roberds
Here's a first shot at a config file for an Asus M2N-SLI Deluxe motherboard.
My second shot is attached. I have changed the name to inlclude the "deluxe" designation. This second shot also requires a small patch to Jordan Crouse's latest
adt7475.cdriver to work; a diff is attached as well.
Thanks. Patch integrated into the driver and I also removed the URL to the datasheet due to the upstream churn. Full patch is attached.
CCing Mark to put this into his queue for 2.6.26.
Jordan
[PATCH] hwmon: Add a driver for the ADT7475 thermal sensor
From: Jordan Crouse <[email protected]>
HWMON driver for the ADT7475 thermal sensor.
---
Documentation/hwmon/adt7475 | 110 +++++ drivers/hwmon/Kconfig | 10 drivers/hwmon/Makefile | 2 drivers/hwmon/adt7475.c | 958 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 1080 insertions(+), 0 deletions(-)
Documentation/hwmon/adt7475 new file +110 -0
@@ -0,0 +1,110 @@ +This describes the interface for the ADT7475 driver: + +(there are 4 fans, numbered fan1 to fan4): + +fanX_input Read the current speed of the fan (in RPMs) +fanX_min Read/write the minimum speed of the fan. Dropping + below this sets an alarm. + +(there are three PWMs, numbered pwm1 to pwm3): + +pwmX Read/write the current duty cycle of the PWM. Writes + only have effect when auto mode is turned off (see + below). + +pwmX_enable Read/write the PWM configuration based on the following + table: + + 0 - Remote1 temp controls PWMx (auto mode) + 1 - local temp controls PWMx (auto mode) + 2 - remote2 temp controls PWMx (auto mode) + 3 - PWMx runs at full speed + 4 - PWMx is disabled + 5 - Use fastest speed calculated by local and remote2 + 6 - Use fastest speed calculated by all three channels + 7 - Manual mode + +pwmX_freq Read/write the PWM frequency. The value returned is + an index into the following table: + + 0x0 - 11.0 Hz + 0x1 - 14.7 Hz + 0x2 - 22.1 Hz + 0x3 - 29.4 Hz + 0x4 - 35.3 Hz + 0x5 - 44.1 Hz + 0x6 - 58.8 Hz + 0x7 - 88.2 Hz + +pwmX_max Read/write the maximum PWM duty cycle. The PWM + duty cycle will never exceed this. + +pwmX_min Read/write the minimum PWM duty cycle in automatic mode + +(there are three temperature settings numbered temp1 to temp3): + +tempX_input Read the current temperature. The value is in milli + degrees of Celsius. + +tempX_label Returns the "name" of the sensor as described in the + datasheet (remote1, local, or remote2) + +tempX_max Read/write the upper temperature limit - exceeding this + will cause an alarm. + +tempX_min Read/write the lower temperature limit - exceeding this + will cause an alarm. + +tempX_offset Read/write the temperature adjustment offset + +tempX_crit_max Read/write the THERM limit for remote1. Exceeding this + causes the chip to force the processor off. + +tempX_auto_min Read/write the minimum temperature where the fans will + turn on in automatic mode. + +tempX_auto_range Read/write the range over which the automatic fan + control will be executed. The value returned is a + index into the following table: + + 0x0 - 2 C + 0x1 - 2.5 C + 0x2 - 3.33 C + 0x3 - 4 C + 0x4 - 5 C + 0x5 - 6.67 C + 0x6 - 8 C + 0x7 - 10 C + 0x8 - 13.33 C + 0x9 - 16 C + 0xA - 20 C + 0xB - 26.67 C + 0xC - 32 C + 0xD - 40 C + 0xE - 53.33 C + 0xF - 80 C + +tempX_crit_hyst set the temperature range below crit_max where the + fans will stay on - this helps drive the temperature + low enough so it doesn't stay near the edge and + cause THERM to keep tripping. + +tempX_alarm Read a 1 if the max/min alarm is set +tempX_crit_alarm Read a 1 if the critical limit is exceeded +tempX_fault Read a 1 if either temp1 or temp3 diode has a fault + +(There are two voltage settings, in1 and in2): + +inX_input Read the current voltage on VCC. Value is in + millivolts. + +inX_min read/write the minimum voltage limit. + Dropping below this causes an alarm. + +inX_max read/write the maximum voltage limit. + Exceeding this causes an alarm. + +inX_label Return the name of the input as specified in the + datasheet (vcc or vccp) + +inX_alarm Read a 1 if the max/min alarm is set.
drivers/hwmon/Kconfig +10 -0
@@ -153,6 +153,16 @@ config SENSORS_ADT7473 This driver can also be built as a module. If so, the module will be called adt7473. +config SENSORS_ADT7475 + tristate "Analog Devices ADT7475" + depends on I2C && EXPERIMENTAL + help + If you say yes here you get support for the Analog Devices + ADT7475 temperature monitoring chips. + + This driver can also be build as a module. If so, the module + will be called adt7475. + config SENSORS_K8TEMP tristate "AMD Athlon64/FX or Opteron temperature sensor" depends on X86 && PCI && EXPERIMENTAL
drivers/hwmon/Makefile +2 -0
@@ -25,6 +25,8 @@ obj-$(CONFIG_SENSORS_ADM9240) += adm9240.o obj-$(CONFIG_SENSORS_ADS7828) += ads7828.o obj-$(CONFIG_SENSORS_ADT7470) += adt7470.o obj-$(CONFIG_SENSORS_ADT7473) += adt7473.o +obj-$(CONFIG_SENSORS_ADT7475) += adt7475.o + obj-$(CONFIG_SENSORS_APPLESMC) += applesmc.o obj-$(CONFIG_SENSORS_AMS) += ams/ obj-$(CONFIG_SENSORS_ATXP1) += atxp1.o
drivers/hwmon/adt7475.c new file +958 -0
958 lines not on this page · raw message
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 9 lines · Jordan Crouse
Quoted 4 lines · Matt Roberds
My second shot is attached. I have changed the name to inlclude the "deluxe" designation. This second shot also requires a small patch to Jordan Crouse's latest
adt7475.cdriver to work; a diff is attached as well.Thanks. Patch integrated into the driver and I also removed the URL to the datasheet due to the upstream churn. Full patch is attached.
Disclaimer: I haven't tried it yet.
Having said that, in show_voltage(), this patch has
Quoted 3 lines
case LABEL:
return sprintf(buf, "%s\n",
sattr->index= 0 ? "1" : "2");
which I think should be
---
case LABEL:
return sprintf(buf, "in%s\n",
sattr->index = 0 ? "1" : "2");
---
Note the string constant "in".
Matt Roberds
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 1 line · Matt Roberds
Disclaimer: I haven't tried it yet.
I tried it. As is, you get (in part)
---
adt7475-i2c-5-2e
Adapter: SMBus nForce2 adapter at 1c40
1: +0.00 V (min = +0.00 V, max = +2.99 V) ALARM 2: +3.24 V (min = +0.00 V, max = +4.28 V)
---
so I think the "in" constant is needed to turn these into standard names.
Matt Roberds
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 20 lines · Matt Roberds
Quoted 8 lines · Jordan Crouse
Quoted 4 lines · Matt Roberds
My second shot is attached. I have changed the name to inlclude the "deluxe" designation. This second shot also requires a small patch to Jordan Crouse's latest
adt7475.cdriver to work; a diff is attached as well.Thanks. Patch integrated into the driver and I also removed the URL to the datasheet due to the upstream churn. Full patch is attached.
Disclaimer: I haven't tried it yet.
Having said that, in
show_voltage(), this patch hasQuoted 3 lines
case LABEL:
return sprintf(buf, "%s\n",
sattr->index= 0 ? "1" : "2");which I think should be
Quoted 8 lines
---
case LABEL:
return sprintf(buf, "in%s\n",sattr->index = 0 ? "1" : "2");---
Note the string constant "in".
Ah, good catch.
Actually, the xxx_label attributes should be completely removed, those are only meant to be use by drivers which can give an end user presentable labels, other drivers should rely on a proper label being set in /etc/sensors.conf
Regards,
Hans
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 25 lines · Jordan Crouse
Quoted 24 lines · Hans de Goede
Quoted 14 lines · Matt Roberds
Quoted 8 lines · Jordan Crouse
Quoted 4 lines · Matt Roberds
My second shot is attached. I have changed the name to inlclude the "deluxe" designation. This second shot also requires a small patch to Jordan Crouse's latest
adt7475.cdriver to work; a diff is attached as well.Thanks. Patch integrated into the driver and I also removed the URL to the datasheet due to the upstream churn. Full patch is attached.
Disclaimer: I haven't tried it yet.
Having said that, inshow_voltage(), this patch hasQuoted 3 lines
case LABEL:
return sprintf(buf, "%s\n",
sattr->index= 0 ? "1" : "2");Quoted 7 lines
which I think should be
---
case LABEL:
return sprintf(buf, "in%s\n",sattr->index = 0 ? "1" : "2");---
Note the string constant "in".Ah, good catch.
Quoted 8 lines
Quoted 4 lines
Actually, the
xxx_labelattributes should be completely removed, those are only meant to be use by drivers which can give an end user presentable labels, other drivers should rely on a proper label being set in/etc/sensors.confI don't understand the criteria - what do you mean by "presentable labels"?
Sorry, I mean labels like:
Northbridge Temp
CPU Temp
Powersupply1 Temp
Etc, remote / local doesn't say much to the end user, as the user doesn't know where the adt7475 ic is located, nor where the remote temp diode will be, so the default temp1 temp2 labels will be as usefull as locale_temp and remote_temp.
Regards,
Hans
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 23 lines · Hans de Goede
Quoted 14 lines · Matt Roberds
Quoted 8 lines · Jordan Crouse
Quoted 4 lines · Matt Roberds
My second shot is attached. I have changed the name to inlclude the "deluxe" designation. This second shot also requires a small patch to Jordan Crouse's latest
adt7475.cdriver to work; a diff is attached as well.Thanks. Patch integrated into the driver and I also removed the URL to the datasheet due to the upstream churn. Full patch is attached.
Disclaimer: I haven't tried it yet.
Having said that, inshow_voltage(), this patch hasQuoted 3 lines
case LABEL:
return sprintf(buf, "%s\n",
sattr->index= 0 ? "1" : "2");Quoted 7 lines
which I think should be
---
case LABEL:
return sprintf(buf, "in%s\n",sattr->index = 0 ? "1" : "2");---
Note the string constant "in".
Quoted 6 lines
Ah, good catch.
Actually, the
xxx_labelattributes should be completely removed, those are only meant to be use by drivers which can give an end user presentable labels, other drivers should rely on a proper label being set in/etc/sensors.conf
I don't understand the criteria - what do you mean by "presentable labels"?
Jordan
Signature · 10 lines
Jordan Crouse Systems Software Development Engineer Advanced Micro Devices, Inc. _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 39 lines · Jordan Crouse
Quoted 38 lines · Hans de Goede
Quoted 23 lines · Jordan Crouse
Quoted 22 lines · Hans de Goede
Quoted 21 lines · Matt Roberds
Quoted 8 lines · Jordan Crouse
Quoted 4 lines · Matt Roberds
My second shot is attached. I have changed the name to inlclude the "deluxe" designation. This second shot also requires a small patch to Jordan Crouse's latest
adt7475.cdriver to work; a diff is attached as well.Thanks. Patch integrated into the driver and I also removed the URL to the datasheet due to the upstream churn. Full patch is attached.
Disclaimer: I haven't tried it yet.
Having said that, inshow_voltage(), this patch hasQuoted 3 lines
case LABEL:
return sprintf(buf, "%s\n",
sattr->index= 0 ? "1" : "2");which I think should be
---
case LABEL:
return sprintf(buf, "in%s\n",sattr->index = 0 ? "1" : "2");---
Note the string constant "in".Quoted 8 lines
Quoted 6 lines
Ah, good catch.
Actually, the
xxx_labelattributes should be completely removed, those are only meant to be use by drivers which can give an end user presentable labels, other drivers should rely on a proper label being set in/etc/sensors.confI don't understand the criteria - what do you mean by "presentable labels"?
Sorry, I mean labels like:
Northbridge Temp
CPU Temp
Powersupply1 Temp
Quoted 8 lines
Quoted 4 lines
Etc, remote / local doesn't say much to the end user, as the user doesn't know where the adt7475 ic is located, nor where the remote temp diode will be, so the default temp1 temp2 labels will be as usefull as
locale_tempandremote_temp.Okay - I understand. So I should just get rid of all of the labels in
the whole driver?
Yes, the foo#_label attributes are only there for the rare exception when the driver has knowledge about the pcb layouts used / about which motherboard it is operating on and which input is measuring what on that motherboard.
Regards,
Hans
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 35 lines · Hans de Goede
Quoted 23 lines · Jordan Crouse
Quoted 22 lines · Hans de Goede
Quoted 21 lines · Matt Roberds
Quoted 8 lines · Jordan Crouse
Quoted 4 lines · Matt Roberds
My second shot is attached. I have changed the name to inlclude the "deluxe" designation. This second shot also requires a small patch to Jordan Crouse's latest
adt7475.cdriver to work; a diff is attached as well.Thanks. Patch integrated into the driver and I also removed the URL to the datasheet due to the upstream churn. Full patch is attached.
Disclaimer: I haven't tried it yet.
Having said that, inshow_voltage(), this patch hasQuoted 3 lines
case LABEL:
return sprintf(buf, "%s\n",
sattr->index= 0 ? "1" : "2");which I think should be
---
case LABEL:
return sprintf(buf, "in%s\n",sattr->index = 0 ? "1" : "2");---
Note the string constant "in".Quoted 8 lines
Quoted 6 lines
Ah, good catch.
Actually, the
xxx_labelattributes should be completely removed, those are only meant to be use by drivers which can give an end user presentable labels, other drivers should rely on a proper label being set in/etc/sensors.confI don't understand the criteria - what do you mean by "presentable labels"?
Sorry, I mean labels like:
Quoted 8 lines
Northbridge Temp
CPU Temp
Powersupply1 TempEtc, remote / local doesn't say much to the end user, as the user doesn't know where the adt7475 ic is located, nor where the remote temp diode will be, so the default temp1 temp2 labels will be as usefull as
locale_tempandremote_temp.
Okay - I understand. So I should just get rid of all of the labels in
the whole driver?
Jordan
Signature · 10 lines
Jordan Crouse Systems Software Development Engineer Advanced Micro Devices, Inc. _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Matt,
Quoted 8 lines · Matt Roberds
Quoted 2 lines · Matt Roberds
Here's a first shot at a config file for an Asus M2N-SLI Deluxe motherboard.
My second shot is attached. I have changed the name to inlclude the "deluxe" designation. This second shot also requires a small patch to Jordan Crouse's latest
adt7475.cdriver to work; a diff is attached as well.
I've saved this as:
http://www.lm-sensors.org/wiki/Configurations/Asus/M2N-SLI%20Deluxe
so that it doesn't get lost.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors