Firefly开源社区

打印 上一主题 下一主题

Dual screen touch issue.

26

积分

0

威望

0

贡献

游客

积分
26

Dual screen touch issue.

发表于 2018-4-26 15:00:55      浏览:8308 | 回复:2        打印      只看该作者   [复制链接] 楼主
The 1st Display is a VGA output, and the 2nd Display is an HDMI output. The VGA monitor is equipped with a touch.

Widi was used to display different screens on the two displays. I have configured a control button on VGA screen and allowed the HDMI screen to display a media playback screen. but the touch on VGA screen does not work.

Touch operated when both displays are operating in the clone mode, but if the displays are operated in different screens, the VGA side touches are not active. However, the mouse is still operating on VGA.

The attached picture is a picture that was touched in clone view mode and differnt view mode with the "Pointer location" and "Show Touches" option turned on.
When touched in the clone view, the touch marks and coordinates are displayed. (CloneViewMode_VgaTouch.jpg)
If touced in the diffrent view, only the touch marks are displayed and the coordinates are not displayed. (DifferentViewMode_VgaTouch.jpg)

Note that applying the following code found on the previous posts has not solved the problem.
------------------------------------
...
// Determine whether the device is external or internal.
If (isExternalDeviceLocked(device)){
- device->classes |=INPUT_DEVICE_CLASS_EXTERNAL;
+ //device->classes|= INPUT_DEVICE_CLASS_EXTERNAL;
}
-----------------------------------

I want to know if there are patches applied in this issue, and please tell me advice to solve this problem.

Waiting your reply.
Thank you so much.

DifferentViewMode_VgaTouch.jpg (102.1 KB, 下载次数: 499)

DifferentViewMode_VgaTouch.jpg

CloneViewMode_VgaTouch.jpg (113.65 KB, 下载次数: 440)

CloneViewMode_VgaTouch.jpg
回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2018-4-26 16:54:33        只看该作者  沙发
add patch
+++ b/frameworks/native/services/inputflinger/InputReader.cpp
@@ -3208,6 +3208,7 @@ void TouchInputMapper::configureSurface(nsecs_t when, bool* outResetNeeded) {
     bool viewportChanged = mViewport != newViewport;
     if (viewportChanged) {
         mViewport = newViewport;
+           mViewport.displayId = 0;
回复

使用道具 举报

26

积分

0

威望

0

贡献

游客

积分
26
发表于 2018-4-30 08:58:21        只看该作者  板凳
jpchen 发表于 2018-4-26 16:54
add patch
+++ b/frameworks/native/services/inputflinger/InputReader.cpp
@@ -3208,6 +3208,7 @@ void ...

Thank you very much.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表