Location of TSLIB(libts.so) and QT PLUGIN(libqtslibplugin.so)
-
I mean, properly setup TSLIB, initialized it ?
-
I checked that TSLIB has some inbuilt tools that also got generated while compiling the src code, like ts_test, ts_calibrate.
i am not getting what you mean by "initialized it", do you mean to test the functionality using these tools or there is some another way of initializing it. Kindly explain how to proceed.
I also found that there is touch screen connected to the embedded board but there is no input folder/node inside the device folder.
Generally all the touchscreen/input related devices are listed inside:
@/dev/input/something_here@But there is no input node in my system.
Is there any other way to interact with the LCD touch screen? -
Not knowing anything about your LCD screen, I can't tell how it should show up or whether it's connected correctly on your system.
The tslib tools are there to help you set the various environment variable needed by the library to work properly
-
Dear SGaist, thanks for your reply. It seems it is a serial device. Is it possible to get the x,y coordinates from the screen and then map it to the QT Screen so that i can know what button is clicked? I have done serial programming in QT for GPS devices, but i have no idea of mapping to the Framebuffer to know what widget is getting touch.
Just give me some pointers so that i can think in that direction.
Thanks :) -
Didn't you succeed configuring tslib ?
-
no because there is no dedicated driver, it is a serial device :(
-
How does the system see it ? /dev/ttyS0 or something like that ?
-
yes you are correct, also i found that when i do
@cat ttyS1@then some junk characters are printed on putty terminal whenever i touch the lcd.
But i am not able to see x,y coordinates. I think some baud rate mismatch is there. -
hexdump will give you a cleaner output.
Well, AFAIK, setting TSLIB_TSDEVICE to /dev/ttyS1 should get you started, no ?
-
I tried setting the same:
@
export QT_QPA_PLATFORM=linuxfb
export QT_PLUGIN_PATH=/home/Sid/plugins/generic
export QT_QPA_GENERIC_PLUGINS=tslib
export QT_QPA_FONTDIR=/home/Sid/fonts
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/Sid
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/ttyS1 -------->>SEE THIS
export TSLIB_PLUGINDIR=/home/Sid/tslib_plugins
export TSLIB_CONFFILE=/home/Sid/ts.conf@
But when i run ./ts_test, i get no output :(
The program keeps running without any output unit i give Ctrl+C -
Did you run ts_calibrate first ?
-
Yes, no output from ts_calibrate also..
-
and if i do
@./ts_print@
i get following output:
selected device is not a touchscreen I understand
-
Which module are you using ?
-
Sorry i did not get you. Module??
-
Sorry I meant tslib plugin
-
I downloaded TSLIB (tslib-1.0) from sourceforgenet. And then crosscompiled it for powerpc. and then modified qmake.conf to include soure and libs. Also test lib test was successful.
I copied libqtslibplugin.so to plugins/generic folder.
-
Not the Qt tslib plugin, the plugin from tslib itself
-
unfortunately I followed this conversation but there is no fruitful outcome that any one can follow:
-
unfortunately I followed this conversation but there is no fruitful outcome that any one can follow: