Qt Forum

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

    Solved Qt5 keyboard input does not work without xkbcommon-evdev enabled

    Mobile and Embedded
    2
    5
    868
    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

      We build QT with yocto build system to run on TI Sitara devices such as AM57xx.
      There were never Keyboard issue until QT5.11.3 when we dropped xkbcommon-evdev at yocto. The keyboard inputs were no longer recognized by any QT application including qtwebkit browser. This problem was recognized and then fixed by re-enabling xkbcommon-evdev.

      Features used by QPA backends:
      evdev .................................. yes
      libinput ............................... yes
      INTEGRITY HID .......................... no
      mtdev .................................. no
      tslib .................................. no
      xkbcommon-evdev ........................ yes

      Unfortunately the same trick does not work for QT5.12.3 because xkbcommon-evdev is no longer supported by QT QPA.

      Features used by QPA backends:
      evdev .................................. yes
      libinput ............................... yes
      INTEGRITY HID .......................... no
      mtdev .................................. no
      tslib .................................. no
      xkbcommon .............................. no
      X11 specific:
      XLib ................................. no
      XCB Xlib ............................. no
      EGL on X11 ........................... no

      Any inputs to debug and resolve this issue is highly appreciated.

      Best regards,

      Eric

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

        Hi,

        Just an educated guess but until recently, the xkbcommon library was provided by Qt but since all officially supported distribution provide that library, the related embedded version has been dropped.

        Therefore, you would need to enable that library in your yocto build.

        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
        • E
          Eric Ruei last edited by

          Thanks for the information! Is xkbcommon still required without X11. Our build does not support X11, just Wayland and nullWindow (EGLFS). It used to work through xkbcommon-evdev only.

          Best regards,

          Eric

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

            Likely because the library was included with Qt.

            AFAIR, it can be used without X11.

            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
            • E
              Eric Ruei last edited by

              Yes, it works well with xkbcommon enabled.
              Thanks a lot.

              Best regards,

              Eric

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