i.MX53 Qt LVDS Display

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

i.MX53 Qt LVDS Display

i.MX53 Qt LVDS Display

This is a workaround—this page needs to be updated to add instructions for multi-touch support.


Based on Freescale BSP 11.05.

The LVDS panel (MCIMX-LVDS1) has a serial multi-touch controller, eGalax. As a workaround to have it supported on directly on Qt, we can force the driver to behave as a single touch. To do this:

1 - Edit the file ltib/rpm/BUILD/linux-2.6.35.3/drivers/input/touchscreen/egalax_ts.c adding the following line:

+ #define FORCE_SINGLE_POINTER_SUPPORT 1

2 - Compile the kernel

./ltib -m scbuild -p kernel

3 - Copy the new kernel to Card/Memory and boot it.

4 - Start your Qt app:

$ Xfbdev -screen 1024x768 -mouse tslib,,device=/dev/input/event0  &
$ export DISPLAY=:0.0
$ ./yourQTapp

Note: You can read the touch events with "evtest"

$ evtest  /dev/input/event0

or tslib apps:

$ export TSLIB_TSDEVICE=/dev/input/event0
$ ts_print
Labels (1)
%3CLINGO-SUB%20id%3D%22lingo-sub-1121710%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX53%20Qt%20LVDS%20Display%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1121710%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23ff9900%3B%22%3E%3CSTRONG%3EThis%20is%20a%20workaround%E2%80%94this%20page%20needs%20to%20be%20updated%20to%20add%20instructions%20for%20multi-touch%20support.%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EBased%20on%20Freescale%20BSP%2011.05.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThe%20LVDS%20panel%20(MCIMX-LVDS1)%20has%20a%20serial%20multi-touch%20controller%2C%20eGalax.%20As%20a%20workaround%20to%20have%20it%20supported%20on%20directly%20on%20Qt%2C%20we%20can%20force%20the%20driver%20to%20behave%20as%20a%20single%20touch.%20To%20do%20this%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E1%20-%20Edit%20the%20file%20ltib%2Frpm%2FBUILD%2Flinux-2.6.35.3%2Fdrivers%2Finput%2Ftouchscreen%2Fegalax_ts.c%20adding%20the%20following%20line%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%2B%20%23define%20FORCE_SINGLE_POINTER_SUPPORT%201%0A%3C%2FPRE%3E%3CP%3E2%20-%20Compile%20the%20kernel%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E.%2Fltib%20-m%20scbuild%20-p%20kernel%0A%3C%2FPRE%3E%3CP%3E3%20-%20Copy%20the%20new%20kernel%20to%20Card%2FMemory%20and%20boot%20it.%3C%2FP%3E%3CP%3E4%20-%20Start%20your%20Qt%20app%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24%20Xfbdev%20-screen%201024x768%20-mouse%20tslib%2C%2Cdevice%3D%2Fdev%2Finput%2Fevent0%26nbsp%3B%20%26amp%3B%0A%24%20export%20DISPLAY%3D%3A0.0%0A%24%20.%2FyourQTapp%0A%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CP%3ENote%3A%20You%20can%20read%20the%20touch%20events%20with%20%22evtest%22%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24%20evtest%26nbsp%3B%20%2Fdev%2Finput%2Fevent0%0A%3C%2FPRE%3E%3CP%3Eor%20tslib%20apps%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24%20export%20TSLIB_TSDEVICE%3D%2Fdev%2Finput%2Fevent0%0A%24%20ts_print%0A%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1121710%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX53%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎09-10-2020 02:52 AM
Updated by: