! 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 !
xfpm shows battery icon for my Bluetooth mouse
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description Stefan Seyfried 2012-04-27 11:52:20 CEST
Created attachment 4367 
Patch: do not show a battery icon for HID devices

When using my bluetooth mouse, upower creates a "power supply" and suggests this to be a battery (actually it is showing the battery status of the mouse).
Subsequently, xfce4-power-manager displays a second battery icon in the tray.

I consider this not very useful and wasting space.

I created a quick hack (attached), which will skip all battery devices with names "hid-*" when creating icons.
A second patch adds the percentage of batteries to xfce4-power-info (which still shows the second battery) so that the percentage left in the mouse can be investigated.

Patches attached.
Comment 1 Stefan Seyfried 2012-04-27 11:53:16 CEST
Created attachment 4368 
Patch: add percentage to battery info in xfce4-power-info
Comment 2 Stefan Seyfried 2012-04-27 12:03:58 CEST
fix version - patches are against latest git.
Comment 3 Stefan Seyfried 2012-04-28 08:52:07 CEST
Nick, Guido (openSUSE XFCE maintainer) suggested that you might be interested in discussing the suggested fix, so I'm adding you to CC.
Comment 4 Simon Steinbeiss editbugs 2014-05-29 11:32:16 CEST
The trayicon has been replaced by a panel-plugin which groups all devices and shows them in a menu (in git master), so your bug should be fixed.

With respect to percentage and time-left, we will also implement that in the plugin (optionally).

Bug #8785

Reported by:
Stefan Seyfried
Reported on: 2012-04-27
Last modified on: 2014-05-29

People

Assignee:
Ali Abdallah
CC List:
3 users

Version

Attachments

Additional information