! 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 !
Incorrect icon displayed for current status, and wrong unit of time used for ...
Status:
RESOLVED: INVALID
Product:
Xfce4-power-manager
Component:
General

Comments

Description mgiesbre 2016-01-22 22:45:54 CET
This plugin usually displays the wrong icon for displaying UPS charge status.  Instead of showing the icon of a UPS with a vertical green bar beside it when the UPS the pc is connected to is fully charged, it will show a power plug with lightning bolt.  If the UPS needs charging, for example, it will say 99% charged and say it needs 9 hours to recharge, instead of properly saying 9 minutes needed to attain full charge.  Also it will incorrectly show the icon for a fully charged UPS instead of showing the icon for it needing charging when the UPS does need charging.  When fully charged state is achieved, the icon does not properly update itself to indicate the new UPS status.  I was unable to ascertain the exact version of this power manager.  I'm using xfce v4.12 .
Comment 1 Simon Steinbeiss editbugs 2016-01-24 16:15:50 CET
Hey! I don't have a UPS, so I have no way of testing this. However, all values should come directly from UPower, so you can check the output of "upower -d" in the terminal to be sure.

In terms of wrong icons, it would help if you could post some screenshots. Could also be a problem with the icon theme you're using.

Finally, please check the version of xfce4-power-manager you're using. (Terminal: "xfce4-power-manager --version")
Comment 2 Liv 2017-01-29 21:16:00 CET
I am seeing this as well on a laptop. I'll focus on the wrong icons issue. 

Using Xfce 4.12 with xfce4-power-manager 1.4.4 on Ubuntu Trusty. 

The bug manifests itself mainly on start-up (and before a 'Suspend'). What I see here is 'fully charged' icon in systray when the battery is actually discharging. Also, the c-menu of the systray icon doesn't correctly display the available choices (there should be the first choice which open the Battery device, which is absent). If I plug in the adapter, then the icon remains one of 'fully charged' when actually the battery is not full and it is charging. 

From my perspective this is a pretty big user-visible issue. I am attaching screenshots and can perform additional debugs if necessary. Usually this wrong icon issue goes away after a suspend/resume, and I'll attach more screenshots when I do that.
Comment 3 Liv 2017-01-29 21:16:43 CET
Created attachment 6968 
missing Battery item in c-menu
Comment 4 Liv 2017-01-29 21:18:37 CET
Created attachment 6969 
wrong icon when discharging
Comment 5 Liv 2017-01-29 21:20:06 CET
Created attachment 6970 
wrong icon when charging
Comment 6 Liv 2017-01-29 21:28:31 CET
Created attachment 6971 
correct items in c-menu
Comment 7 Liv 2017-01-29 21:29:18 CET
Created attachment 6972 
correct icon when discharging
Comment 8 Liv 2017-01-29 21:30:11 CET
Created attachment 6973 
correct icon when charging
Comment 9 Aaditya Bagga 2017-03-17 18:09:18 CET
I am suffering from a similar bug, sometimes after resume from hibernation on a laptop xfce4-power-manager state is set to battery even when it is connected to the ac supply.

However, as mentioned by Simon (https://bugzilla.xfce.org/show_bug.cgi?id=12416#c1), these values are fetched via Upower which itself seems to be at fault:

$ upower -d
Device: /org/freedesktop/UPower/devices/line_power_ACAD
  native-path:          ACAD
  power supply:         yes
  updated:              Thu 16 Mar 2017 09:10:25 AM IST (134665 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             no

Device: /org/freedesktop/UPower/devices/battery_BAT1
  native-path:          BAT1
  vendor:               PAC
  model:                CP700280-01
  serial:               01B-Z160409004403Z
  power supply:         yes
  updated:              Fri 17 Mar 2017 10:34:43 PM IST (7 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              45.0468 Wh
    energy-empty:        0 Wh
    energy-full:         45.306 Wh
    energy-full-design:  48.6 Wh
    energy-rate:         0.3456 W
    voltage:             12.467 V
    time to empty:       5.4 days
    percentage:          99%
    capacity:            93.2222%
    technology:          lithium-ion

Daemon:
  daemon-version:  0.9.23
  can-suspend:     yes
  can-hibernate:   yes
  on-battery:      yes
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:  yes
  is-docked:       no

This is upower-0.9.23 on Slackware Linux 14.2.
Comment 10 Simon Steinbeiss editbugs 2020-05-26 23:22:00 CEST
Thanks for confirming Aaditya, closing as a bug in upower.

Bug #12416

Reported by:
mgiesbre
Reported on: 2016-01-22
Last modified on: 2020-05-26

People

Assignee:
Ali Abdallah
CC List:
5 users

Version

Attachments

missing Battery item in c-menu (21.78 KB, image/png)
2017-01-29 21:16 CET , Liv
no flags
wrong icon when discharging (76.42 KB, image/png)
2017-01-29 21:18 CET , Liv
no flags
wrong icon when charging (78.70 KB, image/png)
2017-01-29 21:20 CET , Liv
no flags
correct items in c-menu (28.85 KB, image/png)
2017-01-29 21:28 CET , Liv
no flags
correct icon when discharging (73.86 KB, image/png)
2017-01-29 21:29 CET , Liv
no flags
correct icon when charging (74.62 KB, image/png)
2017-01-29 21:30 CET , Liv
no flags

Additional information