hi,
I try to develop DirectFB app on imx28. But I encounter touch event issue that operate does not correctly.
I run ts_calibrate, it works fine.
And then export below before execute df_window.
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/usr/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
But touch event seems like unworkable.
Is there anyone know how to correct touch event for DirectFB on MXS touchscreen with imx28?
Thank you.
yes,
/* Note: imx28 modifications to make DirectFB work with tslib: |
* 1. modify ~/ltib/dist/lfs-5.1/DirectFB/DirectFB.spec, remove linuxinput from $TSOPTS
* 2. mknod /dev/input/tslib0 c 13 65
* 3. export TSLIB_TSDEVICE=/dev/input/tslib0
* 4. ./ltib -c
* 5. note I use ts_read in non-blocking mode
*/
#define TS_READ_BLOCK 1
if( (tsdevice = getenv("TSLIB_TSDEVICE")) != NULL ) {
ts = ts_open(tsdevice,TS_READ_BLOCK); |
.....