From owner-freebsd-current Thu Sep 28 12: 8:52 2000 Delivered-To: freebsd-current@freebsd.org Received: from goku.cl.msu.edu (goku.cl.msu.edu [35.8.3.20]) by hub.freebsd.org (Postfix) with ESMTP id 9426D37B424 for ; Thu, 28 Sep 2000 12:08:40 -0700 (PDT) Received: (from dervish@localhost) by goku.cl.msu.edu (8.11.0/8.11.0) id e8SJ8Zw64324 for freebsd-current@FreeBSD.ORG; Thu, 28 Sep 2000 15:08:35 -0400 (EDT) (envelope-from dervish) Date: Thu, 28 Sep 2000 15:08:35 -0400 From: Bush Doctor To: freebsd-current@FreeBSD.ORG Subject: Re: -Current + X 4.0.1 = mouse problems Message-ID: <20000928150835.A57700@goku.cl.msu.edu> Mail-Followup-To: freebsd-current@FreeBSD.ORG References: <20000923205043.A63108@rucus.ru.ac.za> <39CD3291.2A00C204@gorean.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <39CD3291.2A00C204@gorean.org>; from DougB@gorean.org on Sat, Sep 23, 2000 at 03:45:37PM -0700 X-Operating-System: FreeBSD 5.0-CURRENT i386 WWW-Home-Page: http://bantu.cl.msu.edu Organisation: Information Systems - Michigan State University Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Out of da blue Doug Barton aka (DougB@gorean.org) said: > David Siebörger wrote: > > > I've experienced the (apparently common) problem of switching from X > > to console and back to X and getting an unresponsive mouse pointer in > > X. This occurs when I use protocol "Auto", or don't specify a > > protocol. > > Someone was kind enough to send me the attached patch. With > > Option "Protocol" "Auto" > Option "Device" "/dev/sysmouse" > > it works with moused. I tried protocol sysmouse, but it didn't work. > Neither did Christian's advice about the mousesystems protocol. I also > have a wheeled mouse, logitech specifically. I too am experiencing problem. I have a logitech serial wheel mouse. However X will only fire up if I tell it to ignore the "cannot open input device" for my Mouse1 identifier :(. I'll try this patch and see what happens. > > It would be nice to include this patch in our X4 port. > > Doug > -- > "The dead cannot be seduced." > - Kai, "Lexx" > > Do YOU Yahoo!? > --- programs/Xserver/hw/xfree86/input/mouse/mouse.c.orig Sun Jul 23 17:50:10 2000 > +++ programs/Xserver/hw/xfree86/input/mouse/mouse.c Sun Jul 23 17:54:22 2000 > @@ -692,10 +692,15 @@ > pMse->protocolID = protocolID; > } > } > +#ifndef __FreeBSD__ > memcpy(pMse->protoPara, proto[pMse->protocolID], sizeof(pMse->protoPara)); > +#endif > if (automatic) { > > if (name) { > +#ifdef __FreeBSD__ > + memcpy(pMse->protoPara, proto[pMse->protocolID], sizeof(pMse->protoPara)); > +#endif > /* Possible protoPara overrides from SetupAuto. */ > for (i = 0; i < sizeof(pMse->protoPara); i++) > if (protoPara[i] != -1) > --- programs/Xserver/hw/xfree86/os-support/bsd/bsd_mouse.c.orig Sat Feb 12 22:45:41 2000 > +++ programs/Xserver/hw/xfree86/os-support/bsd/bsd_mouse.c Sun Jul 23 17:50:10 2000 > @@ -165,7 +165,11 @@ > mode.rate = rate > 0 ? rate : -1; > mode.resolution = res > 0 ? res : -1; > mode.accelfactor = -1; > +#ifdef __FreeBSD__ > + mode.level = 1; > +#else > mode.level = -1; > +#endif > ioctl(pInfo->fd, MOUSE_SETMODE, &mode); > } > #endif > #:^) -- f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng. bush doctor To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message