From owner-freebsd-bugs@FreeBSD.ORG Wed Mar 30 17:20:04 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 372A816A4CE for ; Wed, 30 Mar 2005 17:20:04 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9CA143D53 for ; Wed, 30 Mar 2005 17:20:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2UHK3RF097861 for ; Wed, 30 Mar 2005 17:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2UHK3Pw097860; Wed, 30 Mar 2005 17:20:03 GMT (envelope-from gnats) Resent-Date: Wed, 30 Mar 2005 17:20:03 GMT Resent-Message-Id: <200503301720.j2UHK3Pw097860@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jukka Ukkonen Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9614716A4CE for ; Wed, 30 Mar 2005 17:16:39 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D6C143D31 for ; Wed, 30 Mar 2005 17:16:39 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j2UHGcod064121 for ; Wed, 30 Mar 2005 17:16:38 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j2UHGcKc064120; Wed, 30 Mar 2005 17:16:38 GMT (envelope-from nobody) Message-Id: <200503301716.j2UHGcKc064120@www.freebsd.org> Date: Wed, 30 Mar 2005 17:16:38 GMT From: Jukka Ukkonen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: bin/79376: moused causes random mouse events with a PS/2 mouse on FreeBSD-4.11 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2005 17:20:04 -0000 >Number: 79376 >Category: bin >Synopsis: moused causes random mouse events with a PS/2 mouse on FreeBSD-4.11 >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 30 17:20:03 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Jukka Ukkonen >Release: FreeBSD 4.11-STABLE >Organization: >Environment: FreeBSD mjolnir 4.11-STABLE FreeBSD 4.11-STABLE #3: Tue Mar 29 12:08:01 EEST 2005 root@mjolnir:/usr/obj/home/src/sys/Mjolnir i386 Additionally there are: - XFree86-libraries-4.4.0_3 and - XFree86-Server-4.4.0_7. >Description: When using moused to handle a PS/2 mouse there are a lot of random mouse events in X11 applications. It is quite typical to see key press and drag marking something while one is really only moving the mouse to completely different direction, etc. This problem is not visible at all when the XFree86 server handles reads /dev/psm0 itself. The problem only appears when moused is used to handle /dev/psm0 and pass the events to /dev/sysmouse. Without having any deeper understanding about how moused works, I can only guess what is going on, but I try describe the symptoms I have seen. It seems like either moused somehow drops out of sync with the mouse data stream or it fails somehow trying to combine incoming mouse events to larger events to before passing them to /dev/sysmouse (or something similar). Anyhow on occasion (actually all too often) moused seems to trigger these totally erratic bursts of mouse events. The events really come in bursts and usually they cause a lot of harm and confusion, because one cannot really know any more what commands might have been entered to and xterm with a shell, what new files have been created, what might have been deleted, etc. The erratic events simply copy and paste random strings or often times several lines from the screen. Often the copied text might end up in another xterm window then where the text came from, etc. The fact that I no similar problems when using the same mouse device on its own with XFree86 has convinced me that neither the device itself, nor the psm driver, nor XFree86 is the culprit. So, this practically leaves only moused left to blame. >How-To-Repeat: Take 4.11-STABLE with a PS/2 intellimouse with roller, moused with options "-p /dev/psm0 -t auto", and make XFree86-Server-4.4.0_7 read its mouse events from /dev/sysmouse. For me this patently repeats the problem within a few minutes. A quicker means to make the problem appear would probably be pressing the left mouse button and moving the mouse quickly back and forth a few times. >Fix: I really wish I knew. I'd be posting the fix instead of trying to describe the symptoms now, if I had any clue. ;-) >Release-Note: >Audit-Trail: >Unformatted: