[lug] Dual mice under X?

D. Stimits stimits at idcomm.com
Fri Jul 13 14:14:15 MDT 2001


John Karns wrote:
> 
> On Fri, 13 Jul 2001, Bonnell, Doug said:
> 
> > The generic USB mouse selection comes up with /dev/mouse
> > pointing to /dev/input/mice.
> >
> > I've tried multimouse and both mice do move the cursor, but
> > the cursor jumps over to the right screen edge and pretty
> > much stays there. I've seen this behaviour when the protocol
> > wasn't right.
> >
> > Trouble is, X uses PS/2 whether I'm using the touchpad or the
> > external USB mouse. Don't know what else to tell multimouse or
> > gpm other than ps2 for the type.
> >
> > So close....
> 
> I've set up my Dell Inspiron 8000 to have both the ps/2 touchpad and a
> MS USB wheel mouse active simultaneously in both X and console text mode.
> I am also able to activate gpm so that it sees both.  I'm running SuSE 7.1
> under a reiserfs patched 2.2.19 kernel, and X 4.0.3.  I have not yet
> succeeded in getting the wheel to scroll in X / fvwm2 though, and do have
> problems getting the X clipboard paste to work in some X apps such as
> StarOffice.
> 
> XF86Config (relevant sections):
> 
> Section "ServerLayout"
>         Identifier     "XFree86 Configured"
>         Screen      0  "Screen0" 0 0
>         InputDevice    "Mouse0" "CorePointer"
>         InputDevice    "Mouse1" "SendCoreEvents"
>         InputDevice    "Keyboard0" "CoreKeyboard"
> EndSection
> 
> .
> .
> .

Assuming the current state of the problem is indeed protocol, and it
sounds like it is (because I also have seen the same exact behavior with
wrong protocol), the following "InputDevice" sections would be the key.
It allows Mouse0 and Mouse1 to have separate Option lines for
"Protocol". The hard part is that if both are plugged in at the same
time, if either of them is incorrect, the bad behavior will continue.
The separate "InputDevice" sections apply only to XFree86 4.0.x+, so if
version 3.6.x is used, this won't work.

D. Stimits, stimits at idcomm.com

> 
> Section "InputDevice"
>         Identifier  "Mouse0"
>         Driver      "mouse"
>         Option      "Protocol" "PS/2"
>         Option      "Device" "/dev/mouse"
>         Option      "Emulate3Buttons"
>         Option      "Emulate3Timeout"
> EndSection
> 
> Section "InputDevice"
>         Identifier  "Mouse1"
>         Driver      "mouse"
>         Option      "Protocol" "PS/2"
>         Option      "Device" "/dev/usbmouse"
>         Option      "Buttons"       "5"
>         Option      "ZAxisMapping"  "5 4"
> EndSection
> 
> gpm options are:
> 
> -t ps2 -m /dev/mouse -M -t imps2 -m /dev/usbmouse
> 
> USB related modules:
> 
> mousedev                3824   0  (unused)
> hid                    11808   0  (unused)
> input                   2880   0  [mousedev hid]
> usb-uhci               19088   0  (unused)
> usbcore                43472   1  [hid usb-uhci]
> 
> /dev/mouse is sym-linked to /dev/psaux
> 
> HTH
> 
> ----------------------------------------------------------------
> John Karns                                        jkarns at csd.net
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list