xinput_calibrator icon indicating copy to clipboard operation
xinput_calibrator copied to clipboard

Properly calibrate the input device

Open blaztinn opened this issue 10 years ago • 2 comments

Current calibration didn't properly calibrate the input device if the display screen was rotated or if one of the axis was mirrored by the HW. Maybe it didn't work in other cases too, but this are the ones I know of. This patch fixes this problems by properly calibrating the input device on any possible click sequence, previous calibration and axis inversion (min-max switched).

First commit updates tester to test for all the possible sequences (before there was a missing click sequence where the y coordinate is changed first!)

The second commit updates the generic and evdev calibrations to properly calibrate the screen and pass the tests.

I've successfully tested this changes on two touchscreens (IR and SAW) which have different axis ranges and inversions.

blaztinn avatar Mar 19 '14 13:03 blaztinn

Tested-by: Christian Gmeiner [email protected]

austriancoder avatar Mar 24 '14 16:03 austriancoder

We use with success this pull request in our own debian package @ivsgroup.

La0 avatar Aug 22 '14 10:08 La0