Dear All Well i am totally novice in Linux, just bought the Mini2440 and mistakenly calibrated the touch screen with wrong points, and is not working as expected. I tried to connect a mouse or a keyboard wit the usb port but to no avail :( then i tried to connect the device with my PC and connected it with hyperterminal, i have found the ts_calibrate script in /usr/local/bin directory when when i try to execute ts_calibrate with sh it says "ts_calibrate: line 1: syntax error: word unexpected (expecting ")")" or not found. I just want to recalibrate my touchscreen , is there any way to hard reset the device without flashing as i am new to flashing etc. Best regards
How to run ts_calibrate ?
I guess you can't even get the terminal application running in Qtopia 2.2 Have you ever connected the mini2440 to your host Linux desktop box with the RS232 cable? In minicom, after entering the mini2440 login: root I can just type in "ts_calibrate" and up it pops.
Did you actually find a file called ts_calibrate.sh I suspect what you found in /usr/local/bin was the executable file. Do a "ls -la" on the directory to have a closer look at the files it in.
Yes i connected the device with my PC serial port and used windows hyperterminal :) No! it is only ts_calibrate instead of ts_calibrate.sh I will try again after reaching my lab :)
Sorry for the delay as i was out of city :) @davef i tried to run to run the ts_calibrate from the root login but again its response is [root@FriendlyARM /]# ts_calibrate -/bin/sh: ts_calibrate: not found so what do you suggest :) regards
I have found a way to do this :) remove the pointercal file from etc/ then reboot the device voila calibration screen will pop at the startup :) following is the sequence for the noivces like me [root@FriendlyARM /]# cd etc/ [root@FriendlyARM /etc]# rm pointercal [root@FriendlyARM /etc]# reboot thanx for the help best regards
Ya, that's one way to do it. So, the machine knows how to run ts_calibrate, you should be able to as well :) From root try: find -name ts_calibrate -print and when you find out which directory it is in navigate to it and do: ls -la and tell me what it says.
@davef what you described in earlier post your are right that is must run. But my device was running Qtopia 2.2 without QT 4, now i have updated the device with the current version with QT, and now i am able to run the ts_calibrate command from the console / command line. :) it think it was missing the script or else. Thank you for the help and putting your time in. :0 regards.
Hi la_glutte, Did you do anything else other than the instructions above to get it working on the mini2440? Did you add another device driver in the kernel? When I use my original tslib files with the X35 display it works fine. So I know my tslib is working. But when I change my parameters to one wire with my original tslib files I get an error: "ts_open: No such file or directory" And when I use the newly compiled tslib files I get an error: "/usr/bin/ts_calibrate: line 1: syntax error: unexpected "("" Please can you tell me exactly what you did to get it working. MC