touch screen calibration tutorial - 52pi wiki€¦ · 52pi touch screen calibration tutorial @2016...

2
52Pi Touch Screen Calibration Tutorial www.52pi.com @2016 52Pi Touch Screen Calibration Tutorial How to calibrate a touch screen on Raspberry Pi? 1. Download Raspbian image and burn your TF card with win32_imager or other tools. 2. Login your Raspberry Pi and connect your Pi to Internet. 3. Execute the following command to update your system: sudo apt-get update 4. Install the packages to calibrate your touch screen sudo apt-get -y install xinput libx11-dev libxext-dev x11proto-input-dev evtest dh-autoreconf libts-bin libxi-dev 5. Download calibration tools from github by executing this commandcd ~ git clone https://github.com/tias/xinput_calibrator cd ~/xinput_calibrator sudo ./autogen.sh sudo make sudo make install 6. Calibrating your touch screen: DISPLAY=:0.0 xinput_calibrator 7. Press the cross on the screen in 4 corners and save configuration. 8. Save the touch screen configuration to /etc/X11/xorg.conf.d/99-calibration.conf file:

Upload: others

Post on 27-Jun-2020

25 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Touch Screen Calibration Tutorial - 52Pi Wiki€¦ · 52Pi Touch Screen Calibration Tutorial @2016 52Pi Touch Screen Calibration Tutorial How to calibrate a touch screen on Raspberry

52Pi Touch Screen Calibration Tutorial

www.52pi.com @2016 52Pi

Touch Screen Calibration Tutorial

How to calibrate a touch screen on Raspberry Pi?

1. Download Raspbian image and burn your TF card with win32_imager or other tools.

2. Login your Raspberry Pi and connect your Pi to Internet.

3. Execute the following command to update your system:

sudo apt-get update

4. Install the packages to calibrate your touch screen

sudo apt-get -y install xinput libx11-dev libxext-dev x11proto-input-dev evtest dh-autoreconf

libts-bin libxi-dev

5. Download calibration tools from github by executing this command:

cd ~

git clone https://github.com/tias/xinput_calibrator

cd ~/xinput_calibrator

sudo ./autogen.sh

sudo make

sudo make install

6. Calibrating your touch screen:

DISPLAY=:0.0 xinput_calibrator

7. Press the cross on the screen in 4 corners and save configuration.

8. Save the touch screen configuration to /etc/X11/xorg.conf.d/99-calibration.conf file:

Page 2: Touch Screen Calibration Tutorial - 52Pi Wiki€¦ · 52Pi Touch Screen Calibration Tutorial @2016 52Pi Touch Screen Calibration Tutorial How to calibrate a touch screen on Raspberry

Wiki.52pi.com @2016 52Pi

9. Create a new folder and save the parameters in the red box of the above picture to the file in

/etc/X11/xorg.conf.d/99-calibration.conf

sudo mkdir -pv /etc/X11/xorg.conf.d/

sudo vim.tiny /etc/X11/xorg.conf.d/99-calibration.conf

Section “InputClass”

Identifier “calibration”

MatchProduct “eGalax Inc. USB TouchController”

Option “Calibration” “1953 60 1816 129”

Option “SwapAxex” “0”

EndSection

PS: Fill in the value of Option Calibration according to your own calibrating result.

10. Reboot your Raspberry Pi and have fun with it.

For Technology Support:

http://wiki.52pi.com