Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2005 20:30:31 -0500
From:      Louis LeBlanc <FreeBSD@keyslapper.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Wireless Keyboard/Mouse setup
Message-ID:  <20050326013031.GA2973@keyslapper.net>
In-Reply-To: <20050324010557.GC1952@keyslapper.net>
References:  <20050324010557.GC1952@keyslapper.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050326013031.GA2973>