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.

GUI touchscreen not working on am335x



Hi ,

Am using customised board on am335xevm , though i am using teh external controller for touch from ft5x0x_ts(FocalTech ft5x0x TouchScreen driver)

Thus the driver si compiled and build properly , Though am getting teh touch events and coordinates from my driver.But am unable to operate touchscreen on GUI

device node created for touchscreen driver is : /dev/input/event0

Event am getting x and Y  coordinates from my driver successfully.

and on ts_calibrate : am getting

Calibrating touchscreen (first time only)xres = 800, yres = 480
tslib: Selected device is not a touchscreen (must support ABS_X and ABS_Y events)
Took 6 samples...
Top left : X =    0 Y = 537430766
Took 6 samples...
Top right : X =    0 Y = 537430766
Took 6 samples...
Bot right : X =    0 Y = 537430766
Took 6 samples...
Bot left : X =    0 Y = 537430766
Took 6 samples...
Center : X =    0 Y = 537430766
ts_calibrate: determinant is too small -- 0.000000
Calibration failed.
.

Can anyone suggest me the solution on this !

THANKS in Advance

ROHIT SHANBHAG

  • Hi,

    Set the following environment variable

    export TSLIB_TSDEVICE=/dev/input/touchscreen0

    and then try again.

    Regards,

    Deepti

    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

  • Thanks deepti,

    I tried it , now i am getting the calibration screen with a calibrator cursor and following message

    root@am335x-evm:~# /etc/init.d/matrix-gui-2.0 stop
    Stopping Matrix GUI application.
    root@am335x-evm:~# ts_calibrate
    xres = 800, yres = 480

    BUt i can see my driver touch messages about coordinates,

    [  625.019897] ==int ft5x0x_ts_interrupt=
    [  625.023864] ==work 1=
    [  625.029876] ==ft5x0x_report_value =
    [  625.033569] ===x1 = 39,y1 = 37 ====
    [  625.037200] ==int ft5x0x_ts_interrupt=
    [  625.041137] ==touch_point default =
    [  625.044799] 1:(39, 37) 2:(0, 0) 3:(0, 0) 4:(0, 0) 5:(0, 0)
    [  625.050537] ==work 2=
    [  625.052886] ==work 1=
    [  625.055267] ==int ft5x0x_ts_interrupt=
    [  625.062988] data package read error
    [  625.066650] ==work 2=
    [  625.069000] ==work 1=
    [  625.074645] data package read error
    [  625.078308] ==work 2=

    But i cant calibrate my screen on touching.

    Any clue on this ?

    THANKS

    rohit Shanbhag

  • Hi Rohit,

    You may need to set the following environment variables

    export TSLIB_PLUGINDIR=/usr/lib/ts
    export TSLIB_CALIBFILE=/etc/pointercal
    export TSLIB_CONFFILE=/etc/ts.conf
    export TSLIB_FBDEVICE=/dev/fb0
    export TSLIB_CONSOLEDEVICE=none

    Regards,

    Deepti

    Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

  • hi deepti ,

    one observation i can do , i.e when my system boots with kernel and then the matrix filesystem i can even move the cursor by toucing on the matrix gui.

    I did the setting on  environment variables said , still the calibrating screen appears with cursor , but issue is same.  (touch wont work)

    Is der anythng i need to configure in matrix gui side? As my driver is giving x and y coordinates properly.

    Regards

    ROHIT SHANBHAG

  • Hi Rohit,

    Can you do the calibration again.

    Stop the matrix gui by running the following command

    /etc/init.d/matrix-gui-2.0 stop

    Delete the pointercal from /etc or from sd card where ever available.

    Start the matrix gui by running the following command

    /etc/init.d/matrix-gui-2.0 start

    It should ask for calibration.

    Regards,

    Deepti

  • Yes deepthi,

    It ask for calibration , even i can see crosshair cursor , but on touching its not even moving to other cordinates,though my corodinates get print from driver debug messages.

    my driver code is for focaltech multi touch external controller , so i will be getting x1 y1 x2 y2 x3 y3 x4 y4 and x5 y5 .

    On single touch i get x1 and y1 updated.

    I am really not able to solve the issue !

    Regards

    ROHIT SHANBHAG

  • hi deepthi ,

    Thanks for your support !

    Touchscreen is working fine for me , by doing some  functionality changes in touch driver.

    Cheers

    ROHIT Y SHANBHAG

  • I am using the Beaglebone with LVDS-LCD/touchscreen cape from Chalkboard. With Angstrom/Gnome, the touchscreen works fine. However, when I uses Arago/Matrix-GUI I have a similar problem. In both cases I am running the same kernel ( kernel patched following these instructions: http://beagleboard.org/linux ). When I boots the Beaglebone, the Linux Arago boot process stops at the touchscreen calibration and it asks for "touch the crosshair to calibrate". But it freezes at this point. Even touching the screen, nothing happens. But, unplugging the touchscreen USB cable the boot process ends.

    After boot, stopping the Matrix-GUI ( /etc/init.d/matrix-gui-2.0 stop ) and executing ts_calibrate command, I don't get anything.

    Setting the variables as you suggested, I get the screen calibration ("touch the crosshair to calibrate") and the prompt prints:

    root@am335x-evm:~# ts_calibrate
    xres = 1280, yres = 800

    But, the prompt and the screen freeze here over again and I need to press CTRL+C to abort.

    Could you help me?

    By the way, do you know how to install the Matrix-GUI in the Angstrom? Thus I can compare the execution behavior of the touchscreen in the Arago and in the Angstrom.

    My regards,

    Alexandre

  • Hi Rohit,

    I am facing the similar problem. I have working ft5x0x_ts driver which reads the coordinates (kernel debug messages). But, it is not being recognised / used by matrix gui. I also changed the corresponding environment variables.

    It would be extremely helpful if you can tell me how you managed to solve yours ?

    Thanks a lot.

    Ram

  • Did you sovled the problem. I meet the same problem when I using 4wire resistive touchscreen on my custome am335x board.

    root@am335x-evm:~# ts_calibrate
    xres = 800, yres = 480

    But, the prompt and the screen freeze here over again and I need to press CTRL+C to abort.

    I don't modify the tsc driver in am335x PSP 04.06.00.09

    Any advice for the issue?  How do I debug the issue. thanks!

  • Jacky, as my time was short when I try it, I abandoned this approach (Arago + tsc) because I needed to get results to show. At this stage, my prototype had to be functional, so I continue this work with angstrom an tsc...

    Best regards,

    Alexandre

  • I solved my issue,  There is one  hardware probelm.

    thanks!

  • hi  , could you please share the changes you did to the kernel touchscreen driver?, I have a simmilar problem with st1232.c