TouchScreen calibration fails with xinput_calibrator

Marco Cavallini koansoftware at gmail.com
Tue Jan 26 06:29:23 PST 2010


Hi,
With precious help from Tias I am testing and debugging xinput and
xinput_calibrator on my custom ARM based board.

Some information of my system
 X.Org X Server 1.7.3
 Release Date: 2009-12-3
 X Protocol Version 11, Revision 0
 Build Operating System: Linux 2.6.26-2-amd64 x86_64
 Current Operating System: Linux PM9263 2.6.28 #1 Thu Nov 19 18:00:34
CET 2009 armv5tejl
 Package: xinput Version: 1.5.0-r0.5
 Package: xinput-calibrator Version: 0.5.0-r1.5

# xinput --list --short
 Virtual core pointer             id=2    [master pointer  (3)]
   Virtual core XTEST pointer     id=4    [slave  pointer  (2)]
   Generic Mouse                  id=6    [slave  pointer  (2)]
 Virtual core keyboard            id=3    [master keyboard (2)]
    Virtual core XTEST keyboard   id=5    [slave  keyboard (3)]
    <default keyboard>            id=8    [slave  keyboard (3)]
 atmel-ts                         id=7    [floating slave]

I am able to run xinput-calibrator but looks like the new settings are
ignored
# xinput_calibrator
Calibrating EVDEV driver for "atmel-ts"

To make the settings permanent, create add a startup script for your
window manager with the following command(s):
 xinput set-int-prop "atmel-ts" "Evdev Axes Swap" 8 1
 xinput set-int-prop "atmel-ts" "Evdev Axis Calibration" 32 2016 508
-145 3564

Doing dynamic recalibration:
        Swapping X and Y axis...
        Setting new calibration data: 2016, 508, -145, 3564

In the next step I run xinput test "atmel-ts"
then I touched the screen in the 4 corners
Up-Left, Up-Right, Bottom-Left, Bottom-Right
# xinput test "atmel-ts
 [UL] motion a[0]=651 a[1]=626 a[2]=7500
 [UR] motion a[0]=3345 a[1]=713 a[2]=7500
 [BL] motion a[0]=595 a[1]=3317 a[2]=7500
 [BR] motion a[0]=558 a[1]=3361 a[2]=7500

If I play with xinput set-int-prop the coordinates from xinput test change
xinput set-int-prop "atmel-ts" "Evdev Axis Calibration" 32 800 190 2000 3300
so looks like everything works, but my cursor behaviour is always the
same (wrong).
What could I test?

Any hint would be appreciated.
TIA

Cordiali Saluti / Kindest Regards / mit freundlichen Grüssen
--
Marco Cavallini | KOAN sas | Bergamo - Italia
 embedded and real-time software engineering
   Atmel third party certified consultant
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
      http://www.KoanSoftware.com




More information about the xorg mailing list