Your message dated Fri, 18 Dec 2009 18:07:56 +0000
with message-id <[email protected]>
and subject line Bug#493253: fixed in lxpanel 0.5.4.1-1
has caused the Debian Bug report #493253,
regarding The battery charge monitor cannot read the charge in my laptop
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.)


-- 
493253: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493253
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lxpanel
Version: 0.3.8.1-2
Severity: normal

Hello,

again thanks for lxde.

The battery monitor cannot read the battery charge of my laptop.  I
noticed that it looks for /sys/class/power_supply/BAT0/charge_full which
doesn't exist here.  I have /sys/class/power_supply/BAT0/energy_full
instead.

The energy_full information can also be found here in 
/sys/class/power_supply/BAT0/uevent

I fond the specification for the values that can be read from uevent:
http://www.mjmwired.net/kernel/Documentation/power/power_supply_class.txt

It looks like the difference between "charge" and "energy" is that
charge is the value in µAh, energy is the value in µWh.  There can also
be a capacity value, in percent.

Here's some information from my system that I hope is useful:

  $ ls -la /sys/class/power_supply/BAT0
  -rw-r--r-- 1 root root 4096 2008-08-01 16:31 alarm
  -r--r--r-- 1 root root 4096 2008-08-01 15:34 current_now
  lrwxrwxrwx 1 root root    0 2008-08-01 16:31 device -> 
../../../devices/LNXSYSTM:00/device:00/PNP0A08:00/PNP0C0A:00
  -r--r--r-- 1 root root 4096 2008-08-01 15:34 energy_full
  -r--r--r-- 1 root root 4096 2008-08-01 16:31 energy_full_design
  -r--r--r-- 1 root root 4096 2008-08-01 15:34 energy_now
  -r--r--r-- 1 root root 4096 2008-08-01 16:31 manufacturer
  -r--r--r-- 1 root root 4096 2008-08-01 16:31 model_name
  drwxr-xr-x 2 root root    0 2008-08-01 16:31 power
  -r--r--r-- 1 root root 4096 2008-08-01 15:34 present
  -r--r--r-- 1 root root 4096 2008-08-01 16:31 serial_number
  -r--r--r-- 1 root root 4096 2008-08-01 15:34 status
  lrwxrwxrwx 1 root root    0 2008-08-01 16:31 subsystem -> ../../power_supply
  -r--r--r-- 1 root root 4096 2008-08-01 16:31 technology
  -r--r--r-- 1 root root 4096 2008-08-01 16:31 type
  -rw-r--r-- 1 root root 4096 2008-08-01 15:34 uevent
  -r--r--r-- 1 root root 4096 2008-08-01 16:31 voltage_min_design
  -r--r--r-- 1 root root 4096 2008-08-01 15:34 voltage_now

  $ cat /sys/class/power_supply/BAT0/uevent
  PHYSDEVPATH=/devices/LNXSYSTM:00/device:00/PNP0A08:00/PNP0C0A:00
  PHYSDEVBUS=acpi
  PHYSDEVDRIVER=battery
  POWER_SUPPLY_NAME=BAT0
  POWER_SUPPLY_TYPE=Battery
  POWER_SUPPLY_STATUS=Full
  POWER_SUPPLY_PRESENT=1
  POWER_SUPPLY_TECHNOLOGY=Li-ion
  POWER_SUPPLY_VOLTAGE_MIN_DESIGN=11100000
  POWER_SUPPLY_VOLTAGE_NOW=12475000
  POWER_SUPPLY_CURRENT_NOW=0
  POWER_SUPPLY_ENERGY_FULL_DESIGN=51260000
  POWER_SUPPLY_ENERGY_FULL=50457000
  POWER_SUPPLY_ENERGY_NOW=50094000
  POWER_SUPPLY_MODEL_NAME=F9---24
  POWER_SUPPLY_MANUFACTURER=ASUSTEK
  POWER_SUPPLY_SERIAL_NUMBER= 

Apparently, there is a new kernel interface[1] called kobject-uevent
that *may*[2] allow to receive events from the kernel when the battery
status changes, instead of polling periodically.  It seems to work using
netlink sockets.  I'm writing it here not to suggest to use it right
now, but just because it's something that I accidentally saw while
looking for the energy/charge documentation above.  Some links:

 - http://lists.freedesktop.org/archives/dbus/2005-January/001866.html
 - http://code.eikke.com/index.php?dir=kevent-dbus/

[1] starting from 2.6.10 kernels
[2] I didn't find any documentation, only sparse vague posts and patches
    to HAL

Ciao,

Enrico

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lxpanel depends on:
ii  libasound2             1.0.16-2          ALSA library
ii  libatk1.0-0            1.22.0-1          The ATK accessibility toolkit
ii  libc6                  2.7-10            GNU C Library: Shared libraries
ii  libcairo2              1.6.4-6           The Cairo 2D vector graphics libra
ii  libfontconfig1         2.6.0-1           generic font configuration library
ii  libfreetype6           2.3.7-1           FreeType 2 font engine, shared lib
ii  libglib2.0-0           2.16.4-2          The GLib library of C routines
ii  libgtk2.0-0            2.12.10-2         The GTK+ graphical user interface 
ii  libpango1.0-0          1.20.5-1          Layout and rendering of internatio
ii  libpixman-1-0          0.10.0-2          pixel-manipulation library for X a
ii  libpng12-0             1.2.27-1          PNG library - runtime
ii  libx11-6               2:1.1.4-2         X11 client-side library
ii  libxcb-render-util0    0.2+git36-1       utility libraries for X C Binding 
ii  libxcb-render0         1.1-1.1           X C Binding, render extension
ii  libxcb1                1.1-1.1           X C Binding
ii  libxrender1            1:0.9.4-2         X Rendering Extension client libra
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

lxpanel recommends no packages.

Versions of packages lxpanel suggests:
ii  epiphany-gecko [www-bro 2.22.3-1         Intuitive GNOME web browser - Geck
ii  epiphany-webkit [www-br 2.22.3-1         Intuitive GNOME web browser - webk
ii  iceweasel [www-browser] 3.0.1-1          lightweight web browser based on M
ii  konqueror [www-browser] 4:3.5.9.dfsg.1-4 KDE's advanced file manager, web b
ii  links [www-browser]     2.1pre37-1       Web browser running in text mode
ii  lxpanel-netstat-plugin  0.3.8.1-2        network monitor plugin for lxpanel
ii  lxsession-lite          0.3.6-1          a lightweight X11 session manager 
ii  lynx-cur [www-browser]  2.8.7dev9-1.2    Text-mode WWW Browser with NLS sup
ii  menu                    2.1.39           generates programs menu for all me
ii  w3m [www-browser]       0.5.2-2+b1       WWW browsable pager with excellent

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: lxpanel
Source-Version: 0.5.4.1-1

We believe that the bug you reported is fixed in the latest version of
lxpanel, which is due to be installed in the Debian FTP archive:

lxpanel_0.5.4.1-1.diff.gz
  to main/l/lxpanel/lxpanel_0.5.4.1-1.diff.gz
lxpanel_0.5.4.1-1.dsc
  to main/l/lxpanel/lxpanel_0.5.4.1-1.dsc
lxpanel_0.5.4.1-1_i386.deb
  to main/l/lxpanel/lxpanel_0.5.4.1-1_i386.deb
lxpanel_0.5.4.1.orig.tar.gz
  to main/l/lxpanel/lxpanel_0.5.4.1.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.
Andrew Lee (李健秋) <[email protected]> (supplier of updated lxpanel 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, 19 Dec 2009 00:34:40 +0800
Source: lxpanel
Binary: lxpanel
Architecture: source i386
Version: 0.5.4.1-1
Distribution: unstable
Urgency: low
Maintainer: Andrew Lee (李健秋) <[email protected]>
Changed-By: Andrew Lee (李健秋) <[email protected]>
Description: 
 lxpanel    - a lightweight desktop panel for X
Closes: 493253 534222 535568 548333 560843
Changes: 
 lxpanel (0.5.4.1-1) unstable; urgency=low
 .
   * New upstream release (Closes: #493253, #534222, #548333, #560843)
     - Fixed crash problem on creating new panel
     - Fixed segfault when battery is not exist
     - Use _NET_SHOWING_DESKTOP to toggle the desktop efficiently in wincmd
       applet when available
     - Better checks for EWMH compliant window managers
     - Fixed cpufreq plugin, thermal plugin (Closes: #535568)
     - Support recognizing current DE with $XDG_CURRENT_DESKTOP
     - Fixed string format warning in src/misc.c
     - Translation updated
   * debian/control:
     - drop deprecated lxpanel-netstat-plugin binary package
   * Added README.source
   * Updated README.Debian
   * Bumped Standard-version to 3.8.3
Checksums-Sha1: 
 ec94f9d6918e6472a255d390751f0b54c232b16d 1245 lxpanel_0.5.4.1-1.dsc
 c0130528b21e6be22b24eeeb4a525df0c52b2447 1020003 lxpanel_0.5.4.1.orig.tar.gz
 857cb9726f271f6f252f7d363b2fdf3f2a731fc5 8286 lxpanel_0.5.4.1-1.diff.gz
 ac7443b0920f718321bb51a1d76b6e40c7422d88 449906 lxpanel_0.5.4.1-1_i386.deb
Checksums-Sha256: 
 00de9c8fdfced245115efc2279adcadc130ebae740b0f548806c17bed35f0369 1245 
lxpanel_0.5.4.1-1.dsc
 c0fae92a71f44e0379de4b0f48696756591be2a4688615e877da8bde12889ed9 1020003 
lxpanel_0.5.4.1.orig.tar.gz
 5ae9bf340795f8f112db2aa3d570b1a29d3eb40857babe8d0f369dab27fcd866 8286 
lxpanel_0.5.4.1-1.diff.gz
 f9751e37b2b88db7410ad69342f54cc29ae1a497dd4307a43e69386f3790481b 449906 
lxpanel_0.5.4.1-1_i386.deb
Files: 
 8552774f5319d56fcec38be453372374 1245 x11 optional lxpanel_0.5.4.1-1.dsc
 bdc0db6f692a7e13024cb17f9710bd6e 1020003 x11 optional 
lxpanel_0.5.4.1.orig.tar.gz
 4560646c26cfefd67f1dd0f82c89faa3 8286 x11 optional lxpanel_0.5.4.1-1.diff.gz
 f550b10babf0b78891eef54b0efd89d4 449906 x11 optional lxpanel_0.5.4.1-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAksrsc4ACgkQnQYz4bYlCYVRzQCePTYag0U7QZGGlpJ3f8a1bkHr
TskAoMbacv0uIjqnnTkDG8lMikDs4yFz
=XwPV
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to