
Arcom Embedded Linux Technical Manual Configuring AEL
Calibrating touchscreens
Touchscreen support is provided by tslib, which obtains the raw touch events from the
kernel input event subsystem. It also includes modules for calibration, jitter reduction,
and so on.
Tslib requires both the kernel input event interface (provided by the evdev module) and
the correct driver for the touchscreen hardware. /dev/input/eventN devices are assigned
to input devices dynamically and you must determine which device is the touchscreen.
Here is an example:
# dmesg | grep input
input: AT Translated Set 2 keyboard as /class/input/input0
input: ImPS/2 Generic Wheel Mouse as /class/input/input1
input: Touchscreen panel as /class/input/input2
The above shows 3 input devices, a keyboard (/dev/input/event0), a mouse
(/dev/input/event1) and the touchscreen (/dev/input/event2).
Calibrating the touchscreen is done using the ts_calibrate utility:
# TSLIB_TSDEVICE=/dev/input/event2 ts_calibrate
If you wish to use the touchscreen under the X Window System you must use the same
framebuffer resolution as that used by X.
© 2006 Arcom Issue G 23
Comentarios a estos manuales