Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add another FIFO to support multi display #178

Open
wants to merge 1 commit into
base: celadon/p/mr0/master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From b7d274b4164c4fe7e1467625b825611e358ebe68 Mon Sep 17 00:00:00 2001
From: "Yuanzhe, Liu" <[email protected]>
Date: Wed, 22 Apr 2020 09:03:48 +0800
Subject: [PATCH] Add another FIFO to support multi display

Temporary wrokaround for KB/Mouse not work in second display.

Tracked-On: OAM-90462
Signed-Off-By: Liu, Yuanzhe <[email protected]>
---
services/inputflinger/EventHub.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/services/inputflinger/EventHub.cpp b/services/inputflinger/EventHub.cpp
index 1efca3fbb..935b43519 100644
--- a/services/inputflinger/EventHub.cpp
+++ b/services/inputflinger/EventHub.cpp
@@ -1066,7 +1066,11 @@ void EventHub::scanDevicesLocked() {
if (mDevices.indexOfKey(VIRTUAL_KEYBOARD_ID) < 0) {
createVirtualKeyboardLocked();
}
- const char *kRemoteInput = "/ipc/input-pipe";
+ const char *kRemoteInput = "/ipc/input-pipe-0";
+ if (openRemoteDeviceLocked(kRemoteInput) < 0) {
+ ALOGE("Failed to open remote device %s\n", kRemoteInput);
+ }
+ const char *kRemoteInput = "/ipc/input-pipe-1";
if (openRemoteDeviceLocked(kRemoteInput) < 0) {
ALOGE("Failed to open remote device %s\n", kRemoteInput);
}
--
2.21.0