Using touchscreen with 2 displays

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Using touchscreen with 2 displays

跳至解决方案
1,295 次查看
yavuz_mutlu
Contributor II

Hi there,

I am trying to run Linux image on two displays. The displays are OK. However, only one of the displays have touchscreen. We run 2 different QT application on 2 different displays. The touchscreen interface runs, however, the touch events we make on the touchscreen display is responsive on the display that does not have touchscreen, what I mean is for example, when I touch the touchscreen coordinates 100,100 on the touchscreen display, the board thinks that I touched 100,100 coordinates on the display that does not have touchscreen.

I tried to change the primary display in the device tree, but no luck. I have done research on weston, again I could not find anything to redirect touch events to the touch display.

The board is iMX8 Quad Max

Weston uses xwayland backend, Yocto BSP version is 4.14.98

What should I do to accomplish this?

0 项奖励
1 解答
1,129 次查看
yavuz_mutlu
Contributor II

Hi,

I asked the same question to the wayland-devel mailing group, and they recommended that I should add WL_OUTPUT property to the udev rules for the input device. When I set the WL_OUTPUT=LVDS-2, the problem seems to be solved.

Thanks.

在原帖中查看解决方案

0 项奖励
2 回复数
1,130 次查看
yavuz_mutlu
Contributor II

Hi,

I asked the same question to the wayland-devel mailing group, and they recommended that I should add WL_OUTPUT property to the udev rules for the input device. When I set the WL_OUTPUT=LVDS-2, the problem seems to be solved.

Thanks.

0 项奖励
1,129 次查看
b36401
NXP Employee
NXP Employee

Please also try to swap display numbers (0<->1) in device tree and u-boot.

0 项奖励