2025-03-18 6:26 PM - edited 2025-03-18 6:37 PM
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.