Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt5 keyboard input does not work without xkbcommon-evdev enabled
QtWS25 Last Chance

Qt5 keyboard input does not work without xkbcommon-evdev enabled

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 1.4k Views
  • 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 Offline
    E Offline
    Eric Ruei
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • E Offline
        E Offline
        Eric Ruei
        wrote on last edited by
        #3

        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
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          0
          • E Offline
            E Offline
            Eric Ruei
            wrote on last edited by
            #5

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

            Best regards,

            Eric

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved