How to calibrate the touchscreen

Revision as of 17:38, 13 February 2019 by Registered User

Template:ArticleMainWriter Template:ArticleProposedVersion


Touchscreen is more precise after a calibration, but this action is not mandatory.

Calibration data are erased after each firmware download into STMicroelectronics boards. The steps described below have to performed on a running board.


  • Edit and change the value of the touchscreen_calibrator in the libinput section ot the weston.ini Weston configuration file[1]
  vi /etc/xdg/weston/weston.ini
 [...]
 [libinput]
 touchscreen_calibrator=true
 calibration_helper=/bin/echo
 [...]
  • Restart weston
  systemctl restart weston



  • Launch calibration
  weston-touch-calibrator /sys/devices/platform/soc/40012000.i2c/i2c-0/0-002a/input/input1/event1



Touchscreen identifier may vary, depending on the devices that are connected to the board. Recommendation is to unplug all the additional input devices before booting. Otherwise, it is up to You to adapt the command line.

1. References