We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:c1_tft_touch [2016/08/23 19:25]
john1117 [Manual 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
-==== TSLIB calibration ​Calibration ====+<wrap hide> 
 +==== TSLIB Calibration ====
 Run startx Run startx
   sudo startx &   sudo 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>​ 
-==== 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
en/c1_tft_touch.1471949733.txt.gz · Last modified: 2016/08/23 19:25 by john1117
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0