Personal Miscellaneous TCP/IP GRID Quality of Service  
VAIOHTMLLDAPC/C++LaTEX  

Mice

In order to get both the PS/2 trackpad and a USB mouse to work together on a linux machine, you need to change the XFree-Config-4 file located in /etc/. However, we must first find out whether our mouse is actually working under linux. We can do this with the command,

    
    [ytl@Yees_VAIO# cat /dev/input/mice

This will cause the screen to up updated with crap when the usb mouse is moved around. This is good, and implies that signals are at least being sent from the mouse to the kernel.

Next we have to edit the XFree config file in /etc/X11/XF86Config-4

    
    
    # **********************************************************************
    # Pointer section
    # **********************************************************************
    
    
    Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "IMPS/2"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5"
    # ChordMiddle is an option for some 3-button Logitech mice
    # Option "ChordMiddle"
    EndSection
    
    Section "InputDevice"
    Identifier "Mouse2"
    Driver "mouse"
    Option "Protocol" "PS/2"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons"
    Option "Emulate3Timeout" "50"
    # ChordMiddle is an option for some 3-button Logitech mice
    # Option "ChordMiddle"
    EndSection
    

And adding to the bottom of the file,

    
    Section "ServerLayout"
        Identifier "layout1"
        Screen     "screen1"
    
        InputDevice "Mouse2" "CorePointer"
        InputDevice "Mouse1" "SendCoreEvents"
    
        InputDevice "Keyboard1" "CoreKeyboard"
    EndSection
    

Restart X and you should now be able to use both mice!

 

 

Tue, 29 January, 2002 17:18 Previous PageNext Page
 
 
    email me!
© 2001-2003, Yee-Ting Li, email: ytl@hep.ucl.ac.uk, Tel: +44 (0) 20 7679 1376, Fax: +44 (0) 20 7679 7145
Room D14, High Energy Particle Physics, Dept. of Physics & Astronomy, UCL, Gower St, London, WC1E 6BT