相关文章推荐

In my custom board we are using am335x with ti-processor-sdk-linux-am335x-evm-03.00.00.04 so our sdk is weston waylan based. The problem is weston-keyboard is not shown when any input panel clicked on my qt application if there is no usb keyboard plugged. If I plugged a usb keybord to my board westonkeyboard can be shown when I click any input panel? Why it is now shown when our board only have touch screen input?

my weston.ini file in /etc/

[shell]
locking=false
animation=zoom
panel-location=top
startup-animation=fade

[screensaver]
# Uncomment path to disable screensaver
#path=@libexecdir@/weston-screensaver

[input-method]
path=/usr/libexec/weston-keyboard

[keyboard]
keymap_layout=gb
keymap_layout=gb,de
keymap_options=caps:ctrl_modifier,shift:both_capslock_cancel
### keymap_options from /usr/share/X11/xkb/rules/base.lst ###
numlock-on=true

Regard

The weston.ini file seems correct according to following links:
rpm.pbone.net/.../weston.ini
linoxide.com/.../
Could you give more clarifications about:
"The problem is weston-keyboard is not shown when any input panel clicked on my qt application ..."
Tsvetolin Shulev

Hi Tsvetolin,

I have a helloworld qt application which has a simple line edit. On our custom am335x board we have two usb port and a resistive touch screen. When I run my hello qt application and click line edit by touch screen, weston-keyboard is not shown. But if I plug a usb keyboard to our usb port and then restart the qt application at this time when I click the line edit by touch screen the weston-keyboard is shown without any problem. I think the problem is weston-keyboard is using of xkbcommon, so if there is no any keyboard plugged to the system weston-keyboard not working? Is there any solution to figure out this issue,? it may be simple environment variable export can handle it or maybe  there is a bug in weston source code.

When I plug a keyboard Linux kernel detects USB keyboard plugging event. There is the output observed on my board and it shows correct Linux kernel behaviour:
[ 1788.938282] usb 1-1.2: new low-speed USB device number 6 using xhci-hcd
[ 1789.079068] usb 1-1.2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
[ 1789.088018] usb 1-1.2: ep 0x82 - rounding interval to 64 microframes, ep desc says 80 microframes
[ 1789.132058] input: USB Keyboard as /devices/platform/44000000.ocp/48880000.omap_dwc3_1/48890000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.2/1-1.2:1.0/0003:04D9:17
[ 1789.210068] hid-generic 0003:04D9:1702.0006: input: USB HID v1.10 Keyboard [ USB Keyboard] on usb-xhci-hcd.1.auto-1.2/input0
[ 1789.239217] input: USB Keyboard as /devices/platform/44000000.ocp/48880000.omap_dwc3_1/48890000.usb/xhci-hcd.1.auto/usb1/1-1/1-1.2/1-1.2:1.1/0003:04D9:18
[ 1789.308762] hid-generic 0003:04D9:1702.0007: input: USB HID v1.10 Device [ USB Keyboard] on usb-xhci-hcd.1.auto-1.2/input1
On other hand seems that there is some issue with keyboard plugging detection by weston software which could be a bug. The Weston reference implementation is part of the Wayland project which is not a TI's project. There is Wayland project page:
wayland.freedesktop.org/
You can report weston related issues at:
bugs.freedesktop.org/enter_bug.cgi
Tsvetolin Shulev
 
推荐文章