Re: Disable libsensors in 2.2.9
Ian Pilcher <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.gkrellm |
|---|---|
| Message-ID | <[email protected]> |
Bill WIlson wrote:
> 2.2.9 doesn't use libsensors and uses sysfs only, so unless there is a patched
> 2.2.9 I'm not aware of, there must be something else going on. What's
> indicating that 2.2.9 is using libsensors?
[pilcher@home ~]$ ldd /usr/bin/gkrellm
...
libsensors.so.3 => /usr/lib/libsensors.so.3 (0x4f3db000)
...
Am I misinterpreting this?
>
>>From a terminal, you can look at sensor debug output and let me know
> what you get. Run:
>
> gkrellm -d 0x80
>
> The debug output shows the directory sensor data is coming
> from and you can look there to investigate why you aren't getting
> voltages.
Looks like it must have been patched.
[pilcher@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@6000/2.0V
libsensors error determining type for: via686a@6000/2.5V
libsensors error determining type for: via686a@6000/3.3V
libsensors error determining type for: via686a@6000/5.0V
libsensors error determining type for: via686a@6000/12V
libsensors error determining type for: via686a@6000/alarms
load_sensors_config: <sensor_config_version> <1>
load_sensors_config: <sensor_float_factor> <10000>
load_sensors_config: <gkrellm_float_factor> <1000>
load_sensors_config: <"Current> <CPU1 Temp." "via686a@6000/temp1" 10000
0 0 0>
load_sensors_config: <"Current> <CPU2 Temp." "via686a@6000/temp2" 10000
0 0 0>
load_sensors_config: <"CPU1(FAN1)> <Speed" "via686a@6000/fan1" 10000 0 0 0>
load_sensors_config: <"CPU2(FAN2)> <Speed" "via686a@6000/fan2" 10000 0 0 0>
load_sensors_config: <units_fahrenheit> <0>
load_sensors_config: <volt_display_mode> <0>
At first, I thought that the "2.0V", "2.5V", etc., were coming from my
sensors.conf:
chip "via686a-*"
# These are the labels that the VP6 BIOS uses
label "2.0V" "Vcore" # in0
label "2.5V" "Vtt" # in1 - always around 1.6V, despite
the name
label "3.3V" "3.3V" # in2
label "5.0V" "5V" # in3
label "12V" "12V" # in4
However, I've tried replacing them with:
label in0 "Vcore" # in0
label in1 "Vtt" # in1 - always around 1.6V, despite the name
label in2 "3.3V" # in2
label in3 "5V" # in3
label in4 "12V" # in4
gkrellm -d 0x80 still gives the same message (and still no voltage
sensors), but running sensors on the command line now gives the
incorrect built-in names.
Google found the patch that's been applied to add libsensors support to
2.2.9. Here is the portion that's causing the error:
+ if (!strncmp(feature->name, "temp", 4))
+ type = SENSOR_TEMPERATURE;
+ else if (!strncmp(feature->name, "fan", 3))
+ type = SENSOR_FAN;
+ else if (!strncmp(feature->name, "in", 2))
+ type = SENSOR_VOLTAGE;
+ else {
+ if (_GK.debug_level & DEBUG_SENSORS)
+ printf("libsensors error determining type for: %s\n", id_name);
+ continue;
+ }
Basically the code is assuming that all voltage sensors will be named
"inX". The problem is that libsensors has a built-in mapping for the
via686a chip, so the sensor names actually come back as "2.0V", etc.
--
========================================================================
Ian Pilcher [email protected]
========================================================================
_______________________________________________
Gkrellm mailing list
[email protected]
http://lists.jutley.org/cgi-bin/mailman/listinfo/gkrellm