! 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 !
Power manager panel plugin should display charge level even if current power ...
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description Pavel Nikulin 2019-04-10 19:55:59 CEST
Created attachment 8397 
Look at screenshot and take a note that it has 90% charge, but the plugin still shows "Unknown state"

Power manager panel plugin should display charge level even if current power supply type is not provided.

Currently, if uPower does not provide charging or discharging status, battery level is show as "Unknown state"
Comment 1 Simon Steinbeiss editbugs 2019-04-12 00:32:10 CEST
Created attachment 8398 
Show charge/discharge level even for unknown state

Hi, the attached patch should fix your problem, but I can't test it because I don't have a device in unknown state. Please test and let me know!
Comment 2 Pavel Nikulin 2019-04-13 13:47:51 CEST
Created attachment 8399 
After patch
Comment 3 Pavel Nikulin 2019-04-13 13:50:08 CEST
Yep, it works. I think it will still be better to change wording to something like "Charge: 90%" than unknown state.
Comment 4 Simon Steinbeiss editbugs 2019-04-14 11:40:36 CEST
Created attachment 8407 
Updated patch

I updated the patch according to your feedback. Please also test if that obnoxious whitespace in front of your device name (" MX..." is gone.
Thanks!
Comment 5 Pavel Nikulin 2019-04-25 09:39:36 CEST
Created attachment 8455 
After second patch

Works well!
Comment 6 Git Bot editbugs 2019-04-25 18:04:04 CEST
Simon Steinbeiss referenced this bugreport in commit a6a6b210996a3fd4ef05b3015f8f2edf89399314

Show discharge level even in unknown state (Bug #15280)

https://git.xfce.org/xfce/xfce4-power-manager/commit?id=a6a6b210996a3fd4ef05b3015f8f2edf89399314

Bug #15280

Reported by:
Pavel Nikulin
Reported on: 2019-04-10
Last modified on: 2019-04-25

People

Assignee:
Simon Steinbeiss
CC List:
4 users

Version

Attachments

Look at screenshot and take a note that it has 90% charge, but the plugin still shows "Unknown state" (85.39 KB, image/png)
2019-04-10 19:55 CEST , Pavel Nikulin
no flags
Show charge/discharge level even for unknown state (1011 bytes, patch)
2019-04-12 00:32 CEST , Simon Steinbeiss
no flags
After patch (110.22 KB, image/png)
2019-04-13 13:47 CEST , Pavel Nikulin
no flags
Updated patch (1.49 KB, patch)
2019-04-14 11:40 CEST , Simon Steinbeiss
no flags
After second patch (52.84 KB, image/png)
2019-04-25 09:39 CEST , Pavel Nikulin
no flags

Additional information