Touch screen calibration
#3
Hi blacq,
after some time, I was finally able to figure it out. I followed the steps below, let me know if that works for you.

###################################################################
Initial setup
###################################################################
Write image to SD card
Booting up with LAN attached
Going through initial raspi config
- Expanding File system
- Changing password
- boot into GUI
- Change Locale to en_US
- Change Timezone to EST
- Change keyboard layout to English US
- Change hostname
- Enable SSH
- Change Audio to use 3.5
- Update raspi-config tool

Running apt-get update
Running apt-get upgrade
Running rpi-update
Reboot


###################################################################
Fix inverted Y axis:
###################################################################
/usr/share/X11/xorg.conf.d/10-evdev.conf
add Option "InvertY" "true"

Section "InputClass"
Identifier "evdev touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "InvertY" "true"
EndSection

###################################################################
Calibrate screen:
###################################################################
Use apt installer to download and install the “evtest” package.

2. Run evtest.

3. Evtest will list the attached input devices. Select the number of the device

4. Evtest will show some configuration data then pause, waiting for input.

5. Using your finger or a stylus, touch the very top left corner of the touch screen. You will see the evtest scrolling a series of data output with both ABS_X and ABS_Y lines, followed by numeric values:

Event: time 1374175747.420998, type 3 (EV_ABS), code 0 (ABS_X), value 484
Event: time 1374175747.421011, type 3 (EV_ABS), code 1 (ABS_Y), value 3364
6. Of these values, write down the lowest observed ABS_X value and the highest observed ABS_Y value.

7. Now repeat the process, but this time touch the lower right hand corner of the screen and write down the highest ABS_X value and the lowest ABS_Y.

8. Now open the 10-evdev.conf file we used in the last step and add the following to the previously created section: Option “Calibration” “minX maxX minY maxY”, substituting minX, etc., for the observed values from above. The resulting final text of this section should look like this (but of course with the values from your test):

Section "InputClass"
Identifier "elo touchscreen catchall"
MatchVendor "EloTouchSystems_Inc"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "InvertY" "true"
Option "Calibration" "449 3562 575 3412"
EndSection
9. Save the file, reboot, and now your cursor should follow your finger very closely.

###################################################################
Install Kodi
###################################################################
apt-get install kodi

###################################################################
Configuring touchscreen for Kodi
###################################################################

http://markamc.traki-iski.co.uk/raspberr...uchscreen/

exec ./input-read.py "/dev/input/event2" -D | ./input-create.py "configs/touchscreen.py"



Hope that helps.
Reply


Messages In This Thread
Touch screen calibration - by mustangguy - 2015-03-30, 13:56
RE: Touch screen calibration - by blacq - 2015-05-07, 06:40
RE: Touch screen calibration - by mustangguy - 2015-05-08, 23:01
RE: Touch screen calibration - by blacq - 2015-05-14, 21:06
RE: Touch screen calibration - by x3merrus - 2015-07-07, 20:07
RE: Touch screen calibration - by x3merrus - 2015-07-24, 00:01
Logout Mark Read Team Forum Stats Members Help
Touch screen calibration0