Comment 26 for bug 615892

Revision history for this message
Amujuri (avsilesh-gmail) wrote :

This might help those still having problem with Mitch's method. This is what worked for me ....

I use RAT 5 on my HP HDX 16 laptop with Ubuntu 10.10 running on it. I install everything that comes through automatic updates.

So had my RAT working when I used Mitch's "0" mapping method since Sep'10. But recently I got the problem back and when I checked my xorg.conf file, the mouse section was missing and adding it back to the end of the file didn't work. This is how I diagnosed the problem : I made the following changes from when the mouse used to work and when it didn't.

1. Updated packages in the OS through automatic updates.
2. Disconnected RAT from Ubuntu for a while when I took it to use on my Windows machine to play some games.
3. I saved the monitor display settings, which saves it in xorg.conf file.

This is what I did that made it work again: I took the RAT mapping section from the end of the xorg.conf file to somewhere in the middle after the mapping of my keyboards and laptop touchpad. Main change I think is that RAT should be configured before my monitor gets configured (some kind of dominating strategy I don't know of). So probably for those having problem my suggestion would be to place the RAT mapping somewhere after the keyboard configuration (since its the most important) and before anything else that might play with the X-server.
And for me just setting the 13'th value to "0" works, to be more sure you might use "0" for 14 and 15 as well.

Following is my xorg.conf file:
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 260.19.06 (buildd@yellow) Mon Oct 4 15:59:51 UTC 2010

Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    Option "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
EndSection

Section "InputClass"
       Identifier "Mouse Remap"
       MatchProduct "Saitek Cyborg R.A.T.5 Mouse"
       MatchDevicePath "/dev/input/event*"
       Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 10 11 12 0 14 15"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Samsung SyncMaster"
    HorizSync 26.0 - 81.0
    VertRefresh 24.0 - 75.0
    Option "DPMS"
EndSection

Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce GT 130M"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "TwinView" "0"
    Option "TwinViewXineramaInfoOrder" "DFP-1"
    Option "metamodes" "DFP-1: nvidia-auto-select +0+0"
    SubSection "Display"
        Depth 24
    EndSubSection
EndSection

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\