You are not logged in.
I have a Logitech G502 Hero mouse. Dunno if the "Hero" is important. If anyone is wondering, overall the mouse is meh. It's a decent size and the wheel spin and lock is nice, that's about it.
What works:
* Left and right buttons
* Mouse wheel spin scrolls vertically
* Mouse wheel left/right seems to scroll horizontally
* Setting DPI and LED color through piper
* The button below the wheel, which normally switches DPI profiles, register events
However, the three side buttons and the wheel click do not work. I have tried mapping left click, middle click, and "button 5-8 click" to these. None of them produce anything in "xev -event button | grep button".
I am able to map the DPI switch button to middle mouse, and it then gives a "button 2" event in "xev -event button | grep button". However the DPI switch is located in a really inconvenient location and is hard to press.
Does anyone know what the deal with this is? Is the mouse just that crappy? Am I missing something? I don't really want to get a new mouse, since everything else on the market is even more terrible (wireless or too small).
Last edited by lfitzgerald (2023-02-05 03:41:55)
Offline
<EDIT>
* Setting DPI and LED color through piper
Yup, OP is already aware of Piper utility
</EDIT>Did you already try having a look at libratbag and piper?
Last edited by d.ALT (2023-01-27 07:57:00)
<49,17,III,I> Fama di loro il mondo esser non lassa;
<50,17,III,I> misericordia e giustizia li sdegna:
<51,17,III,I> non ragioniam di lor, ma guarda e passa.
Offline
No worries d.ALT Yes, I am already using Piper and libratbag. It recognizes the mouse and shows the correct silhouette. I can set all the buttons to middle mouse (or whatever I want) and clicking apply gives no errors. But afterwards the buttons fail to generate events in xev.
I also thought maybe the event somehow ends up being not a "button", but something else, and false through the grep. But with just xev by itself, I still see nothing in response to these buttons.
Offline
Do you get events in
- sudo libinput debug-events
- sudo evtest # layer below libinput
- xev # no event filtering in case it fires keyboard keys and those might be even bound to shortcuts
?
Offline
Some more detail - I realized that some buttons are labeled. For reference, here's an image: https://i1.wp.com/www.techarp.com/wp-co … ons-01.jpg
* G3 and G4 do not generate events and cannot be mapped to anything (not even left click). These are 5 and 6 in the image.
* The "crosshair" button does not generate events and cannot be mapped to anything (not even left click). This is 4 in the image.
* G7, G8 work as expected and can be remapped. These are 2, 3 in the image.
* G9 works as expected and can be remapped. Not marked in the image, but it's the second, shallower button below the mouse wheel. The one directly next to the wheel is a mechanical toggle for free/stepped wheel turn.
* Mouse click does not generate events and cannot be mapped to anything (not even left click).
* The mouse can also act as a left/right paddle (by default used for horizontal scroll) - these work and can be remapped.
It's almost as if the switch for all these buttons dies, basically. But I find that a bit hard to believe, because it's unlikely that they would all die at the same time. I don't have a Windows computer to test it, although I have a mac - dunno what I would install on that though. On the mac, clicking the mouse button on links in the browser doesn't open them in new tab like middle mouse would.
sudo libinput debug-events
No, same thing. No event for these buttons.
sudo evtest
This shows two entries for my mouse. I tried both. First one is same as xev - some buttons work, others generate no events. Second one shows no events at all (whether click or mouse movement).
xev
Nothing again.
Offline
because it's unlikely that they would all die at the same time.
How old is the mouse?
W/ no results from evdev the mouse probably doesn't generate usable events at all.
Since it's a programmable mouse, I'd first look there
Apparently the configuration software is available for macOS as well:
https://support.logi.com/hc/en-us/artic … ming-Mouse
Offline
About 2 years old.
I'll give it a try on a Mac.
Offline
Also try the LTS kernel.
There seems to be going on some issue w/ logitech mice and recent kernels, though so far mostly affecting the wheel
Offline
Thanks for the tip, Seth! Hopefully it'll help anyone who finds this later on Google.
I tried the mouse on a Mac and concluded the switch is dead. Even the wheel click doesn't register on the mac, and normally it should be a middle click (I test by clicking on links in a browser - middle click is normally "open in new tab").
At this point I got frustrated and bought a Corsair mouse with similar design that I find slightly more ergonomic. Corsair doesn't work at all with libratbag/Piper, but I found https://github.com/ckb-next/ckb-next which does work well enough. Sorry for the unsatisfying conclusion.
Last edited by lfitzgerald (2023-02-05 03:42:39)
Offline