* [lm-sensors] "sensord --rrd-file" cant't find a sensor
@ 2007-09-05 11:26 Sebastian Thias
2007-09-18 18:56 ` Jean Delvare
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Sebastian Thias @ 2007-09-05 11:26 UTC (permalink / raw)
To: lm-sensors
Hi lm-sensors team,
I'm using lm-sensors 2.10.4 / sensord 0.6.3
sensord is able to log my sensor-readings (from a w83793-chip) to syslog
without problems:
--8<-----------------------------------------------------------------
Sep 5 12:54:04 capitol sensord: sensord started
Sep 5 12:54:04 capitol sensord: Chip: w83793-i2c-0-2f
Sep 5 12:54:04 capitol sensord: Adapter: SMBus I801 adapter at 0400
Sep 5 12:54:04 capitol sensord: VCoreA: 1.23
Sep 5 12:54:04 capitol sensord: -in0_min: 0.80
-->8-----------------------------------------------------------------
Using
sensord --rrd-file /var/log/sensord
does not work. It can't initialize the RRD-database, with error-msg:
--8<-----------------------------------------------------------------
Sep 5 12:53:52 capitol sensord: Error creating RRD:
/var/log/sensord.rrd: No sensors detected
-->8-----------------------------------------------------------------
Any idea what could be wrong...?
Thank you very much in advance!
Sebastian Thias
P.S.: please CC to me, as i'm not subscribed to the list. Thanks!
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [lm-sensors] "sensord --rrd-file" cant't find a sensor
2007-09-05 11:26 [lm-sensors] "sensord --rrd-file" cant't find a sensor Sebastian Thias
@ 2007-09-18 18:56 ` Jean Delvare
2007-09-18 19:26 ` Jean Delvare
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2007-09-18 18:56 UTC (permalink / raw)
To: lm-sensors
Hi Sebastian,
On Wed, 05 Sep 2007 13:26:25 +0200, Sebastian Thias wrote:
> Hi lm-sensors team,
>
> I'm using lm-sensors 2.10.4 / sensord 0.6.3
>
> sensord is able to log my sensor-readings (from a w83793-chip) to syslog
> without problems:
> --8<-----------------------------------------------------------------
> Sep 5 12:54:04 capitol sensord: sensord started
> Sep 5 12:54:04 capitol sensord: Chip: w83793-i2c-0-2f
> Sep 5 12:54:04 capitol sensord: Adapter: SMBus I801 adapter at 0400
> Sep 5 12:54:04 capitol sensord: VCoreA: 1.23
> Sep 5 12:54:04 capitol sensord: -in0_min: 0.80
> -->8-----------------------------------------------------------------
>
> Using
> sensord --rrd-file /var/log/sensord
> does not work. It can't initialize the RRD-database, with error-msg:
>
> --8<-----------------------------------------------------------------
> Sep 5 12:53:52 capitol sensord: Error creating RRD:
> /var/log/sensord.rrd: No sensors detected
> -->8-----------------------------------------------------------------
>
> Any idea what could be wrong...?
sensord simply lacks support for the w83793 driver, which is rather
recent.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [lm-sensors] "sensord --rrd-file" cant't find a sensor
2007-09-05 11:26 [lm-sensors] "sensord --rrd-file" cant't find a sensor Sebastian Thias
2007-09-18 18:56 ` Jean Delvare
@ 2007-09-18 19:26 ` Jean Delvare
2007-09-19 7:25 ` Sebastian Thias, ATEBIS GmbH
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2007-09-18 19:26 UTC (permalink / raw)
To: lm-sensors
[-- Attachment #1: Type: text/plain, Size: 588 bytes --]
Hi again Sebastian,
On Tue, 18 Sep 2007 20:56:17 +0200, Jean Delvare wrote:
> On Wed, 05 Sep 2007 13:26:25 +0200, Sebastian Thias wrote:
> > Any idea what could be wrong...?
>
> sensord simply lacks support for the w83793 driver, which is rather
> recent.
Here's a patch adding support for the w83793 driver to sensord. It's
untested as I do not have the hardware. You can give it a try and
report.
Known limitations:
* Alarms are not supported.
* You may have to add ignore statements in sensors.conf for missing
features.
--
Jean Delvare
http://khali.linux-fr.org/wishlist.html
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: sensord-w83793.patch --]
[-- Type: text/x-patch; name=sensord-w83793.patch, Size: 4670 bytes --]
Index: prog/sensord/chips.c
===================================================================
--- prog/sensord/chips.c (révision 4797)
+++ prog/sensord/chips.c (copie de travail)
@@ -1285,7 +1285,83 @@
k8temp_names, k8temp_features, 0, 0
};
+/** W83793 **/
+static const char *w83793_names[] = {
+ SENSORS_W83793_PREFIX, NULL
+};
+
+static const FeatureDescriptor w83793_features[] = {
+ { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+ { SENSORS_W83793_FAN(1), SENSORS_W83793_FAN_MIN(1), -1 } },
+ { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+ { SENSORS_W83793_FAN(2), SENSORS_W83793_FAN_MIN(2), -1 } },
+ { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+ { SENSORS_W83793_FAN(3), SENSORS_W83793_FAN_MIN(3), -1 } },
+ { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+ { SENSORS_W83793_FAN(4), SENSORS_W83793_FAN_MIN(4), -1 } },
+ { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+ { SENSORS_W83793_FAN(5), SENSORS_W83793_FAN_MIN(5), -1 } },
+ { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+ { SENSORS_W83793_FAN(6), SENSORS_W83793_FAN_MIN(6), -1 } },
+ { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+ { SENSORS_W83793_FAN(7), SENSORS_W83793_FAN_MIN(7), -1 } },
+ { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+ { SENSORS_W83793_FAN(8), SENSORS_W83793_FAN_MIN(8), -1 } },
+ { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+ { SENSORS_W83793_FAN(9), SENSORS_W83793_FAN_MIN(9), -1 } },
+ { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+ { SENSORS_W83793_FAN(10), SENSORS_W83793_FAN_MIN(10), -1 } },
+ { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+ { SENSORS_W83793_FAN(11), SENSORS_W83793_FAN_MIN(11), -1 } },
+ { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+ { SENSORS_W83793_FAN(12), SENSORS_W83793_FAN_MIN(12), -1 } },
+ { fmtTemps_1, rrdF1, DataType_temperature, 0, 0,
+ { SENSORS_W83793_TEMP(1), SENSORS_W83793_TEMP_CRIT(1), SENSORS_W83793_TEMP_CRIT_HYST(1), -1 } },
+ { fmtTemps_1, rrdF1, DataType_temperature, 0, 0,
+ { SENSORS_W83793_TEMP(2), SENSORS_W83793_TEMP_CRIT(2), SENSORS_W83793_TEMP_CRIT_HYST(2), -1 } },
+ { fmtTemps_1, rrdF1, DataType_temperature, 0, 0,
+ { SENSORS_W83793_TEMP(3), SENSORS_W83793_TEMP_CRIT(3), SENSORS_W83793_TEMP_CRIT_HYST(3), -1 } },
+ { fmtTemps_1, rrdF1, DataType_temperature, 0, 0,
+ { SENSORS_W83793_TEMP(4), SENSORS_W83793_TEMP_CRIT(4), SENSORS_W83793_TEMP_CRIT_HYST(4), -1 } },
+ { fmtTemps_0, rrdF0, DataType_temperature, 0, 0,
+ { SENSORS_W83793_TEMP(5), SENSORS_W83793_TEMP_CRIT(5), SENSORS_W83793_TEMP_CRIT_HYST(5), -1 } },
+ { fmtTemps_0, rrdF0, DataType_temperature, 0, 0,
+ { SENSORS_W83793_TEMP(6), SENSORS_W83793_TEMP_CRIT(6), SENSORS_W83793_TEMP_CRIT_HYST(6), -1 } },
+ { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+ { SENSORS_W83793_IN(0), SENSORS_W83793_IN_MIN(0), SENSORS_W83793_IN_MAX(0), -1 } },
+ { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+ { SENSORS_W83793_IN(1), SENSORS_W83793_IN_MIN(1), SENSORS_W83793_IN_MAX(1), -1 } },
+ { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+ { SENSORS_W83793_IN(2), SENSORS_W83793_IN_MIN(2), SENSORS_W83793_IN_MAX(2), -1 } },
+ { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+ { SENSORS_W83793_IN(3), SENSORS_W83793_IN_MIN(3), SENSORS_W83793_IN_MAX(3), -1 } },
+ { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+ { SENSORS_W83793_IN(4), SENSORS_W83793_IN_MIN(4), SENSORS_W83793_IN_MAX(4), -1 } },
+ { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+ { SENSORS_W83793_IN(5), SENSORS_W83793_IN_MIN(5), SENSORS_W83793_IN_MAX(5), -1 } },
+ { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+ { SENSORS_W83793_IN(6), SENSORS_W83793_IN_MIN(6), SENSORS_W83793_IN_MAX(6), -1 } },
+ { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+ { SENSORS_W83793_IN(7), SENSORS_W83793_IN_MIN(7), SENSORS_W83793_IN_MAX(7), -1 } },
+ { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+ { SENSORS_W83793_IN(8), SENSORS_W83793_IN_MIN(8), SENSORS_W83793_IN_MAX(8), -1 } },
+ { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+ { SENSORS_W83793_IN(9), SENSORS_W83793_IN_MIN(9), SENSORS_W83793_IN_MAX(9), -1 } },
+ { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+ { SENSORS_W83793_IN(10), SENSORS_W83793_IN_MIN(10), SENSORS_W83793_IN_MAX(10), -1 } },
+ { fmtVolt_3, rrdF3, DataType_voltage, 0, 0,
+ { SENSORS_W83793_VID0, -1 } },
+ { fmtVolt_3, rrdF3, DataType_voltage, 0, 0,
+ { SENSORS_W83793_VID1, -1 } },
+ { NULL }
+};
+
+static const ChipDescriptor w83793_chip = {
+ w83793_names, w83793_features, 0, 0
+};
+
+
/** ALL **/
const ChipDescriptor * const knownChips[] = {
@@ -1314,5 +1390,6 @@
&f71805f_chip,
&vt1211_chip,
&k8temp_chip,
+ &w83793_chip,
NULL
};
[-- Attachment #3: Type: text/plain, Size: 153 bytes --]
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [lm-sensors] "sensord --rrd-file" cant't find a sensor
2007-09-05 11:26 [lm-sensors] "sensord --rrd-file" cant't find a sensor Sebastian Thias
2007-09-18 18:56 ` Jean Delvare
2007-09-18 19:26 ` Jean Delvare
@ 2007-09-19 7:25 ` Sebastian Thias, ATEBIS GmbH
2007-09-20 8:28 ` Sebastian Thias, ATEBIS GmbH
2007-09-20 11:20 ` Jean Delvare
4 siblings, 0 replies; 6+ messages in thread
From: Sebastian Thias, ATEBIS GmbH @ 2007-09-19 7:25 UTC (permalink / raw)
To: lm-sensors
Jean,
thank you very much for your reply and your patch. I'll test it during
the next days and give you report!
Thanks and greetings!
Sebastian
Jean Delvare schrieb:
> Hi again Sebastian,
>
> On Tue, 18 Sep 2007 20:56:17 +0200, Jean Delvare wrote:
>> On Wed, 05 Sep 2007 13:26:25 +0200, Sebastian Thias wrote:
>>> Any idea what could be wrong...?
>> sensord simply lacks support for the w83793 driver, which is rather
>> recent.
>
> Here's a patch adding support for the w83793 driver to sensord. It's
> untested as I do not have the hardware. You can give it a try and
> report.
>
> Known limitations:
> * Alarms are not supported.
> * You may have to add ignore statements in sensors.conf for missing
> features.
--
ATEBIS GmbH
Welterstraße 57
57072 Siegen
Internet: www.atebis.info
eMail: post@atebis.info
Telefon: 0271-31316950
Telefax: 0271-31316951
Handelsregister: Siegen, HRB 8330
USt-IdNr.: DE 254 237 499
Geschäftsführer: Mario Afholderbach, Sebastian Thias
Sitz der Gesellschaft: Siegen
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [lm-sensors] "sensord --rrd-file" cant't find a sensor
2007-09-05 11:26 [lm-sensors] "sensord --rrd-file" cant't find a sensor Sebastian Thias
` (2 preceding siblings ...)
2007-09-19 7:25 ` Sebastian Thias, ATEBIS GmbH
@ 2007-09-20 8:28 ` Sebastian Thias, ATEBIS GmbH
2007-09-20 11:20 ` Jean Delvare
4 siblings, 0 replies; 6+ messages in thread
From: Sebastian Thias, ATEBIS GmbH @ 2007-09-20 8:28 UTC (permalink / raw)
To: lm-sensors
Hi Jean,
I applied the patch and recompiled lm_sensors.
Trying sensord with your patch yielded:
sensord: Error getting sensor validity: w83793/#10
Sensord even gives this error-message if I add ignore statements for all
sensor-features in sensors.conf.
It works, though, if I comment out the element
SENSORS_W83793_IN(10)
in chips.c
Thanks a lot!
Sincerely
Sebastian
Jean Delvare schrieb:
> Hi again Sebastian,
>
> On Tue, 18 Sep 2007 20:56:17 +0200, Jean Delvare wrote:
>> On Wed, 05 Sep 2007 13:26:25 +0200, Sebastian Thias wrote:
>>> Any idea what could be wrong...?
>> sensord simply lacks support for the w83793 driver, which is rather
>> recent.
>
> Here's a patch adding support for the w83793 driver to sensord. It's
> untested as I do not have the hardware. You can give it a try and
> report.
>
> Known limitations:
> * Alarms are not supported.
> * You may have to add ignore statements in sensors.conf for missing
> features.
>
>
--
ATEBIS GmbH
Welterstraße 57
57072 Siegen
Internet: www.atebis.info
eMail: post@atebis.info
Telefon: 0271-31316950
Telefax: 0271-31316951
Handelsregister: Siegen, HRB 8330
USt-IdNr.: DE 254 237 499
Geschäftsführer: Mario Afholderbach, Sebastian Thias
Sitz der Gesellschaft: Siegen
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [lm-sensors] "sensord --rrd-file" cant't find a sensor
2007-09-05 11:26 [lm-sensors] "sensord --rrd-file" cant't find a sensor Sebastian Thias
` (3 preceding siblings ...)
2007-09-20 8:28 ` Sebastian Thias, ATEBIS GmbH
@ 2007-09-20 11:20 ` Jean Delvare
4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2007-09-20 11:20 UTC (permalink / raw)
To: lm-sensors
Hi Sebastian,
On Thu, 20 Sep 2007 10:28:11 +0200, Sebastian Thias, ATEBIS GmbH wrote:
> I applied the patch and recompiled lm_sensors.
>
> Trying sensord with your patch yielded:
>
> sensord: Error getting sensor validity: w83793/#10
>
> Sensord even gives this error-message if I add ignore statements for all
> sensor-features in sensors.conf.
>
> It works, though, if I comment out the element
> SENSORS_W83793_IN(10)
> in chips.c
Oops, yes, you're correct. The W83793 has no in10. I've fixed my patch
and applied it to SVN now.
> Thanks a lot!
You're welcome. Thanks for your testing and report.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-09-20 11:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-05 11:26 [lm-sensors] "sensord --rrd-file" cant't find a sensor Sebastian Thias
2007-09-18 18:56 ` Jean Delvare
2007-09-18 19:26 ` Jean Delvare
2007-09-19 7:25 ` Sebastian Thias, ATEBIS GmbH
2007-09-20 8:28 ` Sebastian Thias, ATEBIS GmbH
2007-09-20 11:20 ` Jean Delvare
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.