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.

AM5718: QTVirtualKeyboard issue on Weston

Part Number: AM5718


Hi TI folks,

The QTVirtualKeyboard keyboard with Weston appears, but does not register keystrokes. On the terminal it leaves the following traces.

qt.qpa.wayland: qtvirtualkeyboard currently is not supported at client-side, use QT_IM_MODULE=qtvirtualkeyboard at compositor-side.

input method is not set

The variable QT_IM_MODULE is defined as indicated in the message.

We have looked around and we have seen that it seems that in the current Wayland/Weston version of the SITARA Linux SDK the virtual keyboard is not supported. Apparently the wayland-protocol package must have the input-method-unstable-v2 and text-input-unstable-v3 extension; only v1 of the two is there. The following links discuss the same problem:

https://bugreports.qt.io/browse/QTBUG-94994

https://forum.qt.io/topic/133785/running-weston-with-qtvirtualkeyboard-support

https://stackoverflow.com/questions/51996712/how-to-use-weston-keyboard-virtual-on-screen-keyboard-with-a-qt-application

Besides the extensions, the Weston package has to make use of them, we found a patch that "solved" this part, but it applies to a more modern version of Weston and we didn't manage to adapt it. In the following repo are the changes:
https://gitlab.freedesktop.org/daniels/weston/-/commit/7a32507372426b0e64dcb6251405a58b124ec25a

Any help you can offer is welcome!!! Thank you so much in advance.

Best regards,

Gonzalo Vara