You are not logged in.

#1 2026-03-20 08:45:48

ShmoopieDoop
Member
Registered: 2026-03-20
Posts: 1

Binding keybinds to mouse buttons sends unwanted modifier keypresses

I'm trying to configure a Logitech G502 hero mouse with ratbagd. Specifically I want to bind the extra buttons to certain keys. When the mouse buttons are clicked the mouse also sends some modifier keypresses.
For example if I bind mouse button 5 to "KEY_8", run "sudo evtest" and click the button I get:

Testing ... (interrupt to exit)
Event: time 1773995831.355195, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e3
Event: time 1773995831.355195, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 1
Event: time 1773995831.355195, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70025
Event: time 1773995831.355195, type 1 (EV_KEY), code 9 (KEY_8), value 1
Event: time 1773995831.355195, -------------- SYN_REPORT ------------
Event: time 1773995831.461180, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e3
Event: time 1773995831.461180, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 0
Event: time 1773995831.461180, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70025
Event: time 1773995831.461180, type 1 (EV_KEY), code 9 (KEY_8), value 0
Event: time 1773995831.461180, -------------- SYN_REPORT ------------

The modifiers are different for each button and this makes the buttons very annoying to use.
I was unable to find a similar issue when searching the internet.

Offline

Board footer

Powered by FluxBB