Dear Rachna,
Please give me the solution how to solve this problem. I am struggling with this for more than two days
Thanks in advance
Regards,
Salih
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am using TI816x Processor. I need to test the touch screen calibration. But while I trying run the executable ts_calibrate I am getting the below prints.
Couldnt load module input
No raw modules loaded.
ts_config: Success
I don't know what is the problem. Please give me the proper solution to solve this.
Thanks in advance.
Regards,
Salih
Hi Salih,
Can you look for "ts.conf" file, usually found at /etc/ts.conf. Check if you have the following entries:
module_raw input
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear
If any of these lines in commented, uncomment the same.
Also check if you have the following environment variables set:
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/lib/ts
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONSOLEDEVICE=none
Regards,
Rachna.
Hi Rachna,
Can you tell me where I have to set those variables hether in Target or in host while compiling. I set those variables in Target. I am getting the below message. Please give me to how to solve this.
selected device is not a touchscreen I understand
Thanks
Regards,
Salih
Dear Rachna,
Please give me the solution how to solve this problem. I am struggling with this for more than two days
Thanks in advance
Regards,
Salih
Salih,
Check the output of
ls -al /dev/input
Check for the corresponding touchscreen event. This should be set in the environment variable against
export TSLIB_TSDEVICE=/dev/input/event*
You can also find more details regarding tslib at http://processors.wiki.ti.com/index.php/Tslib
Regards,
Rachna
Hi Rachna,
I am still getting the same error. I followed the below steps.
root@dm816x-evm:~#
root@dm816x-evm:~# ls -al /dev/input
drwxr-xr-x 2 root root 120 Jan 1 2000 .
drwxr-xr-x 11 root root 3500 Jun 1 15:55 ..
crw-r----- 1 root root 13, 64 Jan 1 2000 event0
crw-r----- 1 root root 13, 63 Jan 1 2000 mice
crw-r----- 1 root root 13, 32 Jan 1 2000 mouse0
lrwxrwxrwx 1 root root 6 Jan 1 2000 touchscreen0 -> event0
root@dm816x-evm:~# export TSLIB_TSDEVICE=/dev/input/event0
root@dm816x-evm:~# export TSLIB_CALIBFILE=/etc/pointercal
root@dm816x-evm:~# export TSLIB_CONFFILE=/etc/ts.conf
root@dm816x-evm:~# export TSLIB_PLUGINDIR=/lib/ts
root@dm816x-evm:~# export TSLIB_FBDEVICE=/dev/fb0
root@dm816x-evm:~# export TSLIB_CONSOLEDEVICE=none
root@dm816x-evm:~#
root@dm816x-evm:~#
root@dm816x-evm:~# ts_calibrate
selected device is not a touchscreen I understand
Took 2 samples...
Top left : X = -548059108 Y = -548058985
Took 2 samples...
Top right : X = -548059108 Y = -548058985
Took 2 samples...
Bot right : X = -548059108 Y = -548058985
Took 2 samples...
Bot left : X = -548059108 Y = -548058985
Took 2 samples...
Center : X = -548059108 Y = -548058985
17.796875 -7.787109 7.785156
12.812500 -4.359375 4.359375
Calibration constants: 1166336 -510336 510208 839680 -285696 285696 65536
root@dm816x-evm:~# ts_test
selected device is not a touchscreen I understand
Please give me the reason and give solution to solve this one.
Thanks in advance.
Regards,
Salih
Salih,
Looks like the tslib your using is old. Can you compile the latest version of tslib which has a specific patch to address the version check condition, I think you are missing this.
You can also try export TSLIB_TSDEVICE=/dev/input/touchscreen0.
Regards,
Rachna
Hi Rachna,
Thanks Rachna.
But still I am getting the same. Can you tell me where I can download the latest version of tslib. Do you have any link. If so, please post the links.
Thanks & Regards,
Salih
Salih,
Please refer to my previous replies, or you can also look at http://opentom.org/Tslib
Regards,
Rachna
Hi Rachna,
Thanks. The Tslib is working. But while running the ts_calibrate, the resolution is switched to HDMI resolution. So the calibration is not clearly visible in LCD. Please can you tell me how can I solve this problem.
Thanks in advance.
Regards,
Salih
Hi Rachna,
Please can you tell me whether I need to change settings in the driver code. If so please tell me where I need to change. Or if I should give any command line arguments while inserting the module. Please give me the solution for this.
Thanks in advance.
Regards,
Salih
Hi Rachna,
Can you please tell me, where I can change the resolution in driver code as default. Because here it is selecting the resolution as 1080p-60. But I need 800x480@60. How can I change the resolution in driver code. Please give me the solution for this.
Thanks in advance.
Regards,
Salih