Debian Bug report logs - #638970
[regression] HP ProBook 451x: udev/power_supply battery oscilates between remove and add

version graph

Package: src:linux-2.6; Maintainer for src:linux-2.6 is (unknown);

Affects: upower, udev, laptop-mode-tools

Reported by: Ralf Jung <ralfjung-e@gmx.de>

Date: Tue, 23 Aug 2011 12:57:01 UTC

Severity: important

Tags: patch, pending, upstream

Merged with 670958

Found in versions linux-2.6/3.2.15-1, linux-2.6/2.6.38~rc6-1~experimental.1, linux-2.6/3.0.0-2

Fixed in version linux-2.6/3.2.18-1

Done: Ben Hutchings <ben@decadent.org.uk>

Bug is archived. No further changes may be made.

Forwarded to http://thread.gmane.org/gmane.linux.kernel/1084565/focus=52953

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


Report forwarded to debian-bugs-dist@lists.debian.org, ralfjung-e@gmx.de, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#638970; Package upower. (Tue, 23 Aug 2011 12:57:04 GMT) (full text, mbox, link).


Acknowledgement sent to Ralf Jung <ralfjung-e@gmx.de>:
New Bug report received and forwarded. Copy sent to ralfjung-e@gmx.de, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Tue, 23 Aug 2011 12:57:05 GMT) (full text, mbox, link).


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

From: Ralf Jung <ralfjung-e@gmx.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: upower battery status flashing when both AC and battery are plugged in
Date: Tue, 23 Aug 2011 14:56:42 +0200
Package: upower
Version: 0.9.12-1+b1
Severity: normal

When I plug in both AC and the battery, the KDE power management icon keeps
showing "no battery" for a fraction of a second, about twice a minute. Directly
after plugging AC in, there's even mire flashing. This did not happen before I
changed to Debian testing (I used Kubuntu before). I noticed that the backend
for power management was changed from HAL to upower, and indeed upower is the
problem here. Running "upower --monitor" for about a minute while not changing
anything power-related gives this output, in sync with the GUI:

[14:53:52.731]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:53:53.015]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:53:53.021]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:53:53.548]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:53:54.548]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:53:55.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:53:56.550]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:53:57.550]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:54:11.768]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:54:12.031]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:54:12.031]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:54:12.548]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:54:13.550]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:54:14.550]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:54:15.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:54:16.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:54:30.800]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:54:31.037]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:54:31.039]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:54:32.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:54:33.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:54:34.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:54:35.550]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:54:36.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0

When plugging in, there's even more activity:

[14:55:24.012]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:24.860]  daemon changed:
[14:55:24.860]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:24.860]  device changed:
/org/freedesktop/UPower/devices/line_power_AC
[14:55:25.041]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:55:25.448]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:55:25.452]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:25.974]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:55:26.303]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:55:26.306]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:26.547]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:26.932]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:55:27.163]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:55:27.169]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:27.571]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:27.876]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:55:28.115]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:55:28.119]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:28.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:28.858]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:55:29.118]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:55:29.122]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:29.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:29.781]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:55:30.084]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:55:30.089]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:30.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:30.731]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:55:30.962]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:55:30.962]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:31.570]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:31.682]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:55:31.954]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:55:31.957]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:32.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:32.661]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:55:32.925]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:55:32.925]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:33.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:33.587]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:55:33.874]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:55:33.878]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:34.538]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:55:34.842]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:55:34.846]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:34.851]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:35.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:36.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:37.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[14:55:38.549]  device changed:
/org/freedesktop/UPower/devices/battery_BAT0



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

Kernel: Linux 3.0.0-1-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/dash

Versions of packages upower depends on:
ii  dbus                         1.4.14-1    simple interprocess messaging syst
ii  libc6                        2.13-16     Embedded GNU C Library: Shared lib
ii  libdbus-1-3                  1.4.14-1    simple interprocess messaging syst
ii  libdbus-glib-1-2             0.94-4      simple interprocess messaging syst
ii  libglib2.0-0                 2.28.6-1    The GLib library of C routines
ii  libgudev-1.0-0               172-1       GObject-based wrapper library for 
ii  libimobiledevice1            1.0.6-3     Library for communicating with the
ii  libplist1                    1.6-2       Library for handling Apple binary 
ii  libpolkit-gobject-1-0        0.102-1     PolicyKit Authorization API
ii  libupower-glib1              0.9.12-1+b1 abstraction for power management -
ii  libusb-1.0-0                 2:1.0.8-4   userspace USB programming library
ii  pm-utils                     1.4.1-8     utilities and scripts for power ma
ii  udev                         172-1       /dev/ and hotplug management daemo

Versions of packages upower recommends:
ii  policykit-1                   0.102-1    framework for managing administrat

upower suggests no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#638970; Package upower. (Thu, 29 Sep 2011 11:42:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ralf Jung <ralfjung-e@gmx.de>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Thu, 29 Sep 2011 11:42:10 GMT) (full text, mbox, link).


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

From: Ralf Jung <ralfjung-e@gmx.de>
To: 638970@bugs.debian.org
Cc: control@bugs.debian.org
Subject: flashing bettery icon still present in version 0.9.13-1
Date: Thu, 29 Sep 2011 13:38:32 +0200
found 638970 0.9.13-1
thanks

The bug is still present after updating upower to version 0.9.13-1.

Kind regards,
Ralf




Bug Marked as found in versions 0.9.13-1. Request was from Ralf Jung <ralfjung-e@gmx.de> to control@bugs.debian.org. (Thu, 29 Sep 2011 11:42:16 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#638970; Package upower. (Thu, 29 Sep 2011 11:51:15 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Biebl <biebl@debian.org>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Thu, 29 Sep 2011 11:51:21 GMT) (full text, mbox, link).


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

From: Michael Biebl <biebl@debian.org>
To: Ralf Jung <ralfjung-e@gmx.de>, 638970@bugs.debian.org
Subject: Re: [Pkg-utopia-maintainers] Bug#638970: flashing bettery icon still present in version 0.9.13-1
Date: Thu, 29 Sep 2011 13:49:08 +0200
[Message part 1 (text/plain, inline)]
Am 29.09.2011 13:38, schrieb Ralf Jung:
> found 638970 0.9.13-1
> thanks
> 
> The bug is still present after updating upower to version 0.9.13-1.

looks like a faulty battery or a kernel issue.

If you kill upowerd and then monitor the sysfs entries, do you still see
this behaviour?

Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

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

Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#638970; Package upower. (Thu, 29 Sep 2011 12:03:50 GMT) (full text, mbox, link).


Acknowledgement sent to Ralf Jung <ralfjung-e@gmx.de>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Thu, 29 Sep 2011 12:03:54 GMT) (full text, mbox, link).


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

From: Ralf Jung <ralfjung-e@gmx.de>
To: Michael Biebl <biebl@debian.org>
Cc: 638970@bugs.debian.org
Subject: Re: [Pkg-utopia-maintainers] Bug#638970: flashing bettery icon still present in version 0.9.13-1
Date: Thu, 29 Sep 2011 13:58:00 +0200
Hi,

it seems I did not supply the correct version number when issuing the "found" 
command to config@bugs.debian.org... at least it complained in the reply:
"There is no source info for the package 'upower' at version '0.9.13-1' with 
architecture ''
Unable to make a source version for version '0.9.13-1'"
Did I do something wrong?


> looks like a faulty battery or a kernel issue.
I am quite sure the battery is fine - when I still used Kubuntu and HAL, there 
was no such issue, and it showed up immediately after installing Debian. I can 
try a Kubuntu live CD to verify this.

> If you kill upowerd and then monitor the sysfs entries, do you still see
> this behaviour?
Which sysfs entries, something in /sys/power? And how can I monitor them? 

Kind regards,
Ralf




Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#638970; Package upower. (Thu, 29 Sep 2011 12:06:38 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Biebl <biebl@debian.org>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Thu, 29 Sep 2011 12:06:57 GMT) (full text, mbox, link).


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

From: Michael Biebl <biebl@debian.org>
To: Ralf Jung <ralfjung-e@gmx.de>
Cc: 638970@bugs.debian.org
Subject: Re: [Pkg-utopia-maintainers] Bug#638970: flashing bettery icon still present in version 0.9.13-1
Date: Thu, 29 Sep 2011 14:04:31 +0000
On 29.09.2011 11:58, Ralf Jung wrote:

>> looks like a faulty battery or a kernel issue.
> I am quite sure the battery is fine - when I still used Kubuntu and HAL, there 
> was no such issue, and it showed up immediately after installing Debian. I can 
> try a Kubuntu live CD to verify this.

A Kubuntu version which still used HAL uses a completely different kernel, so
this is not comparable.

>> If you kill upowerd and then monitor the sysfs entries, do you still see
>> this behaviour?
> Which sysfs entries, something in /sys/power? And how can I monitor them? 

The sysfs entries shown in the upower log.




Bug No longer marked as found in versions 0.9.13-1. Request was from Ralf Jung <ralfjung-e@gmx.de> to control@bugs.debian.org. (Thu, 29 Sep 2011 14:48:07 GMT) (full text, mbox, link).


Bug Marked as found in versions upower/0.9.13-1. Request was from Ralf Jung <ralfjung-e@gmx.de> to control@bugs.debian.org. (Thu, 29 Sep 2011 14:48:08 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#638970; Package upower. (Thu, 29 Sep 2011 15:15:10 GMT) (full text, mbox, link).


Acknowledgement sent to Ralf Jung <ralfjung-e@gmx.de>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Thu, 29 Sep 2011 15:15:10 GMT) (full text, mbox, link).


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

From: Ralf Jung <ralfjung-e@gmx.de>
To: Michael Biebl <biebl@debian.org>
Cc: 638970@bugs.debian.org
Subject: Re: [Pkg-utopia-maintainers] Bug#638970: flashing bettery icon still present in version 0.9.13-1
Date: Thu, 29 Sep 2011 17:13:03 +0200
Hi Michael,

> A Kubuntu version which still used HAL uses a completely different kernel,
> so this is not comparable.
I meant to exclude a hardware issue by trying Kubuntu.
As for the kernel... I could try to compile an old kernel myself, however I do 
not know if that will work at all.

> > Which sysfs entries, something in /sys/power? And how can I monitor them?
> 
> The sysfs entries shown in the upower log.
You mean, /org/freedesktop/UPower/devices/battery_BAT0 ? I could not find these 
anywhere in /sys, nor could I find any upower log file on my system. Or maybe I 
am totally misunderstanding what I am supposed to do...

Kind regards,
Ralf




Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#638970; Package upower. (Thu, 06 Oct 2011 15:00:04 GMT) (full text, mbox, link).


Acknowledgement sent to Ralf Jung <ralfjung-e@gmx.de>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Thu, 06 Oct 2011 15:00:05 GMT) (full text, mbox, link).


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

From: Ralf Jung <ralfjung-e@gmx.de>
To: 638970@bugs.debian.org
Subject: sysfs data
Date: Thu, 6 Oct 2011 16:58:13 +0200
Hi again,

in the mean time, I learned about "upower --dump", which also gave me the 
sysfs path I needed. So I ran the following command:

      while [ 1 = 1 ]; do cat 
/sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0/present && 
sleep 0.2; done

Even in the period where KDE shows "no battery present", between the "device 
removed" and "device" added printed by the monitor, the file existed and 
contained a "1".

Does that answer your question?

Kind regards,
Ralf




Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#638970; Package upower. (Mon, 13 Feb 2012 14:00:05 GMT) (full text, mbox, link).


Acknowledgement sent to Ralf Jung <ralfjung-e@gmx.de>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Mon, 13 Feb 2012 14:00:05 GMT) (full text, mbox, link).


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

From: Ralf Jung <ralfjung-e@gmx.de>
To: devkit-devel@lists.freedesktop.org, 638970@bugs.debian.org
Subject: upower battery status flashing when both AC and battery are plugged in
Date: Mon, 13 Feb 2012 14:57:09 +0100
Hi upower list,

on my laptop (a HP Compaq 315), upower is acting strange: If both the AC and 
the battery are plugged in, the battery status as reported by upower flashes. 
Once or twice a minute, the battery status icon in the system tray (I am using 
KDE 4.6) flashes to "no battery available." Running "upower --monitor" for a 
while shows that the problem is in upower itself, not somewhere in the GUI:

$ upower --monitor
[14:50:33.294]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:50:34.108]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:50:34.108]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:50:34.265]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:50:35.264]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:50:36.267]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:50:37.267]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:50:38.267]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:50:52.336]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:50:53.184]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:50:53.184]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:50:53.266]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:50:54.264]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:50:55.265]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:50:56.267]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:50:57.266]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:51:11.368]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:51:12.229]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:51:12.229]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:51:12.266]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:51:13.265]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:51:14.264]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:51:15.264]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:51:16.266]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:51:30.384]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:51:31.243]  device added:     /org/freedesktop/UPower/devices/battery_BAT0
[14:51:31.247]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:51:31.267]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:51:32.264]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:51:33.267]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:51:34.266]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:51:35.264]  device changed:     
/org/freedesktop/UPower/devices/battery_BAT0
[14:51:49.420]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
[14:51:50.251]  device added:     /org/freedesktop/UPower/devices/battery_BAT0

I did not touch the power supply at all while taking above logfile.
This behaviour is quite annoying, because the blinking in the bottom-right 
corner sometimes distracts from what I actually want to concentrate on, and it 
circumvents KDE's mechanism to only show the battery icon if something 
interesting happens (like plugging a power supply in/out, or running low on 
battery): Since KDE thinks the battery is remove and re-added every 
~30seconds, it keeps showing and hiding that icon...

$ upower --version
UPower client version 0.9.15
UPower daemon version 0.9.15

For some more details and the original Debian bug report, please have a look 
at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638970.

I am not subscribed to the list, so please keep me (and the Debian bug) in CC 
when replying.

Kind regards,
Ralf




Bug Marked as found in versions upower/0.9.15-1. Request was from Ralf Jung <ralfjung-e@gmx.de> to control@bugs.debian.org. (Mon, 13 Feb 2012 14:03:06 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#638970; Package upower. (Thu, 23 Feb 2012 14:00:10 GMT) (full text, mbox, link).


Acknowledgement sent to Richard Hughes <hughsient@gmail.com>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Thu, 23 Feb 2012 14:00:10 GMT) (full text, mbox, link).


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

From: Richard Hughes <hughsient@gmail.com>
To: Ralf Jung <ralfjung-e@gmx.de>
Cc: devkit-devel@lists.freedesktop.org, 638970@bugs.debian.org
Subject: Re: upower battery status flashing when both AC and battery are plugged in
Date: Thu, 23 Feb 2012 13:56:51 +0000
On 13 February 2012 13:57, Ralf Jung <ralfjung-e@gmx.de> wrote:
> $ upower --monitor
> [14:50:33.294]  device removed:   /org/freedesktop/UPower/devices/battery_BAT0
> [14:50:34.108]  device added:     /org/freedesktop/UPower/devices/battery_BAT0

This looks like a kernel bug to me. Does the device keep appearing and
disappearing from /sys/class/power_supply?

Richard.




Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#638970; Package upower. (Thu, 23 Feb 2012 17:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ralf Jung <ralfjung-e@gmx.de>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Thu, 23 Feb 2012 17:39:03 GMT) (full text, mbox, link).


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

From: Ralf Jung <ralfjung-e@gmx.de>
To: Richard Hughes <hughsient@gmail.com>
Cc: devkit-devel@lists.freedesktop.org, 638970@bugs.debian.org
Subject: Re: upower battery status flashing when both AC and battery are plugged in
Date: Thu, 23 Feb 2012 18:34:28 +0100
Hi,

> On 13 February 2012 13:57, Ralf Jung <ralfjung-e@gmx.de> wrote:
> > $ upower --monitor
> > [14:50:33.294]  device removed:  
> > /org/freedesktop/UPower/devices/battery_BAT0 [14:50:34.108]  device
> > added:     /org/freedesktop/UPower/devices/battery_BAT0
> 
> This looks like a kernel bug to me. Does the device keep appearing and
> disappearing from /sys/class/power_supply?
No, it does not: I ran

while [ 1 ]; do ls /sys/class/power_supply; sleep 0.05; done

and "BAT0" was always present.
Also, if it s a kernel bug, it is a regression: Until ~8 months ago, I had 
Kubuntu installed with an older kernel, and used HAL. There was no such 
problem back then.

Kind regards,
Ralf




Information forwarded to debian-bugs-dist@lists.debian.org, Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>:
Bug#638970; Package upower. (Mon, 30 Apr 2012 05:51:03 GMT) (full text, mbox, link).


Acknowledgement sent to Paolo Scarabelli <paolo@msw.it>:
Extra info received and forwarded to list. Copy sent to Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>. (Mon, 30 Apr 2012 05:51:03 GMT) (full text, mbox, link).


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

From: Paolo Scarabelli <paolo@msw.it>
To: 638970@bugs.debian.org
Subject: [upower] Same problem with HP ProBook 4510s
Date: Mon, 30 Apr 2012 13:48:06 +0800
Package: upower
Version: 0.9.15-3

--- Please enter the report below this line. ---

I have the same problem, upowerd makes my CPU run at close to 100% all
the time, the battery is reported as connected and disconnected
continuously and the only way to make it stop is to either remove the
battery or kill upowerd.

I'm not sure when it started, the battery icon appearing and
disappearing it's probably several months but only recently I noticed
the 100% CPU issue. I'm not sure, maybe I didn't notice it before
because it seems to happen mostly when I leave the laptop on overnight.

This is probably a duplicate of bug #606414 and possibly also #596721
and #619343. It seemes several other Debian based distributions are also
affected, searching for "upowerd device
removed:/org/freedesktop/UPower/devices/battery_BAT0" on google returns
lots bug reports.


Regards,


Paolo


--- System information. ---
Architecture: i386
Kernel:       Linux 3.2.0-2-686-pae

Debian Release: wheezy/sid
  500 testing         www.debian-multimedia.org
  500 testing         security.debian.org
  500 testing         ftp.us.debian.org
  500 testing         deb.opera.com
  500 stable          dl.google.com
  500 squeeze         debian.fusionforge.org
  500 binary          pkg.jenkins-ci.org
   50 experimental    ftp.us.debian.org
  100 unstable        oss.oracle.com
  100 unstable        ftp.us.debian.org

--- Package information. ---
Depends                      (Version) | Installed
======================================-+-=============
libc6                         (>= 2.4) | 2.13-30
libdbus-1-3                 (>= 1.0.2) | 1.5.12-1
libdbus-glib-1-2             (>= 0.88) | 0.98-1
libglib2.0-0               (>= 2.30.0) | 2.32.0-4
libgudev-1.0-0                (>= 146) | 175-3.1
libimobiledevice2           (>= 0.9.7) | 1.1.1-4
libplist1                    (>= 0.16) | 1.8-1
libpolkit-gobject-1-0        (>= 0.99) | 0.104-2
libupower-glib1             (>= 0.9.2) | 0.9.15-3
libusb-1.0-0              (>= 2:1.0.8) | 2:1.0.9~rc3-4
udev                                   | 175-3.1
dbus                                   | 1.5.12-1
pm-utils                               | 1.4.1-9


Recommends       (Version) | Installed
==========================-+-===========
policykit-1                | 0.104-2


Package's Suggests field is empty.




Bug reassigned from package 'upower' to 'src:linux-2.6'. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Mon, 30 Apr 2012 19:03:09 GMT) (full text, mbox, link).


No longer marked as found in versions upower/0.9.15-1, upower/0.9.13-1, upower/0.9.15-3, and upower/0.9.12-1. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Mon, 30 Apr 2012 19:03:10 GMT) (full text, mbox, link).


Marked as found in versions linux-2.6/3.0.0-2. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Mon, 30 Apr 2012 19:03:10 GMT) (full text, mbox, link).


Marked as found in versions linux-2.6/3.2.15-1. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Mon, 30 Apr 2012 19:03:11 GMT) (full text, mbox, link).


Merged 638970 670958 Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Mon, 30 Apr 2012 19:03:13 GMT) (full text, mbox, link).


Added indication that 638970 affects udev, laptop-mode-tools, and upower Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Mon, 30 Apr 2012 19:03:15 GMT) (full text, mbox, link).


Severity set to 'important' from 'normal' Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Mon, 30 Apr 2012 20:30:07 GMT) (full text, mbox, link).


Marked as found in versions linux-2.6/2.6.38~rc6-1~experimental.1. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Tue, 01 May 2012 03:48:03 GMT) (full text, mbox, link).


Changed Bug title to '[regression] HP ProBook 451x: udev/power_supply battery oscilates between remove and add' from 'upower battery status flashing when both AC and battery are plugged in' Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Tue, 01 May 2012 03:48:05 GMT) (full text, mbox, link).


Added tag(s) upstream. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Tue, 01 May 2012 18:54:05 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'http://thread.gmane.org/gmane.linux.kernel/1084565/focus=52953'. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Tue, 01 May 2012 18:54:07 GMT) (full text, mbox, link).


Added tag(s) moreinfo and patch. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Fri, 04 May 2012 10:06:23 GMT) (full text, mbox, link).


Removed tag(s) moreinfo. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Tue, 15 May 2012 20:48:08 GMT) (full text, mbox, link).


Added tag(s) pending. Request was from Ben Hutchings <benh@alioth.debian.org> to control@bugs.debian.org. (Mon, 21 May 2012 01:45:10 GMT) (full text, mbox, link).


Added tag(s) pending. Request was from Ben Hutchings <benh@alioth.debian.org> to control@bugs.debian.org. (Tue, 22 May 2012 03:03:19 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#638970; Package src:linux-2.6. (Fri, 08 Jun 2012 06:33:11 GMT) (full text, mbox, link).


Acknowledgement sent to Paolo Scarabelli <paolo@msw.it>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Fri, 08 Jun 2012 06:33:11 GMT) (full text, mbox, link).


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

From: Paolo Scarabelli <paolo@msw.it>
To: 638970@bugs.debian.org
Subject: Bug#638970: Probably caused by acpi battery kernel module and fixed in kernel to 3.2.18-1
Date: Fri, 08 Jun 2012 14:32:23 +0800
Hi,

It seems the bug, at least in my case, was caused by the acpi battery
kernel module reporting the battery as connected and disconnected
continuously.

Since I upgraded my kernel to 3.2.18-1 the battery icon  stopped
flipping on and off and the cpu use by upowerd is pretty much normal.
upowerd --monitor shows a change in battery state every 20 seconds or so:

upower --monitor
Monitoring activity from the power daemon. Press Ctrl+C to cancel.
[13:40:02.582]	device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[13:40:21.619]	device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[13:40:40.652]	device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[13:40:59.685]	device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[13:41:18.716]	device changed:
/org/freedesktop/UPower/devices/battery_BAT0
[13:41:37.754]	device changed:
/org/freedesktop/UPower/devices/battery_BAT0


Thank you and have a nice day,


Paolo




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 08 Jul 2012 07:53:15 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: Tue Sep 2 16:44:30 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General 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.