Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:c1_tft_touch [2016/08/23 19:25] john1117 [TSLIB calibration Calibration] |
en:c1_tft_touch [2017/07/26 15:53] (current) john1117 [TSLIB Calibration] |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== Test your Touchscreen ==== | ==== Test your Touchscreen ==== | ||
+ | |||
Create a new udev file | Create a new udev file | ||
sudo vi /etc/udev/rules.d/95-ads7846.rules | sudo vi /etc/udev/rules.d/95-ads7846.rules | ||
- | | + | |
and then, add this lines and save it\\ | and then, add this lines and save it\\ | ||
SUBSYSTEM=="input", ATTRS{name}=="ADS7846 Touchscreen", ENV{DEVNAME}=="*event*", SYMLINK+="input/touchscreen" | SUBSYSTEM=="input", ATTRS{name}=="ADS7846 Touchscreen", ENV{DEVNAME}=="*event*", SYMLINK+="input/touchscreen" | ||
Line 13: | Line 14: | ||
Now you can see this node. | Now you can see this node. | ||
ls /dev/input/touchscreen | ls /dev/input/touchscreen | ||
+ | <wrap hide> | ||
Install the event test and touchscreen library | Install the event test and touchscreen library | ||
- | sudo apt-get install evtest tslib libts-bin | + | sudo apt-get install evtest libts-bin |
+ | </wrap> | ||
+ | Install the event test and touchscreen library | ||
+ | sudo apt-get install evtest | ||
Now you can use some tools such as sudo evtest /dev/input/touchscreen which will let you see touchscreen events in real time, press on the touchscreen to see the reports. | Now you can use some tools such as sudo evtest /dev/input/touchscreen which will let you see touchscreen events in real time, press on the touchscreen to see the reports. | ||
sudo evtest /dev/input/touchscreen | sudo evtest /dev/input/touchscreen | ||
+ | <wrap hide> | ||
==== TSLIB Calibration ==== | ==== TSLIB Calibration ==== | ||
Run startx | Run startx | ||
Line 29: | Line 33: | ||
Then, you can run following command. | Then, you can run following command. | ||
sudo TSLIB_FBDEVICE=/dev/fb2 TSLIB_TSDEVICE=/dev/input/touchscreen ts_test | sudo TSLIB_FBDEVICE=/dev/fb2 TSLIB_TSDEVICE=/dev/input/touchscreen ts_test | ||
- | + | </wrap> | |
- | ==== X Calibration ==== | + | ==== X11 Calibration ==== |
1. The xinput-calibrator pakage download | 1. The xinput-calibrator pakage download | ||
sudo apt-get install xinput-calibrator | sudo apt-get install xinput-calibrator |