Package: wmtemp
Version: 0.0.6-3.3
Severity: normal
Tags: patch

Dear Maintainer,

The system and CPU temperatures are always the same on my system. The problem
seems to be the updates to temp.c for libsensors4 assumed that there would only
be one chip with both sensors, but my system has two different chips. I have
added to temp.c to allow for each sensor to be on its own chip.



-- System Information:
Debian Release: 7.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-0.bpo.2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages wmtemp depends on:
ii  libc6        2.13-38
ii  libsensors4  1:3.3.2-2+deb7u1
ii  libx11-6     2:1.5.0-1+deb7u1
ii  libxext6     2:1.3.1-2+deb7u1
ii  libxpm4      1:3.5.10-1
ii  lm-sensors   1:3.3.2-2+deb7u1

wmtemp recommends no packages.

wmtemp suggests no packages.

-- no debconf information
13c13
< static const sensors_chip_name *chip_name = NULL;
---
> static const sensors_chip_name *cpu_chip_name = NULL, *sys_chip_name = NULL;
61c61
<                       chip_name == NULL) {
---
>                       (cpu_chip_name == NULL || sys_chip_name == NULL)) {
77c77
<                           chip_name = name;
---
>                           cpu_chip_name = name;
80a81
>                           sys_chip_name = name;
86,87c87,92
<       if (chip_name == NULL) {
<               fprintf(stderr, "could not find a suitable chip\n");
---
>       if (cpu_chip_name == NULL) {
>               fprintf(stderr, "could not find a suitable CPU chip\n");
>               exit(1);
>       }
>       if (sys_chip_name == NULL) {
>               fprintf(stderr, "could not find a suitable sys chip\n");
95,96c100,101
<       sensors_get_value(chip_name, cpu_feature, &cpu);
<       sensors_get_value(chip_name, sys_feature, &sys);
---
>       sensors_get_value(cpu_chip_name, cpu_feature, &cpu);
>       sensors_get_value(sys_chip_name, sys_feature, &sys);

Reply via email to