SEHWAN 发表于 2018-4-26 15:00:55

Dual screen touch issue.

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.

jpchen 发表于 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;

SEHWAN 发表于 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.
页: [1]
查看完整版本: Dual screen touch issue.