[RK3399-Android9.0] LVDS+HDMI导致USB触摸异常或双屏同显导致触摸异常的解决办法

问题描述:

LVDS+HDMI导致的USB触摸异常或双屏同显导致触摸异常的解决办法:

1.dumpsys input 查看此usb tp的信息,如下:

    5: ILITEK ILITEK-TP
      Classes: 0x80000014
      Path: /dev/input/event4
      Enabled: true
      Descriptor: f1b4838838e240568fcbdd50c0f63be308c623ef
      Location: usb-fe380000.usb-1.2/input0
      ControllerNumber: 0
      UniqueId: 
      Identifier: bus=0x0003, vendor=0x222a, product=0x0001, version=0x0110
      KeyLayoutFile: 
      KeyCharacterMapFile: 
      ConfigurationFile: 
      HaveKeyboardLayoutOverlay: false

2.其中 vendor=0x222a, product=0x0001,然后在frameworks\base\data\keyboards\下创建一个IDC文件为:Vendor_222a_Product_0001.idc,内容为:

# Filename:Vendor_222a_Product_0001.idc
# My TouchScreen Device configuration file.

touch.deviceType = touchScreen
device.internal= 1
touch.orientationAware = 1
 
keyboard.layout = Vendor_222a_Product_0001
keyboard.orientationAware = 1
 
cursor.mode = navigation
cursor.orientationAware = 1

这里需要注意:
(主TP:device.internal= 1,touch.orientationAware = 1)
(副TP:device.internal= 0,touch.orientationAware = 1)

3.重新编译烧录固件后输入dumpsys input 查看usb tp的信息会变成如下:
ConfigurationFile会被指定为: /system/usr/idc/Vendor_222a_Product_0001.idc

    5: ILITEK ILITEK-TP
      Classes: 0x00000014
      Path: /dev/input/event4
      Enabled: true
      Descriptor: f1b4838838e240568fcbdd50c0f63be308c623ef
      Location: usb-fe380000.usb-1.2/input0
      ControllerNumber: 0
      UniqueId: 
      Identifier: bus=0x0003, vendor=0x222a, product=0x0001, version=0x0110
      KeyLayoutFile: 
      KeyCharacterMapFile: 
      ConfigurationFile: /system/usr/idc/Vendor_222a_Product_0001.idc
      HaveKeyboardLayoutOverlay: false
  • 1
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值