问题描述:
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