You are not logged in.

#1 2023-01-27 05:32:00

lfitzgerald
Member
Registered: 2021-07-16
Posts: 174

[GAVE UP] Can't make middle button work on Logitech G502 Hero

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

#2 2023-01-27 07:55:02

d.ALT
Member
Registered: 2019-05-10
Posts: 953

Re: [GAVE UP] Can't make middle button work on Logitech G502 Hero

<EDIT>

lfitzgerald wrote:

* 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

#3 2023-01-27 08:10:47

lfitzgerald
Member
Registered: 2021-07-16
Posts: 174

Re: [GAVE UP] Can't make middle button work on Logitech G502 Hero

No worries d.ALT smile 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

#4 2023-01-27 08:51:22

seth
Member
Registered: 2012-09-03
Posts: 63,982

Re: [GAVE UP] Can't make middle button work on Logitech G502 Hero

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

#5 2023-01-27 22:33:53

lfitzgerald
Member
Registered: 2021-07-16
Posts: 174

Re: [GAVE UP] Can't make middle button work on Logitech G502 Hero

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.

seth wrote:

sudo libinput debug-events

No, same thing. No event for these buttons.

seth wrote:

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).

seth wrote:

xev

Nothing again.

Offline

#6 2023-01-27 23:50:37

seth
Member
Registered: 2012-09-03
Posts: 63,982

Re: [GAVE UP] Can't make middle button work on Logitech G502 Hero

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

#7 2023-01-28 01:18:16

lfitzgerald
Member
Registered: 2021-07-16
Posts: 174

Re: [GAVE UP] Can't make middle button work on Logitech G502 Hero

About 2 years old.

I'll give it a try on a Mac.

Offline

#8 2023-01-28 07:44:57

seth
Member
Registered: 2012-09-03
Posts: 63,982

Re: [GAVE UP] Can't make middle button work on Logitech G502 Hero

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 hmm

Offline

#9 2023-02-05 03:41:38

lfitzgerald
Member
Registered: 2021-07-16
Posts: 174

Re: [GAVE UP] Can't make middle button work on Logitech G502 Hero

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

Board footer

Powered by FluxBB