tslib yocto touch event is not working

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

tslib yocto touch event is not working

3,038 Views
mauriciokarrei
Contributor II

I'm trying to execute tslib in my yocto. The problem is that my touch screen is not recognized by the tslib (with ts_calibrate or ts_test).

If I use the evtest, it works perfectly, take a look:

ps: My device was recognized in "/dev/input/event0"


~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:      cyttsp5_mt
/dev/input/event1:      Logitech USB Receiver
/dev/input/event2:      Logitech USB Receiver

I'm selecting the "zero" device:
...
      Min        0
      Max        1
    Event code 57 (ABS_MT_TRACKING_ID)
      Value      0
      Min        0
      Max    65535
    Event code 58 (ABS_MT_PRESSURE)
      Value      0
      Min        0
      Max      255
Properties:
  Property type 1 (INPUT_PROP_DIRECT)
  Property type 1 (INPUT_PROP_DIRECT)
Testing ... (interrupt to exit)
Event: time 1472308931.862872, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 2
Event: time 1472308931.862872, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 92
Event: time 1472308931.862872, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 267
Event: time 1472308931.862872, type 3 (EV_ABS), code 58 (ABS_MT_PRESSURE), value 30
Event: time 1472308931.862872, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 12
Event: time 1472308931.862872, type 3 (EV_ABS), code 49 (ABS_MT_TOUCH_MINOR), value 12
Event: time 1472308931.862872, -------------- SYN_REPORT ------------
Event: time 1472308931.881448, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 93
...

I tried set the enviromental variables:
export TSLIB_TSEVENTTYPE=INPUT
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONSOLEDEVICE=none

I'm using QT5 to develop, and I'm starting the applications in this way.
export QWS_MOUSE_PROTO=tslib:/dev/input/event0
./app -platform eglfs "QWS_MOUSE_PROTO=tslib:/dev/input/event0"

My ts.conf file is:
/etc/ts.conf

module_raw input
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear

I haven't any idea about the reason that it's not working.


Thanks

0 Kudos
1 Reply

1,453 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mauricio

in general one can debug it as in

https://community.nxp.com/thread/293210 

also it may be useful to look at usage of various touchscreens on below link

http://boundarydevices.com/configuring-i-mx6-machines-different-screens-nitrogen6x-sabre-lite/

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos