From jr@opal.com  Sat Mar 29 12:50:07 2008
Return-Path: <jr@opal.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4AF95106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 29 Mar 2008 12:50:07 +0000 (UTC)
	(envelope-from jr@opal.com)
Received: from smtp.vzavenue.net (smtp.vzavenue.net [66.171.59.140])
	by mx1.freebsd.org (Postfix) with ESMTP id 003EF8FC1E
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 29 Mar 2008 12:50:06 +0000 (UTC)
	(envelope-from jr@opal.com)
Received: from 98.79.171.66.subscriber.vzavenue.net (HELO homobox.opal.com) ([66.171.79.98])
  by smtp.vzavenue.net with ESMTP; 29 Mar 2008 08:50:04 -0400
Received: from vougeot.opal.com (localhost [127.0.0.1])
	(authenticated bits=0)
	by homobox.opal.com (8.14.2/8.14.2) with ESMTP id m2TCo3jL003016
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 29 Mar 2008 08:50:03 -0400 (EDT)
	(envelope-from jr@opal.com)
Received: from vougeot.opal.com ([71.255.73.37] helo=vougeot.opal.com) by
	ASSP-nospam; 29 Mar 2008 08:50:03 -0400
Received: from vougeot.opal.com (localhost [127.0.0.1])
	by vougeot.opal.com (8.14.2/8.14.2) with ESMTP id m2TCo2vd001988
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 29 Mar 2008 08:50:02 -0400 (EDT)
	(envelope-from jr@opal.com)
Received: (from jr@localhost)
	by vougeot.opal.com (8.14.2/8.14.2/Submit) id m2TCo2mY001987;
	Sat, 29 Mar 2008 08:50:02 -0400 (EDT)
	(envelope-from jr)
Message-Id: <200803291250.m2TCo2mY001987@vougeot.opal.com>
Date: Sat, 29 Mar 2008 08:50:02 -0400 (EDT)
From: "J.R. Oldroyd" <fbsd@opal.com>
Reply-To: "J.R. Oldroyd" <fbsd@opal.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: freebsd-7.0 moused problems with ALPS GlidePoint
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         122235
>Category:       bin
>Synopsis:       [psm] freebsd-7.0 moused(8) problems with ALPS GlidePoint [regression]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 29 13:00:01 UTC 2008
>Closed-Date:    Sun Sep 25 13:54:08 UTC 2011
>Last-Modified:  Sun Sep 25 13:54:08 UTC 2011
>Originator:     J.R. Oldroyd
>Release:        FreeBSD 7.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD vougeot.opal.com 7.0-STABLE FreeBSD 7.0-STABLE #5: Mon Mar 10 16:49:51 EDT 2008 xx:/usr/src/sys/i386/compile/VOUGEOT i386
>Description:
ALPS GlidePoint touchpad exhibits periodic eratic mouse movement and taps
when using touchpad under moused with xorg.conf using /dev/sysmouse.  With
xorg.conf using /dev/psm0 directly, touchpad does not exhibit eratic behavior.

Under moused, touchpad works normally most of the time, but every few minutes
when using the touchpad, the cursor performs a series of unexpected jumps
and pad taps.  The effect is that often text is unexpectedly selected and
may be unexpectedly pasted back, or that a browser "back" operation is
performed.  Often the first eratic jump is to the bottom of the screen.

There was no problem under 6-stable.
>How-To-Repeat:
Sony VAIO PCG-Z505SX running 7-stable.  Moused enabled.  Xorg.conf uses
/dev/sysmouse config, with modified ZAxisMapping so that tapping works:

rc.conf:
	moused_enable="YES"
	moused_flags="-3 -m 1=4"

xorg.conf:
	Section "InputDevice"
		Identifier  "Mouse0"
		Driver      "mouse"
		Option      "Protocol" "auto"
		Option      "Device" "/dev/sysmouse"
		#Option     "ZAxisMapping" "4 5 6 7"
		Option      "ZAxisMapping" "6 7"
	EndSection

>Fix:
None, as yet.
>Release-Note:
>Audit-Trail:

From: "J.R. Oldroyd" <fbsd@opal.com>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: bin/122235: freebsd-7.0 moused problems with ALPS GlidePoint
Date: Sun, 30 Mar 2008 18:47:11 -0400

 --Sig_/42Zw3rG7O+qlBJNXTJSvQxB
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 
 Running moused -d gives the following:
 
 moused: proto params: f8 80 00 00 8 00 ff
 moused: port: /dev/psm0  interface: ps/2  type: sysmouse  model: GlidePoint
 
 Using the touchpad to move the mouse around in circles within an
 xterm window gives me many movements similar to the following:
 
 moused: received char 0x87
 moused: received char 0x0
 moused: received char 0x2
 moused: received char 0x0
 moused: received char 0x2
 moused: received char 0x0
 moused: received char 0x0
 moused: received char 0x7f
 moused: assembled full packet (len 8) 87,0,2,0,2,0,0,7f
 moused: tv:  1206915137 837403
 moused: flags:80000000 buttons:00000000 obuttons:00000000
 moused: activity : buttons 0x00000000  dx 0  dy -4  dz 0
 
 After a few minutes, while still moving the mouse in circles,
 suddenly I get this:
 
 moused: received char 0x87
 moused: received char 0xc
 moused: received char 0x7f
 moused: received char 0xc
 moused: received char 0x80
 moused: received char 0x0
 moused: received char 0x0
 moused: received char 0x7e
 moused: received char 0x87
 moused: received char 0x1c
 moused: received char 0x7e
 moused: received char 0x1c
 moused: assembled full packet (len 8) 80,0,0,7e,87,1c,7e,1c
 moused: tv:  1206915204 331716
 moused:   :  1206915130 635459
 moused:   :  1206915130 635459
 moused:   :  1206915130 635459
 moused:   :  1206915130 635459
 moused:   :  1206915130 635459
 moused:   :  1206915130 635459
 moused:   :  1206915130 635459
 moused: tv:  1206915204 334697
 moused:   :  1206915204 831716
 moused: flags:8000031a buttons:0000031a obuttons:00000000
 moused: activity : buttons 0x00000313  dx 126  dy 121  dz 26
 moused: mstate[0]->count:1
 moused: button 1  count 1
 moused: mstate[1]->count:2
 moused: button 2  count 2
 moused: mstate[4]->count:1
 moused: button 5  count 1
 moused: mstate[8]->count:1
 moused: button 9  count 1
 moused: mstate[9]->count:1
 moused: button 10  count 1
 moused: received char 0x7f
 moused: received char 0x0
 moused: received char 0x0
 moused: received char 0x7e
 moused: received char 0x81
 moused: received char 0x4
 moused: received char 0x0
 moused: received char 0x4
 moused: received char 0x0
 moused: received char 0x0
 moused: received char 0x0
 moused: received char 0x7e
 moused: assembled full packet (len 8) 81,4,0,4,0,0,0,7e
 moused: tv:  1206915204 343647
 moused: tv:  1206915204 343773
 moused: flags:80000312 buttons:00000008 obuttons:0000031a
 moused: activity : buttons 0x00000001  dx 8  dy 0  dz 0
 moused: mstate[1]->count:2
 moused: button 2  count 0
 moused: mstate[4]->count:1
 moused: button 5  count 0
 moused: mstate[8]->count:1
 moused: button 9  count 0
 moused: mstate[9]->count:1
 moused: button 10  count 0
 moused: received char 0x84
 moused: received char 0xc
 moused: received char 0x7f
 moused: received char 0xc
 moused: received char 0x80
 moused: received char 0x0
 moused: received char 0x0
 moused: received char 0x7e
 moused: received char 0x81
 moused: received char 0xc
 moused: received char 0x7f
 moused: received char 0xc
 moused: assembled full packet (len 8) 80,0,0,7e,81,c,7f,c
 moused: tv:  1206915204 364093
 moused:   :  1206915204 843647
 moused:   :  1206915204 843647
 moused:   :  1206915130 635459
 moused:   :  1206915204 843647
 moused:   :  1206915204 843647
 moused: tv:  1206915204 364831
 moused:   :  1206915204 843773
 moused: flags:80000392 buttons:0000039a obuttons:00000008
 moused: activity : buttons 0x00000393  dx 126  dy 127  dz 11
 moused: mstate[1]->count:3
 moused: button 2  count 3
 moused: mstate[4]->count:2
 moused: button 5  count 2
 moused: mstate[7]->count:1
 moused: button 8  count 1
 moused: mstate[8]->count:2
 moused: button 9  count 2
 moused: mstate[9]->count:2
 moused: button 10  count 2
 moused: received char 0x80
 moused: received char 0x0
 moused: received char 0x0
 moused: received char 0x7e
 moused: received char 0x84
 moused: received char 0xc
 moused: received char 0x7f
 moused: received char 0xc
 moused: assembled full packet (len 8) 80,0,0,7e,84,c,7f,c
 moused: tv:  1206915204 375739
 moused: flags:80000000 buttons:0000039a obuttons:0000039a
 moused: activity : buttons 0x00000393  dx 126  dy 124  dz 11
 moused: received char 0x80
 moused: received char 0x0
 moused: received char 0x0
 moused: received char 0x7e
 moused: received char 0x80
 moused: received char 0x4
 moused: received char 0x0
 moused: received char 0x4
 moused: received char 0x0
 moused: received char 0x0
 moused: received char 0x0
 moused: received char 0x7e
 moused: assembled full packet (len 8) 80,4,0,4,0,0,0,7e
 moused: tv:  1206915204 389560
 moused: flags:80000390 buttons:0000000a obuttons:0000039a
 moused: activity : buttons 0x00000003  dx 8  dy 0  dz 0
 
 This continues for several entries and then the trace returns to
 normal.  The above shows moused "receives" clicks on several
 buttons simultaneously, including non-existent buttons.
 
 At the time of these false button presses, text where the cursor
 was is selected and then pasted back into the window.
 
 Observe that before these false packets, several bytes are received
 that appear to be ignored.  Possibly these are the end of a previous
 packet of which the first bytes are being lost?
 
 	-jr
 
 --Sig_/42Zw3rG7O+qlBJNXTJSvQxB
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.7 (FreeBSD)
 
 iD8DBQFH8Bhwls33urr0k4kRAv4NAJ9sDonbVNhgcVtxXrgPwakrFqbg6QCghhDX
 SSun08C8dRk6yWoPSs4GYDA=
 =ZjyT
 -----END PGP SIGNATURE-----
 
 --Sig_/42Zw3rG7O+qlBJNXTJSvQxB--
State-Changed-From-To: open->feedback 
State-Changed-By: jh 
State-Changed-When: Sun Sep 25 13:23:58 UTC 2011 
State-Changed-Why:  
Can you still reproduce this on recent FreeBSD versions? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122235 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Sun Sep 25 13:54:07 UTC 2011 
State-Changed-Why:  
Submitter doesn't have the hardware anymore. 

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