NetBSD Problem Report #45314
From www@NetBSD.org Tue Aug 30 15:16:55 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 756D263C0E2
for <gnats-bugs@gnats.NetBSD.org>; Tue, 30 Aug 2011 15:16:55 +0000 (UTC)
Message-Id: <20110830151626.CB76763C0E2@www.NetBSD.org>
Date: Tue, 30 Aug 2011 15:16:26 +0000 (UTC)
From: Georg.Brein@unibas.ch
Reply-To: Georg.Brein@unibas.ch
To: gnats-bugs@NetBSD.org
Subject: Spurious mouse button events under X11 on a SparcStation 2
X-Send-Pr-Version: www-1.0
>Number: 45314
>Category: port-sparc
>Synopsis: Spurious mouse button events under X11 on a SparcStation 2
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-sparc-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 30 15:20:00 +0000 2011
>Last-Modified: Mon Nov 21 08:10:01 +0000 2016
>Originator: Georg Brein
>Release: NetBSD 5.1 sparc
>Organization:
University of Basel/Switzerland
>Environment:
NetBSD se-zulu.psycho.unibas.ch 5.1 NetBSD 5.1 (GENERIC) #0: Sat Nov 6 18:44:40 UTC 2010 builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-RELEASE/sparc/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/sparc/compile/GENERIC sparc
SparcStation 2, firmware rev. 2.9
>Description:
Quickly moving the mouse in wide cycles under X11 (without actually pressing one of the mouse buttons) seems to generate spurious mouse button events; this is quite annoying because it sometimes leads to unwanted copy-and-pasting (which is especially annoying with xterm windows, even more so if you are logged in as root...). The spurious mouse button events seem to happen more often if the mouse cursor crosses window borders during the movement (causing twm to redraw the window border).
I experienced the problem both with a type 4 optical mouse attached to a type 4 keyboard and a type 5 mechanical mouse attached to a type 5 keyboard. There are no such problems with the same hardware under Solaris 2.5.1.
My (uninformed) guess is that the SparcStation 2 (at least under NetBSD) is not fast enough to cope with the data from the mouse (I'm using a CG3 frame buffer).
>How-To-Repeat:
Boot a generic kernel on a SparcStation 2, activate xdm, log in, open a few xterm windows and type "ls /dev" in all of them (this is just to fill the xterm screens with harmless text). Then start to move the mouse quickly in wide circles on the screen (crossing window borders) without pressing a mouse button and watch the spurious copy-and-pasting (inside the xterm windows) or the twm menus flashing briefly (on the root window).
>Fix:
Move your mouse more gently :-)
>Audit-Trail:
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, port-sparc-maintainer@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc:
Subject: Re: port-sparc/45314: Spurious mouse button events under X11 on a SparcStation 2
Date: Tue, 30 Aug 2011 12:08:40 -0400
On Aug 30, 3:20pm, Georg.Brein@unibas.ch (Georg.Brein@unibas.ch) wrote:
-- Subject: port-sparc/45314: Spurious mouse button events under X11 on a Spa
| >Number: 45314
| >Category: port-sparc
| >Synopsis: Spurious mouse button events under X11 on a SparcStation 2
| >Confidential: no
| >Severity: serious
| >Priority: medium
| >Responsible: port-sparc-maintainer
| >State: open
| >Class: sw-bug
| >Submitter-Id: net
| >Arrival-Date: Tue Aug 30 15:20:00 +0000 2011
| >Originator: Georg Brein
| >Release: NetBSD 5.1 sparc
| >Organization:
| University of Basel/Switzerland
| >Environment:
| NetBSD se-zulu.psycho.unibas.ch 5.1 NetBSD 5.1 (GENERIC) #0: Sat Nov 6 18:44:40 UTC 2010 builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-RELEASE/sparc/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/sparc/compile/GENERIC sparc
|
| SparcStation 2, firmware rev. 2.9
| >Description:
| Quickly moving the mouse in wide cycles under X11 (without actually pressing one of the mouse buttons) seems to generate spurious mouse button events; this is quite annoying because it sometimes leads to unwanted copy-and-pasting (which is especially annoying with xterm windows, even more so if you are logged in as root...). The spurious mouse button events seem to happen more often if the mouse cursor crosses window borders during the movement (causing twm to redraw the window border).
|
| I experienced the problem both with a type 4 optical mouse attached to a type 4 keyboard and a type 5 mechanical mouse attached to a type 5 keyboard. There are no such problems with the same hardware under Solaris 2.5.1.
|
| My (uninformed) guess is that the SparcStation 2 (at least under NetBSD) is not fast enough to cope with the data from the mouse (I'm using a CG3 frame buffer).
| >How-To-Repeat:
| Boot a generic kernel on a SparcStation 2, activate xdm, log in, open a few xterm windows and type "ls /dev" in all of them (this is just to fill the xterm screens with harmless text). Then start to move the mouse quickly in wide circles on the screen (crossing window borders) without pressing a mouse button and watch the spurious copy-and-pasting (inside the xterm windows) or the twm menus flashing briefly (on the root window).
| >Fix:
| Move your mouse more gently :-)
I think this is caused by the versioned ioctls for the mouse that were
necessary for the 64 bit time syscalls.
christos
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-sparc/45314: Spurious mouse button events under X11 on a
SparcStation 2
Date: Mon, 21 Nov 2016 05:35:11 +0000
On Tue, Aug 30, 2011 at 04:10:07PM +0000, Christos Zoulas wrote:
> | Quickly moving the mouse in wide cycles under X11 (without
> | actually pressing one of the mouse buttons) seems to generate
> | spurious mouse button events; this is quite annoying because it
> | sometimes leads to unwanted copy-and-pasting (which is
> | especially annoying with xterm windows, even more so if you are
> | logged in as root...). The spurious mouse button events seem to
> | happen more often if the mouse cursor crosses window borders
> | during the movement (causing twm to redraw the window border).
>
> I think this is caused by the versioned ioctls for the mouse that were
> necessary for the 64 bit time syscalls.
How? And is this still likely to be an issue? (It's been so long, all
I remember is the existence of the problem that made the mouse move
only in squares on amd64, not what caused it or what the solution was)
--
David A. Holland
dholland@netbsd.org
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-sparc/45314: Spurious mouse button events under X11 on a SparcStation 2
Date: Mon, 21 Nov 2016 09:06:14 +0100
On Mon, Nov 21, 2016 at 05:40:01AM +0000, David Holland wrote:
> How? And is this still likely to be an issue? (It's been so long, all
> I remember is the existence of the problem that made the mouse move
> only in squares on amd64, not what caused it or what the solution was)
Just guessing: the xserver needs to do a WSMOUSEIO_SETVERSION ioctl
(see PR 41902 for other similar fallout).
It works fine on sparc64 (in -7 and -current at least), not sure about sparc.
Martin
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.