GNOME Bugzilla – Bug 780360
Handle devices without precise capacity
Last modified: 2020-06-16 11:43:59 UTC
The Logitech T650 has 5 levels of battery, which can roughly correspond to percentages: https://cgit.freedesktop.org/upower/tree/src/linux/hidpp-device.c#n878 But the M325 mouse only has 2 levels of battery, "OK" or "critical". So a level bar isn't exactly great...
Mostly just thinking aloud here, but what about changing from an objective state to something a user must do (or not do) - "fine", "needs recharging soon", "needs recharge". That's easier to map into a non-continuous state.
(In reply to Peter Hutterer from comment #1) > Mostly just thinking aloud here, but what about changing from an objective > state to something a user must do (or not do) - "fine", "needs recharging > soon", "needs recharge". That's easier to map into a non-continuous state. That sounds good. But we'd still need to know how to show that graphically, hence the ui-review tag.
Created attachment 371121 [details] [review] power: Don't show approximate percentages When there's a battery-level property (new in UPower 0.99.5), don't show the percentage, as it's a rough approximation of the truth.
(In reply to Bastien Nocera from comment #0) > The Logitech T650 has 5 levels of battery, which can roughly correspond to > percentages: > https://cgit.freedesktop.org/upower/tree/src/linux/hidpp-device.c#n878 > > But the M325 mouse only has 2 levels of battery, "OK" or "critical". > > So a level bar isn't exactly great... And the T650, and the Logitech Performance MX mouse both have no idea what the battery level is when charging. They know it's charging, and they'll know the battery isn't full. Maybe an animation of some sort? Peter, do you know how those battery states are shown on Windows for example? I expect those are shown in Logitech's own software rather than integrated in the OS.
Attachment 371121 [details] pushed as 6c447dc - power: Don't show approximate percentages
Pushed the wrong patch :/ Let's say it was a good way to get the ball rolling and not revert it.
Mockups from Allan: https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/system-settings/power/power-wires.png
(In reply to Bastien Nocera from comment #7) > Mockups from Allan: > https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/ > system-settings/power/power-wires.png These are just a quick attempt - I'm happy to elaborate as necessary.
> Peter, do you know how those battery states are shown on Windows for example? no idea, sorry, but the mockups look good
(In reply to Peter Hutterer from comment #9) > > Peter, do you know how those battery states are shown on Windows for example? > > no idea, sorry, but the mockups look good The mockups look good, but we don't actually know whether the device has 5 (or 4, or 3) or 2 states. I guess that would mean going for the label option every time.
Created attachment 374265 [details] touchpad.png We've already removed the percentage label. And the bar looks fine for approximate values (other than the colour, see https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/725). Let's call it good enough, and we can always revisit in another bug on GitLab if we want to change that.