From owner-freebsd-questions@FreeBSD.ORG Sat Mar 26 01:30:35 2005 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 3113D16A4CE for ; Sat, 26 Mar 2005 01:30:35 +0000 (GMT) Received: from english-breakfast.cloud9.net (english-breakfast.cloud9.net [168.100.1.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 885C543D55 for ; Sat, 26 Mar 2005 01:30:34 +0000 (GMT) (envelope-from leblanc@keyslapper.net) Received: from english-breakfast.cloud9.net (localhost [127.0.0.1]) by english-breakfast.cloud9.net (Postfix) with SMTP id ED318D40C for ; Fri, 25 Mar 2005 20:30:33 -0500 (EST) Received: from keyslapper.net (250-119.customer.cloud9.net [168.100.250.119]) by english-breakfast.cloud9.net (Postfix) with ESMTP id 7F6C9D3C3 for ; Fri, 25 Mar 2005 20:30:32 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by keyslapper.net (Postfix) with ESMTP id C8CFD11486 for ; Fri, 25 Mar 2005 20:30:31 -0500 (EST) Received: from keyslapper.net ([127.0.0.1]) by localhost (keyslapper.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00579-07 for ; Fri, 25 Mar 2005 20:30:31 -0500 (EST) Received: by keyslapper.net (Postfix, from userid 1001) id 82E8311454; Fri, 25 Mar 2005 20:30:31 -0500 (EST) Date: Fri, 25 Mar 2005 20:30:31 -0500 From: Louis LeBlanc To: freebsd-questions@freebsd.org Message-ID: <20050326013031.GA2973@keyslapper.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <20050324010557.GC1952@keyslapper.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FCuugMFkClbJLl1L" Content-Disposition: inline In-Reply-To: <20050324010557.GC1952@keyslapper.net> X-PGP-Key: http://www.keyslapper.net/~leblanc/leblanc-at-keyslapper-net.asc User-Agent: Mutt/1.5.9i X-Virus-Scanned: amavisd-new at keyslapper.net X-AntiVirus: Checked by Vexira Antivirus v1.5 Subject: Re: Wireless Keyboard/Mouse setup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Mar 2005 01:30:35 -0000 --FCuugMFkClbJLl1L Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ok, I'm responding to my own message - and thanks go out to Robert Huff for his suggestions after my original post. They set me in the right direction, but weren't quite as helpful as I'd hoped. I've gotten this problem solved well within my threshold, mostly through a little digging and just plain stubbornness. The goal was to get my M$ Wireless Optical Desktop Pro working in conjunction with my M$ Optical Trackball. I know, that's a lot of M$ for a FreeBSD dude. To that I say, their software may suck, but their hardware is really good. Anyway, here's what I've discovered while trying to get it set up on FreeBSD 5.3 RELEASE-p3: You MUST use the PS/2 adaptor that comes with it, and plug both in. The PS/2 plug goes into the keyboard port, the USB plug goes into the adaptor, which then goes into the PS/2 Mouse port. You can get the keyboard working with just the USB port plugged, but not the mouse, and you won't get any of the "special" keys - audio in my case. My mouse has the regular buttons, with the wheel, plus a couple tiny thumb buttons, and the left/right "sway" controls on the wheel. I would have liked to get these working, but I really wanted at least the three buttons and the wheel scroller working (5 buttons with Z dir). Now, my trackball has 5 buttons (including the wheel button) plus the scrolling, so that was set up as a 7 button mouse. I had to play a couple games with the order of the buttons to get it working right though, because the wheel scrolling is ALWAYS the last two buttons, so that would mean the scrolling was set up as buttons 6 and 7 on the trackball, and 4 and 5 on the mouse. Needless to say this will cause trouble. The following line in my .xsession file fixed that though: xmodmap -e "pointer =3D 1 2 3 6 7 4 5" Now that I think of it, this may be part of the problem getting the little thumb buttons working, so I figured I'd try removing that. More to say I covered all the bases than anything else. No good. I don't know why. I suddenly get reads for buttons 1 through 7, and they did match between the trackball and the mouse. Still, it didn't work, even with the same ZAxisMapping configs. Go figure. Anyway, the xmodmap line stays. And here's my pointer configs: Section "InputDevice" Identifier "ThumbBall" Driver "mouse" Option "Protocol" "Auto" Option "Device" "/dev/ums0" Option "Resolution" "1000" Option "Buttons" "7" Option "ZAxisMapping" "6 7" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Device" "/dev/psm0" Option "Protocol" "auto" Option "ZAxisMapping" "4 5" Option "Buttons" "7" # Option "ZAxisMapping" "6 7" # Not sure why this won't work Option "Protocol" "Auto" EndSection When I tried the ZAxisMapping setting of "6 7" for Mouse0, it quit working right. I don't know why. You can tell which is which. Now I have my trackball working with it's little side buttons acting the Forward and Back quickies in Firefox. That's the only place I've gotten them doing anything useful anyway, so I don't care that much. My mouse has full functionality of its wheel and 3 buttons, and my keyboard does what I want it to. I haven't configured all the buttons yet, but I got my quick desktop changers, screen lock, mail (mutt), browser (Firefox) and messenger (Gaim) hotkeys working fine. Here's my keyboard config: Section "InputDevice" Identifier "Keyboard0" Driver "keyboard" Option "AutoRepeat" "500 30" Option "XkbOptions" "ctrl:nocaps" Option "XkbRules" "xorg" Option "XkbModel" "microsoftmult" Option "XkbLayout" "us" EndSection And to get the pointers playing nicely, I have the following in my ServerLayout section: InputDevice "ThumbBall" "CorePointer" InputDevice "Mouse0" "SendCoreEvents" Now, remember that this mouse has a tilt wheel as well. I figure that's two more button signals. If I ever decide I don't use the trackball enough, I might try just removing it and hunt down the full functionality for that mouse. For now though, this is Good Enough for me. Hope this helps someone. Lou --=20 Louis LeBlanc FreeBSD-at-keyslapper-DOT-net Fully Funded Hobbyist, KeySlapper Extrordinaire :) Please send off-list email to: leblanc at keyslapper d.t net Key fingerprint =3D C5E7 4762 F071 CE3B ED51 4FB8 AF85 A2FE 80C8 D9A2 question =3D ( to ) ? be : ! be; -- Wm. Shakespeare --FCuugMFkClbJLl1L Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCRLs3r4Wi/oDI2aIRAnFZAJ4qWT1svkPiWRX6uKCqokiweyAacwCfSJ7S ovG+9UKmB9S3jO6rw4KzFZ8= =m3xN -----END PGP SIGNATURE----- --FCuugMFkClbJLl1L--