Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Running ts_calibrate for touchscreen on emmbedded Linux enviorment Post 303037951 by Circuits on Monday 19th of August 2019 02:27:31 PM
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..
 

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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
PALMAX(4)						     Kernel Interfaces Manual							 PALMAX(4)

NAME
palmax - Palmax (TR88L803) touchscreen driver SYNOPSIS
Section "InputDevice" Identifier "idevname" Driver "palmax" Option "Device" "devpath" ... EndSection DESCRIPTION
palmax is an XFree86 input driver for the Palmax PD1000/PD1100 The palmax driver functions as a pointer input device, and is normally used as the X server's core pointer. It supports positioning and mouse buttons using the touchscreen display and lid buttons on the Palmax machines. SUPPORTED HARDWARE
Palmax PD1000, Palmax PD1100. In theory also any other system using a TR88L803 wired to a serial port. CONFIGURATION DETAILS
Please refer to XF86Config(5) for general configuration details and for options that can be used with all input drivers. This section only covers configuration details specific to this driver. The following driver options are supported Option "MinX" "integer" Set the left hand X value from the touchscreen, for calibration. Option "MaxX" "integer" Set the right hand X value from the touchscreen, for calibration. Option "MinY" "integer" Set the top Y value from the touchscreen, for calibration. Option "MaxY" "integer" Set the bottom Y value from the touchscreen, for calibration. Option "Screen" "integer" The screen to attach to the touchscreen when running with multiple screens. The default is screen 0. Option "Device" "string" The serial port that is attached to the touchscreen interface. On the Palmax PD1000 and PD1100 this is ttyS0. Option "DeviceName" "string" Set the X11 device name for the touchscreen. This defaults to TOUCHSCREEN. Option "PortraitMode" "string" Set the display orientation. The default is "landscape" but you can rotate the screen clockwise ("portrait") or anticlockwise ("por- traitCCW"). Option "SwapXY" "boolean" Swap the X and Y values on the display. The default is false. Option "TapButton" "boolean" Set the touchscreen tap to act as mouse button 1. This allows single handed operation except when using the menu buttons. The default is false. BUGS
The driver has been tested on the Palmax systems, the defaults reflect the Palmax hardware and should work out of the box. No testing has been done on other systems using the same digitizer. Support for a double-tap menu button option would be nice. The smoothing algorithm would benefit from real mathematics. XFree86 needs a nice calibration tool. SEE ALSO
XFree86(1), XF86Config(5), xf86config(1), Xserver(1), X(7). AUTHORS
Authors include... Alan Cox XFree86 Version 4.7.0 PALMAX(4)
All times are GMT -4. The time now is 02:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy