Open kongomongo opened 4 weeks ago
Also: I haven't tried v4 (didn't even know it existed), would that solve the problems?
PR https://github.com/sanraith/razer-taskbar/pull/8
Here if you want to try
Hey, Thanks for the in-depth description. Does this work for you when you don't have the Razer Synapse window open? (so that its icon just sits in the tray area)
I tried to use this method originally, but in my testing I found that I very rarely get the "Battery Get By Device Handle" messages in my log when I do not have Razer Synapse open. So using this method caused my app to show an outdated percentage value that would only update to the real one when I opened up Razer Synapse again.
Because of this I cannot take the PR as-is, but when I find the time I'll add something like another "mode" in the settings or just the ability to disable the charging display altogether.
In the meantime trying V4 might help you, since that one logs the state in a different way.
hey,
Yes it is completely independent of Synapse open or not.
Here is a quick check of the timings:
chart.xlsx
It looks like during charging more OnBatteryLevelChanged events are produced, when discharging the opposite is true. However, I'd reckon both are sufficient for the application.
While I dont have a good fix that works for both your case and mine, for now I added an option to disable the charging display: https://github.com/sanraith/razer-taskbar/releases/tag/v0.11.0
Thanks for the update. I'm using a patched fork for now, until v4 is out of beta then I'll try that.
Thanks!
Heya,
thanks for your awesome project!
I tried using it with my Viper Ultimate. I am using the mouse wirelessly and I have a Mouse Dock Chroma connected to the PC via USB.
Right from the start razer-taskbar found the mouse correctly and showed the correct battery percentage, but wrongly showed "Charging" while it was not.
I dug into the log and found that my "state" is always 1. Most probably due to the Dock Chroma being connected. In the log the only reliable info I could find was not in the _OnBatteryLevelChanged event but rather in the "Battery Get By Device Handle" event. Here the true Charging state of the mouse is shown in "Battery State:".
As I have no knowledge whether using that event to get charging state would break compatibility with current setups I am asking here...
Thanks!
full log attached. log.txt
Currently using Synapse: Version 3.9.516.51517