NetBSD Problem Report #19085
Received: (qmail 2559 invoked by uid 605); 17 Nov 2002 07:27:40 -0000
Message-Id: <200211170728.gAH7SFF00433@vash.cel.plethora.net>
Date: Sun, 17 Nov 2002 01:28:15 -0600 (CST)
From: seebs <seebs@vash.cel.plethora.net>
Sender: gnats-bugs-owner@netbsd.org
Reply-To: seebs@vash.cel.plethora.net
To: gnats-bugs@gnats.netbsd.org
Subject: Belkin hates me, PS/2 mouse protocol enhancement.
X-Send-Pr-Version: 3.95
>Number: 19085
>Category: kern
>Synopsis: Belkin switchboxes bust PS/2 mouse probe
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: martin
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 17 07:28:00 +0000 2002
>Closed-Date:
>Last-Modified: Sun Nov 17 23:20:58 +0000 2002
>Originator: seebs
>Release: NetBSD 1.6K
>Organization:
>Environment:
System: NetBSD vash.cel.plethora.net 1.6K NetBSD 1.6K (VASH) #0: Mon Nov 11 13:27:55 MST 2002 seebs@vash.cel.plethora.net:/usr/src/sys/arch/i386/compile/VASH i386
Architecture: i386
Machine: i386
>Description:
For some reason, my Belkin console switch tends to lose the use of
my mouse, until something is done to "reset" it. Once this is done,
it always sets the mouse in "normal" PS/2 mode... Until I reboot.
It appears that, if I reprobe the mouse, I might succeed at detecting
the scroll-wheel, except that the current logic trying to *preserve*
the correct mouse protocol kicks in and retries until it gets the
"simple" protocol.
>How-To-Repeat:
Get an annoying Belkin switchbox.
>Fix:
This fix makes the pms driver accept a "more advanced" protocol if
one is offered, so, if you think you have a scroll mouse, and get a
non-scroll protocol, you recheck, but if you think you have a plain
mouse, and get a scroll protocol, you accept it. This should always
be safe...?
Index: pms.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/pckbc/pms.c,v
retrieving revision 1.12
diff -c -r1.12 pms.c
*** pms.c 2002/10/02 16:52:04 1.12
--- pms.c 2002/11/17 07:24:51
***************
*** 455,461 ****
res));
sc->protocol = PMS_UNKNOWN;
pms_enable(sc);
! if (sc->protocol != save_protocol) {
#if defined(PMSDEBUG) || defined(DIAGNOSTIC)
printf("%s: protocol change, sleeping and retrying\n",
sc->sc_dev.dv_xname);
--- 455,461 ----
res));
sc->protocol = PMS_UNKNOWN;
pms_enable(sc);
! if (sc->protocol < save_protocol) {
#if defined(PMSDEBUG) || defined(DIAGNOSTIC)
printf("%s: protocol change, sleeping and retrying\n",
sc->sc_dev.dv_xname);
>Release-Note:
>Audit-Trail:
From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
To: seebs <seebs@vash.cel.plethora.net>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/19085: Belkin hates me, PS/2 mouse protocol enhancement.
Date: Sun, 17 Nov 2002 14:42:06 +0100
On Sun, Nov 17, 2002 at 01:28:15AM -0600, seebs wrote:
> Note: There was a bad value `No.' for the field `>Confidential:'.
> It was set to the default value of `yes'.
>
>
> >Number: 19085
> >Category: kern
> >Synopsis: Belkin switchboxes bust PS/2 mouse probe
> >Confidential: yes
I changed the PR to non-confidential.
Thomas
--
Thomas Klausner - wiz@danbala.ifoer.tuwien.ac.at
Main Rule of Usenet: Never argue with idiots. They drag you down to
their level, then beat you with experience.
Responsible-Changed-From-To: kern-bug-people->martin
Responsible-Changed-By: martin
Responsible-Changed-When: Sun Nov 17 15:19:38 PST 2002
Responsible-Changed-Why:
Mine. Sigh..
>Unformatted:
(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-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.