-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Power & Battery show that any connected devices are currently charging #561
Comments
I might try to debug this if it is not a priority to be picked up from someone else. |
Mmm, for my wireless keyboard I am getting this output from UPower:
I am guessing the spec is this one: https://upower.freedesktop.org/docs/Device.html . I am not sure which property can indicate if it charging or not except from 'state' . I think we wrongfully using the wrong zbus interface i think we use this one https://upower.freedesktop.org/docs/UPower.html and in particular the on_battery property which should only used for the PC like it is used in the cosmic-battery-applet, could be wrong though as this is only new to me. The related code on what symcol/icon to show is here: cosmic-settings/cosmic-settings/src/pages/power/backend/mod.rs Lines 355 to 364 in 2a76db4
|
Ok, so I was right about the implementation according to lxqt management issue here: lxqt/lxqt-powermanagement#295 (comment), that uses KDE's solid library abstraction :https://github.com/KDE/solid/blob/master/src/solid/devices/frontend/battery.h#L201-L208
The problem is that are 6 states and not only chargin/not charging, i guess to be safe for the users we could map only 2 out of 6 (pending_charging, charging) to those icons and the other ones even the unknow state to the icon that doesn't show any charging. Any thoughts on this, @mmstick or am I completely wrong ? The states are the following: The battery power state. 0: Unknown or from this repo here : https://github.com/pop-os/upower-dbus/blob/main/src/device.rs#L10 Edit: I found this related MR: https://gitlab.freedesktop.org/upower/upower/-/merge_requests/20 |
Neither my mouse or headphones are currently charging.
The text was updated successfully, but these errors were encountered: