https://bugs.kde.org/show_bug.cgi?id=491053

ratijas <m...@ratijas.tk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|REPORTED                    |CONFIRMED

--- Comment #1 from ratijas <m...@ratijas.tk> ---
Well, the upstream upower project has something to say about this:

https://gitlab.freedesktop.org/upower/upower/-/blob/669a1c2a27a7a590524d7c45ad427ce9ba9afa8c/libupower-glib/up-device.c?page=2#L1185-1191

> The percentage charge of the device. Note that if the battery level property
> is something other than %UP_DEVICE_LEVEL_NONE, then this percentage is an
> approximation, and should not be used a number to display to the user.

then is proceeds to have conditions like:

        if (battery_level != UP_DEVICE_LEVEL_NONE)
                g_string_append_printf (string, "    battery-level:      
%s\n", up_device_level_to_string (battery_level));

(else don't print anything)

and

                if (battery_level == UP_DEVICE_LEVEL_NONE)
                        g_string_append_printf (string, "    percentage:       
  %g%%\n", up_exported_device_get_percentage (priv->proxy_device));
                else
                        g_string_append_printf (string, "    percentage:       
  %g%% (should be ignored)\n", up_exported_device_get_percentage
(priv->proxy_device));

so we might be not totally wrong on the KDE side. But surely we'd better
display at least *something*.

I don't have Nintendo Switch Pro Controller with me to test, but I trust your
logs, so I'm marking this bug report as CONFIRMED.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to