Subject: Re: XFree86 4.x and wsmouse (was: Re: CVS bloat?)
To: Richard Rauch <rauch@eecs.ukans.edu>
From: Love <lha@stacken.kth.se>
List: current-users
Date: 01/13/2001 23:54:14
Richard Rauch <rauch@eecs.ukans.edu> writes:
> It would be nice if autoconfiguration would find the wsmouse interface, if
> present.
Crude, but there doesn't seems to be a way for the the mouse-driver to
return what device it think is sane.
Love
--- xc.orig/programs/Xserver/hw/xfree86/common/xf86Configure.c Wed Dec 13 01:00:10 2000
+++ xc/programs/Xserver/hw/xfree86/common/xf86Configure.c Sat Jan 13 22:47:07 2001
@@ -288,6 +288,15 @@
DFLT_MOUSE_PROTO = "PS/2";
}
#endif
+#ifdef WSCONS_SUPPORT
+ fd = open ("/dev/wsmouse", 0);
+ if (fd > 0) {
+ DFLT_MOUSE_DEV = "/dev/wsmouse";
+ DFLT_MOUSE_PROTO = "WSMouse";
+ foundMouse = TRUE;
+ close (fd);
+ }
+#endif
fd = open(DFLT_MOUSE_DEV, 0);
if (fd != -1) {