Qt5 evdevtouch tslib dosen't work



  • I'm using fsl-arm-yocto-bsp-L4.1.15_2.0.0 bsp。after ts_calibrate,ts_test shows coordinate currently,I think my tslib work fine.but Qt application's touch dosen't work properly and weston-calibrator(L4.1.15) dosen't response to touch event.My display resolution is 1024x768,but the touch response area seems map to 800x480(shrinked).I tried /usr/share/qt5/examples/touch/fingerpaint/fingerpaint,when touch 1024,768,it's paint on 800x480,here is my profile setup.the same setup work fine on fsl-arm-yocto-bsp-L3.14.28.
    it's seems qt application works on it's own way.nomatter there is a pointcal file or not.
    It's urgent,we are approach the deadline!

    /etc/profile:
    export QT_QPA_EGLFS_FB=/dev/fb0
    export DISPLAY=:0.0
    #export /dev/fb0
    export QTDIR_BIN=/usr/bin/qt5
    export QTDIR_LIB=/usr/lib/qt5
    export QT_QPA_FONTDIR=${QTDIR_LIB}/fonts
    export QT_QWS_FONTDIR=${QTDIR_LIB}/fonts
    export PATH=${QTDIR_BIN}:${PATH}
    export QT_QPA_PLATFORM_PLUGIN_PATH=${QTDIR_LIB}/plugins
    export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
    #export QT_QPA_EGLFS_TSLIB=0
    export QT_QPA_PLATFORM=eglfs
    #export QT_QPA_PLATFORM=wayland-egl
    export TSDEVICE=/dev/input/event2
    #export QT_QPA_GENERIC_PLUGINS=evdevkeyboard:/dev/input/event1,tslib:${TSDEVICE}
    export QT_QPA_GENERIC_PLUGINS=evdevkeyboard:/dev/input/event0,evdevtouch:${TSDEVICE}
    #export QWS_MOUSE_PROTO=tslib:${TSDEVICE}
    export QWS_MOUSE_PROTO=evdevtouch:${TSDEVICE}
    export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=${TSDEVICE}
    #export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=${TSDEVICE}:rotate=180
    export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib:${QTDIR_LIB}:${QT_QPA_PLATFORM_PLUGIN_PATH}

    #export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM

    export LD_PRELOAD=/usr/lib/libts.so
    export QT_QPA_EGLFS_DISABLE_INPUT=0
    export TSLIB_TSEVENTTYPE=INPUT
    #export QWS_MOUSE_PROTO=tslib:${TSDEVICE}
    export TSLIB_CONSOLEDEVICE=none
    export TSLIB_FBDEVICE=/dev/fb0
    export TSLIB_CALIBFILE=/etc/pointercal
    export TSLIB_TSDEVICE=${TSDEVICE}
    #export QWS_DISPLAY=LinuxFB:mmWidth=800:mmHeight=480
    #export QWS_SIZE=800x480
    export TSLIB_CONFFILE=/etc/ts.conf
    export TSLIB_PLUGINDIR=/usr/lib/ts

    I have found that my capacitor touch(goodix and egtouch ) works fine in eglfs in both system which resolution is 1024x768 and 800x480.but it's not work properly in wayland-egl /usr/share/qt5/examples/touch/fingerpaint/fingerpaint -platform wayland-egl touch a position it will paint two point on symmetrical position

    Is't the wayland support resistor touch or not?
    How to solve the above problem?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.