Debian Bug report logs - #495655
cpufreqd: Fails to read battery info

version graph

Package: cpufreqd; Maintainer for cpufreqd is Debian QA Group <packages@qa.debian.org>; Source for cpufreqd is src:cpufreqd (PTS, buildd, popcon).

Reported by: Goedson Teixeira Paixao <goedson@debian.org>

Date: Tue, 19 Aug 2008 12:42:01 UTC

Severity: grave

Tags: patch

Found in version cpufreqd/2.3.2-1

Done: Mattia Dongili <malattia@linux.it>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Mattia Dongili <malattia@debian.org>:
Bug#495655; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Goedson Teixeira Paixao <goedson@debian.org>:
New Bug report received and forwarded. Copy sent to Mattia Dongili <malattia@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Goedson Teixeira Paixao <goedson@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: cpufreqd: Fails to read battery info
Date: Tue, 19 Aug 2008 09:41:13 -0300
[Message part 1 (text/plain, inline)]
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_battery_info.diff (text/x-c, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Mattia Dongili <malattia@debian.org>:
Bug#495655; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <malattia@linux.it>:
Extra info received and forwarded to list. Copy sent to Mattia Dongili <malattia@debian.org>. (full text, mbox, link).


Message #10 received at 495655@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <malattia@linux.it>
To: Goedson Teixeira Paixao <goedson@debian.org>, 495655@bugs.debian.org
Cc: BTS Control <control@bugs.debian.org>
Subject: Re: Bug#495655: cpufreqd: Fails to read battery info
Date: Tue, 19 Aug 2008 21:59:25 +0900
severity 495655 grave
tags 495655 + patch
thanks

On Tue, Aug 19, 2008 at 09:41:13AM -0300, Goedson Teixeira Paixao wrote:
> 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.

thanks Goedson

-- 
mattia
:wq!




Severity set to `grave' from `important' Request was from Mattia Dongili <malattia@linux.it> to control@bugs.debian.org. (Tue, 19 Aug 2008 13:00:04 GMT) (full text, mbox, link).


Tags added: patch Request was from Mattia Dongili <malattia@linux.it> to control@bugs.debian.org. (Tue, 19 Aug 2008 13:00:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Mattia Dongili <malattia@debian.org>:
Bug#495655; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Goedson Teixeira Paixao <goedson@debian.org>:
Extra info received and forwarded to list. Copy sent to Mattia Dongili <malattia@debian.org>. (full text, mbox, link).


Message #19 received at 495655@bugs.debian.org (full text, mbox, reply):

From: Goedson Teixeira Paixao <goedson@debian.org>
To: control@bugs.debian.org
Cc: 495655@bugs.debian.org, goedson@debian.org
Subject: Correct version info
Date: Tue, 19 Aug 2008 10:07:06 -0300
[Message part 1 (text/plain, inline)]
notfound 495655 2.3.2-2 
found 495655 2.3.2-1
thanks

Sorry for the wrong version info in the bug report. I had already built
and installed a local version of the package to try the fix and didn't
pay attention to the version number in the bug report.


-- 
Goedson Teixeira Paixao          http://mundolivre.wordpress.com/
Debian Project                   http://www.debian.org/
Jabber ID: goedson@jabber.org    http://www.jabber.org/

[signature.asc (application/pgp-signature, inline)]

Bug no longer marked as found in version 2.3.2-2. Request was from Goedson Teixeira Paixao <goedson@debian.org> to control@bugs.debian.org. (Tue, 19 Aug 2008 13:12:03 GMT) (full text, mbox, link).


Bug marked as found in version 2.3.2-1. Request was from Goedson Teixeira Paixao <goedson@debian.org> to control@bugs.debian.org. (Tue, 19 Aug 2008 13:12:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Mattia Dongili <malattia@debian.org>:
Bug#495655; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to alberto maurizi <moim@augh.net>:
Extra info received and forwarded to list. Copy sent to Mattia Dongili <malattia@debian.org>. (full text, mbox, link).


Message #28 received at 495655@bugs.debian.org (full text, mbox, reply):

From: alberto maurizi <moim@augh.net>
To: Debian Bug Tracking System <495655@bugs.debian.org>
Subject: cpufreqd: uses "energy_full" instead of "charge_full" under /sys/...
Date: Wed, 20 Aug 2008 09:19:06 +0200
Package: cpufreqd
Followup-For: Bug #495655


the error message is:
cpufreqd: get_class_device_attribute: couldn't open /sys/class/power_supply/BAT0/energy_full (No such file or directory)
[...]
kernel: [19344.165939] cpufreqd[24816]: segfault at 40 ip b7e04283 sp bfb30770 error 4 in libc-2.7.so[b7d8e000+155000]

under /sys/class/power_supply/BAT0/ path I can see a "charge_full"
rather than "energy_full". Maybe some inconsistency in naming
convention?


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
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




Information forwarded to debian-bugs-dist@lists.debian.org, Mattia Dongili <malattia@debian.org>:
Bug#495655; Package cpufreqd. (full text, mbox, link).


Acknowledgement sent to Mattia Dongili <malattia@linux.it>:
Extra info received and forwarded to list. Copy sent to Mattia Dongili <malattia@debian.org>. (full text, mbox, link).


Message #33 received at 495655@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <malattia@linux.it>
To: alberto maurizi <moim@augh.net>, 495655@bugs.debian.org
Subject: Re: Bug#495655: cpufreqd: uses "energy_full" instead of "charge_full" under /sys/...
Date: Wed, 20 Aug 2008 22:05:52 +0900
On Wed, Aug 20, 2008 at 09:19:06AM +0200, alberto maurizi wrote:
> Package: cpufreqd
> Followup-For: Bug #495655
> 
> 
> the error message is:
> cpufreqd: get_class_device_attribute: couldn't open /sys/class/power_supply/BAT0/energy_full (No such file or directory)
> [...]
> kernel: [19344.165939] cpufreqd[24816]: segfault at 40 ip b7e04283 sp bfb30770 error 4 in libc-2.7.so[b7d8e000+155000]
> 
> under /sys/class/power_supply/BAT0/ path I can see a "charge_full"
> rather than "energy_full". Maybe some inconsistency in naming
> convention?

well, apparently both of them are acceptable names.
There is already a patch available attached to this bug report
bus.debian.org/495655

I'm going to upload a new version as soon as possible
-- 
mattia
:wq!




Reply sent to Mattia Dongili <malattia@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Goedson Teixeira Paixao <goedson@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #38 received at 495655-close@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <malattia@debian.org>
To: 495655-close@bugs.debian.org
Subject: Bug#495655: fixed in cpufreqd 2.3.3-1
Date: Sat, 23 Aug 2008 10:47:02 +0000
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 495655@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mattia Dongili <malattia@debian.org> (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 ftpmaster@debian.org)


-----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 <malattia@debian.org>
Changed-By: Mattia Dongili <malattia@debian.org>
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
     <goedson@debian.org>.
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-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 24 Sep 2008 07:32:18 GMT) (full text, mbox, link).


Bug unarchived. Request was from Alexander Wirt <formorer@debian.org> to control@bugs.debian.org. (Wed, 19 Nov 2008 09:03:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Mattia Dongili <malattia@debian.org>:
Bug#495655; Package cpufreqd. (Wed, 19 Nov 2008 09:12:10 GMT) (full text, mbox, link).


Acknowledgement sent to Dirk Mueller <bugs@sowas.org>:
Extra info received and forwarded to list. Copy sent to Mattia Dongili <malattia@debian.org>. (Wed, 19 Nov 2008 09:12:11 GMT) (full text, mbox, link).


Message #47 received at 495655@bugs.debian.org (full text, mbox, reply):

From: Dirk Mueller <bugs@sowas.org>
To: 495655@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Bug#495655: not fixed in cpufreqd 2.3.3-3
Date: Wed, 19 Nov 2008 10:09:38 +0100
reopen 495655
found 495655 2.3.3-3
thanks


error messages:


cpufreqd: get_class_device_attribute: couldn't 
open /sys/class/power_supply/C1ED/energy_full (No such file or directory)
cpufreqd: get_class_device_attribute: couldn't 
open /sys/class/power_supply/C1ED/energy_now (No such file or directory)


under
  /sys/class/power_supply/C1ED

 I can find charge_full and charge_now.


Package Information:

Package: cpufreqd
Priority: optional
Section: admin
Installed-Size: 376
Maintainer: Mattia Dongili <malattia@debian.org>
Architecture: amd64
Version: 2.3.3-3
Depends: libc6 (>= 2.7-1), libcpufreq0, libsensors3 (>= 1:2.10.3-1), 
libsysfs2, lsb-base (>= 3.0)
Recommends: acpid
Suggests: cpufrequtils
Conflicts: cpudyn, powernowd
Filename: pool/main/c/cpufreqd/cpufreqd_2.3.3-3_amd64.deb
Size: 86048
MD5sum: a7586d4ecf39a083dc6352723c2f0c11
SHA1: 26f70179357ff135ebc7290dbf3a2871ee71c203
SHA256: 33fd69d99b1eed663c18fd096006c054330a0dd4838eaa4031acfd9071f69f1f




Bug reopened, originator not changed. Request was from Dirk Mueller <bugs@sowas.org> to control@bugs.debian.org. (Wed, 19 Nov 2008 09:12:12 GMT) (full text, mbox, link).


Bug marked as found in version 2.3.3-3. Request was from Dirk Mueller <bugs@sowas.org> to control@bugs.debian.org. (Wed, 19 Nov 2008 09:12:12 GMT) (full text, mbox, link).


Reply sent to Mattia Dongili <malattia@linux.it>:
You have taken responsibility. (Wed, 19 Nov 2008 15:21:07 GMT) (full text, mbox, link).


Notification sent to Goedson Teixeira Paixao <goedson@debian.org>:
Bug acknowledged by developer. (Wed, 19 Nov 2008 15:21:07 GMT) (full text, mbox, link).


Message #56 received at 495655-done@bugs.debian.org (full text, mbox, reply):

From: Mattia Dongili <malattia@linux.it>
To: Dirk Mueller <bugs@sowas.org>, 495655-done@bugs.debian.org
Subject: Re: Bug#495655: not fixed in cpufreqd 2.3.3-3
Date: Thu, 20 Nov 2008 00:17:53 +0900
On Wed, Nov 19, 2008 at 10:09:38AM +0100, Dirk Mueller wrote:
> reopen 495655
> found 495655 2.3.3-3
> thanks
> 
> 
> error messages:
> 
> 
> cpufreqd: get_class_device_attribute: couldn't 
> open /sys/class/power_supply/C1ED/energy_full (No such file or directory)
> cpufreqd: get_class_device_attribute: couldn't 
> open /sys/class/power_supply/C1ED/energy_now (No such file or directory)
> 
> 
> under
>   /sys/class/power_supply/C1ED
> 
>  I can find charge_full and charge_now.

cpufrequd might be too verbose but it actually opens charge_now and
charge_full after failing energy_*

run it with -V7 and check yourself.

thanks
-- 
mattia
:wq!




Message #57 received at 495655-done@bugs.debian.org (full text, mbox, reply):

From: Dirk Mueller <bugs@sowas.org>
To: Mattia Dongili <malattia@linux.it>, 495655-done@bugs.debian.org
Subject: Re: Bug#495655: not fixed in cpufreqd 2.3.3-3
Date: Mon, 24 Nov 2008 13:23:34 +0100
> cpufrequd might be too verbose but it actually opens charge_now and
> charge_full after failing energy_*
>
> run it with -V7 and check yourself.

yes, you are right!

get_class_device_attribute: couldn't 
open /sys/class/power_supply/C1ED/energy_full (No such file or directory)
get_class_device_attribute: found charge_full - 
path /sys/class/power_supply/C1ED/charge_full
get_class_device_attribute: couldn't 
open /sys/class/power_supply/C1ED/energy_now (No such file or directory)
get_class_device_attribute: found charge_now - 
path /sys/class/power_supply/C1ED/charge_now

looks like its working, but writing lots of error messages to my logfiles.

I changed the verbosity level from default 4 to 3 and now there are no battery 
messages any more.

Best regards,

Dirk Mueller




Bug no longer marked as found in version 2.3.3-3. Request was from Dirk Mueller <bugs@sowas.org> to control@bugs.debian.org. (Tue, 25 Nov 2008 12:51:05 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 24 Dec 2008 07:28:05 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Jul 24 06:16:12 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.