Skip to main content
debugging
Lead
March 19, 2025
Solved

STM32MP15 ECO 5.0 Touch display - Weston calibrator, x inverson and save/restore calibration data

  • March 19, 2025
  • 1 reply
  • 639 views

Environment

STM32MP157 board using I2C touch controller: ECO  5.0

Problem description

Touch data  reporting:

[1]  evtest with the touch driver loaded: X and Y coordinates are correct 

[2] w/o  touch driver but I2c enabled and read I2C data from the touch controller via I2C correctly: X/Y coordinates are correct

[3] with the driver and Using gtk client app using standard gtk api's  to get touch events: inversed x. That is, 0 is reported at max-x-1 and vice verse. Y is correct. this result when moving left, weston thinks finger is moving right and vice versa.

[4] ST MICRO Weston default installed app: same probem as gtk

[5] After using weston-calibrator, inversion is resolved.

[6] After reboot, the inversion problem returns

[7] Using device tree for touch driver to use inverted x result in negative x values (in evtest) instead of reported x = max-x - controller-x (possible bug in touch driver). . This result in gtk apps not receiving touch  events.

Questions:

[1] Why would weston inverse the X ?

[2] How to save and restore the weston calibration data. It seems weston.ini file does not get updated after calibration.

Note:

All over the internet there is a solution to change weston.ini and point to an .sh file. Tried that, but does not work. Another solution seem to set en environment variable, but that does not work either.

 

 

Best answer by debugging

Fixed by weston setting

1 reply

debugging
debuggingAuthorBest answer
Lead
March 24, 2025

Fixed by weston setting