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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
666件の閲覧回数
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 件の賞賛
1 解決策
660件の閲覧回数
Rock_Lee
Contributor II

 When add QT debug message :  

              export QT_LOGGING_RULES=qt.qpa.input=true

 Have touch message show:              touch.png

元の投稿で解決策を見る

0 件の賞賛
1 返信
661件の閲覧回数
Rock_Lee
Contributor II

 When add QT debug message :  

              export QT_LOGGING_RULES=qt.qpa.input=true

 Have touch message show:              touch.png

0 件の賞賛