Is there anyone know how to correct touch event for DirectFB on MXS touchscreen with imx28?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is there anyone know how to correct touch event for DirectFB on MXS touchscreen with imx28?

928 Views
ianhuang
Contributor I

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.

0 Kudos
Reply
1 Reply

650 Views
Jeff_ng
Contributor I

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);

.....

0 Kudos
Reply