Fwd: [PATCH 3/3] evdev: Don't post REL_MISC events as axis motion. (#24737)
Peter Hutterer
peter.hutterer at who-t.net
Sun Aug 15 18:26:22 PDT 2010
On Fri, Aug 13, 2010 at 02:12:41PM +0200, Bartosz Brachaczek wrote:
> Actually this REL_MISC event doesn't affect x/y motion, at least for
> me, as long as the bug fixed by patches 1, 2 is fixed (though Bartek
> Iwaniec had problems with it, see
> https://bugs.freedesktop.org/show_bug.cgi?id=24737#c19). The problem
> caused by REL_MISC is described in this comment:
> https://bugs.freedesktop.org/show_bug.cgi?id=24737#c29.
>
> Anyway, you can see that REL_MISC events sent by this device are
> obviously wrong and confusing:
>
> # ./evtest /dev/input/event6
[..]
> Event: time 1281700515.957497, type 2 (Relative), code 9 (Misc), value 8
> Event: time 1281700515.957498, -------------- Report Sync ------------
> Event: time 1281700515.965503, type 2 (Relative), code 9 (Misc), value 8
> Event: time 1281700515.965505, -------------- Report Sync ------------
> Event: time 1281700515.973505, type 2 (Relative), code 0 (X), value 2
> Event: time 1281700515.973509, type 2 (Relative), code 9 (Misc), value 8
> Event: time 1281700515.973510, -------------- Report Sync ------------
> Event: time 1281700515.981509, type 2 (Relative), code 9 (Misc), value 8
> Event: time 1281700515.981512, -------------- Report Sync ------------
> Event: time 1281700515.997508, type 2 (Relative), code 1 (Y), value -2
> Event: time 1281700515.997511, type 2 (Relative), code 9 (Misc), value 8
> Event: time 1281700515.997512, -------------- Report Sync ------------
> Event: time 1281700516.005506, type 2 (Relative), code 0 (X), value 1
> Event: time 1281700516.005509, type 2 (Relative), code 9 (Misc), value 8
> Event: time 1281700516.005510, -------------- Report Sync ------------
> Event: time 1281700516.013504, type 2 (Relative), code 0 (X), value 2
> Event: time 1281700516.013508, type 2 (Relative), code 9 (Misc), value 8
> Event: time 1281700516.013509, -------------- Report Sync ------------
> Event: time 1281700516.021506, type 2 (Relative), code 9 (Misc), value 8
> Event: time 1281700516.021510, -------------- Report Sync ------------
> Event: time 1281700516.029508, type 2 (Relative), code 9 (Misc), value 8
> Event: time 1281700516.029511, -------------- Report Sync ------------
>
>
> Maybe kernel should have a quirk for this device?
yeah, possibly. but with your patches applied (except for the REL_MISC one)
this only results in spare motion events that don't actually do anything
(the GIMP may get confused though). I've tested this with a software
emulation device and everything seemed to work fine.
I've pushed the other two patches, thanks for your efforts.
Cheers,
Peter
More information about the xorg-devel
mailing list