From owner-freebsd-questions@FreeBSD.ORG Fri Jan 26 03:35:52 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 007BD16AA54 for ; Fri, 26 Jan 2007 03:35:52 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout3.cac.washington.edu (mxout3.cac.washington.edu [140.142.32.166]) by mx1.freebsd.org (Postfix) with ESMTP id D0CD313C48D for ; Fri, 26 Jan 2007 03:35:51 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout3.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0Q3Znid011998 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 25 Jan 2007 19:35:50 -0800 X-Auth-Received: from [192.168.10.41] (c-67-187-172-183.hsd1.ca.comcast.net [67.187.172.183]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0Q3ZnxK008020 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 25 Jan 2007 19:35:49 -0800 Message-ID: <45B97713.7000406@u.washington.edu> Date: Thu, 25 Jan 2007 19:35:47 -0800 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.9 (X11/20070122) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20070120100322.747bc208@tania.servebbs.org> <45B2DB67.4070208@bobmc.net> <1d3ed48c0701201936g893180nea6b098f43f5d8d9@mail.gmail.com> <20070126001648.2c05b27b@gumby.homeunix.com> In-Reply-To: <20070126001648.2c05b27b@gumby.homeunix.com> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.1.25.191932 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: Hairy Cats and mice and FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 03:35:52 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 RW wrote: > On Sat, 20 Jan 2007 19:36:38 -0800 > "Kevin Downey" wrote: > >> Xorg -configure now puts: >> Option "ZAxisMapping" "4 5 6 7" >> in the mouse section by default, which is all I've ever needed to make >> the scrollwheel work > I have > > Option "ZAxisMapping" "4 5" > > I think you only need the other two values on a mouse with a second > scroll wheel. The handbook/FAQ--although good--doesn't apply properly in all cases. For instance, my mouse was confusing to configure since I applied improper arguments and ran the wrong commands. So, based on my experience you shouldn't add anything to rc.conf related to moused --except moused_enable="YES"--unless things don't work for you. Also, depending on your mouse you'll have to change ZAxisMapping to meet your needs. For instance, my Wireless MS Intellimouse Explorer 3.0 contains a 1) left and right side buttons, an 2) up-down scrollwheel, 3) left-right scrollwheel feature (looked carefully at the scrollwheel and it can be moved left to right), 4) and 2 thumb buttons. For me to properly setup my mouse I'd have to do: Option "ZAxisMapping" "4 5 6 7" in xorg.conf, but I opt for just using the scrollwheel, so the following is legitimate: Option "ZAxisMapping" "4 5" How did I figure out what did what? xev--a wonderful program packaged with the monolithic (not modular, i.e. version <7.0) version of X.org--helps one determine what buttons do what by scrolling and pressing each input to one's content. For instance: 1. Invokes xev from xterm (data is output to stdout). 2. Moves mouse pointer inside box for X11 widget that comes up. 3. Scrolls middle mouse button up without moving the mouse or pressing anything else. Output similar to this is seen: ButtonRelease event, serial 30, synthetic NO, window 0x2000001, root 0x141, subw 0x2000002, time 70460667, (36,51), root:(536,81), state 0x800, button 4, same_screen YES The important part is.. state 0x800, --> button 4 <--, same_screen YES .. as it tells you which mouse button does the scroll up function. 4. Repeat 3. but instead scroll button down. 5. Use value obtained from 3. and 4. as follows in xorg.conf for setting ZAxisMapping: Option "ZAxisMapping" "{value from 3.} {value from 4.}" 6. If you have a mouse with side to side ZAxis rotation, putting the value obtained for the left rotation after "{value from 4.}", and the right rotation after the value for the left rotation. Hope this helps. This should remain correct as long as X.org doesn't change their mouse input configuration (driver), and as long as your mouse is detected and configured correctly by moused, the steps I listed above should work for enabling your scroll functions. There's a new setup for X.org 7.x that uses something called evdev which is a built-in input driver in the Linux kernel, and it sounds like it's a pain to deal with.. If you want to enable your thumb buttons, there's always imwheel.. See for a good couple paragraphs on how to set that up to your liking. Cheers, - -Garrett -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFuXbaEnKyINQw/HARAg3DAKCI1bmeSahvZAyB/r6LHX8ZaOXOYQCeKA6z lr4vHldJ9DsitBVh48erjDw= =dwSo -----END PGP SIGNATURE-----