KernelCoffee

Another sip of code ?

Hardware - Linux - Saitek Cyborg R.A.T 7/9 Compatibility

| Comments

I like games, which is why I keep a Window partition on my laptop (labeled ‘Wintendo’), and good games deserve a good mouse to run them. And so I bought the Cybork R.A.T 7 from Saitek, looks weird at first glance but is fully customizable to feel awesome when you use it. How disappointed I was when I discovered that I wasn’t behaving properly when I plugged it in my Fedora partition.

So here’s the way to resolve this matter.

If like me you don’t have a Xorg.conf file (Fedora generates it automatically at startup), you can create a file name “20-cyborgrat7.conf” (or “20-cyborgrat9.conf” if you have a R.A.T 9) in the “xorg.cong.d” folder.

So to summarize :
At the path “/etc/X11/xorg.conf.d/”, create a file name “20-cyborgrat7.conf” or “20-cyborgrat9.conf” containing the following :

1
2
3
4
5
6
7
8
9
Section "InputClass"
        Identifier "R.A.T."
        MatchProduct "R.A.T.7|R.A.T.9"
        MatchDevicePath "/dev/input/event*"
        Option "Buttons” “17"
        Option "ButtonMapping" "1 2 3 4 5 0 0 8 9 7 6 12 0 0 0 16 17"
        Option "AutoReleaseButtons" "13 14 15"
        Option "ZAxisMapping" "4 5 6 7"
EndSection

And reboot the X server, so far it works pretty well, I haven’t tested all the buttons yet, but vertical and horizontal scroll works.

EDIT:
The config file is also working with the R.A.T.9 so I specified it in the article and the title.

Source : baudet.me

Comments