From nobody@FreeBSD.ORG  Sat Jul 15 11:58:50 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 0608237B5E9; Sat, 15 Jul 2000 11:58:50 -0700 (PDT)
Message-Id: <20000715185850.0608237B5E9@hub.freebsd.org>
Date: Sat, 15 Jul 2000 11:58:50 -0700 (PDT)
From: ritsch_p@FreeBSD.ORG
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: moused has problems with XFree86
X-Send-Pr-Version: www-1.0

>Number:         19951
>Category:       misc
>Synopsis:       moused has problems with XFree86
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jmz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 15 12:00:01 PDT 2000
>Closed-Date:    Thu Jul 26 17:48:27 PDT 2001
>Last-Modified:  Thu Jul 26 17:49:24 PDT 2001
>Originator:     Pierre-Yves Ritschard
>Release:        FreeBSD 4.1-RC
>Organization:
>Environment:
FreeBSD slacker.bamboo.org 4.1-RC FreeBSD 4.1-RC #0: Fri Jul 14 20:50:19 CEST 2000     root@slacker.bamboo.org:/usr/src/sys/compile/smpslacker  i386
>Description:
since the installation of XFree86 4.0.1, it has a very annoying bug:
when launched, X has no problem with the mouse (a logitech ps/2 mouse)
but when exiting an xdm session, the mouse freezes and won't move anymor
>How-To-Repeat:
using Protocol AUTO and Device Sysmouse in /etc/XF86Config
with moused running inFreeBSD 4.1-RC
>Fix:


>Release-Note:
>Audit-Trail:

From: "Jose M. Alcaide" <jose@we.lc.ehu.es>
To: ritsch_p@FreeBSD.ORG
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/19951: moused has problems with XFree86
Date: Mon, 17 Jul 2000 11:29:01 +0200

 ritsch_p@FreeBSD.ORG wrote:
 > 
 > >Description:
 > since the installation of XFree86 4.0.1, it has a very annoying bug:
 > when launched, X has no problem with the mouse (a logitech ps/2 mouse)
 > but when exiting an xdm session, the mouse freezes and won't move anymor
 > >How-To-Repeat:
 > using Protocol AUTO and Device Sysmouse in /etc/XF86Config
 > with moused running inFreeBSD 4.1-RC
 > >Fix:
 > 
 
 I bumped into this problem, too. However, I think it is not related to
 moused, since when using protocol "Auto" and device "/dev/psm0" (i.e., no
 moused running), the mouse gets frozen after CTRL-ALT-Fn switching.
 It seems that protocol "Auto" does not work correctly, despite of
 the mouse device.
 
 Try to set protocol "MouseSystems" in your XF86Config. Surprisingly,
 protocol "SysMouse" does no work for me with XFree86 4.0.1 and moused.
 
 -- JMA
 ****** Jose M. Alcaide  //  jose@we.lc.ehu.es  //  jmas@FreeBSD.org ******
 ** "Beware of Programmers who carry screwdrivers" --  Leonard Brandwein **
 
Responsible-Changed-From-To: freebsd-bugs->jmz 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Jul 17 09:48:57 PDT 2000 
Responsible-Changed-Why:  
Jean-Marc's port. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19951 

From: Michael Han <mikehan@best.com>
To: freebsd-gnats-submit@FreeBSD.org, ritsch_p@FreeBSD.org
Cc:  
Subject: Re: misc/19951: moused has problems with XFree86
Date: Wed, 09 Aug 2000 21:34:09 -0700

 Hi, I've been having the same problem. I checked out the xc tree from
 xfree86.org via cvs and looked at the commit logs for the XFree86
 repository. It looks like this is supposed to be the fix:
 
 http://www.xfree86.org/pipermail/cvs-commit/2000-August/000149.html
 
 Since only xf86Option.c was modified, I generated a patch via:
 
 xc/programs/Xserver/hw/xfree86/common> cvs diff -u -r 1.18 -r 1.19 xf86Option.c
 
 and got this output:
 
 <<EODIFF
 Index: xf86Option.c
 ===================================================================
 RCS file: /cvs/xc/programs/Xserver/hw/xfree86/common/xf86Option.c,v
 retrieving revision 1.18
 retrieving revision 1.19
 diff -u -r1.18 -r1.19
 --- xf86Option.c        2000/08/04 21:07:11     1.18
 +++ xf86Option.c        2000/08/09 16:30:22     1.19
 @@ -1,4 +1,4 @@
 -/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Option.c,v 1.18 2000/08/04 21:07:11 tsi Exp $ */
 +/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Option.c,v 1.19 2000/08/09 16:30:22 tsi Exp $ */
  
  /*
   * Copyright (c) 1998 by The XFree86 Project, Inc.
 @@ -190,7 +190,7 @@
  pointer
  xf86ReplaceIntOption(pointer optlist, char *name, int val)
  {
 -    char tmp[16];
 +    char *tmp = xnfalloc(16);
      sprintf(tmp,"%i",val);
      return xf86AddNewOption(optlist,name,tmp);
  }
 EODIFF
 
 Maybe this patch should be applied to the XFree86-4 port until the
 XFree86 people release the next version?
 -- 
 mikehan@best.com                               http://www.mikehan.com/
 coffee achiever                              San Francisco, California
 "I was thinking of the immortal words of Socrates, who said, "I drank what?"
 
State-Changed-From-To: open->closed 
State-Changed-By: jmz 
State-Changed-When: Thu Jul 26 17:48:27 PDT 2001 
State-Changed-Why:  
The problem is fixed in XFree86-4.1.0 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19951 
>Unformatted:
