[NCLUG] mouse question

Tkil tkil at scrye.com
Wed Nov 21 14:03:05 MST 2001


>>>>> "Mike" == Mike Loseke <mike at verinet.com> writes:

Mike> So I google around and find a very useful page about doing
Mike> scrolly things in X here:

Mike>    http://koala.ilog.fr/colas/mouse-wheel-scroll/

yes, this is a very handy site, but until you have your X server
properly configured, no application can make use of the extra
configuration you're doing to them.

Mike> I follow some of the stuff there, finding out along the way that
Mike> RedHat 7.1 (or the X guys) seem to have split the config file up
Mike> into two chunks: /etc/X11/XF86Config and /etc/X11/XF86Config-4.
Mike> Ok, cool, so now I have to modify both of these files. Whatever.

this was done for your protection, actually.  the "-4" variant is for
XFree86 version 4, while the legacy file is for version 3.x.  having
two different files allows you to go back and forth between server
versions, should it be necessary.

Mike> The problem, though, is that try as I might I can't seem to get
Mike> the durn wheel button (4, I would assume) to do anything. Even
Mike> using "xev" I register nothing on a click of that button (or
Mike> unclick for that matter).  And this was after an X startup which
Mike> acknowledged that it was using 5 buttons. All the Emulate3Button
Mike> stuff was even turned off.

you have to use a smarter protocol than just "PS/2", and you probably
want to do a ZAxisMapping.  Here's the relevant excerpt from my
(working) installation:

| Section "InputDevice"
|     Identifier  "Mouse0"
|     Driver      "mouse"
|     Option      "Protocol"         "IMPS/2"
|     Option      "Device"           "/dev/psaux"
|     Option      "ZAxisMapping"     "4 5"
|     Option      "Emulate3Buttons"  "no"
| EndSection

and "xev" is the right tool for testing this.  after you modify your
config file, restart X and see what events are generated by using the
scroll wheel (while the cursor is inside of the "xev" window, or at
least while it has focus).

Mike> Anyone have any experience with this? The mouse is a Logitech
Mike> Trackman Marble FX (PS/2). I even cleaned out the lint
Mike> traps. :-P

i have the plain "logitech trackman marble".  try the above, and see
if it works.




More information about the NCLUG mailing list