Screen Driver For VIM4 Android

Hello all,
I am running the latest stock android OS on the VIM4.

Can someone point me to some documentation or lead me down the path of modifying a driver for a screen? Our client wants to use this screen and I can see the output through the HDMI, but there is no touch screen support through USB.

How hard would it be to add this?
Here is the screen:

@chandrian Problem with touch in Firmware V190816 - #17 by goenjoy
Adding USB touch support is simple. Just follow the steps mentioned in the above link to add the corresponding *. idc file.

I tried finding my device using “dumpsys input” but I am not seeing it:

VIM4:/sys/class/drm # clear
VIM4:/sys/class/drm # dumpsys input
INPUT MANAGER (dumpsys input)

Input Manager State:
  Interactive: true
  System UI Visibility: 0x8708
  Pointer Speed: 0
  Pointer Gestures Enabled: true
  Show Touches: false
  Pointer Capture Enabled: false

Event Hub State:
  BuiltInKeyboardId: -2
  Devices:
    -1: Virtual
      Classes: 0x40000023
      Path: <virtual>
      Enabled: true
      Descriptor: a718a782d34bc767f4689c232d64d527998ea7fd
      Location:
      ControllerNumber: 0
      UniqueId: <virtual>
      Identifier: bus=0x0000, vendor=0x0000, product=0x0000, version=0x0000
      KeyLayoutFile: /vendor/usr/keylayout/Generic.kl
      KeyCharacterMapFile: /system/usr/keychars/Virtual.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    4: input_hdmirx
      Classes: 0x00000001
      Path: /dev/input/event3
      Enabled: true
      Descriptor: 485d69228e24f5e46da1598745890b214130dbc4
      Location:
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0001, product=0x0001, version=0x0001
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0001_Product_0001.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    5: cec_input
      Classes: 0x00000001
      Path: /dev/input/event2
      Enabled: true
      Descriptor: 02b1ce58713e0e531eab61b0742baac6893ff49f
      Location:
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x1b8e, product=0x0cec, version=0x0001
      KeyLayoutFile: /vendor/usr/keylayout/Generic.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    6: gpio_keypad
      Classes: 0x00000001
      Path: /dev/input/event5
      Enabled: true
      Descriptor: d2c52ff0f656fac4cd7b7a118d575e0109a9fe1c
      Location: gpio_keypad/input0
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0001, product=0x0001, version=0x0100
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0001_Product_0001.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    7: ir_keypad
      Classes: 0x00000029
      Path: /dev/input/event6
      Enabled: true
      Descriptor: 3ff0f65e296fcbd89914545764ea53395eb45fc1
      Location: keypad/input0
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0001, product=0x0001, version=0x0100
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0001_Product_0001.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    8: vad_keypad
      Classes: 0x00000001
      Path: /dev/input/event4
      Enabled: true
      Descriptor: 9e0e2e03ace6726d18be76b8ddb815cf002c80fb
      Location: vad_keypad/input3
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0001, product=0x0001, version=0x0100
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0001_Product_0001.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    9: ir_keypad1
      Classes: 0x00000029
      Path: /dev/input/event8
      Enabled: true
      Descriptor: 3d751b7c621cdce3f4eaef46c292ff67a726ac04
      Location: keypad/input0
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0003, product=0x0003, version=0x0300
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0003_Product_0003.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    11: ir_keypad1
      Classes: 0x00000029
      Path: /dev/input/event7
      Enabled: true
      Descriptor: 76d09a7d1f3b8d113bb56ed2568268f86d137837
      Location: keypad/input0
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0002, product=0x0002, version=0x0200
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0002_Product_0002.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    12: input_btrcu
      Classes: 0x00000001
      Path: /dev/input/event0
      Enabled: true
      Descriptor: a6893ab22828f3b8b792fe40bc0d6df2b2725f26
      Location: input_btrcu/input0
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0001, product=0x0001, version=0x0100
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0001_Product_0001.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    13: adc_keypad
      Classes: 0x00000001
      Path: /dev/input/event9
      Enabled: true
      Descriptor: 66456da0b0398dc6e4b9d022ef172656b5463920
      Location: adc_keypad/input0
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0001, product=0x0001, version=0x0100
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0001_Product_0001.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
  Unattached video devices:
    <none>

Input Reader State (Nums of device: 10):
  Device 10: input_hdmirx
    EventHub Devices: [ 4 ]
    Generation: 33
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000101
    KeyboardType: 1
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device 8: gpio_keypad
    EventHub Devices: [ 6 ]
    Generation: 27
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000101
    KeyboardType: 1
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device 3: input_btrcu
    EventHub Devices: [ 12 ]
    Generation: 9
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000101
    KeyboardType: 1
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device 4: ir_keypad1
    EventHub Devices: [ 11 ]
    Generation: 164
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00002303
    KeyboardType: 1
    ControllerNum: 0
    Motion Ranges:
      X: source=0x00002002, min=0.000, max=3839.000, flat=0.000, fuzz=0.000, resolution=0.000
      Y: source=0x00002002, min=0.000, max=2159.000, flat=0.000, fuzz=0.000, resolution=0.000
      PRESSURE: source=0x00002002, min=0.000, max=1.000, flat=0.000, fuzz=0.000, resolution=0.000
      VSCROLL: source=0x00002002, min=-1.000, max=1.000, flat=0.000, fuzz=0.000, resolution=0.000
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
    Cursor Input Mapper:
      Parameters:
        HasAssociatedDisplay: true
        Mode: pointer
        OrientationAware: false
      XScale: 1.000
      YScale: 1.000
      XPrecision: 1.000
      YPrecision: 1.000
      HaveVWheel: true
      HaveHWheel: false
      VWheelScale: 1.000
      HWheelScale: 1.000
      Orientation: 0
      ButtonState: 0x00000000
      Down: false
      DownTime: 0
  Device 7: ir_keypad
    EventHub Devices: [ 7 ]
    Generation: 162
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00002303
    KeyboardType: 1
    ControllerNum: 0
    Motion Ranges:
      X: source=0x00002002, min=0.000, max=3839.000, flat=0.000, fuzz=0.000, resolution=0.000
      Y: source=0x00002002, min=0.000, max=2159.000, flat=0.000, fuzz=0.000, resolution=0.000
      PRESSURE: source=0x00002002, min=0.000, max=1.000, flat=0.000, fuzz=0.000, resolution=0.000
      VSCROLL: source=0x00002002, min=-1.000, max=1.000, flat=0.000, fuzz=0.000, resolution=0.000
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
    Cursor Input Mapper:
      Parameters:
        HasAssociatedDisplay: true
        Mode: pointer
        OrientationAware: false
      XScale: 1.000
      YScale: 1.000
      XPrecision: 1.000
      YPrecision: 1.000
      HaveVWheel: true
      HaveHWheel: false
      VWheelScale: 1.000
      HWheelScale: 1.000
      Orientation: 0
      ButtonState: 0x00000000
      Down: false
      DownTime: 0
  Device 5: ir_keypad1
    EventHub Devices: [ 9 ]
    Generation: 163
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00002303
    KeyboardType: 1
    ControllerNum: 0
    Motion Ranges:
      X: source=0x00002002, min=0.000, max=3839.000, flat=0.000, fuzz=0.000, resolution=0.000
      Y: source=0x00002002, min=0.000, max=2159.000, flat=0.000, fuzz=0.000, resolution=0.000
      PRESSURE: source=0x00002002, min=0.000, max=1.000, flat=0.000, fuzz=0.000, resolution=0.000
      VSCROLL: source=0x00002002, min=-1.000, max=1.000, flat=0.000, fuzz=0.000, resolution=0.000
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
    Cursor Input Mapper:
      Parameters:
        HasAssociatedDisplay: true
        Mode: pointer
        OrientationAware: false
      XScale: 1.000
      YScale: 1.000
      XPrecision: 1.000
      YPrecision: 1.000
      HaveVWheel: true
      HaveHWheel: false
      VWheelScale: 1.000
      HWheelScale: 1.000
      Orientation: 0
      ButtonState: 0x00000000
      Down: false
      DownTime: 0
  Device 6: vad_keypad
    EventHub Devices: [ 8 ]
    Generation: 20
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000101
    KeyboardType: 1
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device -1: Virtual
    EventHub Devices: [ -1 ]
    Generation: 3
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000301
    KeyboardType: 2
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 2
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device 9: cec_input
    EventHub Devices: [ 5 ]
    Generation: 30
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000101
    KeyboardType: 1
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device 2: adc_keypad
    EventHub Devices: [ 13 ]
    Generation: 6
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000101
    KeyboardType: 1
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Configuration:
    ExcludedDeviceNames: []
    VirtualKeyQuietTime: 0.0ms
    PointerVelocityControlParameters: scale=1.000, lowThreshold=500.000, highThreshold=3000.000, acceleration=3.000
    WheelVelocityControlParameters: scale=1.000, lowThreshold=15.000, highThreshold=50.000, acceleration=4.000
    PointerGesture:
      Enabled: true
      QuietInterval: 100.0ms
      DragMinSwitchSpeed: 50.0px/s
      TapInterval: 150.0ms
      TapDragInterval: 300.0ms
      TapSlop: 20.0px
      MultitouchSettleInterval: 100.0ms
      MultitouchMinDistance: 15.0px
      SwipeTransitionAngleCosine: 0.3
      SwipeMaxWidthRatio: 0.2
      MovementSpeedRatio: 0.8
      ZoomSpeedRatio: 0.3
      Viewports:
        Viewport INTERNAL: displayId=0, uniqueId=local:0, port=0, orientation=0, logicalFrame=[0, 0, 3840, 2160], physicalFrame=[0, 0, 3840, 2160], deviceSize=[3840, 2160], isActive=[1]
        Viewport EXTERNAL: displayId=0, uniqueId=local:1, port=1, orientation=0, logicalFrame=[0, 0, 3840, 2160], physicalFrame=[0, 0, 1920, 1080], deviceSize=[1920, 1080], isActive=[1]

Input Classifier State:
  Motion Classifier:
    <nullptr>

Input Dispatcher State:
  DispatchEnabled: true
  DispatchFrozen: false
  InputFilterEnabled: false
  FocusedDisplayId: 0
  FocusedApplications:
    displayId=0, name='ActivityRecord{babc374 u0 com.android.launcher3/.uioverrides.QuickstepLauncher t121}', dispatchingTimeout=5000ms
  FocusedWindows:
    displayId=0, name='Window{c6a3100 u0 com.android.launcher3/com.android.launcher3.uioverrides.QuickstepLauncher}'
  TouchStatesByDisplay:
    0: down=false, split=false, deviceId=19, source=0x00002002
      Windows: <none>
  Display: 18
    Windows:
      0: name='RotationLayer#0', displayId=18, portalToDisplayId=-1, paused=false, hasFocus=false, hasWallpaper=false, visible=false, canReceiveKeys=false, flags=0x00000020, type=0x00000000, frame=[0,0][1920,1080], globalScale=1.000000, windowScale=(1.000000,1.000000), touchableRegion=<empty>, inputFeatures=0x00000002, ownerPid=664, ownerUid=1000, dispatchingTimeout=0ms
  Display: 0
    Windows:
      0: name='Window{27c5efb u0 NavigationBar0}', displayId=0, portalToDisplayId=-1, paused=false, hasFocus=false, hasWallpaper=false, visible=true, canReceiveKeys=false, flags=0x21840068, type=0x000007e3, frame=[0,2016][3840,2160], globalScale=1.000000, windowScale=(1.000000,1.000000), touchableRegion=[0,2016][3840,2160], inputFeatures=0x00000000, ownerPid=818, ownerUid=10053, dispatchingTimeout=5000ms
      1: name='Window{ae5745c u0 StatusBar}', displayId=0, portalToDisplayId=-1, paused=false, hasFocus=false, hasWallpaper=false, visible=true, canReceiveKeys=false, flags=0x81800008, type=0x000007d0, frame=[0,0][3840,72], globalScale=1.000000, windowScale=(1.000000,1.000000), touchableRegion=[0,0][3840,72], inputFeatures=0x00000000, ownerPid=818, ownerUid=10053, dispatchingTimeout=5000ms
      2: name='Window{c6a3100 u0 com.android.launcher3/com.android.launcher3.uioverrides.QuickstepLauncher}', displayId=0, portalToDisplayId=-1, paused=false, hasFocus=true, hasWallpaper=true, visible=true, canReceiveKeys=true, flags=0x81910120, type=0x00000001, frame=[0,0][3840,2160], globalScale=1.000000, windowScale=(1.000000,1.000000), touchableRegion=[0,0][3840,2160], inputFeatures=0x00000000, ownerPid=1346, ownerUid=10052, dispatchingTimeout=5000ms
      3: name='Window{801ae18 u0 com.android.systemui.ImageWallpaper}', displayId=0, portalToDisplayId=-1, paused=false, hasFocus=false, hasWallpaper=false, visible=true, canReceiveKeys=false, flags=0x00014318, type=0x000007dd, frame=[-192,-798][4032,2957], globalScale=1.000000, windowScale=(0.681818,0.681885), touchableRegion=[-192,-798][5440,4207], inputFeatures=0x00000000, ownerPid=818, ownerUid=10053, dispatchingTimeout=5000ms
  Global monitors in display 18:
    0: 'PointerEventDispatcher18 (server)',
  Global monitors in display 0:
    0: 'PointerEventDispatcher0 (server)',
  RecentQueue: length=10
    MotionEvent(deviceId=19, source=0x00002002, displayId=0, action=UNKNOWN, actionButton=0x00000000, flags=0x00000000, metaState=0x00000000, buttonState=0x00000000, classification=NONE, edgeFlags=0x00000000, xPrecision=1.0, yPrecision=1.0, xCursorPosition=1730.8, yCursorPosition=1130.2, pointers=[0: (1730.8, 1130.2)]), policyFlags=0x62000001, age=6795509ms
    MotionEvent(deviceId=19, source=0x00002002, displayId=0, action=UNKNOWN, actionButton=0x00000000, flags=0x00000000, metaState=0x00000000, buttonState=0x00000000, classification=NONE, edgeFlags=0x00000000, xPrecision=1.0, yPrecision=1.0, xCursorPosition=1730.8, yCursorPosition=1131.2, pointers=[0: (1730.8, 1131.2)]), policyFlags=0x62000001, age=6795495ms
    DeviceResetEvent(deviceId=16), policyFlags=0x00000000, age=4570704ms
    ConfigurationChangedEvent(), policyFlags=0x00000000, age=4570704ms
    DeviceResetEvent(deviceId=19), policyFlags=0x00000000, age=4570662ms
    ConfigurationChangedEvent(), policyFlags=0x00000000, age=4570662ms
    DeviceResetEvent(deviceId=18), policyFlags=0x00000000, age=4570630ms
    ConfigurationChangedEvent(), policyFlags=0x00000000, age=4570630ms
    DeviceResetEvent(deviceId=17), policyFlags=0x00000000, age=4570598ms
    ConfigurationChangedEvent(), policyFlags=0x00000000, age=4570598ms
  PendingEvent: <none>
  InboundQueue: <empty>
  ReplacedKeys: <empty>
  Connections:
    136: channelName='PointerEventDispatcher18 (server)', windowName='PointerEventDispatcher18 (server)', status=NORMAL, monitor=true, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    238: channelName='d361362 com.android.settings/com.android.settings.SubSettings (server)', windowName='d361362 com.android.settings/com.android.settings.SubSettings (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    169: channelName='ffc2df6 com.android.settings/com.android.settings.SubSettings (server)', windowName='ffc2df6 com.android.settings/com.android.settings.SubSettings (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    352: channelName='c6a3100 com.android.launcher3/com.android.launcher3.uioverrides.QuickstepLauncher (server)', windowName='c6a3100 com.android.launcher3/com.android.launcher3.uioverrides.QuickstepLauncher (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    328: channelName='recents_animation_input_consumer (server)', windowName='recents_animation_input_consumer (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    341: channelName='b09b214 com.android.settings/com.android.settings.Settings (server)', windowName='b09b214 com.android.settings/com.android.settings.Settings (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    295: channelName='ae5745c StatusBar (server)', windowName='ae5745c StatusBar (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    294: channelName='991b273 NotificationShade (server)', windowName='991b273 NotificationShade (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    322: channelName='cd68c35 InputMethod (server)', windowName='cd68c35 InputMethod (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    289: channelName='27c5efb NavigationBar0 (server)', windowName='27c5efb NavigationBar0 (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    173: channelName='7ec2308 pip-dismiss-overlay (server)', windowName='7ec2308 pip-dismiss-overlay (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    288: channelName='69ac27e AssistPreviewPanel (server)', windowName='69ac27e AssistPreviewPanel (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    257: channelName='801ae18 com.android.systemui.ImageWallpaper (server)', windowName='801ae18 com.android.systemui.ImageWallpaper (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    137: channelName='PointerEventDispatcher0 (server)', windowName='PointerEventDispatcher0 (server)', status=NORMAL, monitor=true, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
  AppSwitch: not pending
  Configuration:
    KeyRepeatDelay: 50ms
    KeyRepeatTimeout: 400ms

Did you insert the corresponding USB device before executing the command?

I did and I didnt see it. I didnt see it on my windows pc either. I did see something under screens but not in USB

Any suggestions here?

@chandrian Maybe your USB touch device is broken, so first rule out whether your USB touch can be used?

Hi again,

I was testing and used the lsusb command and was able to see my device (Bus 001 Device 005: ID 16b4:0704) but when I use dumpsys input, I am not able to see it there. Any thoughts? Here is a dump:


C:\Users\widaa\Documents\ERI\FAST>adb shell
VIM4:/ $ lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 005: ID 16b4:0704
Bus 001 Device 002: ID 1a40:0101
Bus 002 Device 001: ID 1d6b:0003
Bus 001 Device 004: ID 046d:c31c
VIM4:/ $ dumpsys input
INPUT MANAGER (dumpsys input)

Input Manager State:
  Interactive: true
  System UI Visibility: 0x8708
  Pointer Speed: 0
  Pointer Gestures Enabled: true
  Show Touches: false
  Pointer Capture Enabled: false

Event Hub State:
  BuiltInKeyboardId: -2
  Devices:
    -1: Virtual
      Classes: 0x40000023
      Path: <virtual>
      Enabled: true
      Descriptor: a718a782d34bc767f4689c232d64d527998ea7fd
      Location:
      ControllerNumber: 0
      UniqueId: <virtual>
      Identifier: bus=0x0000, vendor=0x0000, product=0x0000, version=0x0000
      KeyLayoutFile: /vendor/usr/keylayout/Generic.kl
      KeyCharacterMapFile: /system/usr/keychars/Virtual.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    1: gpio_keypad
      Classes: 0x00000001
      Path: /dev/input/event5
      Enabled: true
      Descriptor: 485d69228e24f5e46da1598745890b214130dbc4
      Location: gpio_keypad/input0
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0001, product=0x0001, version=0x0100
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0001_Product_0001.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    2: cec_input
      Classes: 0x00000001
      Path: /dev/input/event2
      Enabled: true
      Descriptor: 02b1ce58713e0e531eab61b0742baac6893ff49f
      Location:
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x1b8e, product=0x0cec, version=0x0001
      KeyLayoutFile: /vendor/usr/keylayout/Generic.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    3: input_hdmirx
      Classes: 0x00000001
      Path: /dev/input/event3
      Enabled: true
      Descriptor: d2c52ff0f656fac4cd7b7a118d575e0109a9fe1c
      Location:
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0001, product=0x0001, version=0x0001
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0001_Product_0001.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    4: Logitech USB Keyboard
      Classes: 0x80000083
      Path: /dev/input/event10
      Enabled: true
      Descriptor: a183206cfdbb578b89aee0b514cb98f50fc64d52
      Location: usb-xhci-hcd.0.auto-1.2/input0
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0003, vendor=0x046d, product=0xc31c, version=0x0110
      KeyLayoutFile: /vendor/usr/keylayout/Generic.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    5: ir_keypad1
      Classes: 0x00000029
      Path: /dev/input/event8
      Enabled: true
      Descriptor: 3d751b7c621cdce3f4eaef46c292ff67a726ac04
      Location: keypad/input0
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0003, product=0x0003, version=0x0300
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0003_Product_0003.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    6: ir_keypad1
      Classes: 0x00000029
      Path: /dev/input/event7
      Enabled: true
      Descriptor: 76d09a7d1f3b8d113bb56ed2568268f86d137837
      Location: keypad/input0
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0002, product=0x0002, version=0x0200
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0002_Product_0002.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    7: Logitech USB Keyboard Consumer Control
      Classes: 0x80000001
      Path: /dev/input/event11
      Enabled: true
      Descriptor: dc559d638de9f7a5d3cfdf95fadb31334d73c32f
      Location: usb-xhci-hcd.0.auto-1.2/input1
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0003, vendor=0x046d, product=0xc31c, version=0x0110
      KeyLayoutFile: /vendor/usr/keylayout/Generic.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    8: Logitech USB Keyboard System Control
      Classes: 0x80000001
      Path: /dev/input/event12
      Enabled: true
      Descriptor: 67eaa0e4e3b3c858d8ddf762b20c84d46c097cb8
      Location: usb-xhci-hcd.0.auto-1.2/input1
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0003, vendor=0x046d, product=0xc31c, version=0x0110
      KeyLayoutFile: /vendor/usr/keylayout/Generic.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    9: ir_keypad
      Classes: 0x00000029
      Path: /dev/input/event6
      Enabled: true
      Descriptor: 3ff0f65e296fcbd89914545764ea53395eb45fc1
      Location: keypad/input0
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0001, product=0x0001, version=0x0100
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0001_Product_0001.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    10: vad_keypad
      Classes: 0x00000001
      Path: /dev/input/event4
      Enabled: true
      Descriptor: 9e0e2e03ace6726d18be76b8ddb815cf002c80fb
      Location: vad_keypad/input3
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0001, product=0x0001, version=0x0100
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0001_Product_0001.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    12: input_btrcu
      Classes: 0x00000001
      Path: /dev/input/event0
      Enabled: true
      Descriptor: a6893ab22828f3b8b792fe40bc0d6df2b2725f26
      Location: input_btrcu/input0
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0001, product=0x0001, version=0x0100
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0001_Product_0001.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
    13: adc_keypad
      Classes: 0x00000001
      Path: /dev/input/event9
      Enabled: true
      Descriptor: 66456da0b0398dc6e4b9d022ef172656b5463920
      Location: adc_keypad/input0
      ControllerNumber: 0
      UniqueId:
      Identifier: bus=0x0010, vendor=0x0001, product=0x0001, version=0x0100
      KeyLayoutFile: /vendor/usr/keylayout/Vendor_0001_Product_0001.kl
      KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
      ConfigurationFile:
      HaveKeyboardLayoutOverlay: false
      VideoDevice: <none>
  Unattached video devices:
    <none>

Input Reader State (Nums of device: 13):
  Device 13: gpio_keypad
    EventHub Devices: [ 1 ]
    Generation: 42
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000101
    KeyboardType: 1
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device 12: cec_input
    EventHub Devices: [ 2 ]
    Generation: 39
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000101
    KeyboardType: 1
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device 7: Logitech USB Keyboard Consumer Control
    EventHub Devices: [ 7 ]
    Generation: 22
    IsExternal: true
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000101
    KeyboardType: 1
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device -1: Virtual
    EventHub Devices: [ -1 ]
    Generation: 3
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000301
    KeyboardType: 2
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 2
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device 6: Logitech USB Keyboard System Control
    EventHub Devices: [ 8 ]
    Generation: 19
    IsExternal: true
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000101
    KeyboardType: 1
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device 5: ir_keypad
    EventHub Devices: [ 9 ]
    Generation: 64
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00002303
    KeyboardType: 1
    ControllerNum: 0
    Motion Ranges:
      X: source=0x00002002, min=0.000, max=3839.000, flat=0.000, fuzz=0.000, resolution=0.000
      Y: source=0x00002002, min=0.000, max=2159.000, flat=0.000, fuzz=0.000, resolution=0.000
      PRESSURE: source=0x00002002, min=0.000, max=1.000, flat=0.000, fuzz=0.000, resolution=0.000
      VSCROLL: source=0x00002002, min=-1.000, max=1.000, flat=0.000, fuzz=0.000, resolution=0.000
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
    Cursor Input Mapper:
      Parameters:
        HasAssociatedDisplay: true
        Mode: pointer
        OrientationAware: false
      XScale: 1.000
      YScale: 1.000
      XPrecision: 1.000
      YPrecision: 1.000
      HaveVWheel: true
      HaveHWheel: false
      VWheelScale: 1.000
      HWheelScale: 1.000
      Orientation: 0
      ButtonState: 0x00000000
      Down: false
      DownTime: 0
  Device 3: input_btrcu
    EventHub Devices: [ 12 ]
    Generation: 9
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000101
    KeyboardType: 1
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device 11: input_hdmirx
    EventHub Devices: [ 3 ]
    Generation: 36
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000101
    KeyboardType: 1
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device 4: vad_keypad
    EventHub Devices: [ 10 ]
    Generation: 12
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000101
    KeyboardType: 1
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device 10: Logitech USB Keyboard
    EventHub Devices: [ 4 ]
    Generation: 33
    IsExternal: true
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x80000101
    KeyboardType: 2
    ControllerNum: 0
    Switch Input Mapper:
      SwitchValues: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 2
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Device 9: ir_keypad1
    EventHub Devices: [ 5 ]
    Generation: 62
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00002303
    KeyboardType: 1
    ControllerNum: 0
    Motion Ranges:
      X: source=0x00002002, min=0.000, max=3839.000, flat=0.000, fuzz=0.000, resolution=0.000
      Y: source=0x00002002, min=0.000, max=2159.000, flat=0.000, fuzz=0.000, resolution=0.000
      PRESSURE: source=0x00002002, min=0.000, max=1.000, flat=0.000, fuzz=0.000, resolution=0.000
      VSCROLL: source=0x00002002, min=-1.000, max=1.000, flat=0.000, fuzz=0.000, resolution=0.000
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
    Cursor Input Mapper:
      Parameters:
        HasAssociatedDisplay: true
        Mode: pointer
        OrientationAware: false
      XScale: 1.000
      YScale: 1.000
      XPrecision: 1.000
      YPrecision: 1.000
      HaveVWheel: true
      HaveHWheel: false
      VWheelScale: 1.000
      HWheelScale: 1.000
      Orientation: 0
      ButtonState: 0x00000000
      Down: false
      DownTime: 0
  Device 8: ir_keypad1
    EventHub Devices: [ 6 ]
    Generation: 63
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00002303
    KeyboardType: 1
    ControllerNum: 0
    Motion Ranges:
      X: source=0x00002002, min=0.000, max=3839.000, flat=0.000, fuzz=0.000, resolution=0.000
      Y: source=0x00002002, min=0.000, max=2159.000, flat=0.000, fuzz=0.000, resolution=0.000
      PRESSURE: source=0x00002002, min=0.000, max=1.000, flat=0.000, fuzz=0.000, resolution=0.000
      VSCROLL: source=0x00002002, min=-1.000, max=1.000, flat=0.000, fuzz=0.000, resolution=0.000
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
    Cursor Input Mapper:
      Parameters:
        HasAssociatedDisplay: true
        Mode: pointer
        OrientationAware: false
      XScale: 1.000
      YScale: 1.000
      XPrecision: 1.000
      YPrecision: 1.000
      HaveVWheel: true
      HaveHWheel: false
      VWheelScale: 1.000
      HWheelScale: 1.000
      Orientation: 0
      ButtonState: 0x00000000
      Down: false
      DownTime: 0
  Device 2: adc_keypad
    EventHub Devices: [ 13 ]
    Generation: 6
    IsExternal: false
    AssociatedDisplayPort: <none>
    HasMic:     false
    Sources: 0x00000101
    KeyboardType: 1
    ControllerNum: 0
    Keyboard Input Mapper:
      Parameters:
        OrientationAware: false
        HandlesKeyRepeat: false
      KeyboardType: 1
      Orientation: 0
      KeyDowns: 0 keys currently down
      MetaState: 0x0
      DownTime: 0
  Configuration:
    ExcludedDeviceNames: []
    VirtualKeyQuietTime: 0.0ms
    PointerVelocityControlParameters: scale=1.000, lowThreshold=500.000, highThreshold=3000.000, acceleration=3.000
    WheelVelocityControlParameters: scale=1.000, lowThreshold=15.000, highThreshold=50.000, acceleration=4.000
    PointerGesture:
      Enabled: true
      QuietInterval: 100.0ms
      DragMinSwitchSpeed: 50.0px/s
      TapInterval: 150.0ms
      TapDragInterval: 300.0ms
      TapSlop: 20.0px
      MultitouchSettleInterval: 100.0ms
      MultitouchMinDistance: 15.0px
      SwipeTransitionAngleCosine: 0.3
      SwipeMaxWidthRatio: 0.2
      MovementSpeedRatio: 0.8
      ZoomSpeedRatio: 0.3
      Viewports:
        Viewport INTERNAL: displayId=0, uniqueId=local:0, port=0, orientation=0, logicalFrame=[0, 0, 3840, 2160], physicalFrame=[0, 0, 3840, 2160], deviceSize=[3840, 2160], isActive=[1]
        Viewport EXTERNAL: displayId=0, uniqueId=local:1, port=1, orientation=0, logicalFrame=[0, 0, 3840, 2160], physicalFrame=[0, 0, 1920, 1080], deviceSize=[1920, 1080], isActive=[1]

Input Classifier State:
  Motion Classifier:
    <nullptr>

Input Dispatcher State:
  DispatchEnabled: true
  DispatchFrozen: false
  InputFilterEnabled: false
  FocusedDisplayId: 0
  FocusedApplications:
    displayId=0, name='ActivityRecord{461fbb1 u0 com.android.launcher3/.uioverrides.QuickstepLauncher t133}', dispatchingTimeout=5000ms
  FocusedWindows:
    displayId=0, name='Window{5f34ce4 u0 com.android.launcher3/com.android.launcher3.uioverrides.QuickstepLauncher}'
  TouchStates: <no displays touched>
  Display: 0
    Windows:
      0: name='Window{464e535 u0 NavigationBar0}', displayId=0, portalToDisplayId=-1, paused=false, hasFocus=false, hasWallpaper=false, visible=true, canReceiveKeys=false, flags=0x21840068, type=0x000007e3, frame=[0,2016][3840,2160], globalScale=1.000000, windowScale=(1.000000,1.000000), touchableRegion=[0,2016][3840,2160], inputFeatures=0x00000000, ownerPid=823, ownerUid=10053, dispatchingTimeout=5000ms
      1: name='Window{427286e u0 StatusBar}', displayId=0, portalToDisplayId=-1, paused=false, hasFocus=false, hasWallpaper=false, visible=true, canReceiveKeys=false, flags=0x81800008, type=0x000007d0, frame=[0,0][3840,72], globalScale=1.000000, windowScale=(1.000000,1.000000), touchableRegion=[0,0][3840,72], inputFeatures=0x00000000, ownerPid=823, ownerUid=10053, dispatchingTimeout=5000ms
      2: name='Window{5f34ce4 u0 com.android.launcher3/com.android.launcher3.uioverrides.QuickstepLauncher}', displayId=0, portalToDisplayId=-1, paused=false, hasFocus=true, hasWallpaper=true, visible=true, canReceiveKeys=true, flags=0x81910120, type=0x00000001, frame=[0,0][3840,2160], globalScale=1.000000, windowScale=(1.000000,1.000000), touchableRegion=[0,0][3840,2160], inputFeatures=0x00000000, ownerPid=1299, ownerUid=10052, dispatchingTimeout=5000ms
      3: name='Window{3d7c665 u0 com.android.systemui.ImageWallpaper}', displayId=0, portalToDisplayId=-1, paused=false, hasFocus=false, hasWallpaper=false, visible=true, canReceiveKeys=false, flags=0x00014318, type=0x000007dd, frame=[-192,-798][4032,2957], globalScale=1.000000, windowScale=(0.681818,0.681885), touchableRegion=[-192,-798][5440,4207], inputFeatures=0x00000000, ownerPid=823, ownerUid=10053, dispatchingTimeout=5000ms
  Global monitors in display 4:
    0: 'PointerEventDispatcher4 (server)',
  Global monitors in display 0:
    0: 'PointerEventDispatcher0 (server)',
  RecentQueue: length=10
    DeviceResetEvent(deviceId=8), policyFlags=0x00000000, age=462809ms
    DeviceResetEvent(deviceId=9), policyFlags=0x00000000, age=462809ms
    DeviceResetEvent(deviceId=10), policyFlags=0x00000000, age=462809ms
    DeviceResetEvent(deviceId=11), policyFlags=0x00000000, age=462809ms
    DeviceResetEvent(deviceId=12), policyFlags=0x00000000, age=462809ms
    DeviceResetEvent(deviceId=13), policyFlags=0x00000000, age=462809ms
    ConfigurationChangedEvent(), policyFlags=0x00000000, age=462809ms
    FocusEvent(hasFocus=true), age=453058ms
    FocusEvent(hasFocus=false), age=451724ms
    FocusEvent(hasFocus=true), age=451141ms
  PendingEvent: <none>
  InboundQueue: <empty>
  ReplacedKeys: <empty>
  Connections:
    295: channelName='5f34ce4 com.android.launcher3/com.android.launcher3.uioverrides.QuickstepLauncher (server)', windowName='5f34ce4 com.android.launcher3/com.android.launcher3.uioverrides.QuickstepLauncher (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    268: channelName='3d7c665 com.android.systemui.ImageWallpaper (server)', windowName='3d7c665 com.android.systemui.ImageWallpaper (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    270: channelName='b8985ed NotificationShade (server)', windowName='b8985ed NotificationShade (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    294: channelName='f299c27 InputMethod (server)', windowName='f299c27 InputMethod (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    261: channelName='7b485d4 AssistPreviewPanel (server)', windowName='7b485d4 AssistPreviewPanel (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    146: channelName='PointerEventDispatcher4 (server)', windowName='PointerEventDispatcher4 (server)', status=NORMAL, monitor=true, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    267: channelName='464e535 NavigationBar0 (server)', windowName='464e535 NavigationBar0 (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    304: channelName='recents_animation_input_consumer (server)', windowName='recents_animation_input_consumer (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    271: channelName='427286e StatusBar (server)', windowName='427286e StatusBar (server)', status=NORMAL, monitor=false, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
    137: channelName='PointerEventDispatcher0 (server)', windowName='PointerEventDispatcher0 (server)', status=NORMAL, monitor=true, responsive=true
      OutboundQueue: <empty>
      WaitQueue: <empty>
  AppSwitch: not pending
  Configuration:
    KeyRepeatDelay: 50ms
    KeyRepeatTimeout: 400ms


VIM4:/ $

@chandrian You can create a new Vendor_16b4_Product_0704.idc file and push it to the system to see the situation.
1.
vim Vendor_16b4_Product_0704.idc

device.internal = 1

touch.deviceType = touchScreen
touch.orientationAware = 1

keyboard.layout = Vendor_16b4_Product_0704
keyboard.characterMap = Vendor_16b4_Product_0704
keyboard.orientationAware = 1
keyboard.builtIn = 1

cursor.mode = navigation
cursor.orientationAware = 1
C:\Users\hlm>adb root
C:\Users\hlm>adb remount
remount succeeded
C:\Users\hlm>adb push Vendor_16b4_Product_0704.idc system/usr/idc/
C:\Users\hlm>adb shell
# sync
# reboot
$dumpsys input