From: Thorsten Wissmann Subject: Re: Mixed "pen" and multitouch input devices Date: Fri, 16 Mar 2012 03:44:45 +0100 Message-ID: <20120316024445.GC21205@stud.informatik.uni-erlangen.de> References: <20120315155235.GA6783@stud.informatik.uni-erlangen.de> <20120315175635.GA23155@stud.informatik.uni-erlangen.de> <4F623511.3040907@gmail.com> <20120316015224.GA8230@stud.informatik.uni-erlangen.de> <4F629F60.7010600@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from faui03.informatik.uni-erlangen.de ([131.188.30.103]:41763 "EHLO faui03.informatik.uni-erlangen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756636Ab2CPCos (ORCPT ); Thu, 15 Mar 2012 22:44:48 -0400 Content-Disposition: inline In-Reply-To: <4F629F60.7010600@gmail.com> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Chase Douglas Cc: Chris Bagwell , Henrik Rydberg , linux-input@vger.kernel.org, Maximilian =?iso-8859-1?Q?Kr=FCger?= , i4passt@lists.informatik.uni-erlangen.de On Thu, Mar 15, 2012 at 07:03:12PM -0700, Chase Douglas wrote: > On 03/15/2012 06:52 PM, Thorsten Wissmann wrote: > > It turned out xf86-input-evdev really discards all non-multitouch events > > (especially ABS_X and ABS_Y) events in EvdevProcessAbsoluteMotionEvent() > > in evdev.c, if the device is configured as a multitouch device. So there > > is a quick fix (or only workaround?), which processes ABS_X and ABS_Y > > events even if it is a multitouch device: > > > > diff --git a/src/evdev.c b/src/evdev.c > > index d540b87..b857b83 100644 > > --- a/src/evdev.c > > +++ b/src/evdev.c > > @@ -832,7 +832,7 @@ EvdevProcessAbsoluteMotionEvent(InputInfoPtr pInfo, > > struct input_event *ev) > > if (ev->code >= ABS_MT_SLOT) { > > EvdevProcessTouchEvent(pInfo, ev); > > pEvdev->abs_queued = 1; > > - } else if (!pEvdev->mt_mask) { > > + } else if (!pEvdev->mt_mask || ev->code == ABS_X || ev->code == > > ABS_Y) { > > map = pEvdev->axis_map[ev->code]; > > valuator_mask_set(pEvdev->vals, map, value); > > pEvdev->abs_queued = 1; > > > > This patch already is submitted to the xorg bugtracker and can be found > > at [1]. > > > > The only remaining question is: Does it break other drivers? > > > > [1] https://bugs.freedesktop.org/show_bug.cgi?id=47382 > > Great! > > I haven't fully thought about it enough to give a reviewed-by, but it > seems sane. > > I suggest sending the patch to xorg-devel@lists.x.org. That's where most > patch reviews are handled. You will likely get faster results there. I have sent it to xorg-devel@lists.x.org. (I haven't noticed it, because only the web-bugtracker is noted in the README) Thank you very much Max Thorsten