Horizontal mouse wheel (a4tech mouse) with X ?

Pavel Troller patrol at sinus.cz
Fri Oct 26 08:21:49 PDT 2007


> On Oct 25, 07 09:26:01 +0200, Pavel Troller wrote:
> >   I'm a new owner of an A4tech X5-005D mouse. This one is equipped with two
> > wheels for vertical and horizontal scrolling.
> >   I can't make the horizontal wheel work properly. It generates exactly the
> > same events as the vertical one - buttons 4 and 5.
> >   Using xev, I've found that my mouse can generate events from "buttons"
> > 1,2,3,4,5,4,5,8,9 - the later 4,5 generates the horizontal wheel, instead of
> > 6,7. I don't know why.
> >   In my xorg.conf there is classic ZAxisMapping "4 5 6 7" line.
> 
> Which version of the mouse driver do you have? There has been some
> protocol selection automatism included in later versions.
> Please also check the kernel driver with 'evtest /dev/input/event*'
> (select the correct device there), and check whether the wheels are
> handled differently.
> 
> > wheels. So where is the problem ? In the kernel layer (/dev/input/mice ?)
> > Or is something misconfigured in X?
> 
> We'll see. Both are possible.
> 
> Matthias
> 
Hi!
  Thanks for the tip with evtest, I didn't know about this program.
My "regular" vertical wheel causes the following reports when rotated:
(two steps both ways)
Event: time 1193410779.718397, type 2 (Relative), code 8 (Wheel), value -1
Event: time 1193410779.718399, -------------- Report Sync ------------
Event: time 1193410779.790386, type 2 (Relative), code 8 (Wheel), value -1
Event: time 1193410779.790389, -------------- Report Sync ------------
Event: time 1193410779.950366, type 2 (Relative), code 8 (Wheel), value 1
Event: time 1193410779.950369, -------------- Report Sync ------------
Event: time 1193410779.998354, type 2 (Relative), code 8 (Wheel), value 1
Event: time 1193410779.998356, -------------- Report Sync ------------


The horizontal wheel reports this:
Event: time 1193410781.070196, type 2 (Relative), code 8 (Wheel), value 1
Event: time 1193410781.070198, type 2 (Relative), code 9 (Misc), value 8
Event: time 1193410781.070200, -------------- Report Sync ------------
Event: time 1193410781.086188, type 2 (Relative), code 8 (Wheel), value 1
Event: time 1193410781.086189, type 2 (Relative), code 9 (Misc), value 8
Event: time 1193410781.086189, -------------- Report Sync ------------
Event: time 1193410781.310156, type 2 (Relative), code 8 (Wheel), value -1
Event: time 1193410781.310157, type 2 (Relative), code 9 (Misc), value 8
Event: time 1193410781.310159, -------------- Report Sync ------------
Event: time 1193410781.350150, type 2 (Relative), code 8 (Wheel), value -1
Event: time 1193410781.350151, type 2 (Relative), code 9 (Misc), value 8
Event: time 1193410781.350152, -------------- Report Sync ------------


So the reports are different, yes... But it seems that the horizontal wheel
reports the standard wheel event together with a misc event with value 8.
Is that correct ? Is the X11 mouse driver able to distinguish between them ?
I've tried both "mouse" (with /dev/input/mice) and "evdev" (with
/dev/input/event4) drivers and both seem to behave identically.

  With regards, Pavel Troller



More information about the xorg mailing list