2025-03-18 6:26 PM - edited 2025-03-19 4:22 AM
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.
Solved! Go to Solution.
2025-03-24 8:15 AM
Fixed by weston setting
2025-03-24 8:15 AM
Fixed by weston setting