Option Emulate3Buttons not working for my BT mouse

Peter Hutterer peter.hutterer at who-t.net
Mon Jun 23 17:25:11 PDT 2014


On Mon, Jun 23, 2014 at 08:19:15AM +0200, Łukasz Maśko wrote:
> Dnia poniedziałek, 23 czerwca 2014 10:55:45 Peter Hutterer pisze:
> [...]
> > Is the mb emulation set in  xinput list-props "MoGo Mouse BT"? is the
> > timeout too short for you? try increasing it with
> 
> $ xinput list-props "MoGo Mouse BT"
> Device 'MoGo Mouse BT':
>         Device Enabled (154):   1
>         Coordinate Transformation Matrix (156): 1.000000, 0.000000, 0.000000, 
> 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
>         Device Accel Profile (287):     0
>         Device Accel Constant Deceleration (288):       1.000000
>         Device Accel Adaptive Deceleration (289):       1.000000
>         Device Accel Velocity Scaling (290):    10.000000
>         Device Product ID (275):        2652, 8196
>         Device Node (276):      "/dev/input/event13"
>         Evdev Axis Inversion (291):     0, 0
>         Evdev Axes Swap (293):  0
>         Axis Labels (294):      "Rel X" (164), "Rel Y" (165), "Rel Horiz 
> Wheel" (284)
>         Button Labels (295):    "Button Left" (157), "Button Unknown" (278), 
> "Button Right" (159), "Button Wheel Up" (160), "Button Wheel Down" (161), 
> "Button Horiz Wheel Left" (162), "Button Horiz Wheel Right" (163)
>         Evdev Scrolling Distance (296): 1, 1, 1
>         Evdev Middle Button Emulation (297):    1
>         Evdev Middle Button Timeout (298):      50
>         Evdev Third Button Emulation (299):     0
>         Evdev Third Button Emulation Timeout (300):     1000
>         Evdev Third Button Emulation Button (301):      3
>         Evdev Third Button Emulation Threshold (302):   20
>         Evdev Wheel Emulation (303):    0
>         Evdev Wheel Emulation Axes (304):       0, 0, 4, 5
>         Evdev Wheel Emulation Inertia (305):    10
>         Evdev Wheel Emulation Timeout (306):    200
>         Evdev Wheel Emulation Button (307):     4
>         Evdev Drag Lock Buttons (308):  0
> 
> > xinput set-prop "MoGo Mouse BT" "Evdev Middle Button Timeout" 100
> > (or whatever timeout is best) - does that fix it?
> 
> Seems to work if I increase this value to 150-200. Although, it is not 100% 
> reliable. But it's good that it works. Thanks.

right, so this simply means that either your click isn't fast enough, or
something doesn't handle timestamps correctly. Might be worth recording the
kernel events with evemu-record and checking out the kernel timestamp
between the two events. Right now I'm leaning towards you not pressing the
buttons fast enough, or the HW simply not sending them fast enough.

Cheers,
   Peter
 


More information about the xorg mailing list