[IMX8QM-MEK] Input Routing to multiple display devices

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[IMX8QM-MEK] Input Routing to multiple display devices

1,635 Views
Jose1985
Contributor IV

Dear Team,

[Problem] Unable to route input mapping to multiple displays. I followed the instructions based on user guide and as well as cross verified with android developer page https://source.android.com/devices/tech/display/multi_display/input-routing

$ cat input-port-associations.xml

<ports>
<port display="0" input="usb-xhci-cdns3-1.1/input0" />
<port display="1" input="usb-xhci-cdns3-1.2/input0" />
<port display="2" input="usb-xhci-cdns3-1.3/input0" />
</ports>
$ adb shell getevent -i | grep location
location: "usb-xhci-cdns3-1.2/input0"
location: "usb-xhci-cdns3-1.1/input0"

$ adb shell dumpsys SurfaceFlinger --display-id
Display 4693256745915648 (HWC display 0): port=0 pnpId=DEL displayName="DELL P2419H"
Display 16625703383590657 (HWC display 1): port=1 pnpId=NXP displayName="NXP Android"

Input mapping

adb shell dumpsys input | grep port
port: usb-xhci-cdns3-1.3/input0 display: 2
port: usb-xhci-cdns3-1.2/input0 display: 1
port: usb-xhci-cdns3-1.1/input0 display: 0 

Logs

[ 358.839931] hub 2-1:1.0: USB hub found
[ 358.843794] hub 2-1:1.0: 4 ports detected
[ 359.134549] usb 2-1.1: new full-speed USB device number 3 using cdns-usb3
[ 359.241434] usb 2-1.1: New USB device found, idVendor=046d, idProduct=c534, bcdDevice=29.01
[ 359.249842] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 359.257208] usb 2-1.1: Product: USB Receiver
[ 359.261503] usb 2-1.1: Manufacturer: Logitech
[ 359.275541] input: Logitech USB Receiver as /devices/platform/bus@5b000000/5b110000.usb3/xhci-cdns3/usb2/2-1/2-1.1/2-1.1:1.0/0003:046D:C534.0001/input/input2
[ 359.348586] hid-generic 0003:046D:C534.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-xhci-cdns3-1.1/input0
[ 359.368161] input: Logitech USB Receiver Mouse as /devices/platform/bus@5b000000/5b110000.usb3/xhci-cdns3/usb2/2-1/2-1.1/2-1.1:1.1/0003:046D:C534.0002/input/input3
[ 359.383715] input: Logitech USB Receiver Consumer Control as /devices/platform/bus@5b000000/5b110000.usb3/xhci-cdns3/usb2/2-1/2-1.1/2-1.1:1.1/0003:046D:C534.0002/input/input4
[ 359.417117] input: Logitech USB Receiver System Control as /devices/platform/bus@5b000000/5b110000.usb3/xhci-cdns3/usb2/2-1/2-1.1/2-1.1:1.1/0003:046D:C534.0002/input/input5
[ 359.437664] hid-generic 0003:046D:C534.0002: input,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-xhci-cdns3-1.1/input1
[ 359.534557] usb 2-1.2: new full-speed USB device number 4 using cdns-usb3
[ 359.675583] usb 2-1.2: New USB device found, idVendor=04ca, idProduct=00ac, bcdDevice= 0.01
[ 359.684500] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 359.696478] usb 2-1.2: Product: Dell Wireless Device
[ 359.701957] usb 2-1.2: Manufacturer: Liteon
[ 359.720234] input: Liteon Dell Wireless Device as /devices/platform/bus@5b000000/5b110000.usb3/xhci-cdns3/usb2/2-1/2-1.2/2-1.2:1.0/0003:04CA:00AC.0003/input/input8
[ 359.795965] hid-generic 0003:04CA:00AC.0003: input,hidraw2: USB HID v1.11 Keyboard [Liteon Dell Wireless Device] on usb-xhci-cdns3-1.2/input0
[ 359.815274] input: Liteon Dell Wireless Device Mouse as /devices/platform/bus@5b000000/5b110000.usb3/xhci-cdns3/usb2/2-1/2-1.2/2-1.2:1.1/0003:04CA:00AC.0004/input/input9
[ 359.832682] input: Liteon Dell Wireless Device Consumer Control as /devices/platform/bus@5b000000/5b110000.usb3/xhci-cdns3/usb2/2-1/2-1.2/2-1.2:1.1/0003:04CA:00AC.0004/input/input10
[ 359.849495] input: Liteon Dell Wireless Device System Control as /devices/platform/bus@5b000000/5b110000.usb3/xhci-cdns3/usb2/2-1/2-1.2/2-1.2:1.1/0003:04CA:00AC.0004/input/input11
[ 359.870802] hid-generic 0003:04CA:00AC.0004: input,hidraw3: USB HID v1.11 Mouse [Liteon Dell Wireless Device] on usb-xhci-cdns3-1.2/input1 

 

However, when I try to use the touch device, both HID seems to be attached to display:#0

 

0 Kudos
Reply
2 Replies

1,297 Views
isupriya
Contributor I

mek_8q:/ # getevent -i | grep location
location: "usb-xhci-hcd.1.auto-1.2/input0"
location: "usb-xhci-hcd.1.auto-1.1/input0"
location: "imx-sc-pwrkey/input0"

# dumpsys SurfaceFlinger --display-id
Display 4620250621939358977 (HWC display 1): port=1 pnpId=GSM displayName="LG ULTRAWIDE"
Display 4620250621939358976 (HWC display 0): port=0 pnpId=GSM displayName="LG ULTRAWIDE

 

cat /vendor/etc/input-port-associations.xml
<ports>
<port display="0" input="usb-xhci-hcd.1.auto-1.2/input0" />
<port display="1" input="usb-xhci-hcd.1.auto-1.1/input0" />
</ports>

0 Kudos
Reply

1,298 Views
isupriya
Contributor I

Any inputs on this?
i am facing the same issue and unable to resolve.

0 Kudos
Reply