- On Thu, 05.Dec.2002, 11:46EST, Christian Mayer uttered:
> Hi,
> 
> after searching the web and still failing to install my mouse with 7
> buttons (Intelli Mouse Optical) I hope to get some answers here.

Hrmm.  I have one of these rats, I mean mice.  7 "buttons" -- 2 on top,
2 on side, and the wheel counts as three (press down and scroll
up/down count as "buttons" as well).  I go this to work with X
a millenium ago, but my memory cache generally only lasts a few days;
let's see if I can recall from mental archives....

> Waht I can do is get this mouse running with the normal 3 buttons plus
> the wheel.

"Normal" three is easy.  Forget about the two side buttons.  They seem
to be off in their own land, or at least I cannot figure out how to get
them recognized as, eg, button 4 and 5.  Oh wait a minute, IIRC the
wheel scroll up/down counts as button 4 and 5.  What does my xev say?
Ah yes.  Button 4 and 5 indeed.  I also recall reading somewhere that
the XFree86 X server will only care about up to 5 "buttons".  Hrmm.  Don't
know where I read that.  So the side buttons are out the window.  xev
claims that my side buttons are button 2 and button 3.

I'm using the mouse in USB mode.  It's really the only way to go.  USB
is just friendlier than PS/2.

> But the sidewards buttons still don't work (xev tells me that they are
> buttons 1 and 3...)
> 
> The only hint I found in the net was that the X server doesn't support
> that many buttons.

Correct.

> So my question is:
> 
>   Did I configure something wrong?
>   Or is this a limitation in the X protocol / the X server / ... ?
[...]

Relevent section of my XF86Config:

#---------------------------
#
# Pointer section
#
Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    #Option     "Protocol"      "PS/2"
    #Option      "Protocol"     "ExplorerPS/2"
    Option      "Protocol"      "IMPS/2"
    #Option     "Protocol"      "usb"
    #Option     "Protocol"      "auto"
    Option      "Device"        "/dev/mouse"
    # 7 buttons (wheel up/down counts as 2), but X
    # only supports 5 (?!)
    #
    Option      "Buttons"       "7"
    Option      "ZAxisMapping"  "4 5"
EndSection
#---------------------------

Please note that much of this is commented out -> evidence of
experimentation way back in the day.

/dev/mouse in my case is a symlink to /dev/input/mice (I am *NOT* using
devfs) which is a character device with major 13 and minor 63.  Thus we
have the requirement for the ``Option "Protocol" "IMPS/2"'' line in the
above config snippit; this is documented somewhere in the kernel config.
Let's look:

prompt$ less -p ^CONFIG_INPUT_MOUSEDEV \
> /usr/src/linux/Documentation/Configure.help
CONFIG_INPUT_MOUSEDEV
  Say Y here if you want your USB HID mouse (or ADB mouse handled by
  the input layer) to be accessible as char devices 13:32+ -
  /dev/input/mouseX and 13:63 - /dev/input/mice as an emulated ImPS/2
  mouse.  That way, all user space programs will be able to use your
  mouse.

  If unsure, say Y.
[...]


Ya this is lurking in the "Input Core Support" (USB stuff) of the kernel
config (2.4.x).

As for the ZAxisMapping stuff, that's to get the wheel scrolling
working.  Basically it means button 4/5 ("the wheel") will be used for
scrolling.  Look into the man page for XF86Config.

Ciao,
krjw.
-- 
"Isn't it time we care and lose the hate
 Understand our fears"
         -- Dream Theater, "Blind Faith"
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to