LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 02-19-2017, 03:23 PM   #1
shorty_boy
Member
 
Registered: Oct 2003
Location: Oak Harbor, WA
Distribution: Debian Unstable
Posts: 94

Rep: Reputation: 16
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.

Last edited by shorty_boy; 02-23-2017 at 06:13 PM. Reason: Issue has been resolved
 
Old 02-19-2017, 06:46 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
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.
 
Old 02-21-2017, 02:06 PM   #3
shorty_boy
Member
 
Registered: Oct 2003
Location: Oak Harbor, WA
Distribution: Debian Unstable
Posts: 94

Original Poster
Rep: Reputation: 16
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.
 
Old 02-21-2017, 03:57 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
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.
 
Old 02-22-2017, 09:50 PM   #5
shorty_boy
Member
 
Registered: Oct 2003
Location: Oak Harbor, WA
Distribution: Debian Unstable
Posts: 94

Original Poster
Rep: Reputation: 16
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.
 
Old 02-23-2017, 06:11 PM   #6
shorty_boy
Member
 
Registered: Oct 2003
Location: Oak Harbor, WA
Distribution: Debian Unstable
Posts: 94

Original Poster
Rep: Reputation: 16
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!?
 
Old 02-23-2017, 07:10 PM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
I guess peculiar top-end configurable input devices like this. Anyway, reads like progress?
 
Old 02-23-2017, 07:11 PM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
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.
 
Old 02-24-2017, 06:32 PM   #9
shorty_boy
Member
 
Registered: Oct 2003
Location: Oak Harbor, WA
Distribution: Debian Unstable
Posts: 94

Original Poster
Rep: Reputation: 16
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.
 
Old 02-24-2017, 07:16 PM   #10
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Well done. I can see a wiki page or how to coming.
 
Old 03-03-2017, 07:04 PM   #11
shorty_boy
Member
 
Registered: Oct 2003
Location: Oak Harbor, WA
Distribution: Debian Unstable
Posts: 94

Original Poster
Rep: Reputation: 16
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Newest X server and libinput, libwacom have left system without keyboard or mouse input bamunds Slackware 14 01-20-2017 03:03 PM
Mouse side buttons stopped working after xorg upgrade J.K Mandriva 4 03-17-2006 06:07 AM
xorg 6.9 breaks mouse buttons granth Slackware 10 02-04-2006 02:32 PM
X not recognizing all mouse buttons strux Linux - Hardware 0 11-12-2004 04:07 PM
Xorg, mouse side-buttons and xmodmap. At the end of my wits. Nordmann Slackware 3 08-23-2004 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration