! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-power-manager reports wrong battery status
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description Peter Hatina 2013-09-28 21:36:48 CEST
Created attachment 5165 
Screenshot of wrong battery status icon

When running a system with 2 batteries, ac adaptor disconnected, and one becomes empty, xfce4-power-manager shows charging icon on the empty battery, which is apparently wrong.
Comment 1 Peter Hatina 2013-09-28 21:42:36 CEST
Created attachment 5166 
Suggested fix

When adding a new battery, modify its ac_online member flag, so the battery can change is tray icon to proper picture.
Comment 2 Peter Hatina 2014-03-10 10:41:41 CET
Any news about this?
Comment 3 Simon Steinbeiss editbugs 2014-08-18 16:58:55 CEST
Could you please look into testing the new panel plugin we're shipping in the 1.3 releases? It groups multiple batteries into one. I don't have two batteries, but I'd be curious whether that works better for you.
Comment 4 Simon Steinbeiss editbugs 2014-08-18 17:06:14 CEST
Just to be clear: I meant to say that there aren't multiple trayicons next to each other anymore, but that the devices all appear in a single menu together (but still as individual items).
Comment 5 Peter Hatina 2014-08-19 21:05:39 CEST
I have xfce4-power-manager compiled from master, but I can't make it show the tray icon. It doesn't complain about missing icons, which is fine; but the icon is missing.

I am testing it using Fedora 20.

Packages installed:

xfce4-panel-4.10.1-3.fc20.x86_64

Do I need to compile also the panel from sources, or am I doing something wrong?

Thank you.
Comment 6 Simon Steinbeiss editbugs 2014-08-19 22:29:32 CEST
As I said, there is no more trayicon, it's a panel plugin now. So you have to manually add it to the panel (right-click the panel -> Add New Items -> Battery Indicator Plugin – or if you're building git master, Power Manager Plugin).
Comment 7 Peter Hatina 2014-08-25 08:25:31 CEST
Yes, it seems to work fine.

When the first battery is empty, the widget shows ~50% of remaining power, which is correct.

Anyway, shouldn't the older xfce4-power-manager be fixed to work on older systems?
Comment 8 Simon Steinbeiss editbugs 2014-08-25 12:31:24 CEST
(In reply to Peter Hatina from comment #7)
> Yes, it seems to work fine.
> 
> When the first battery is empty, the widget shows ~50% of remaining power,
> which is correct.

Good to hear, marking the bug fixed then.

> Anyway, shouldn't the older xfce4-power-manager be fixed to work on older
> systems?

So far we're not planning on backporting our fixes to xfpm 1.2 and I actually see little sense in that. Since there are no real breaks between 1.2 and the upcoming 1.4 your distributors should maybe consider shipping a newer version instead.

Bug #10376

Reported by:
Peter Hatina
Reported on: 2013-09-28
Last modified on: 2014-08-25

People

Assignee:
Ali Abdallah
CC List:
1 user

Version

Attachments

Screenshot of wrong battery status icon (5.01 KB, image/png)
2013-09-28 21:36 CEST , Peter Hatina
no flags
Suggested fix (505 bytes, patch)
2013-09-28 21:42 CEST , Peter Hatina
no flags

Additional information