1  /  1  页   1 跳转 查看:812

qpe 触摸问题

qpe 触摸问题

ts_calibrate可以成功效验,可是点击qpe却没反应
qpe上显示的是
Tab anywhere on the screen to continue
笔都触断了还是没反应
我用的是光盘自带的fs_qtopia.tar.bz2解压修改的,难道qtopia还要重新编译?
我用的是tslib1.4
autogen.sh
./configure --host=arm-linux --target=arm-linux --prefix=$PWD/build --enable-inputapi=no
cp build/ /work/nfs/fs_qtopia/usr/share
在/etc/profile设置了环境变量
export TSLIB_HOME=/usr/share/build
export TSLIB_CONFFILE=$TSLIB_HOME/etc/ts.conf
export TSLIB_PLUGINDIR=$TSLIB_HOME/lib/ts
export TSLIB_TSDEVICE=/dev/event0
export TSLIB_CALIBFILE=/etc/pointercal
export PATH=$TSLIB_HOME/binPATH
export HOME=/root
export QTDIR=/opt/Qtopia
export QPEDIR=/opt/Qtopia
export QWS_DISPLAY=LinuxFb:/dev/fb0
export QWS_KEYBOARD="TTY:/dev/tty1"
export QWS_MOUSE_PROTO="TPanel:/dev/event0 USB:/dev/mouse0"
export PATH=$QPEDIR/binPATH
export LD_LIBRARY_PATH=$QPEDIR/libTSLIB_HOME/lib
# env
TSLIB_TSDEVICE=/dev/event0
USER=root
LD_LIBRARY_PATH=/opt/Qtopia/lib:/usr/share/build/lib
HOME=/root
QTDIR=/opt/Qtopia
TSLIB_PLUGINDIR=/usr/share/build/lib/ts
QWS_KEYBOARD=TTY:/dev/tty1
TSLIB_HOME=/usr/share/build
TERM=vt102
PATH=/opt/Qtopia/bin:/usr/share/build/bin:/sbin:/usr/sbin:/bin:/usr/bin
TSLIB_CONFFILE=/usr/share/build/etc/ts.conf
SHELL=/bin/sh
QWS_DISPLAY=LinuxFb:/dev/fb0
QPEDIR=/opt/Qtopia
PWD=/
QWS_MOUSE_PROTO=USB:/dev/mouse0
TSLIB_CALIBFILE=/etc/pointercal
# ts_calibrate //可以效验
xres = 320, yres = 240
Took 31 samples...
Top left : X =  197 Y =  282
Took 77 samples...
Top right : X =  816 Y =  276
Took 50 samples...
Bot right : X =  815 Y =  755
Took 90 samples...
Bot left : X =  197 Y =  759
Took 45 samples...
Center : X =  507 Y =  520
-20.320007 0.355702 0.000371
-33.030212 0.002367 0.292884
Calibration constants: -1331692 23311 24 -2164668 155 19194 65536
# qpe 
[9;0] [9;0]Cannot open /dev/mouse0 (No such file or directory)
Warning: TimeZone:Warning: Need to run firstuse
Warning: language message - en_US
Warning: and its not null
Warning: loading /opt/Qtopia/i18n/en_US/qt.qm
Warning: loading /opt/Qtopia/i18n/en_US/qpe.qm
Warning: loading /opt/Qtopia/i18n/en_US/libqpe.qm
Warning: loading /opt/Qtopia/i18n/en_US/libqtopia.qm
Warning: loading /opt/Qtopia/i18n/en_US/language.qm
Warning: loading /opt/Qtopia/i18n/en_US/timezone.qm
Warning: loading /opt/Qtopia/i18n/en_US/systemtime.qm
 

回复:qpe 触摸问题

稍等吧,我正在整理QT+触摸屏的文档
 

回复:qpe 触摸问题

期待啊
 

回复:qpe 触摸问题

 

回复:qpe 触摸问题

弄好了
以前的这个问题是应为uuid库没有编译好
# qpe.sh
# /opt/Qtopia/bin/qpe: /lib/libgcc_s.so.1: version `GCC_3.5' not found (required by /lib/libuuid.so.1)
/opt/Qtopia/bin/qpe: /lib/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libuuid.so.1)
按照书上重新编译就好了
$ tar xzf e2fsprogs-1.40.2.tar.gz
$ cd e2fsprogs-1.40.2/
$ mkdir build; cd build
$ ../configure --with-cc=arm-linux-gcc --with-linker=arm-linux-ld --enable-elf-shlibs
--host=arm -prefix=/work/tools/gcc-3.4.5-glibc-2.3.6/arm-linux
$ make
$ make install-libs
 

问一个PXA270下 触摸屏问题

问一个触摸屏的问题,我的pxa270/linux2.6.28, AC97+UCB1400,代码未作修改,配置编译后打印信息为
    “dvanced Linux Sound Architecture Driver Version 1.0.18rc3.
      input: UCB1400 touchscreen interface as /devices/platform/ucb1400_ts/input/input0
      ALSA device list:
      #0: pxa2xx-ac97 (Philips UCB1400)”

  /dev下有event0,没有mouse0(文件系统用mdev), 执行ts_test后提示“ts_open:No such file or dircetory ”
  大家帮我分析下
 

回复:qpe 触摸问题

1. cat /proc/devices贴出来
2. 有没有/dev/ts0 ?
 

回复:qpe 触摸问题

不好意思,这么久才回复。经过thisway.diy的提示,发现在我的系统中/dev/event0等价/dev/ts0, 设置export
TSLIB_TSDEVICE=/dev/event0后,“ts_open:No such file or dircetory”的错误就消失了,但点击触摸屏没有任何反,以下是我自己加的打印信息
“[root@cvtech]#ts_test
                ucb1400_ts_open()

                ucb1400_ts_thread()

                ucb1400_adc_enable()

                ucb1400_ts_read_xpos()

                ucb1400_adc_read()

                ucb1400_ts_read_ypos()

                ucb1400_adc_read()

                ucb1400_ts_read_pressure()

                ucb1400_adc_read()

                ucb1400_adc_disable()

                ucb1400_ts_mode_int()

                ucb1400_ts_pen_down()

                ucb1400_ts_irq_enable()

在drivers/input/touchscreen/ucb1400_ts.c “error = request_irq(ucb->irq, ucb1400_hard_irq,

IRQF_TRIGGER_RISING,"UCB1400", ucb);”中ucb->irq为0,我怀疑中断号有问题,大家认为呢?

thisway.diy 问的可是这个文件?cat  /proc/devices看不出什么东西
[root@cvtech]#cat /proc/bus/input/devices
I: Bus=0000 Vendor=5053 Product=4304 Version=0000
N: Name="UCB1400 touchscreen interface"
P: Phys=
S: Sysfs=/devices/platform/ucb1400_ts/input/input0
U: Uniq=
H: Handlers=event0
B: EV=9
B: ABS=1000003
 

回复thisway.diy :cat /proc/devices

[root@cvtech]#cat /proc/devices
Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
  9 st
10 misc
13 input
29 fb
90 mtd
116 alsa
128 ptm
136 pts
180 usb
189 usb_device
252 usb_endpoint
253 bsg
254 pcmcia

Block devices:
  1 ramdisk
259 blkext
  7 loop
  8 sd
11 sr
31 mtdblock
65 sd
66 sd
67 sd
68 sd
69 sd
70 sd
71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
现在的问题是点击触摸屏没有任何反应,cat  /dev/event0 也没有任何输出
 
1  /  1  页   1 跳转

地址:广东省深圳市南山区南山大道3003号久商大厦C-1406;邮编:518052;电话:0755-86200561

粤ICP备09041549号, 版权所有 百问网   Sitemap

Powered by Discuz!NT 2.0.1214    Copyright © 2001-2010 Comsenz Inc.
Processed in 0.125 second(s) , 3 queries.
返顶部