I.MX6Q - Adding Touch Support (YOCTO + QML + TSLIB + Qt 5)
-
Hi guys.
In the last week I'm trying to to add support to the LCD touchscreen in my SABRE platform. The aim is to use QML based applications with touch support. Below is the steps about what I have already tried and information about the environment that is being used:
Toolchain: YOCTO on dizzy branch with the attached local.conf configuration.
Linux: kernel version 3.10.17
Qt 5 to cross-compile QML applications
Board reference: MCIMX6Q-SDB (http://pt.mouser.com/ProductDetail/Freescale-Semiconductor/MCIMX6Q-SDP/?qs=WK5jcYtKv2mqpYdhkXj9Wg==)
Display connected throught LVDS
No weston-wayland or X11 support
TSLIB support as you can see in the Local.conf fileAfter the image bitbaike, I boot the board with the SD card and I configure all the TSLIB necessary environment variables:
export LD_LIBRARY_PATH=/usr/lib
export TSLIB_TSEVENTTYPE=INPUT
export QTDIR=/usr/bin/qt
export QWS_MOUSE_PROTO=tslib:/dev/input/event0
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_TSDEVICE=/dev/input/event0
export QWS_DISPLAY=LinuxFB:mmWidth=800:mmHeight=48
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
The configuration of the file ts.conf can also be seen in the attached file.
Before running QtCinematicExperience I try to calibrate the touchscreen by using the ts_calibrate utility but the thing is that I dont receive any output. But the strange is that when I do "cat /dev/input/even0 | hexdump" command and I press the display I can see output from the touched points.
I also try after this procedure to run QtCinematicExperience application by performing "QtCinematicExperience -platform eglfs -plugin tslib". The application runs but the touch is also not working.
Besides, I have also try to cross-compile a QML application and run it in the board successfully but again the touch does not work.Anyone can give any inside which can be the problem?
Best Regards.
ts.conf
@# Uncomment if you wish to use the linux input layer event interface
module_raw inputUncomment if you're using a Sharp Zaurus SL-5500/SL-5000d
module_raw collie
Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860
module_raw corgi
Uncomment if you're using a device with a UCB1200/1300/1400 TS interface
module_raw ucb1x00
Uncomment if you're using an HP iPaq h3600 or similar
module_raw h3600
Uncomment if you're using a Hitachi Webpad
module_raw mk712
Uncomment if you're using an IBM Arctic II
module_raw arctic2
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear
@local.conf
@MACHINE ??= 'imx6qsabresd'
DISTRO ?= 'poky'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh "IMAGE_INSTALL_append = " gcc g++ binutils libgcc libgcc-dev libstdc++ libstdc++-dev libstdc++-staticdev
autoconf automake ccache chkconfig glib-networking glibmm
packagegroup-core-buildessential pkgconfig
boost cmake zlib glib-2.0 packagegroup-fsl-tools-testapps git glive
tslib-conf tslib-tests tslib-calibrate tslib
ruby
cpufrequtils
nano
gdb
gstreamer
gst-meta-video
gst-fsl-plugin
gst-plugins-base-app
gst-plugins-base
gst-plugins-good
gst-plugins-good-rtsp
gst-plugins-good-udp
gst-plugins-good-rtpmanager
gst-plugins-good-rtp
gst-plugins-good-video4linux2
openssh-sftp-server
packagegroup-fsl-gstreamer
packagegroup-fsl-tools-testapps
packagegroup-fsl-tools-benchmark
imx-vpu
imx-test \
qtbase-fonts
qtbase-plugins
qtbase-tools
qtbase-examples
qtdeclarative
qtdeclarative-plugins
qtdeclarative-tools
qtdeclarative-examples
qtdeclarative-qmlplugins
qtmultimedia
qtmultimedia-plugins
qtmultimedia-examples
qtmultimedia-qmlplugins
qtsvg
qtsvg-plugins
qtsensors
qtimageformats-plugins
qtsystems
qtsystems-tools
qtsystems-examples
qtsystems-qmlplugins
qtscript
qt3d
qt3d-examples
qt3d-qmlplugins
qt3d-tools
qtwebkit
qtwebkit-examples-examples
qtwebkit-qmlplugins
qtgraphicaleffects-qmlplugins
qtconnectivity-qmlplugins
qtlocation-plugins
qtlocation-qmlplugins
cinematicexperience
cairo pango fontconfig freetype pulseaudio dbus
alsa-lib alsa-tools alsa-state alsa-utils-alsaconf fsl-alsa-plugins
i2c-tools \
"
DISTRO_FEATURES_remove = "x11 wayland"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "
STOPTASKS,${TMPDIR},1G,100K
STOPTASKS,${DL_DIR},1G,100K
STOPTASKS,${SSTATE_DIR},1G,100K
ABORT,${TMPDIR},100M,1K
ABORT,${DL_DIR},100M,1K
ABORT,${SSTATE_DIR},100M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
ASSUME_PROVIDED += "libsdl-native"
CONF_VERSION = "1"BB_NUMBER_THREADS = '4'
PARALLEL_MAKE = '-j 4'DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = ""
@