We are attempting to set up two displays and enable touch on the primary display for the i.MX 8 QuadMax MEK CPU Board using an LVDS to HDMI Adapter Card. We are using a USB Type-C connector (J17) for the touch input.
Here are the observations we have made:
The input is recognized but is not getting mapped when we connect the touch input to the primary display. However, when we connect it to the secondary display, the touch input works perfectly.
As a workaround, we interchanged the display ports, i.e., primary to secondary and vice versa. The secondary screen then takes up the resolution of the primary screen, which is not ideal for our project.
Following are the responses and logs received.
- $ adb shell dumpsys SurfaceFlinger --display-id
- Display 4632668096568543232 (HWC display 0): port=0 pnpId=RTK displayName="WaveShare"[15.6]
- Display 4624778001127622657 (HWC display 1): port=1 pnpId=KTC displayName="WaveShare"[12.3]
- [Touch input to primary display]
- $ adb shell getevent -i | grep location
- location: "imx-sc-pwrkey/input0"
- adb shell getevent -i
add device 1: /dev/input/event0
bus: 0019
vendor 0000
product 0000
version 0000
name: "sc-powerkey"
location: "imx-sc-pwrkey/input0"
id: ""
version: 1.0.1
events:
KEY (0001): 0074
input props:
<none>
[Touch input to secondary display]
- $adb shell getevent -i | grep location
- location: "usb-xhci-hcd.1.auto-1/input0"
- location: "imx-sc-pwrkey/input0"
add device 1: /dev/input/event1
bus: 0003
vendor 0712
product 000a
version 0111
name: "HID 0712:000a"
location: "usb-xhci-hcd.1.auto-1/input0"
id: ""
version: 1.0.1
events:
KEY (0001): 014a
ABS (0003): 0000 : value 0, min 0, max 1920, fuzz 0, flat 0, resolution 4
0001 : value 0, min 0, max 720, fuzz 0, flat 0, resolution 2
002f : value 0, min 0, max 9, fuzz 0, flat 0, resolution 0
0035 : value 0, min 0, max 1920, fuzz 0, flat 0, resolution 4
0036 : value 0, min 0, max 720, fuzz 0, flat 0, resolution 2
0039 : value 0, min 0, max 65535, fuzz 0, flat 0, resolution 0
MSC (0004): 0005
input props:
INPUT_PROP_DIRECT
add device 2: /dev/input/event0
bus: 0019
vendor 0000
product 0000
version 0000
name: "sc-powerkey"
location: "imx-sc-pwrkey/input0"
id: ""
version: 1.0.1
events:
KEY (0001): 0074
input props:
<none>