Touchscreen calibration on the A20

Started by ric.rug, July 15, 2016, 01:45:17 PM

Previous topic - Next topic

ric.rug

Quotets_calibrate
xres = 720, yres = 480
Took 10 samples...
Top left : X =    0 Y =    0
Took 5 samples...
Top right : X =    0 Y =    0
Took 10 samples...
Bot right : X =    0 Y =    0
Took 3 samples...
Bot left : X =    0 Y =    0
Took 4 samples...
Center : X =    0 Y =    0
ts_calibrate: determinant is too small -- 0.000000
Calibration failed.

Any idea?

LubOlimex

Hey,

The latest official release (A20-build-3.4.103-release-2) has a tool for calibration inside the X. Use the "Calibrate Touchscreen" application from "Preferences" menu.

You can read more about it and other common practices in this document here: https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-2/USAGE-AND-COMMON-PRACTICEs-A20-Olimex_kernel_3.4.103%2B_Jessie_rel_2.txt

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

ric.rug

Unfortunatelly it seems to click always in the same point (X=360, Y=240):

Quote
DEBUG: XInputExtension version is 2.3
DEBUG: Skipping virtual master devices and devices without axis valuators.
DEBUG: Skipping device 'Virtual core XTEST pointer' id=4, does not report Absolute events.
Warning: multiple calibratable devices found, calibrating last one (HID TOUCH HID Touch Panel)
   use --device to select another one.
DEBUG: Selected device: HID TOUCH HID Touch Panel
DEBUG: Not usbtouchscreen calibrator: Not a usbtouchscreen device
DEBUG: Read axes swap value of 0.
DEBUG: Read InvertX=0, InvertY=0.
Calibrating EVDEV driver for "HID TOUCH HID Touch Panel" id=9
   current calibration values (from XInput): min_x=0, max_x=4095 and min_y=0, max_y=4095
DEBUG: Found that 'HID TOUCH HID Touch Panel' is a sysfs name.
DEBUG: Adding click 0 (X=360, Y=240)
DEBUG: Not adding click 1 (X=360, Y=240): within 7 pixels of previous click
DEBUG: Not adding click 1 (X=360, Y=240): within 7 pixels of previous click
DEBUG: Not adding click 1 (X=360, Y=240): within 7 pixels of previous click
DEBUG: Not adding click 1 (X=360, Y=240): within 7 pixels of previous click

Quote
DEBUG: XInputExtension version is 2.3
DEBUG: Skipping virtual master devices and devices without axis valuators.
DEBUG: Selected device: sun4i-ts
DEBUG: Not usbtouchscreen calibrator: Not a usbtouchscreen device
DEBUG: Read axes swap value of 0.
DEBUG: Read InvertX=0, InvertY=0.
Calibrating EVDEV driver for "sun4i-ts" id=6
   current calibration values (from XInput): min_x=3996, max_x=76 and min_y=123, max_y=3849
DEBUG: Found that 'sun4i-ts' is a sysfs name.
DEBUG: Adding click 0 (X=360, Y=240)
DEBUG: Not adding click 1 (X=360, Y=240): within 7 pixels of previous click
DEBUG: Not adding click 1 (X=360, Y=240): within 7 pixels of previous click
DEBUG: Not adding click 1 (X=360, Y=240): within 7 pixels of previous click
DEBUG: Not adding click 1 (X=360, Y=240): within 7 pixels of previous click

LubOlimex

Make sure that you are logged as olimex/olimex as opposed to root/olimex.

The super user accounts for the console and the GUI are different.

If you have problems with the application, just open a console and type:

#su olimex
#sudo ts_calibrate

and enter the password olimex; then calibrate the screen (if it is impossible you might need to use a mouse)

#sudo reboot

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

ric.rug

Quote
#su olimex
#sudo ts_calibrate

tslib: Selected device is not a touchscreen (must support ABS and KEY event types)
than calibration tool hangs!

dmesg reports:
Quote
generic-usb 0003:1BFD:1568.0005: input: USB HID v1.01 Mouse [HID TOUCH HID Touch Panel] on usb-sw-ohci-1/input0