From owner-freebsd-bugs Tue Aug 17 19: 1:51 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 383F8156A9 for ; Tue, 17 Aug 1999 19:01:44 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id TAA93216; Tue, 17 Aug 1999 19:00:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 6879A15627; Tue, 17 Aug 1999 18:55:34 -0700 (PDT) Message-Id: <19990818015534.6879A15627@hub.freebsd.org> Date: Tue, 17 Aug 1999 18:55:34 -0700 (PDT) From: jrozes@vinton.com To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: kern/13215: ALPS GlidePoint in Sony Z505 not recognized Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13215 >Category: kern >Synopsis: ALPS GlidePoint in Sony Z505 not recognized >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 17 19:00:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Jonathan Rozes >Release: 3.2-STABLE >Organization: >Environment: FreeBSD thorium 3.2-STABLE FreeBSD 3.2-STABLE #21: Tue Aug 17 17:11:30 PDT 1999 jrozes@thorium:/usr/src/sys/compile/THORIUM i386 >Description: The ALPS GlidePoint device found in the Sony Z505 is not correctly detected during bootup. It is instead detected as a generic ps/2 mouse, which does not support the 'tap' feature the GlidePoint is capable of. This is due to the device returning a different value than expected in the first status byte, as checked in enable_aglide() in sys/i386/isa/psm.c. >How-To-Repeat: Boot any 3.2-STABLE kernel with a psm device configured on a Sony Z505-series laptop. Mouse will be detected as ps/2 generic. >Fix: Don't know if this is really the right way to do it, but here's a diff that checks for the old status value as well as the one returned by the GlidePoint in the Sony Z505. --- sys/i386/isa/psm.c.orig Tue Aug 17 15:32:39 1999 +++ sys/i386/isa/psm.c Tue Aug 17 17:16:15 1999 @@ -2027,7 +2027,9 @@ */ if (!mouse_id_proc1(sc->kbdc, PSMD_RES_LOW, 2, status)) return FALSE; - if ((status[0] & 0x10) || (status[1] == PSMD_RES_LOW)) + if (status[1] == PSMD_RES_LOW) + return FALSE; + if ((status[0] & 0x10) && (status[0] & 0x2C)) return FALSE; return TRUE; } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message