Re: [PATCH] usbtouchscreen, 2.6.25

From: Ondrej Zary
Date: Tue Sep 23 2008 - 04:58:17 EST


On Tuesday 23 September 2008, Søren Hauberg wrote:
> Hi,
> Currently, the 'usbtouchscreen' module sends raw data from the
> touchscreen directly to the user. However, in general, touchscreens
> need to be calibrated, and the raw data needs to be transformed
> according to the calibration, before the data can be used as an input
> device. Currently, some special purpose drivers exists for this in X,
> but the situation is a bit messy. I propose to add support for
> calibration parameters in the kernel. That way, we can also get usable
> touchscreens without X, without having to write special purpose
> drivers to handle the data from the touchscreen. The attached patch
> adds support for this. A module parameter (transform_xy)
> enables/disables this behavior, so the patch is not very intrusive,
> and should cause issues to current users.
>
> Comments would be appricated,

Calibration is a per-device thing. You can have more than one touchscreen (the
swap_xy feature is also wrong, but better than nothing).

> Søren
>
> P.S. I'm not subscribed to the list so please keep me in the CC.

--
Ondrej Zary
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/