From owner-freebsd-questions@FreeBSD.ORG Sat Nov 6 18:31:53 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 958BE16A4CE for ; Sat, 6 Nov 2004 18:31:53 +0000 (GMT) Received: from pd3mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EAB243D45 for ; Sat, 6 Nov 2004 18:31:53 +0000 (GMT) (envelope-from flowers@nekulturny.org) Received: from pd4mr3so.prod.shaw.ca (pd4mr3so-qfe3.prod.shaw.ca [10.0.141.214]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I6R00D6SSRSHO70@l-daemon> for freebsd-questions@freebsd.org; Sat, 06 Nov 2004 11:31:04 -0700 (MST) Received: from pn2ml7so.prod.shaw.ca ([10.0.121.151]) by pd4mr3so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I6R00DMCSRSNGI0@pd4mr3so.prod.shaw.ca> for freebsd-questions@freebsd.org; Sat, 06 Nov 2004 11:31:04 -0700 (MST) Received: from procyon.nekulturny.org (S0106000c41b2b9a3.cg.shawcable.net [68.144.45.143]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0I6R00AF5SRSF8@l-daemon> for freebsd-questions@freebsd.org; Sat, 06 Nov 2004 11:31:04 -0700 (MST) Received: from procyon.nekulturny.org (localhost.nekulturny.org [127.0.0.1]) iA6IV3jF005138; Sat, 06 Nov 2004 11:31:03 -0700 (MST envelope-from flowers@nekulturny.org) Received: (from flowers@localhost) by procyon.nekulturny.org (8.12.10/8.12.10/Submit) id iA6IV37H005137; Sat, 06 Nov 2004 11:31:03 -0700 (MST envelope-from flowers) Date: Sat, 06 Nov 2004 11:31:02 -0700 From: Danny MacMillan In-reply-to: <200411061127.42300.kirk@strauser.com> To: Kirk Strauser Message-id: <20041106183102.GA736@procyon.nekulturny.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline References: <200411061127.42300.kirk@strauser.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: moused and 7-button mice X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Nov 2004 18:31:53 -0000 On Sat, Nov 06, 2004 at 10:27:38AM -0700, Kirk Strauser wrote: > I have a Microsoft Trackball Optical that I'd been using with a Debian system > but that I want to switch to my FreeBSD workstation. The problem I'm having > is that it has 7 buttons: > > Left > Middle (clicking the scroll wheel) > Right > Up scroll > Down scroll > Far-left button (narrow, to the left of the regular left button) > Far-right button > > and moused only seems to pass the first 5 through to X. That is, it works > perfectly well like a regular scroll mouse but those wonderful extra buttons > are ignored. I don't even know where to begin looking for a solution. Any > pointers? I have a Microsoft IntelliMouse Explorer that also has 7 buttons (two thumb buttons). I have all of the buttons working in X using imwheel, which is in the ports. To get everything working as it should I did have to do a little messing around. I'll outline it here since it took a while to figure out. Here is the contents of my .xinitrc: xmodmap -e "pointer = 1 2 3 6 7 4 5" imwheel -p -k -b "67" exec startkde Here is the contents of my /usr/X11R6/etc/imwheelrc: ".*" None,Up,Alt_L|Left None,Down,Alt_L|Right Note that my requirements are =very= simple. You might do better to edit the imwheelrc file installed by default than creating one from scratch, as I did. Here's the InputDevice section of my XF86Config: Identifier "Mouse1" Driver "mouse" Option "Protocol" "Auto" Option "Device" "/dev/psm0" Option "Buttons" "7" Option "ZAxisMapping" "6 7" This is the only configuration I could get working. I couldn't get it working with moused, for example. Of course, I only invested about 5 hours in it so maybe I just quit too soon :) I suspect your trackball, also being a Microsoft device, will respond to a similar configuration. One last thing I'll point out: my mouse has a USB connector but I punch it through a USB -> PS/2 adapter to force it to work with my KVM switch. -- Danny