From owner-freebsd-ports Sun Sep 22 0:20: 8 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9323537B407 for ; Sun, 22 Sep 2002 00:20:06 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D492F43E6A for ; Sun, 22 Sep 2002 00:20:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8M7K5Co046348 for ; Sun, 22 Sep 2002 00:20:05 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8M7K52H046347; Sun, 22 Sep 2002 00:20:05 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52CAD37B401 for ; Sun, 22 Sep 2002 00:19:38 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB76343E65 for ; Sun, 22 Sep 2002 00:19:37 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g8M7Jb7R096177 for ; Sun, 22 Sep 2002 00:19:37 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.6/8.12.6/Submit) id g8M7JbuO096175; Sun, 22 Sep 2002 00:19:37 -0700 (PDT) Message-Id: <200209220719.g8M7JbuO096175@www.freebsd.org> Date: Sun, 22 Sep 2002 00:19:37 -0700 (PDT) From: Siegbert Baude To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/43232: X doesn't receive button #7 from moused's /dev/sysmouse Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 43232 >Category: ports >Synopsis: X doesn't receive button #7 from moused's /dev/sysmouse >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 22 00:20:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Siegbert Baude >Release: RELENG_4 >Organization: >Environment: FreeBSD myip.mydomain 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE #2: Thu Sep 5 20:02:17 CEST 2002 toor@myip.mydomain:/usr/obj/usr/src/sys/MYCOMP i386 >Description: If you map any button to button #7 on the command line of moused, you get the correct events on the console (using the -fd flags for moused). But within X the events of button #7 are simply ignored as you can check with xev. This is with a Microsoft IntelliMouse Optical on XFree86-4.2.0_1,1 but I saw the same behaviour along the whole XFree86-4.x line. I never checked this for XFree86-3.x The conventional approach i.e. configuring only X (and no additional -m flags for moused) to map the ZAxis and changing buttons 6/7 with 4/5 with xmodmap works however. All 7 buttons are received then by xev. Also not using moused at all, but pointing X directly to the correct device works for all seven buttons. >How-To-Repeat: root # moused -fd -p /dev/psm0 -t auto -m 7=3 moused: proto params: f8 80 00 00 8 00 ff moused: port: /dev/psm0 interface: ps/2 type: sysmouse model: IntelliMouse Explorer [snip] Pressing mouse button #3 here, which is now mapped to #7 moused: received char 0x87 moused: received char 0x0 moused: received char 0x0 moused: received char 0x0 moused: received char 0x0 moused: received char 0x0 moused: received char 0x0 moused: received char 0x7f moused: assembled full packet (len 8) 87,0,0,0,0,0,0,7f moused: tv: 1032678418 792660 moused: flags:00000004 buttons:00000000 obuttons:00000004 moused: activity : buttons 0x00000000 dx 0 dy 0 dz 0 moused: mstate[6]->count:1 moused: button 7 count 0 But xev sees only buttons up to #6. #7 is silently ignored. Relevant lines of /etc/X11/XF86Config: Section "InputDevice" Identifier "MS IntelliMouse Optical" Driver "mouse" Option "Protocol" "Auto" Option "Device" "/dev/sysmouse" Option "Buttons" "7" EndSection >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message