I.MX6 Linux eGTouch TouchScreen porting

一、Download Driver:
http://www.eeti.com.tw/drivers_Linux.html 二、阅读:EETI eGTouch Linux Programming Guide 三、系统启动配置:
......
# 本人直接将驱动放在内核里了,并没有做成模块
# insmod /module/hid-multitouch.ko
# 使用eGTouch_v2.5.4330.L-ma/eGTouchARM/eGTouchARMnonX里面的文件
/usr/bin/eGTouchD & # sleep # 我是通过这个sleep 1发现是设备节点不存在造成的
while [ ! -e /dev/input/event4 ]
do
echo "please hang up USB TOUCH !"
usleep 10 # 自己写的C延时程序当shell命令用
done export TSLIB_ROOT=/usr/local/tslib-instal
export TSLIB_TSDEVICE=/dev/input/event4
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export TSLIB_FBDEVICE=/dev/fb0
export PATH=/usr/local/tslib-instal:$PATH
export LD_LIBRARY_PATH=/usr/local/Trolltech/QtEmbedded-4.8.-arm/lib
export QT_QWS_FONTDIR=/usr/local/Trolltech/QtEmbedded-4.8.-arm/lib/fonts
export QWS_MOUSE_PROTO=tslib:/dev/input/event4
...... 四、问题集锦:
. 问题1:不确定那个input输入:
解决方法:
. 运行:cat /proc/bus/input/devices;
root@freescale /etc$ cat /proc/bus/input/devices
...... I: Bus= Vendor=0eef Product= Version=
N: Name="eGalaxTouch Virtual Device for Multi"
P: Phys=
S: Sysfs=/devices/virtual/input/input5
U: Uniq=
H: Handlers=cpufreq_interactive event4
B: PROP=
B: EV=b
B: KEY=
B: ABS= I: Bus= Vendor=0eef Product= Version=
N: Name="eGalaxTouch Virtual Device for Single"
P: Phys=
S: Sysfs=/devices/virtual/input/input6
U: Uniq=
H: Handlers=event5
B: PROP=
B: EV=b
B: KEY=
B: ABS= root@freescale /etc$
. 通过H:Handlers确定eGTouch对应的是/dev/input/event4、/dev/input/event5,
两个都试一下就知道哪个能用了。 . 问题2:系统第一次开机时执行ts_calibrate闪退(经常连闪都看不到),导致无法正常校正:
解决方法:
在/usr/bin/eGTouchD &设备插入检测机制,原因是,生成上面的event4、 event5
是需要一点时间的,这样后面的tslib才能正确的识别。
while [ ! -e /dev/input/event4 ]
do
echo "please hang up USB TOUCH !"
usleep
done . 问题3:tslib: Selected device is not a touchscreen (must support ABS and KEY event types)
解决方法:
. 可能是因为驱动不支持,更换标准的驱动,因为有些驱动是别人在标准驱动上
修改的驱动,所以最好换成官方标准的驱动;
. export TSLIB_TSDEVICE=/dev/input/event4指向的input设备不正确,注意
修改成正确的input设备;

I.MX6 Linux eGTouch TouchScreen porting的更多相关文章

  1. I.MX6 Goodix GT9xx touchscreen driver porting

    /************************************************************************ * I.MX6 Goodix GT9xx touch ...

  2. I.MX6 Linux udev porting

    /*********************************************************************** * I.MX6 Linux udev porting ...

  3. I.MX6 linux Qt 同时支持Touch、mouse

    /***************************************************************************** * I.MX6 linux Qt 同时支持 ...

  4. I.MX6 Linux 自动获取AR1020 event input节点

    /*********************************************************************** * I.MX6 Linux 自动获取AR1020 ev ...

  5. I.MX6 Linux Qt 启动流程跟踪

    /************************************************************************** * I.MX6 Linux Qt 启动流程跟踪 ...

  6. I.MX6 linux kernel编译错误处理

    /******************************************************************************** * I.MX6 linux kern ...

  7. I.MX6 linux tslib Corrupt calibration data

    I.MX6 linux tslib Corrupt calibration data 一.tslib出错 Corrupt calibration data 二.解决方法: ...... if [ -f ...

  8. I.MX6 Linux mipi配置数据合成

    /*************************************************************************** * I.MX6 Linux mipi配置数据合 ...

  9. I.MX6 Linux、Jni ioctl 差异

    /*********************************************************************** * I.MX6 Linux.Jni ioctl 差异 ...

随机推荐

  1. Implement JSON Web Tokens Authentication in ASP.NET Web API and Identity 2.1 Part 3 (by TAISEER)

    http://bitoftech.net/2015/02/16/implement-oauth-json-web-tokens-authentication-in-asp-net-web-api-an ...

  2. 爬虫之JSON案例

    糗事百科实例: 爬取糗事百科段子,假设页面的URL是 http://www.qiushibaike.com/8hr/page/1 要求: 使用requests获取页面信息,用XPath / re 做数 ...

  3. 解题报告:poj2689 Prime Distance

    2017-10-03 11:29:20 writer:pprp 来源:kuangbin模板 从已经筛选好的素数中筛选出规定区间的素数 /* *prime DIstance *给出一个区间[L,U],找 ...

  4. LightOJ 1356 Prime Independence(质因数分解+最大独立集+Hopcroft-Carp)

    http://lightoj.com/login_main.php?url=volume_showproblem.php?problem=1356 题意: 给出n个数,问最多能选几个数,使得该集合中的 ...

  5. appium 处理滑动的方法

    appium 处理滑动的方法是 swipe(int start-x, int start-y, int end-x, int end-y, int during) - Method in class ...

  6. java高级特性(1)--理解面向对象思想

    前言: 优秀的代码具备:高性能.可重用.可扩展.易维护.易理解 具体实现: 高性能:合理使用算法,数据结构等等 可重用:封装.继承 可扩展:多态 易维护.易理解:命名规范 + 注解 面向对象是一种思想 ...

  7. JavaScript高级程序设计-读书笔记(3)

    第8章 BOM 1.window对象 (1)全局作用域 BOM的核心对象是window,它表示浏览器的一个实例.在浏览器中,window对象既是通过JavaScript访问浏览器窗口的一个接口,又是E ...

  8. RestTemplate请求https忽略证书认证

    RestTemplate是Spring提供的用于访问Rest服务的客户端,提供了多种便捷访问远程Http服务的方法,能够大大提高客户端的编写效率.RestTemplate 默认使用J2SE提供的方式( ...

  9. kubernetes源码分析 -- kube-proxy

       Kube-proxy需要在每一个minion结点上运行.他的作用是service的代理,负责将业务连接到service后面具体执行结点(endpoints). 我们列一下体现kube-proxy ...

  10. python3安装tensorflow遇到的问题

    1. 使用命令:sudo pip3 install --upgrade \ https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow ...