Evdev touchscreen calibration?

Peter Hutterer peter.hutterer at who-t.net
Wed Jul 22 17:37:16 PDT 2009

On Wed, Jul 22, 2009 at 06:33:41PM +0200, Simon Thum wrote:
> Florian Echtler wrote:
> > Hello everyone,
> > 
> > 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 don't think it could be written without XI2, since AFAIK you've got no
> access to raw coordinates. One might exploit special assumptions/setups,
> though.

XI 1 gives you access to the valuators as well, so this should work in
principle if you register for DeviceButtonPress and friends.


More information about the xorg mailing list