Bug#605483: gnome-power-manager: sysfs battery status is not updated

Lorenzo Masellis masellis at fastwebnet.it
Tue Nov 30 14:37:02 UTC 2010


Package: gnome-power-manager
Version: 2.32.0-2
Severity: grave
Justification: renders package unusable

The status (energy, current, etc.)  doesn't get updated, unless events are
triggered (e.g. charger disconnection).
As a consequence, gnome-power-manager shows an out-of date battery status
information and wrong estimates for depletion (which could eventually lead to
uncontrolled shutdown).

Example, with charger on, applet shows 3,7% charge:

testuser at castor:~$ cat /sys/class/power_supply/BAT0/energy_now
1120000

Immediately after, having unplugged the charger in order to trigger an event,
sysfs gets updated and applet shows 44,9% charge:

testuser at castor:~$ cat /sys/class/power_supply/BAT0/energy_now
13600000

This behaviour is experienced also in Lenny, where the sysfs update can be
triggered also by cat'ing /proc/acpi/battery/BAT0/state. In Squeeze there is no
such file in procfs. In Etch everything was working fine.

Possibly related information for a similar problem is here:
https://bugs.archlinux.org/task/9572



-- Package-specific info:
Distro version:       squeeze/sid
Kernel version:       2.6.32-5-686
g-p-m version:        2.32.0
HAL version:          System manufacturer:  missing
System version:       missing
System product:       missing
AC adapter present:   no
Battery present:      no
Laptop panel present: no
CPU scaling present:  no
Battery Information:
UPower data:
Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:09/PNP0C09:00/ACPI0001:00/ACPI0002:00/power_supply/BAT0
  vendor:               Lezinn
  model:                01ZA
  power supply:         yes
  updated:              Tue Nov 30 15:16:17 2010 (14 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               charging
    energy:              1.12 Wh
    energy-empty:        0 Wh
    energy-full:         30.31 Wh
    energy-full-design:  65.12 Wh
    energy-rate:         2.606 W
    voltage:             16.086 V
    time to full:        11.2 hours
    percentage:          3.69515%
    capacity:            46.5448%
    technology:          lithium-ion

Device: /org/freedesktop/UPower/devices/line_power_sbs_charger
  native-path:          /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:09/PNP0C09:00/ACPI0001:00/ACPI0002:00/power_supply/sbs-charger
  power supply:         yes
  updated:              Tue Nov 30 15:08:41 2010 (470 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             yes

Daemon:
  daemon-version:  0.9.5
  can-suspend:     yes
  can-hibernate    yes
  on-battery:      no
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:   yes
GNOME Power Manager Process Information:
HAL Process Information:

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

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gnome-power-manager depends on:
ii  consolekit                    0.4.1-4    framework for defining and trackin
ii  dbus-x11                      1.2.24-3   simple interprocess messaging syst
ii  gconf2                        2.28.1-6   GNOME configuration database syste
ii  libbonobo2-0                  2.24.3-1   Bonobo CORBA interfaces library
ii  libc6                         2.11.2-7   Embedded GNU C Library: Shared lib
ii  libcairo2                     1.8.10-6   The Cairo 2D vector graphics libra
ii  libcanberra-gtk0              0.24-1     Gtk+ helper for playing widget eve
ii  libcanberra0                  0.24-1     a simple abstract interface for pl
ii  libdbus-1-3                   1.2.24-3   simple interprocess messaging syst
ii  libdbus-glib-1-2              0.88-2     simple interprocess messaging syst
ii  libgconf2-4                   2.28.1-6   GNOME configuration database syste
ii  libglib2.0-0                  2.24.2-1   The GLib library of C routines
ii  libgnome-keyring0             2.30.1-1   GNOME keyring services library
ii  libgtk2.0-0                   2.20.1-2   The GTK+ graphical user interface 
ii  libnotify1 [libnotify1-gtk2.1 0.5.0-2    sends desktop notifications to a n
ii  libpanel-applet2-0            2.30.2-2   library for GNOME Panel applets
ii  libpango1.0-0                 1.28.3-1   Layout and rendering of internatio
ii  libunique-1.0-0               1.1.6-1.1  Library for writing single instanc
ii  libupower-glib1               0.9.5-5    abstraction for power management -
ii  libx11-6                      2:1.3.3-4  X11 client-side library
ii  libxext6                      2:1.1.2-1  X11 miscellaneous extension librar
ii  libxrandr2                    2:1.3.0-3  X11 RandR extension library
ii  notification-daemon           0.5.0-2    daemon to displays passive pop-up 
ii  upower                        0.9.5-5    abstraction for power management

Versions of packages gnome-power-manager recommends:
ii  udisks               1.0.1+git20100614-3 abstraction for enumerating block 

Versions of packages gnome-power-manager suggests:
ii  policykit-1                   0.96-4     framework for managing administrat

-- no debconf information





More information about the pkg-gnome-maintainers mailing list