Re: KDE: Flashing battery icon
On Tue, Aug 23, 2011 at 02:49:57PM +0200, Ralf Jung wrote:
> > One thing you could do is to run acpi -b when the weird occurrences
> > happen, and see if that is in tune with what the battery monitor
> > shows. When on ac, acpi -b should return blank, but when on battery,
> > it should display some information on the battery life remaining
> > etc. This way, you can tell if the problem is in the KDE applet or in
> > ACPI.
> What exactly do you mean by "on battery"? When I am on AC, but the battery is
> plugged in, "acpi -b" prints
> Battery 0: Unknown, 98%
> After plugging AC off, it says
> Battery 0: Discharging, 98%, 02:12:32 r
> emaining
Ah, that made sense. I checked without a battery, which is what gave
me a blank message.
> And when there is no battery it's empty.
> As far as I can tell, it also does that when KDE displays the "no battery"
> icon, which is however hard to catch since it only lasts for a fraction of a
> second.
>
> However, you gave me the idea to look for a CLI for upower, and there actually
> is one. "upower --monitor" prints this when plugging in AC:
>
> [14:47:44.867] device changed:
> /org/freedesktop/UPower/devices/line_power_AC
> [14:47:45.203] device removed: /org/freedesktop/UPower/devices/battery_BAT0
> [14:47:45.832] device added: /org/freedesktop/UPower/devices/battery_BAT0
> [14:47:45.832] device changed:
> /org/freedesktop/UPower/devices/battery_BAT0
> [14:47:46.137] device removed: /org/freedesktop/UPower/devices/battery_BAT0
> [14:47:46.420] device added: /org/freedesktop/UPower/devices/battery_BAT0
> [14:47:46.425] device changed:
> /org/freedesktop/UPower/devices/battery_BAT0
> [14:47:46.547] device changed:
> /org/freedesktop/UPower/devices/battery_BAT0
> [14:47:47.082] device removed: /org/freedesktop/UPower/devices/battery_BAT0
> [14:47:47.374] device added: /org/freedesktop/UPower/devices/battery_BAT0
> [14:47:47.378] device changed:
> /org/freedesktop/UPower/devices/battery_BAT0
> [14:47:47.548] device changed:
> /org/freedesktop/UPower/devices/battery_BAT0
> [14:47:48.032] device removed: /org/freedesktop/UPower/devices/battery_BAT0
> [14:47:48.255] device added: /org/freedesktop/UPower/devices/battery_BAT0
> [...]
>
> So the problem is definitely within upower or even further down the stack, but
> not in KDE. I'll report a bug against upower.
Glad to know that you've at least zeroed down on the issue.
Thanks.
Kumar
--
If a 'train station' is where a train stops, what's a 'workstation'?
Reply to: