全志a33加触摸屏

来源:互联网 发布:烟台软件开发招聘 编辑:程序博客网 时间:2024/05/17 06:52

以下为网上找的:


在开发板system/usr/idc文件夹下要有你的 “设备名.idc”文件



如何查看设备名?插上你的触摸屏


#cat  /proc/bus/input/devices


看下面那个是你的触摸屏然后将NAME后面“”里面的名字就是你的设备名了,不要任何那个名字很长,有逗号,有空格就怀疑那个名称是不正确的,如何修改名称呢


When constructing a file path that contains the device name, all characters in the device name other than '0'-'9', 'a'-'z', 'A'-'Z', '-' or '_' are replaced by '_'.


什么意思呢,举个例子,你的设备名称  NAME="uGmotch  lii,  hehe  ov",那么你提取出来创建idc文件的名字就是uGmotch_lii_hehe_ov.idc






实际操作结果:


cat  /proc/bus/input/devices
I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="atmel_mxt_ts T100 touchscreen"
P: Phys=i2c-0-004b/input0
S: Sysfs=/devices/platform/twi.0/i2c-0/0-004b/input/input2
U: Uniq=
H: Handlers=ddrfreq_dsm mouse0 event2 cpufreq_interactive 
B: PROP=0
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=2e18000 3


所以新建文件:
a33/android_4.4/device/softwinner/astar-evb/configs/atmel_mxt_ts_T100_touchscreen.idc


在a33/android_4.4/device/softwinner/astar-evb/astar_evb.mk文件中更改
#key and tp config file
PRODUCT_COPY_FILES += \
device/softwinner/astar-evb/configs/sunxi-keyboard.kl:system/usr/keylayout/sunxi-keyboard.kl \
device/softwinner/astar-evb/configs/tp.idc:system/usr/idc/tp.idc \
device/softwinner/astar-evb/configs/atmel_mxt_ts_T100_touchscreen.idc:system/usr/idc/atmel_mxt_ts_T100_touchscreen.idc \

device/softwinner/astar-evb/configs/gsensor.cfg:system/usr/gsensor.cfg
0 0
原创粉丝点击