Mad Catz RAT7 not working in xorg

Christoph Mathys eraserix at
Tue Jan 7 11:19:38 PST 2014

I've got a RAT7 mouse and found that it locks itself into a window (see 
for example [1] for much more details). Long story short: Every user of 
this mouse needs to add a fragment to the xorg-config to make this mouse 
work. The manufacturer of this POC is apparantly also not willing to do 
anything to get this mouse running on linux (according to [2])

At least on Ubuntu I found some quirk files for certain hardware, so I 
thought maybe we can start something like that for this product too. 
Sadly, they seem to change their USB ID and Product string every once in 
a while, but the following config works for my current edition of this 
mouse (Xorg 7.6 on Ubuntu 12.04):

$ cat /usr/share/X11/xorg.conf.d/50-madcatz-quirks.conf
Section "InputClass"
         Identifier "Mad Catz Inc. R.A.T. 7"
         MatchProduct "Mad Catz Mad Catz R.A.T.7 Mouse"
         MatchIsPointer "true"
         MatchDevicePath "/dev/input/event*"
         Driver "evdev"
         Option "Buttons" "17"
         Option "ButtonMapping" "1 2 3 4 5 0 0 8 9 7 6 12 0 0 0 16 17"
         Option "ZAxisMapping" "4 5 6 7"

This of course only works for my current mouse, but if you should decide 
to add this quirk to xorg, at least my future me does not need to worry 
about it again :).




PS: Please CC as I'm not on the list

More information about the xorg mailing list