Closed bokub closed 1 year ago
Sadly, I have no way to reproduce this bug as I do not own this device. I only can guess there is a special value (probably 0xFF
regarding the level you get) when the moues is off...
(0xFF & ~0b10000000 - 1) * 5 → 630
I will try to get more info :)
I do not own this device
I do, so don't hesitate if you want me to run commands that could help you !
Thank you :)
Same problem with a Prime Wireless. Indeed the second byte returned is 255 (0xff) if the mouse is off or sleeping.
I don't know what's returned in the first byte, but the value seems to always be 64 (0x40) in this case. It is 146 / 0x92 (= the command) when charging, and 210 / 0xD2 while discharging
Thanks a lot for writing rivalcfg!
Fixed by #212. It will be released in the next version :)
Bug description
What happened
rivalcfg --battery-level
shows 630% when mouse is off or disconnectedWhat was expected
A message saying the mouse is not connected
Step to reproduce
→ Always reproducible
rivalcfg --battery-level
to see the real battery levelrivalcfg --battery-level
againSystem information