Subject: Re: PowerBook trackpad & USB mice?
To: John Valdes <valdes@uchicago.edu>
From: Nathan J. Williams <nathanw@MIT.EDU>
List: port-macppc
Date: 02/02/2001 10:39:27
John Valdes <valdes@uchicago.edu> writes:

>    However, X ignores it.  I'm guessing this is because Xmacppc is
>    only looking at wsmouse0?  Is there any way to use the USB mouse
>    and the trackpad simultaneously?  "wsmux" looks promising, but I'm
>    not sure how this should be configured into the kernel (didn't see
>    any samples in the macppc GENERIC config file, though there some
>    in the i386 config file); my guess is something like:
> 
>      pseudo-device  wsmux   2
>      wsmouse0 at ams? mux 0
>      wsmouse* at ums? mux 0

This looks fine.

The other thing you'll need to do is to make the X server open
/dev/wsmouse instead of /dev/wsmouse0. It looks like "/dev/wsmouse%d"
is hard-coded into Xmacppc; you could patch and rebuild Xmacppc
(around line 230 of
xsrc/xc/programs/Xserver/hw/netbsd/macppc/macppcInit.c), or cheat by
moving the real /dev/wsmouse0 aside and making /dev/wsmouse0 a symlink
to /dev/wsmouse.

(Besides making X work with multiple mice, using the wsmux device has
the fringe benefit of making X start happily *before* a mouse is
connected at all, which is good for detachable USB mice, or for
systems with no mouse or keyboard where you just want to use x2x).

        - Nathan