moused and 7-button mice
Danny MacMillan
flowers at users.sourceforge.net
Sat Nov 6 10:31:53 PST 2004
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
More information about the freebsd-questions
mailing list