Skip to contentSkip to conversation

"Built-in" via686a sensors names

lm-sensors Ian Pilcher 2 participants 4 messages Oct 30, 2006 – Oct 31, 2006

lore
Share & tools
lore
#0 lore raw

The gkrellm package in Fedora Extras 6 has been patched to use libsensors. This causes it to fail to detect the voltage sensors on my Abit VP6 motherboard:

[pilcher at home ~]$ gkrellm -d 0x80
--- GKrellM 2.2.9 ---
hddtemp_daemon_read: can't connect to 127.0.0.1:7634. libsensors error determining type for: via686a at 6000/2.0V libsensors error determining type for: via686a at 6000/2.5V libsensors error determining type for: via686a at 6000/3.3V libsensors error determining type for: via686a at 6000/5.0V libsensors error determining type for: via686a at 6000/12V libsensors error determining type for: via686a at 6000/alarms

gkrellm expects voltage sensors to to be named "inX", but it is getting back the "built-in" names such as "2.0V", etc. (Built-in names which, BTW, are incorrect for my motherboard.)

While I understand the desire to provide meaningful output, this seems to be a case where the library is being too clever by half. Shouldn't the library just return the "raw" name (in0, etc.) and let the human- readable names be defined in sensors.conf?

Or am I missing something...

Thanks!

Signature · 3 lines
====================================
Ian Pilcher                                        i.pilcher at comcast.net
====================================
#1 lore raw

Hi Ian,

Quoted 14 lines · Ian Pilcher

The gkrellm package in Fedora Extras 6 has been patched to use libsensors. This causes it to fail to detect the voltage sensors on my Abit VP6 motherboard:

[pilcher at home ~]$ gkrellm -d 0x80
--- GKrellM 2.2.9 ---
hddtemp_daemon_read: can't connect to 127.0.0.1:7634. libsensors error determining type for: via686a at 6000/2.0V libsensors error determining type for: via686a at 6000/2.5V libsensors error determining type for: via686a at 6000/3.3V libsensors error determining type for: via686a at 6000/5.0V libsensors error determining type for: via686a at 6000/12V libsensors error determining type for: via686a at 6000/alarms

Quoted 8 lines

gkrellm expects voltage sensors to to be named "inX", but it is getting back the "built-in" names such as "2.0V", etc. (Built-in names which, BTW, are incorrect for my motherboard.)

While I understand the desire to provide meaningful output, this seems to be a case where the library is being too clever by half. Shouldn't the library just return the "raw" name (in0, etc.) and let the human- readable names be defined in sensors.conf?

libsensors returns the old 2.4 kernel symbol names, which were not standard. Programs should not make any assumption about these symbol names, they are arbitrary.

This was admittedly a design error, which is why the names where standardized in kernel 2.6, but for now applications still go through the old names in libsensors for compatibility reasons (sensors.conf references the old names). We hope to have an alternative access method in lm_sensors 2.11.0, which would solve the problem, but it will only support 2.6 kernels, and will require a new sensors.conf file.

Quoted 1 line

Or am I missing something...

This is a bug in Fedora and/or gkrellm. What do you expect from us by reporting it on the lm_sensors list?

--
Jean Delvare

#2 lore raw
In reply to Ian Pilcher
Quoted 2 lines · Jean Delvare

This is a bug in Fedora and/or gkrellm. What do you expect from us by reporting it on the lm_sensors list?

I guess it would be a bug in gkrellm, since it's making the assumption that a voltage sensor will be named "inX". OTOH, I'm not really sure what else an application is supposed to do, since there doesn't appear to be an API to determine the type of a sensor.

Mostly, I wanted to start a discussion about whether the current behavior is useful. From what you say about 2.11.0, it sounds like the problems it causes have been recognized, which is good news.

Thanks!

Signature · 3 lines
====================================
Ian Pilcher                                        i.pilcher at comcast.net
====================================
#3 lore raw
In reply to Ian Pilcher

Hi Ian,

Quoted 8 lines · Ian Pilcher
Quoted 2 lines · Jean Delvare

This is a bug in Fedora and/or gkrellm. What do you expect from us by reporting it on the lm_sensors list?

I guess it would be a bug in gkrellm, since it's making the assumption that a voltage sensor will be named "inX". OTOH, I'm not really sure what else an application is supposed to do, since there doesn't appear to be an API to determine the type of a sensor.

Indeed, this part is missing from the current API, has been identified as such, and should be added in a near future. Right now, applications must either include device-specific code to format the values properly (as sensors does), or display only numbers without units (as sensors -u does). I guess this is the major reason why the author of gkrellm never wanted to use libsensors in the first place.

Quoted 3 lines

Mostly, I wanted to start a discussion about whether the current behavior is useful. From what you say about 2.11.0, it sounds like the problems it causes have been recognized, which is good news.

The current behavior must be somewhat useful, as a dozen applications have been using it for many years. But it's admittedly suboptimal. Something better should be available soon (say mid-2007), making it possible for application authors to write only generic code and still handle all devices propely with nicely formatted output (Linux 2.6 only.)

--
Jean Delvare