[PATCH] make ektf3k driver report non-MT events too
Seth Forshee
seth.forshee at canonical.com
Thu Aug 8 18:49:28 UTC 2013
On Wed, Aug 07, 2013 at 01:51:12PM -0400, Matt Whitlock wrote:
> Joseph Salisbury requested that I submit this patch to the Ubuntu Kernel Team mailing list for review.
>
> > This patch resolves a shortcoming of the ektf3k driver. Previously, the
> > driver was reporting only multi-touch events. xf86-input-evdev 2.7.3
> > crashes upon receiving input events from [that] driver, and 2.8.1 simply
> > ignores the input device altogether as a workaround for the crash.
> >
> > This patch adds single-touch ABS_X, ABS_Y, and ABS_PRESSURE axes, as well as
> > the BTN_TOUCH key. Only the first finger touching reports on these
> > single-touch axes (while continuing to report on the multi-touch axes);
> > additional fingers report only on the multi-touch axes.
> >
> > I have tested this patch on a Nexus 7 running X.org server 1.13.4 and
> > xf86-input-evdev 2.8.1. Without the patch, evdev ignores all input from the
> > touchscreen. With the patch, evdev generates mouse events in response to
> > touches, as one would expect.
>
> https://bugs.launchpad.net/ubuntu/+source/linux-grouper/+bug/1209049
input_mt_report_pointer_emulation() exists for exactly this purpose, so
it would be preferable to use that instead.
Seth
More information about the kernel-team
mailing list