Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:c1_tft_touch [2016/08/23 19:25] john1117 [X Calibration] |
en:c1_tft_touch [2017/07/26 15:52] john1117 [Test your Touchscreen] |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== Test your Touchscreen ==== | ==== Test your Touchscreen ==== | ||
+ | <wrap hide> | ||
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 | ||
- | | + | </wrap> |
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 15: | Line 16: | ||
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 |
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. |