touchscreen tslib kernel event debugging qt application
Hi
I have managed to get tslib to work on an embedded platform by:
mknod /dev/input/touchscreen-1wire c 10 181
so ts_calibrate, ts_test etc are working
cat /dev/input/touchscreen-1wire generates data when the screen is touched
I have set my environment as follows:
export TSLIB_TSDEVICE=/dev/input/touchscreen-1wire
export TSLIB_TSEVENTTYPE=INPUT
export TSLIB_FBDEVICE=/dev/fb
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
export QWS_MOUSE_PROTO="tslib:/dev/input/touchscreen-1wire IntelliMouse:/dev/input/mouse1"
The mouse works in the qt application. I have enabled event debugging in the kernel and touching the mouse generates evbug.c output. Touchscreen in qt application does not work and evbug does not generate anything. Not a qt issue, but hopefully someone in this forum can help. Thanks in advance
Re: touchscreen tslib kernel event debugging qt application
Maybe this helps:
cat /proc/bus/input/devices
I: Bus=0013 Vendor=dead Product=beef Version=0101
N: Name="TouchScreen Pipe"
P: Phys=input(ts)
S: Sysfs=/class/input/input0
U: Uniq=
H: Handlers=mouse0 event0 evbug
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=1000003
I: Bus=0003 Vendor=0458 Product=003a Version=0110
N: Name="Genius Optical Mouse"
P: Phys=usb-s3c24xx-1/input0
S: Sysfs=/class/input/input1
U: Uniq=
H: Handlers=mouse1 event1 evbug
B: EV=17
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
B: MSC=10
The following all output only when the mouse is moved:
cat /dev/input/mouse0
cat /dev/input/mouse1
cat /dev/input/event0
cat /dev/input/event1
Re: touchscreen tslib kernel event debugging qt application
Problem solved, I had missed something in the kernel configuration.
Re: touchscreen tslib kernel event debugging qt application
Quote:
Originally Posted by
sean_h
Problem solved, I had missed something in the kernel configuration.
Could you go in a little more details about what that "something" you missed was ?
Re: touchscreen tslib kernel event debugging qt application
As follows:
make menuconfig
Device Drivers -> Input device support -> Hardware IO ports ( * Raw access to serio ports)