Evdev touchscreen calibration?
Søren Hauberg
hauberg at gmail.com
Thu Jul 23 00:58:17 PDT 2009
2009/7/22 Florian Echtler <floe at butterbrot.org>:
> I've recently written an input event driver for a touchscreen, and it's
> working out-of-the box with the evdev driver. However, the scaling is a
> bit off, so I'd like to do a four-point calibration and set the "Evdev
> Axis Calibration" property accordingly. Is there a tool which does that?
> I've only found ts_calibrate so far, which is just for framebuffer
> devices.
I wrote some code a while back that should compute the calibration
parameters, and it's just running inside X (I'm attaching the code).
It doesn't actually set the parameters as that wasn't supported at the
time, but you should be able to do this in run-time these days.
Søren
-------------- next part --------------
A non-text attachment was scrubbed...
Name: my_calibrator.cc
Type: text/x-c++src
Size: 15559 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20090723/5b60c63d/attachment.cc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 88 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20090723/5b60c63d/attachment.obj>
More information about the xorg
mailing list