From owner-freebsd-bugs Fri Sep 18 17:00:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA05582 for freebsd-bugs-outgoing; Fri, 18 Sep 1998 17:00:27 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA05569 for ; Fri, 18 Sep 1998 17:00:24 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id RAA06563; Fri, 18 Sep 1998 17:00:01 -0700 (PDT) Received: from hello.atmos.washington.edu (hello.atmos.washington.edu [128.95.176.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA04605 for ; Fri, 18 Sep 1998 16:52:44 -0700 (PDT) (envelope-from dbx@atmos.washington.edu) Received: from localhost (dbx@localhost) by hello.atmos.washington.edu (8.8.7/8.8.8) with SMTP id QAA00398; Fri, 18 Sep 1998 16:52:19 -0700 (PDT) Message-Id: Date: Fri, 18 Sep 1998 16:52:18 -0700 (PDT) From: Doug Burks To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: dbx@atmos.washington.edu Subject: kern/7983: Tapping the touchpad does not work Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7983 >Category: kern >Synopsis: Tapping the touchpad does not work >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: Fri Sep 18 17:00:00 PDT 1998 >Last-Modified: >Originator: Doug Burks >Organization: Dept of Atmospheric Sciences, University of Washington >Release: FreeBSD 2.2.7-RELEASE i386 >Environment: NEC Versa 5060X laptop running X11 (either Accelerated X v4.1 and stock XFree86-3.3.2p2). The kernel is custom, but nothing more than stripping out unneeded stuff from GENERIC and adding the laptop specific items. The mouse is on "psm0". >Description: One nice feature of a touchpad is that a simple tap of the pad translates to a left mouse click. This worked under FreeBSD 2.2.5, but no longer works under FreeBSD 2.2.7. Also the tap works for a touchpad connected to a serial port under 2.2.7, unlike this PS/2 bus mouse port. >How-To-Repeat: Simply try it. I have no idea what range of touchpads fail. >Fix: Looking through /usr/src/sys/i386/isa/psm.c, the problem is that this mouse is recognized as a generic PS/2 mouse, and thus is not recognized as a touchpad which supports tapping. Thus the returned tap code is not recognized, not handled, and not returned. The following (unfortu- nately reverse) patch fixes the problem on my laptop. *** /usr/src/sys/i386/isa/psm.c Thu Sep 17 10:43:03 1998 --- /usr/src/sys/i386/isa/psm.c-- Thu Sep 17 10:42:48 1998 *************** *** 1770,1779 **** break; case MOUSE_MODEL_GENERIC: - /* `tapping' action */ - ms.button |= ((c & MOUSE_PS2_TAP)) ? 0 : MOUSE_BUTTON4DOWN; - break; - default: break; } --- 1770,1775 ---- Unfortunately, this looks more like a workaround than a true fix, and I have no idea how it will affect non-touchpad PS/2 mice. A true fix re- quires recognizing the full range of touchpads available, beyond my cur- rent knowledge, even for the one on my laptop! I hope that this will spur the maintainer to handle this admittedly minor problem (though ma- jor inconvenience. I felt lost without tapping!) more correctly. Doug Burks dbx@atmos.washington.edu >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message