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"
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!
Created attachment 8399 After patch
Yep, it works. I think it will still be better to change wording to something like "Charge: 90%" than unknown state.
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!
Created attachment 8455 After second patch Works well!
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