LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Arch (https://www.linuxquestions.org/questions/arch-29/)
-   -   Xorg 1.19 with libinput not recognizing all buttons of the EVGA x5l mouse. (https://www.linuxquestions.org/questions/arch-29/xorg-1-19-with-libinput-not-recognizing-all-buttons-of-the-evga-x5l-mouse-4175600146/)

shorty_boy 02-19-2017 03:23 PM

Xorg 1.19 with libinput not recognizing all buttons of the EVGA x5l mouse.
 
Good Day all.

So I am having an issue here with my gaming mouse. I have an EVGA X5L (http://www.evga.com/products/product...901-X1-1051-KR) that for some reason, Xorg using libinput is not recognizing the two thumb buttons on the right hand side of the mouse. I am a lefty and have the mouse configured (via gnome settings) to function as a left handed mouse.

When I was using evdev with Arch and Debian SID in 32 bit mode a year ago, all buttons were recognized. It also seems that in Debian Unstable 64bit with Wayland and libinput, all buttons are recognize. Unfortunately I use that environment for development and have no games installed any more (how would I test this from cli!?).

Anyone have this problem? I would like to use libinput since it is the default and evdev is being depricated.

I can provide information as needed. Unfortunately, the Arch Wiki points to using evdev for configuration and everything else with libinput and Xorg show howto setup touchpads.:(


**Edit**
Need the EVGA Software to remap buttons. This currently requires MS Windows.

ferrari 02-19-2017 06:46 PM

Try using the 'xev' utility to determine if the buttons of interest are at least generating events when pressed. It should show the button being pressed. Hopefully, it's just a button-mapping issue...

https://wiki.archlinux.org/index.php...ton_re-mapping

From 'man libinput'
Quote:

BUTTON MAPPING
X clients receive events with logical button numbers, where 1, 2, 3 are usually interpreted as left, middle, right
and logical buttons 4, 5, 6, 7 are usually interpreted as scroll up, down, left, right. The fourth and fifth phys-
ical buttons on a device will thus send logical buttons 8 and 9. The ButtonMapping option adjusts the logical
button mapping, it does not affect how a physical button is mapped to a logical button.

Traditionally, a device was set to left-handed button mode by applying a button mapping of "3 2 1 ..." On systems
using the libinput Xorg input driver it is recommended to use the LeftHanded option instead.

The libinput Xorg input driver does not use the button mapping after setup. Use XSetPointerMapping(3) to modify
the button mapping at runtime.


shorty_boy 02-21-2017 02:06 PM

thanks for the quick reply. Have not had a chance to test with xev. I will give it a try today. The Libinput + Xorg stuff is confusing since some of stuff in X is still there while other protions appear to be deprecated.

ferrari 02-21-2017 03:57 PM

True, but I/others can probably guide you through the button mapping so long as the button events are being generated/enumerated in the first place.

shorty_boy 02-22-2017 09:50 PM

Update:

It looks like XEV is no longer taking input from the two buttons in question, not even in Debian SID. I will take it to work tomorrow and use the EVGA mouse driver software to see if it can unlock those buttons since it is "Windows" only.

I will post an update to let everyone know how it turns out.

shorty_boy 02-23-2017 06:11 PM

Need the windows tool.
 
Need the windows tool.

So took it to work today and used the EVGA software to apply a firmware upgrade and re-enable the buttons.

Maybe my next project will be to create a *nix tool like the one guy did for Roccat. Seriously though... firmware for a mouse!?

ferrari 02-23-2017 07:10 PM

I guess peculiar top-end configurable input devices like this. Anyway, reads like progress?

ferrari 02-23-2017 07:11 PM

Quote:

Maybe my next project will be to create a *nix tool like the one guy did for Roccat.
Yes, that would be a good idea if not too arduous.

shorty_boy 02-24-2017 06:32 PM

Yeah it is progress. The caveat is that you cannot map those buttons to the same function as any other button on the mouse or else it reads as the same button. So Yesterday I set buttons 6 and 7 to match the functions for buttons 8 and 9 (Browser forward/back). XEV showed that button 6 was button 8 and button 7 was button 9. So I had to map the buttons to profile switcher up and profile switcher down. The profile switches happen in software so this has not adverse effects on my GNU/Linux machines since it does not run the EVGA software. They are now reading as buttons 6 and 7 respectively.

So yes, progress.

I am probably going to have to fire up wireshark on my work PC and analyze the packet traffic to see what USB commands the software sends to the mouse and vise versa when I write specific commands.

ferrari 02-24-2017 07:16 PM

Well done. I can see a wiki page or how to coming. :)

shorty_boy 03-03-2017 07:04 PM

The adding an item to the mouse configuration wiki is a good idea. Thanks for the suggestion. I'll do it for Debian and Arch.


All times are GMT -5. The time now is 11:27 PM.