smasty/g203-led

Changing functionality for dpi button

aduerig opened this issue · 1 comments

I have the G203 LIGHTSYNC Gaming Mouse and I'm a huge fan of this repo, thanks!

I wanted to disable the functionality of the DPI button on the mouse, which is possible on Windows in G-HUB (just by deleting all but one DPI slider). On linux I first I tried disabling the extra mouse buttons in the X11/xorg.conf.d/ folder via:

Option "ButtonMapping" "1 2 3 4 5 0 0 0 0 0"

But this didn't work. That led me to check xev for what event the DPI pressing event registered as, but nothing showed up when I pressed the DPI button. That leads me to believe that the DPI button is changing values on the hardware in the mouse itself instead of sending the event to X11 and changing some value there. I searched this repo to see if my intuition was right, but I didn't find any functionality. I'd be happy to code that myself, but I don't have the know-how to reverse engineer hardware and what bytes to send to the mouse. I'd be scared of bricking the mouse somehow.

Is my intuition correct about the DPI button? If so can anyone send me some tips on how I could possibly figure out how to disable it? Is there an guide that Logitech releases that descripts the different bytecodes that are used to interface with the mouse? I could probably code it with that.

Hi, your intuition is correct, the DPI button is configuring the mouse hardware itself. See this comment for basic idea how to reverse-engineer the protocol used by the Windows-based Logitech software: #9 (comment)
I'm not aware of any official documentation for it from Logitech's side.