全志a33加触摸屏
2015-09-08 11:15
169 查看
以下为网上找的:
在开发板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
在开发板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
相关文章推荐
- 本地通知UILocalNotification
- UIViewController中的loadView
- windows下安装redis
- 本地通知UILocalNotification
- xcode查找当前程序的沙盒
- 孔板流量计与均速管流量计的比较
- 面向对象基础
- 微信公众平台申请测试接口URL和TOKEN的配置,怎么在本地让微信能通过80端口访问
- 网站禾 只 分之我见
- 如何在安卓中添加安卓API源代码
- fnt 文件解释
- 截图视频缩略图
- System.out.println与System.err.println的区别(输出顺序!!!)
- js弹出框、对话框、提示框、弹窗汇总
- 中断和异常
- LeetCode ||Insertion Sort List
- myeclipse 10 关于building workspace 的优化
- 12306
- Invert Binary Tree
- python 退出程序sys.exit 的退出码