From owner-freebsd-stable Wed Jul 19 6:10:42 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mel.alcatel.fr (mel.alcatel.fr [212.208.74.132]) by hub.freebsd.org (Postfix) with ESMTP id 9EA4837BE89; Wed, 19 Jul 2000 06:10:29 -0700 (PDT) (envelope-from Thierry.Herbelot@alcatel.fr) Received: from aifhs10.alcatel.fr (mailhub2.alcatel.fr [155.132.188.80]) by mel.alcatel.fr (ALCANET/SMTP) with ESMTP id PAA08814; Wed, 19 Jul 2000 15:09:58 +0200 From: Thierry.Herbelot@alcatel.fr Received: from frmta003.netfr.alcatel.fr (frmta003.netfr.alcatel.fr [155.132.251.32]) by aifhs10.alcatel.fr (ALCANET/SMTP2) with SMTP id PAA00725; Wed, 19 Jul 2000 15:07:22 +0200 (MET DST) Received: by frmta003.netfr.alcatel.fr(Lotus SMTP MTA v4.6.6 (890.1 7-16-1999)) id C1256921.00484186 ; Wed, 19 Jul 2000 15:09:13 +0200 X-Lotus-FromDomain: ALCATEL To: Sascha Blank Cc: stable@FreeBSD.ORG, jmz@FreeBSD.ORG Message-ID: Date: Wed, 19 Jul 2000 15:08:39 +0200 Subject: Re: lost mouse when switching back to X Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, a bit late, but .... I've used your patch, but it does not apply completely clean (some converted to ?) I've patched manually the sources like you said, rebuilt XFree 4.01, reinstalled, and it seems to work **quite fine** (at least switching to the text console and back works as expected) Thanks a lot TfH Sascha Blank on 18/07/2000 17:24:52 To: Thierry HERBELOT/FR/ALCATEL@ALCATEL cc: stable@FreeBSD.ORG, jmz@FreeBSD.ORG Subject: Re: lost mouse when switching back to X Hello, On Mon, Jul 17, 2000 at 02:13:57PM +0200, Thierry.Herbelot@alcatel.fr wrote: > When I switch from X-Windows to the text console and then back to > X-windows (Ctrl-Alt-F1, then Alt-F9), the mouse pointer is fixed on the > screen (When I move the "physical" mouse, the pointer stays at the same > place on the X screen). I had this problem on my 4.1-RC machine running XFree86 4.0.1 and moused(8) with a PS/2 mouse as well. So I spent some hours digging through the XFree86 source code and finally came up with a quick'n' dirty patch that cures the problem at least on my system. I haven't contacted the XFree86 people about it yet as I want to hear some more "works for me here too!" before I'll file a PR. Although it's rather late it might be a candidate for inclusion in the ports collection before the 4.1-RELEASE. *** xc/programs/Xserver/hw/xfree86/os-support/bsd/bsd_mouse.c.orig Sat Feb 12 21:45:41 2000 --- xc/programs/Xserver/hw/xfree86/os-support/bsd/bsd_mouse.c Tue Jul 18 17:04:23 2000 *************** *** 165,171 **** --- 165,175 ---- 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 *** xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c.orig Sat Jul 1 01:39:02 2000 --- xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c Tue Jul 18 17:10:51 2000 *************** *** 692,701 **** --- 692,706 ---- 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) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message