I don't know if Shih-Yuan Lee (fourdollars) his patch is used but there
is clearly a bug in the code!!
If you get to see at the following lines:
if (g_ascii_strcasecmp (device_type, "mains") == 0) {
type = UP_DEVICE_KIND_LINE_POWER;
} else if (g_ascii_strcasecmp (device_type, "battery")
== 0) {
type = UP_DEVICE_KIND_BATTERY;
/* Detect if the battery comes from bluetooth
keyboard or mouse. */
if (g_strstr_len (native_path, -1, "bluetooth")
!= NULL) {
The code should be changed so it should also look for a bluetooth mouse when
"type = UP_DEVICE_KIND_LINE_POWER;"
So when you use a desktop pc without battery but with a bluetooth mouse so it
shows the correct icon.
I'm not really a programmer but could you check it?
Thanks
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1153488
Title:
Treats bluetooth input device batteries as batteries
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/1153488/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs