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.

Touch calibration

Other Parts Discussed in Thread: AM3517, TSC2004, AM1808

Hi,

By updating the AM3517 EVM from SDK 4.01 (PSP 3.0) to PSP 4.02, I have no more access to the touch controller through the ts bin's. Display is still ok.

In the linux shell

export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONSOLEDEVICE=none
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_TSDEVICE=/dev/input/event0
ts_calibrate
xres = 480, yres = 272
selected device is not a touchscreen I understand

device is available:

ls -l /dev/input/
total 0
crw------- 1 root root 13, 64 Jan  1 01:00 event0
crw------- 1 root root 13, 63 Jan  1 01:00 mice
crw------- 1 root root 13, 32 Jan  1 01:00 mouse0

Reading the irq count, I can see that some events are available.

root@prc:~# cat /proc/interrupts
           CPU0

225:         91        GPIO  tsc2004

but all as spurious interrupts, what not happens with the earlier PSP.

root@prc:~# cat /proc/irq/225/spurious
count 91
unhandled 0
last_unhandled 0 ms

No warning during bootup

[    6.559600] input: TSC2004 Touchscreen as /devices/virtual/input/input0
[    6.573242] i2c-core: driver [tsc2004] registered

Is the touch screen fully supported in the PSP 4.02 ? Any option I have to set ?

Regards

David

 

 

 

  • Hi David,

    Somehow i missed this thread, I have seen this issue during internal validation cycle. This issue is due to miss-match for EV_VERSION between TSLIB and kernel input subsystem.

    File - "<kernel home>/include/linux/input.h"

    -- #define EV_VERSION              0x010000

    ++ #define EV_VERSION              0x010001

     

    You have to update your TSLIB for above change and it should work without any issues.

    Thanks,

    Vaibhav

  •  

    Hi Vibhav,

    While running with "am18xx-demo"(which is downloded from TI filesystem) touch screen and application is running.

    same source code "am18xx-demo" (.cpp,.h.,.png downloaded from TI arago file system svn root) are compiling in my Host PC and running in AM1808 target, my touch screen is not working, but application is visible.

     

    Can i know the issue and how to resolve it. I configured Qt settings in my PC as following steps.

    1. Qt qmake Settings had done with the below script:

    ./configure -prefix /home/kumar/Qt/qt-everywhere-opensource-src-4.6.2 -embedded arm -platform /qws/linux-x86-g++ -xplatform /qws/linux-arm-g++ -depths 16,24,32 -no-mmx  -no-3dnow -no-sse -no-sse2 -no-glib -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -qt-mouse-tslib -plugin-mouse-linuxtp -plugin-mouse-pc -fast

     

    2. Compiled with example codes in Qt Working Directory:

    cd /home/kumar/Qt/qt-everywhere-opensource-src-4.6.2/examples/widgets/calculator

     

    3. Makefile Creation:

    qmake -spec /home/kumar/Qt/qt-everywhere-opensource-src-4.6.2/mkspecs/qws/linux-arm-g++/

     

    4. Make

    Qt/examples/widget/calculator binary created. 

     

    5. Before running the application i calibrated using ts_calibrate library.

     

    6. Executing below command line arguments in target board. 

    export LD_LIBRARY_PATH=/usr/lib

    export TSLIB_PLUGINDIR=/usr/lib/ts

    export TSLIB_TSDEVICE=/dev/input/touchscreen0

    export TSLIB_CALIBFILE=/etc/pointercal

    export TSLIB_CONFFILE=/etc/ts.conf

    export QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0

     

    7. After given run command in Target:

    ./calculator -qws 

     

    Application is displayed on the GLCD, but mouse cursor (Touch screen) is not working and not moving. please resolve my issue. what is the problem??.

     

    Regards,

    Francis

     

     

  • try to change step 5 and 6.

     

    Have you given the paths of your tslib installation in the qmake.conf file in your qws/linux-arm-g++ folder?