Difference between revisions of "Touchscreen Calibration (DIVELK)"

From DAVE Developer's Wiki
Jump to: navigation, search
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{InfoBoxTop}}
 
{{Applies To Diva}}
 
{{InfoBoxBottom}}
 
 
 
 
== History ==
 
== History ==
  
Line 9: Line 4:
 
!Version
 
!Version
 
!Date
 
!Date
!DIVELK version
+
!Divelk version
 +
!Hardware Part Nr
 
!Notes
 
!Notes
 
|-
 
|-
 
|4.0.0
 
|4.0.0
|April 2018 <br/><hr/> March 2019
+
|April 2018
|[[Diva_Embedded_Linux_Kit_(DIVELK)#DIVELK_4.0.0|DIVELK 4.0.0]] <br/><hr/> [[Diva_Embedded_Linux_Kit_(DIVELK)#DIVELK_4.0.1|DIVELK 4.0.1]]
+
|[[Diva_Embedded_Linux_Kit_(DIVELK)#DIVELK_4.0.0|DIVELK 4.0.0]]
 +
|DIVELK 4.0.0
 
|
 
|
 
|-
 
|-
Line 20: Line 17:
  
 
== Calibration ==
 
== Calibration ==
=== Weston ===
+
To calibrate the touchscreen, please do the following:
If the Weston compositor is running in the background, it is necessary to remove the old udev rules, and restart the device in order to calibrate the touchscreen.
 
 
<pre>
 
<pre>
  rm -f /etc/udev/rules.d/ws-calibrate.rules
+
  rm /etc/udev/rules.d/ws-calibrate.rules
 
  reboot
 
  reboot
 
</pre>
 
</pre>
 
At the next restart the weston-calibrator tool should automatically show up. Tap on the red cross appearing on the screen to calibrate the touch panel.
 
At the next restart the weston-calibrator tool should automatically show up. Tap on the red cross appearing on the screen to calibrate the touch panel.
  
'''Note:''' In the case of root filesystem over NFS and SD card plugged in, make sure delete also the calibration rules stored in the SD card partition before rebooting:
+
'''Note:''' In the case that the filesystem is mounted via NFS and that an additional sdcard is plugged in, make sure delete also the calibration rules stored in the sdcard partition before rebooting.
 
 
 
<pre>
 
<pre>
 
  rm /etc/udev/rules.d/ws-calibrate.rules
 
  rm /etc/udev/rules.d/ws-calibrate.rules
Line 35: Line 30:
 
  reboot
 
  reboot
 
</pre>  
 
</pre>  
=== Non-Weston based Graphic System ===
+
Additional information can be found at the following [http://processors.wiki.ti.com/index.php/How_to_Recalibrate_the_Touchscreen#Where_is_the_ws-calibrate.rules_file.3F link]
If the weston compositor is not running, it is necessary to run:
 
<pre>
 
  export TSLIB_CALIBFILE=/usr/share/pointercal
 
  ts_calibrate
 
</pre>
 
 
 
==== Exporting TSLIB_CALIBFILE ====
 
The environment variable TSLIB_CALIBFILE is used by the tslib package to indicate the location of the pointercal file. The default value for TSLIB_CALIBFILE is /etc/pointercal. If you are writing a program that uses tslib you should make sure that you export TSLIB_CALIBFILE to point to the location of your pointercal file (as indicated in the previous section), or that you place a copy of the pointercal file at the default /etc/pointercal location.
 
 
 
Additional information can be found int the following [http://processors.wiki.ti.com/index.php/How_to_Recalibrate_the_Touchscreen#Where_is_the_ws-calibrate.rules_file.3F page in TI wiki]
 

Revision as of 10:57, 27 March 2018

History[edit | edit source]

Version Date Divelk version Hardware Part Nr Notes
4.0.0 April 2018 DIVELK 4.0.0 DIVELK 4.0.0

Calibration[edit | edit source]

To calibrate the touchscreen, please do the following:

 rm /etc/udev/rules.d/ws-calibrate.rules
 reboot

At the next restart the weston-calibrator tool should automatically show up. Tap on the red cross appearing on the screen to calibrate the touch panel.

Note: In the case that the filesystem is mounted via NFS and that an additional sdcard is plugged in, make sure delete also the calibration rules stored in the sdcard partition before rebooting.

 rm /etc/udev/rules.d/ws-calibrate.rules
 rm /run/media/mmcblk0p1/ws-calibrate.rules
 reboot

Additional information can be found at the following link