Your message dated Sat, 23 Aug 2008 10:47:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#495655: fixed in cpufreqd 2.3.3-1
has caused the Debian Bug report #495655,
regarding cpufreqd: Fails to read battery info
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
495655: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495655
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: cpufreqd
Version: 2.3.2-2
Severity: important
cpufreqd fails to read battery info on my system because it tries to read
files named "energy_full" and "energy_now" while the files are named
"charge_full" and "charge_now".
The attached patch fixes this by trying the charge_* names of reading energy_*
fails.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to pt_BR.UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages cpufreqd depends on:
ii libc6 2.7-13 GNU C Library: Shared libraries
ii libcpufreq0 004-2 shared library to deal with the cp
ii libsensors3 1:2.10.7-1 library to read temperature/voltag
ii libsysfs2 2.1.0-4 interface library to sysfs
ii lsb-base 3.2-19 Linux Standard Base 3.2 init scrip
Versions of packages cpufreqd recommends:
ii acpid 1.0.6-10 Utilities for using ACPI power man
Versions of packages cpufreqd suggests:
ii cpufrequtils 004-2 utilities to deal with the cpufreq
-- no debconf information
--- cpufreqd-2.3.2.orig/src/cpufreqd_acpi_battery.c
+++ cpufreqd-2.3.2/src/cpufreqd_acpi_battery.c
@@ -31,6 +31,8 @@
#define BATTERY_TYPE "Battery"
#define ENERGY_FULL "energy_full"
#define ENERGY_NOW "energy_now"
+#define CHARGE_FULL "charge_full"
+#define CHARGE_NOW "charge_now"
#define PRESENT "present"
#define STATUS "status"
#define CURRENT_NOW "current_now"
@@ -123,11 +125,20 @@
binfo->open = 1;
binfo->energy_full = get_class_device_attribute(binfo->cdev, ENERGY_FULL);
- if (!binfo->energy_full)
- return -1;
+ if (!binfo->energy_full) {
+ /* try the "charge_full" name */
+ binfo->energy_full = get_class_device_attribute(binfo->cdev,
+ CHARGE_FULL);
+ if (!binfo->energy_full)
+ return -1;
+ }
binfo->energy_now = get_class_device_attribute(binfo->cdev, ENERGY_NOW);
- if (!binfo->energy_now)
- return -1;
+ if (!binfo->energy_now) {
+ /* try the "charge_now" name */
+ binfo->energy_now = get_class_device_attribute(binfo->cdev, CHARGE_NOW);
+ if (!binfo->energy_now)
+ return -1;
+ }
binfo->present = get_class_device_attribute(binfo->cdev, PRESENT);
if (!binfo->present)
return -1;
--- End Message ---
--- Begin Message ---
Source: cpufreqd
Source-Version: 2.3.3-1
We believe that the bug you reported is fixed in the latest version of
cpufreqd, which is due to be installed in the Debian FTP archive:
cpufreqd_2.3.3-1.diff.gz
to pool/main/c/cpufreqd/cpufreqd_2.3.3-1.diff.gz
cpufreqd_2.3.3-1.dsc
to pool/main/c/cpufreqd/cpufreqd_2.3.3-1.dsc
cpufreqd_2.3.3-1_i386.deb
to pool/main/c/cpufreqd/cpufreqd_2.3.3-1_i386.deb
cpufreqd_2.3.3.orig.tar.gz
to pool/main/c/cpufreqd/cpufreqd_2.3.3.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Mattia Dongili <[EMAIL PROTECTED]> (supplier of updated cpufreqd package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sat, 23 Aug 2008 13:29:47 +0900
Source: cpufreqd
Binary: cpufreqd
Architecture: source i386
Version: 2.3.3-1
Distribution: unstable
Urgency: low
Maintainer: Mattia Dongili <[EMAIL PROTECTED]>
Changed-By: Mattia Dongili <[EMAIL PROTECTED]>
Description:
cpufreqd - fully configurable daemon for dynamic frequency and voltage scali
Closes: 495655
Changes:
cpufreqd (2.3.3-1) unstable; urgency=low
.
* New upstream version
* fallback to reading change_* battery attributes if energy_* is
not found (Closes: #495655). Patch from Goedson Teixeira Paixao
<[EMAIL PROTECTED]>.
Checksums-Sha1:
c56bc80a51ad793abc0f80d621e0f6ed962eae25 1078 cpufreqd_2.3.3-1.dsc
8cbf3295f639b8ba23cffb8c4b5211b327af129b 407769 cpufreqd_2.3.3.orig.tar.gz
e41ad33e413e83441dfe2ec6bfb594e9eeb6a994 9438 cpufreqd_2.3.3-1.diff.gz
e196be67901bdbe1c979483d8315450bcaaebbf9 80016 cpufreqd_2.3.3-1_i386.deb
Checksums-Sha256:
578d79be38b4b3b60b19341886f521490a4f967e29221abaca92b0c6d440450b 1078
cpufreqd_2.3.3-1.dsc
333257a3e6026d395de2d07d5293da1b702fe2615515d0d37234460764f53a4c 407769
cpufreqd_2.3.3.orig.tar.gz
669d56e19485330618a94febd9722383a98f20c19cf5e112735b73ddc6188878 9438
cpufreqd_2.3.3-1.diff.gz
b2716abb87596ae6f3aa8edea09d7c1772f072af121c05ad14934ce7595c9f2b 80016
cpufreqd_2.3.3-1_i386.deb
Files:
8caa582ca6adee6a102ecff0f63bc5f0 1078 admin optional cpufreqd_2.3.3-1.dsc
d5240463e2164e2156aefd9be65e5347 407769 admin optional
cpufreqd_2.3.3.orig.tar.gz
6557a80bb9d2643322cf195276aac507 9438 admin optional cpufreqd_2.3.3-1.diff.gz
6ecc3651d11676e302f5f67e77d4c548 80016 admin optional cpufreqd_2.3.3-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkiv58wACgkQgpRPaOotLEFb/QCgtEfymKbU0F/Y0jtgHOZ7puFM
hKUAnjTWXgw0DGRtPFh7J1eAMhadwJSQ
=Nqo/
-----END PGP SIGNATURE-----
--- End Message ---