From vangyzen@stat.duke.edu  Fri Aug 30 06:55:52 2002
Return-Path: <vangyzen@stat.duke.edu>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2B5A037B400
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Aug 2002 06:55:52 -0700 (PDT)
Received: from davinci.isds.duke.edu (davinci.isds.duke.edu [152.3.22.1])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2B38543E3B
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Aug 2002 06:55:51 -0700 (PDT)
	(envelope-from vangyzen@stat.duke.edu)
Received: from floyd.isds.duke.edu (floyd.isds.duke.edu [152.3.22.120])
	by davinci.isds.duke.edu (8.11.6/8.11.6) with ESMTP id g7UDtoU31758
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Aug 2002 09:55:50 -0400 (EDT)
Received: (from vangyzen@localhost)
	by floyd.isds.duke.edu (8.12.5/8.12.5/Submit) id g7UDtopa082965;
	Fri, 30 Aug 2002 09:55:50 -0400 (EDT)
	(envelope-from vangyzen)
Message-Id: <200208301355.g7UDtopa082965@floyd.isds.duke.edu>
Date: Fri, 30 Aug 2002 09:55:50 -0400 (EDT)
From: Eric van Gyzen <vangyzen@stat.duke.edu>
Reply-To: Eric van Gyzen <vangyzen@stat.duke.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: moused(8) seems to delay some mouse events from a USB mouse
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42213
>Category:       bin
>Synopsis:       moused(8) seems to delay some mouse events from a USB mouse
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-usb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 30 07:00:17 PDT 2002
>Closed-Date:    Wed Mar 23 02:00:19 GMT 2005
>Last-Modified:  Wed Mar 23 02:00:19 GMT 2005
>Originator:     Eric van Gyzen
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
Duke University Statistics
>Environment:
FreeBSD 4.6-STABLE (Tue Aug 6 10:23:02 EDT 2002)
XFree86 4.2.0
Logitech USB Optical Mouse

>Description:
When usbd is configured /not/ to start moused, and X is configured to
use /dev/ums0 directly, everything works fine.
However, when usbd starts moused and X is configured to use moused,
there is a problem.  Apparently, some mouse events are not passed until
the next event happens.  As the most obvious example, some clicks are not
passed until the mouse is moved.  I can click the mouse and wait ten seconds
or more, and the click doesn't actually happen until I move the mouse
(even just one pixel).

>How-To-Repeat:
See above.

>Fix:
Yes, please.  ;]  Please suggest debugging/troubleshooting ideas.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: schweikh 
State-Changed-When: Sat Aug 31 02:30:18 PDT 2002 
State-Changed-Why:  
Under X11, start the xev(1) utility to see all the events. 
When pressing a button outside the quare you should get something like 

ButtonPress event, serial 18, synthetic NO, window 0x2400001, 
root 0x26, subw 0x0, time 4289319763, (130,129), root:(367,216), 
state 0x0, button 1, same_screen YES 

and when releasing, 

ButtonRelease event, serial 18, synthetic NO, window 0x2400001, 
root 0x26, subw 0x0, time 4289319891, (130,129), root:(367,216), 
state 0x100, button 1, same_screen YES 

Are these events appearing as soon as you press the button or only 
when you move the mouse and generate MotionNotify events? 

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

From: Jens Schweikhardt <schweikh@schweikhardt.net>
To: Eric van Gyzen <vangyzen@stat.duke.edu>
Cc: GNATS Bug Followup <bug-followup@FreeBSD.org>
Subject: Re: bin/42213: moused(8) seems to delay some mouse events from a USB mouse
Date: Sat, 7 Sep 2002 21:35:20 +0200

 On Tue, Sep 03, 2002 at 10:46:27AM -0400, Eric van Gyzen wrote:
 # Jens Schweikhardt wrote:
 # > Under X11, start the xev(1) utility to see all the events.
 # > When pressing a button outside the quare you should get something
 # > like
 # [...]
 # > Are these events appearing as soon as you press the button or only
 # > when you move the mouse and generate MotionNotify events?
 # 
 # Thanks for the suggestion...I should have thought of that... ;)
 # 
 # The events appear only after the next event is generated.  
 # Specifically:
 # 
 # 1. I press the left mouse button and nothing happens.
 # 
 # 2. I release the left mouse button and event 1 appears:
 # 
 #   ButtonPress event, serial 18, synthetic NO, window 0x1e00001,
 #       root 0x3b, subw 0x0, time 270147181, (74,175), root:(852,388),
 #       state 0x0, button 1, same_screen YES
 # 
 # 3. I move the mouse one pixel and events 2 and 3 appear in
 #    reverse order:
 # 
 #   MotionNotify event, serial 18, synthetic NO, window 0x1e00001,
 #       root 0x3b, subw 0x0, time 270149407, (74,174), root:(852,387),
 #       state 0x100, is_hint 0, same_screen YES
 # 
 #   ButtonRelease event, serial 18, synthetic NO, window 0x1e00001,
 #       root 0x3b, subw 0x0, time 270149407, (74,174), root:(852,387),
 #       state 0x100, button 1, same_screen YES
 # 
 # I hope this helps.  Let me know what I can try next.
 
 I'm stumped. Have you already tried asking in an X11 related newsgroup
 or mailing list if this is a known problem? Maybe somebody can confirm
 or deny the symptom being HW, FreeBSD or XFree86 related.
 
 Regards,
 
 	Jens

From: Hiroharu Tamaru <tamaru@myn.rcast.u-tokyo.ac.jp>
To: freebsd-gnats-submit@FreeBSD.org, vangyzen@stat.duke.edu,
	freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: bin/42213: moused(8) seems to delay some mouse events from a USB mouse
Date: Fri, 15 Nov 2002 02:58:02 +0900

 Hi,
 
 I found this while I was searching for the same thing.
 http://www.freebsd.org/cgi/query-pr.cgi?pr=42213
 
 FWIW, I have also seen this happen in some of my systems.
 For me, they happened with PS/2 mice.
 
 One happened today on a PII-450 440BX box when I installed
 FreeBSD on it (4.7-RELEASE); it never run FreeBSD before, so
 I cannot tell if older versions of FreeBSD or XFree86 works
 with it..
 
 The other happened on a Toshiba Libretto M3 notebook
 (Pentium-133) some time ago.  IIRC, it looked as if the
 upgrade of XFree86 to 4.2 caused the break, but I didn't
 look carefully at that time.
 
 In either cases, directing X to use /dev/psm0 instead of
 /dev/sysmouse resulted as a good workaround, just the same
 as how you mentioned it in the PR.
 
 I had been running many boxes with varaiaty of -STABLE
 versions and up-to-date XFree86's of the times, and only
 noticed this problem on the above two boxes.  These are two
 of the oldest hardwares I use with PS/2 mice.
 
 Hope it adds some data points.
 If this gets solved, please let me know too.
 -- 
 Hiroharu Tamaru

From: Mathew Kanner <mat@cnd.mcgill.ca>
To: freebsd-gnats-submit@FreeBSD.org
Cc: vangyzen@stat.duke.edu
Subject: Re: bin/42213: moused(8) seems to delay some mouse events from a USB mouse
Date: Fri, 29 Nov 2002 11:35:54 -0500

 Hello,
 	I've noticed the same behaviour when setting up a new FreeBSD
 4.7 machine a few weeks ago and XF86Config option was *not* set to
 "Auto".  Setting it so corrected the problem.
 
 	--Mat
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: kris 
Responsible-Changed-When: Thu Jul 17 17:36:17 PDT 2003 
Responsible-Changed-Why:  
Assign to USB maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42213 
Responsible-Changed-From-To: joe->freebsd-usb 
Responsible-Changed-By: joe 
Responsible-Changed-When: Mon Dec 27 14:43:42 GMT 2004 
Responsible-Changed-Why:  
This one belongs to the usb list. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42213 
State-Changed-From-To: feedback->closed 
State-Changed-By: iedowse 
State-Changed-When: Wed Mar 23 02:00:02 GMT 2005 
State-Changed-Why:  

Feedback timed out. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42213 
>Unformatted:
