主题 : linux下I2C触摸屏驱动问题 复制链接 | 浏览器收藏 | 打印
roberson
级别: 新手上路
UID: 25294
精华: 0
发帖: 43
金钱: 215 两
威望: 43 点
综合积分: 86 分
注册时间: 2010-07-22
最后登录: 2011-12-22
楼主  发表于: 2011-06-04 15:31

 linux下I2C触摸屏驱动问题

我用的是linux内核是2.36, 把i2c的触摸屏的驱动移植好了,我用这个命令cat /dev/input/event0,有乱码输出,但是我在UI里面一直没有反应。请帮我分析下是什么原因?谢谢!以下是我的配置:
#if [ -e /etc/friendlyarm-ts-input.conf ] ; then
#    . /etc/friendlyarm-ts-input.conf
#fi
#true    ${TSLIB_TSDEVICE:=/dev/touchscreen}

TSLIB_CONFFILE=/usr/local/etc/ts.conf

export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CONFFILE

export TSLIB_PLUGINDIR=/usr/local/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export QTDIR=/opt/Qtopia
export QPEDIR=/opt/Qtopia
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:/usr/local/lib:$LD_LIBRARY_PATH
export CAMERA_DEVICE=/dev/video2
export QWS_MOUSE_PROTO=Tslib:/dev/input/event0