Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved How to configure touch screen coordinate rotation with QPA Wayland

    Mobile and Embedded
    2
    2
    1540
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      Eric Ruei last edited by

      Re: TOUCHSCREEN rotation on QPA/Wayland

      We were able to achieve 180-degree rotation for the touch screen on TI's AM335x EVM foir QPA LinuxFB and EGLFS before per QT manual below.

      "Input on eglfs and linuxfb without libinput

      Parameters like the device node name can be set in the environment variables QT_QPA_EVDEV_MOUSE_PARAMETERS, QT_QPA_EVDEV_KEYBOARD_PARAMETERS and QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS. Additionally, the built-in input handlers can be disabled by setting QT_QPA_EGLFS_DISABLE_INPUT or QT_QPA_FB_DISABLE_INPUT to 1. On some touch screens the coordinates must be rotated, which is done by setting QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS to rotate=180."

      It is clear that this method is only applicable to EGLFS and LinuxFB without libinput.

      I am not able to find out an equivalent solution for QPA Wayland which invokes libinput.
      Can the touch screen rotation be implemented within QT, or such operation should be done within Weston/Wayland/Libinput?

      Any help and input will be highly appreciated!

      Best regards,

      Eric

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        I'd recommend asking that question on the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post