• 4533阅读
  • 0回复

tslib-1.4求助 [复制链接]

上一主题 下一主题
离线miaoronghua
 
只看楼主 倒序阅读 楼主  发表于: 2009-06-17
本人打算用tslib-1.4+QT4实现上层应用,现在在TSLIB上遇见一个问题
GCC4.1.1
tslib-1.4
编译通过
ts.conf内容如下:
# Uncomment if you wish to use the linux input layer event interface
module_raw input

# Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d
# module_raw collie

# Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860
# module_raw corgi

# Uncomment if you're using a device with a UCB1200/1300/1400 TS interface
# module_raw ucb1x00

# Uncomment if you're using an HP iPaq h3600 or similar
# module_raw h3600

# Uncomment if you're using a Hitachi Webpad
# module_raw mk712

# Uncomment if you're using an IBM Arctic II
# module_raw arctic2

module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear

/etc/profile的内容如下:
#!/bin/sh

DISPLAY=unit:100.100
HOME=/tmp
SHELL=/bin/sh

#ln -s /dev/event1 /dev/input/event1
#ln -s /dev/event0 /dev/input/event0
mknod /dev/input/event1 c 13 65
mknod /dev/input/event0 c 13 64

export T_ROOT=/nand1/tslib-1.4
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb2
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_PLUGINDIR=$T_ROOT/lib/ts
export TSLIB_CONFFILE=$T_ROOT/etc/ts.conf
export TSLIB_CALIBFILE=$T_ROOT/etc/pointercal
export LD_LIBRARY_PATH=$QTDIR/lib:/nand1/tslib-1.4/lib:$LD_LIBRARY_PATH

先运行../tslib-1.4/bin/ts_calibrate
屏幕上已经出现了校准界面,但是点击屏幕没有反应
我这里有个疑问
tslib用的是input-event
搜索设备路径是/dev/input/eventN
我内核起来触摸屏直接挂在了/dev/event1 下了,我自己做了一个mknod,设备号是正确的,我查过了
但是点击校准就是没有反应啊。。。。。。。
同时我cat /dev/input/event1 点击触摸屏,终端会有输出信息,执行/tslib-1.4/bin/ts_print_raw时,点击触摸屏,终端打印出了一系列信息,其他应用都不起作用,这是怎么回事?感激你们的回帖,谢谢
快速回复
限100 字节
 
上一个 下一个