andyvorld / LGSTrayBattery

A tray app used to track battery levels of wireless Logitech mouse.
GNU General Public License v3.0
369 stars 30 forks source link

G502 shows up multiple times #117

Open richard987 opened 5 months ago

richard987 commented 5 months ago

My G502 lightspeed mouse shows up multiple times in the menu (sometimes 2, sometimes 3), and has multiple and different percentages in the taskbar as shown (the correct percentage is 12% rather than the 10% or 13% shown).

Also, when I click rediscover devices, it keeps adding extra devices rather than just keeping the new discovered device.

I also tried v3.0.2, that doesnt keep adding new devices, but always shows two devices instead of just one., and one of those devices shows the correct percentage and the other shows a different percentage.

image

image

Perchycs commented 4 months ago

Hey, it might be that you have the Native & GHub sources enabled in the appsettings.toml. I think the best one to enable is GHub, as it uses stats for that specific device. The issues section of the readme says this: Native HID and GHUB do not provide similar percentages, this is due to how native and GHUB calculates percentages from the device's voltages. Native uses an average curve of a 3.7V lipo battery, while GHUB will use a lookup table specific to the device.

richard987 commented 4 months ago

Hey, it might be that you have the Native & GHub sources enabled in the appsettings.toml. I think the best one to enable is GHub, as it uses stats for that specific device. The issues section of the readme says this: Native HID and GHUB do not provide similar percentages, this is due to how native and GHUB calculates percentages from the device's voltages. Native uses an average curve of a 3.7V lipo battery, while GHUB will use a lookup table specific to the device.

Thanks! that seems to have worked.

richard987 commented 4 months ago

Ah but still an issue in v3.03:

[GHub] enabled = true

[Native] enabled = false

I have these settings. But often the device will start to get out of sync with the actual percentage. When I hit rediscover devices, it adds a new (eg 4th) device to the list, requiring me to switch to that device to get the correct percentage in the tray icon.

a) it shouldnt require rescan b) after rescan it should only show the new correct device, not the 3 older ones.

richard987 commented 4 months ago

oddly enough these settings work well: [GHub] enabled = false

[Native] enabled = true