After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 636176 - gnome-power-manager: sysfs battery status is not updated
gnome-power-manager: sysfs battery status is not updated
Status: RESOLVED OBSOLETE
Product: gnome-power-manager
Classification: Deprecated
Component: gnome-power-manager
2.32.x
Other Linux
: Normal major
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-11-30 23:02 UTC by Lorenzo Masellis
Modified: 2020-11-06 20:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lorenzo Masellis 2010-11-30 23:02:37 UTC
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@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@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.

A bug was also file to Debian BTS:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=605483

Possibly related information for similar problems:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=387380
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
Comment 1 Fabio Durán Verdugo 2010-12-01 01:21:51 UTC
coulb de mark with dup bug 615102 ?
Comment 2 Lorenzo Masellis 2010-12-01 09:54:11 UTC
Uhm, #615102 is "updated application icon"... Maybe wrong number?
Comment 3 André Klapper 2020-11-06 20:15:07 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports in Bugzilla which have not seen updates for many years.

If you can still reproduce this issue in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/gnome-power-manager/-/issues/

Thank you for reporting this issue and we are sorry it could not be fixed.