[Documentation] [TitleIndex] [WordIndex

Calibrate the touchscreen

Calibrate with xinput-calibrate (recommended)

* Install xinput calibrator

sudo add-apt-repository ppa:tias/xinput-calibrator-ppa
sudo apt-get update
sudo apt-get install xinput-calibrator

Then execute the xinput calibrator with some precalibration values, e.g.

xinput_calibrator --output-type xorg.conf.d --precalib 34 940 54 900 

Copy the results to the /usr/lib/X11/xorg.conf.d/10-evtouch.conf (MinX MaxX MinY MaxY)

Hint: This procedure was successfully tested for Ubuntu 10.04 LTS.

Calibrate with evtouch

sudo cp /usr/share/xf86-input-evtouch/empty_cursor.xbm /

This seems to be a bug of the calibration tool.

sudo mkdir /etc/evtouch 

cd /usr/lib/xf86-input-evtouch
sudo ./calibrate.sh 

and follow the instructions

Problems when using the cob_touch and the Care-O-bot 3 touchscreen respectively

After update to ubuntu 10.04, Touchscreen seems to be not calibrated

If you touch the screen, the mouse arrow is showing at a largely different position as expected. You get an error like this in /var/log/Xorg.0.log:

(**) EVTouch TouchScreen: always reports core events
(II) XINPUT: Adding extended input device "EVTouch TouchScreen" (type: TOUCHSCREEN)
(**) Option "Device" "/dev/input/mouse1"
(EE) ioctl EVIOCGNAME failed: Inappropriate ioctl for device
Unable to query/initialize EVTouch hardware.
[dix] couldn't enable device 10

Solution:

Section "InputClass"
        Identifier "touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evtouch"
        Option "MinX" "34"
        Option "MaxX" "940"
        Option "MinY" "54"
        Option "MaxY" "900"
        #Option "Emulate3Buttons" "true"
        Option "Emulate3Timeout" "50"
        Option "SwapX" "0"
        Option "SwapY" "0"
        Option "SendCoreEvents" "on"
        Option "ReportingMode" "raw"
EndSection

2024-12-28 14:52