Hi all,
I'm trying to setup DirectFB working with TSlib. Under Ltib, I've selected Dialog DA9052 TSI to support the touch controller, and I can compile without errors.
When the QSB is booting I can see the TSI driver is loaded. This has been extracted from the boot log:
DA9052 TSI Device Driver, v1.0
input: da9052-tsi as /class/input/input0
TSI Drv Successfully Inserted da9052-tsi
These are the exports I'm using:
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/usr/etc/ts.conf
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CONSOLEDEVICE=none
Thanks to the patch that Shlomo Kut posted here http://imxcommunity.org/group/imx53quickstartboard/forum/topics/seiko-wvga-panel-with-imx53?commentI... now I'm able to run ts_calibrate OK, but DirectFB (df_input) doesn't work.
Under /usr/lib/directfb-1.4-5/inputdrivers I can only see libdirectfb_linux_input.so. I think libdirectfb_tslib.so should also be there, but I'm not able to locate this file in my system ¿?.
Then, when I run df_input, I get the following:
root@freescale ~$ df_input
In the LCD I'm getting readings from the mma8450, but the touch screen is not working.
The contents of /dev/input/ is:
root@freescale ~$ ls -l /dev/input
crw-r----- 1 root root 13, 64 Jan 1 04:42 event0
crw-r----- 1 root root 13, 65 Jan 1 04:42 event1
and the input devices in my system are:
root@freescale ~$ cat /sys/class/input/input0/name
da9052-tsi
root@freescale ~$ cat /sys/class/input/input1/name
mma8450
Just to see what happens, I have also exported TSLIB_TSDEVICE as:
export TSLIB_TSDEVICE=/dev/input/event1
In this case ts_calibrate doesn't work (as expected) but, for a while, I can get touch screen events in df_input ¿¿¿???? This is what I see when running df_input:
~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.4.13 |~~~~~~~~~~~~~~~~~~~~~~~~~~
Something is messed up here. Please, could someone point me what I'm missing?
Thanks,
Gonzalo.
Hi Gonzalo, have you solved the TSlib issue? we have meet the exact same issue to you, now we can calibrate TP, but it seem the system still can't work it.
anyone have idea on MX53 QSB touch panel ? thx.
Jack
Hi Jack,
no, I didn't investigate this issue more deeply - I switched to a project based on an iMX28 and am not working any longer with the QSB. Have you checked if the problem comes from udev?
Hope someone else can assist you.
Gonzalo.
Nope !
I tried different kernels, different DirectFBs and different TSlibs with no luck. I've also found the same problem in the iMX25PDK, so I've ended up managing TSLib by my own, not under DirectFB.
If you finally get the combo working, please, share your experience.
Gonzalo.
Gonzalo,
I am having the exact same issue. I have engaged Freescale support but no resolution yet.
Did you have any luck?
Thanks,
Steve
Thanks Daiane,
I have doublechecked my setup against imxdev.org and looks everything is OK, but doesn't work in the QSB.
I'll follow your advice about DirectFB mailing list.
Gonzalo
You can take a look here:
http://www.imxdev.org/wiki/index.php?title=I.MX31_PDK_Board_DirectFB
I hope it can help you
But I would recommend you to look for help on Direct FB maillist.
When you got it working, please share the results over here.