Running ts_calibrate for touchscreen on emmbedded Linux enviorment


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Running ts_calibrate for touchscreen on emmbedded Linux enviorment
# 1  
Old 08-19-2019
Running ts_calibrate for touchscreen on emmbedded Linux enviorment

Hey guys, I am trying to figure out why this touchscreen is not working. I am attempting to run ts_calibrate which (on my kernel) can be found @ usr/bin When I run the script:
Code:
root:/usr/bin# ts_calibrate
xres = 1920, yres = 1080
tslib: Selected device is not a touchscreen (must support ABS and KEY event types)
Took 2 samples...
Top left : X = 8286377 Y = 1069793554
Took 2 samples...
Top right : X = 8286377 Y = 1069793554
Took 2 samples...
Bot right : X = 8286377 Y = 1069793554
Took 2 samples...
Bot left : X = 8286377 Y = 1069793554
Took 2 samples...
Center : X = 8286377 Y = 1069793554
-0.958901 -1.531372 0.011863
0.022433 0.438339 -0.003395
 Calibration constants: -62842 -100359 777 1470 28726 -222 65536

I am assuming I need to provide an argument so I am trying to figure out what the ts would be called. I check out /dev/input:


Code:
root:/dev/input# ls
by-path  event0   event1   mice

It's not showing up here unless its event0 or event1 any idea what the problem might be. The ts is plugged in via a usb cable. Is there somewhere in the kernel I can probe to find out if the board is recognizing the ts?


EDIT: I tried:


Code:
root:/usr/bin# lsusb
Bus 001 Device 002: ID 0424:2514  
Bus 001 Device 001: ID 1d6b:0002  
root:/usr/bin# ts_calibrate 1d6b:0002
xres = 1920, yres = 1080
tslib: Selected device is not a touchscreen (must support ABS and KEY event types)
Took 2 samples...
Top left : X = 3393705 Y = 1066797322
Took 2 samples...
Top right : X = 3393705 Y = 1066797322
Took 2 samples...
Bot right : X = 3393705 Y = 1066797322
Took 2 samples...
Bot left : X = 3393705 Y = 1066797322
Took 2 samples...
Center : X = 3393705 Y = 1066797322
1.794245 -0.361181 0.001150
0.509386 -0.060413 0.000193
Calibration constants: 117587 -23670 75 33383 -3959 12 65536 
 root@:/usr/bin#


EDIT: So a little detail. I had a working ts and it broke (still works but screen is cracked) oredered a replacement. Plug that replacement in and it while it does show the application you can't interact with it. An lsusb with the old device plugged it shows three usb devices:


Code:
root@ccimx6qpsbc:/# lsusb
Bus 001 Device 003: ID 2808:81c9  
Bus 001 Device 002: ID 0424:2514  
Bus 001 Device 001: ID 1d6b:0002


and if you look above you will see that an lsusb with the new device only shows two. Perhaps this is a usb issue? Is there a usb configuration script I need to run perhaps?

Last edited by Circuits; 08-19-2019 at 04:34 PM..
# 2  
Old 08-20-2019
In Linux the usb magic is usually handled by the udev subsystem.
Check the files in /etc/udev/, mostly /etc/udev/udev.d/
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Ubuntu

The best distro to use on enviorment headless and only run scripts

Hello, I pretend create a machine headless for only run scripts! I think use Ubuntu Server, but this is the best option? Exist another system more light? Because the purpose is run script which do mathematical calculations. Sum, Division and Modules! My knowledge about word gnu/linux is on... (0 Replies)
Discussion started by: enodev
0 Replies

2. Linux

How to check a particular service is running on Linux?

We are using TeamSite application. Its a content management system application. How can I check if TeamSite service is running or not using ksh onn Linux platform ? On Windows its easy, I can do services.msc and entire list will come up. How to check it in Linux ? I tried using 'ps -ef', it... (4 Replies)
Discussion started by: paramshamnani
4 Replies

3. Programming

Running a Java program on Linux

Hello, I have a project directory in /home/researcher I have in my project/src three packages:A (contains the main class), B and C and I have 2 jar-files file1.jar file2.jar files in the project/my-jars In Class A I import other classes from the other packages I compiled as follows:... (4 Replies)
Discussion started by: chercheur857
4 Replies

4. UNIX for Dummies Questions & Answers

Running multiple processes in Linux

Hi guys, I want to run the multiple scripts at the same time using a ksh script. For example, I have three scripts to run: a.ksh, b.ksh and c.ksh How to start the above 3 scripts simultaneously and then on the completion of the above scripts I have other tasks to schedule. Thanks Gary (6 Replies)
Discussion started by: abcabc1103
6 Replies

5. UNIX for Dummies Questions & Answers

enviorment variable

Hi , I am begginer to UNIX. when i want to run korn shell script i run ./test.sh and then enter it would run. But when i run test.sh and enter it would not run. What setting or enviorment variable i would change in order to run with out giving ./ to run any shell script. Thanks in adavance ... (5 Replies)
Discussion started by: sam70
5 Replies

6. SuSE

What's mail system running on Linux

Hi,I am need setup mail system on the linux, but i am don't know , My linux system is Redhat Linux 9.0.However,What's kind mail system is fit my operation system? expect everyone give directionsme with superior . Thanks! (6 Replies)
Discussion started by: Golden.Liu
6 Replies

7. UNIX for Dummies Questions & Answers

running a .cpio touchscreen file on a solaris system

All right Ladies& Gents, I am trying to figure out why the touchscreen.cpio patch that I loaded on my Panasonic cf-28 will not work. Besides the obvious of this is a patch for a Panasonic cf-29 that is. I know enough to load the .cpio patch and get it to work yet I cannot figure out how to... (0 Replies)
Discussion started by: cjparks
0 Replies

8. UNIX for Advanced & Expert Users

How To Set Enviorment ?

I use /bin/ksh As we know that if we export an enviorment in command terminal, then the enviorment can be used in that termial , it can not take effect in other terminals . How Can I export an enviorment in a terminal , and the enviorment can take effect in other terminals ? (1 Reply)
Discussion started by: chenhao_no1
1 Replies
Login or Register to Ask a Question