Horizontal mouse wheel (a4tech mouse) with X ?

Peter Hutterer peter.hutterer at who-t.net
Sat Dec 26 02:20:42 PST 2009


On Thu, Nov 05, 2009 at 11:54:28PM +0200, v_2e at ukr.net wrote:
>   Hello!
>   I have WOP-35 4DMouse from A4Tech (5 buttons, 2 wheels) and I've got
>   almost exactly the same problem. I've spent entire day trying to get my
>   2nd mouse wheel work properly in X. But nothing helps.  Using "evtest
>   /dev/input/event3" command gave the following result in my case:
> 
> -----===== Quote begins =====-----
> Input driver version is 1.0.0
> Input device ID: bus 0x11 vendor 0x2 product 0x6 version 0x0
> Input device name: "ImExPS/2 Generic Explorer Mouse"
> Supported events:
>   Event type 0 (Sync)
>   Event type 1 (Key)
>     Event code 272 (LeftBtn)
>     Event code 273 (RightBtn)
>     Event code 274 (MiddleBtn)
>     Event code 275 (SideBtn)
>     Event code 276 (ExtraBtn)
>   Event type 2 (Relative)
>     Event code 0 (X)
>     Event code 1 (Y)
>     Event code 6 (HWheel)
>     Event code 8 (Wheel)
> Testing ... (interrupt to exit)
> Event: time 1257457054.329495, type 2 (Relative), code 8 (Wheel), value 1      //1st wheel up
> Event: time 1257457054.329503, -------------- Report Sync ------------
> Event: time 1257457054.680912, type 2 (Relative), code 8 (Wheel), value -1      //1st wheel down
> Event: time 1257457054.680920, -------------- Report Sync ------------
> Event: time 1257457055.362565, type 2 (Relative), code 8 (Wheel), value 2      //2nd wheel up
> Event: time 1257457055.362573, -------------- Report Sync ------------
> Event: time 1257457055.795272, type 2 (Relative), code 8 (Wheel), value -2      //2nd wheel down
> Event: time 1257457055.795279, -------------- Report Sync ------------
> -----===== Quote ends =====-----
>   So, I see, my mouse generates different events (different values), but
>   the same codes ("code 8') while in the beginning I saw the string "Event
>   code 6 (HWheel)", which - I thought - must be generated by 2nd mouse
>   wheel rotation.  Now I don't know how to use the differences discovered
>   by 'evtest' to make the wheels work properly. Maybe someone of you guys
>   knows?
>   Thanks for any help!

this needs to be fixed in the kernel, the device is giving us the wrong
data. Please bring this up on the kernel list, there isn't much we can do
from the X point of view (aside from horrible hacks).

Cheers,
  Peter



More information about the xorg mailing list