You are not logged in.

#1 2004-03-30 23:57:57

trey
Member
From: Alpharetta, GA
Registered: 2003-10-18
Posts: 73

Adding an additional mouse

My Arch 0.6 desktop currently uses a USB mouse.  I just purchased a PS/2
KVM switch for use with this and an additional computer.  Will I have
any issues using the KVM device with the PS/2 mouse and my primary
desktop, or must I add an entry to my XFree86Config to account for the
PS/2 mouse as well.  If so, how would that look.

Thanks.

Offline

#2 2004-03-31 00:26:13

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Adding an additional mouse

Three parts, in /etc/X11/XF86Config:

Section "InputDevice"
        Identifier      "Mouse0"
        # Modified by mouseconfig
        Driver          "mouse"
#       Option          "Device"                "/dev/mouse"
        Option          "Device"                "/dev/misc/psaux"
        Option          "Protocol"              "PS/2"
#       Option          "Emulate3Buttons"       "yes"
        Option          "ZAxisMapping"          "4 5"
EndSection
Section "InputDevice"
        Identifier      "Mouse1"
        # Modified by mouseconfig
        Driver          "mouse"
        Option          "Device"                "/dev/input/mice"
#       Option          "Protocol"              "PS/2"
        Option          "Protocol"              "ImPS/2"
#       Option          "Emulate3Buttons"       "yes"
        Option          "ZAxisMapping"          "4 5"
EndSection
Section "ServerLayout"
        Identifier "XFree86 Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Mouse1" "SendCoreEvents"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Each mouse needs its own input device.  Then in the ServerLayout section you need to specify which on is the CorePointer (the one that's there all the time) and which one just sends core events (SendCoreEvents).  The setup I have here is for a sometimes-connected usb mouse.  Yours should work nearly the same.

That is of course if you want to use the PS/2 mouse... I've never heard of Linux (or X) complaining because you weren't using everything plugged into your system.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

Board footer

Powered by FluxBB