Qt-embedded touch screen can't work on IMX6SLL (Yocto)

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

Qt-embedded touch screen can't work on IMX6SLL (Yocto)

Jump to solution
668 Views
Rock_Lee
Contributor II

Hi,

   I build Yocto with QT as below:

            DISTRO=fsl-imx-fb MACHINE=imx6sllevk bitbake fsl-image-qt5-validation-imx

 

   Burn this image in IMX6SLL board, and run below QT test app, but touch screen have no any response

           root@imx6sllevk:~# /usr/share/examples/widgets/widgets/calculator/calculator

 

 The QT env settings are:

          export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0
          export QTDIR=/usr/lib
          export QT_QPA_FONTDIR=$QTDIR/fonts
          export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins/platforms

          export QT_QPA_GENERIC_PLUGINS=evdevtouch:/dev/input/event1
          export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event1

 

   The touch event does work when touch in console command:

           root@(none):/# cat /dev/input/event1 | hexdump
              0000000 a265 4eff a510 0000 0001 0145 0001 0000
              0000010 a265 4eff a510 0000 0001 014a 0001 0000
              0000020 a265 4eff a510 0000 0003 0039 0000 0000

   

   How can I debug this issue "why touch can't work in QT app" ?           

    

   

0 Kudos
1 Solution
662 Views
Rock_Lee
Contributor II

 When add QT debug message :  

              export QT_LOGGING_RULES=qt.qpa.input=true

 Have touch message show:              touch.png

View solution in original post

0 Kudos
1 Reply
663 Views
Rock_Lee
Contributor II

 When add QT debug message :  

              export QT_LOGGING_RULES=qt.qpa.input=true

 Have touch message show:              touch.png

0 Kudos