This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/PROCESSOR-SDK-AM335X: Arago Touchscreen libinput

Part Number: PROCESSOR-SDK-AM335X


Tool/software: Linux

Hi all,

I am having some issues getting touchscreen events to my QT application. I can visualize incoming touch events using either evtest or libinput-debug-events, so I know they are being handled by the driver,, yet somehow they are not properly relayed to my QT application.

How can i resolve the issue?

Thank you.

Best regards,

Marc Welleweerd

  • Hello Marc,

    Try exporting the rotate parameter.
    root@am335x-evm:~# export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS="rotate=180"

    Best regards,
    Kemal

  • Hi Kemal,

    Your suggestion is not working. if found so far that exporting:

    export QT_QPA_EGLFS_DEBUG=1
    
    export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/touchscreen0
    
    export QT_QPA_GENERIC_PLUGINS=EvdevTouch:/dev/input/touchscreen0
    
    export QT_QPA_GENERIC_PLUGINS=libinput
    
    export QT_QPA_EGLFS_DISABLE_INPUT=1
    
    export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/touchscreen0
    
    export QT_QPA_GENERIC_PLUGINS=evdevtouch:/dev/input/touchscreen0,EvdevKeyboard:/dev/input/by-path/platform-touch_key-event

    gives me :

    file:///usr/lib/qt5/qml/QtQuick/Controls/MenuBar.qml:155: Error: Cannot assign [undefined] to int
    
    or:
    
    file:///usr/lib/qt5/qml/QtQuick/Controls/MenuBar.qml:155: Error: Cannot assign [undefined] to int
    invalid object (16), type (wl_registry), message down(uuoiff)
    The Wayland connection experienced a fatal error (Invalid argument)

    In a basic qml application. (mouse input is working)

    when i try to run a widget based application there is no response in the QT application( input with mouse is working)