Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
en:c1_tft_touch [2017/07/26 15:52] john1117 [Test your Touchscreen] |
en:c1_tft_touch [2017/07/26 15:53] 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 14: | 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 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 |