From owner-freebsd-current@FreeBSD.ORG Fri Oct 19 14:15:53 2007 Return-Path: Delivered-To: Current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CEEE16A418 for ; Fri, 19 Oct 2007 14:15:53 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id 9BA1913C480 for ; Fri, 19 Oct 2007 14:15:51 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.1/8.14.1) with ESMTP id l9JDhw5A009621; Fri, 19 Oct 2007 08:43:58 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Fri, 19 Oct 2007 08:43:58 -0500 (CDT) From: "Sean C. Farley" To: "Sam Fourman Jr." In-Reply-To: <11167f520710182258y1b358e2cg7a9d6ed89e3f1a46@mail.gmail.com> Message-ID: References: <11167f520710182258y1b358e2cg7a9d6ed89e3f1a46@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on mail.farley.org Cc: Current@FreeBSD.org Subject: Re: evdev Protocol in RELENG_7 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2007 14:15:53 -0000 On Fri, 19 Oct 2007, Sam Fourman Jr. wrote: > Here is My Question, is it possible to use evdev (the xorg mouse > protocol that may be linux specific)in RELENG_7 with xorg 7.3? > > I have a Logitech mx1000 mouse and I can not seem to get xorg to use > the buttons correctly. I have searched google high and low. > > the dmesg says it is a 16 button mouse however I only count 12. > whatever the case, the top buttons by the wheel have the same id as > the wheel scroll in xev > > if there is an alternate way to use a 12 button mouse in FreeBSD > please point me to the appropriate documentation. Here is my setup for using the MX1000. It is probably not entirely correct, but I have been too busy to spend time restructuring it. If you get some better ideas, please let me know. First, I disable moused since it will not pass that many buttons (max seven buttons?) to Xorg. /etc/rc.conf: moused_enable="NO" moused_nondefault_enable="NO" Next, I tell Xorg how to use this mouse: Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/ums0" Option "Emulate3Buttons" "false" Option "ZAxisMapping" "9 10" EndSection I run this in my .xinitrc/.xsession file: xmodmap -e "pointer = 1 11 3 9 10 6 7 8 4 5 2 12 13 14" Swapping buttons 11 and 2 moves the paste button from pressing the wheel to the up arrow. It stops all those paste-and-scroll up mistakes. Amusingly, I get this warning: Warning: Only changing the first 14 of 32 buttons. Yes! I have 32 buttons. :) I think it sees the press down and release actions as two separate buttons. No. xev does not show these actions as separate buttons. Lastly, I run a little program I wrote to disable CruiseControl else the up button will keep pasting or something else wicked that I no longer recall. Some buttons do not work for me, but I have not seen any need for them. Hopefully, this will help you get started to finding a better way. My payment then is for you to tell us (especially me! :)) of that way. Sean -- scf@FreeBSD.org