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 not response

Other Parts Discussed in Thread: ASH

Hi all

I test our custom dm8148 board, After power on the board , can run TI matrix demo in LCD normally, 

But when I click my LCD pannel, it is not response, I have calibrated the Touch pannel successfully.

I know the matrix demo run in /etc/ini.d/matrix-gui-e

if use "/etc/init.d/matrix-gui-e stop" to let the matrix demo stop,

then use "/usr/bin/matrix_guiE -qws /usr/share/matrix/html/menu_main.html" to restart the matrix demo manually.

The touch response normally , and the matrix demo work well.

I don't know what is difference about the two run demo way, who can tell me how to fix this issue?

  • Hello,

    You could check you Linux environment, also check the exports that your /etc/init.d/matrix-gui-e does; you should have something like export TSLIB_TSDEVICE="/dev/input/event0" export QWS_MOUSE_PROTO="Tslib:/dev/input/event0" for LCD, when you are starting the matrix-gui. If something else or none is exported, that could cause that problem.

    BR

    Vladimir

  • Hi Vladimir

    Thanks for reply.

    I am sure the TSLIB_TSDEVICE and QWS_MOUSE_PROTO was exported.

    However the touch not response.

    If I run then matrix demo manually, the touch response well.

    Does anyone encounter this issue?

    root@dm814x-evm:~# set

    EDITOR='/bin/vi'
    HISTFILE='/home/root/.ash_history'
    HOME='/home/root'
    IFS='
    '
    LOGNAME='root'
    MAIL='/var/mail/root'
    OPTIND='1'
    PATH='/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin'
    PPID='1311'
    PS1='\u@\h:\w\$ '
    PS2='> '
    PS4='+ '
    PWD='/home/root'
    QWS_MOUSE_PROTO='Tslib:/dev/input/touchscreen0'
    SHELL='/bin/sh'
    TERM='linux'
    TSLIB_TSDEVICE='/dev/input/touchscreen0'
    TZ='UTC'
    _='022'
    root@dm814x-evm:~# export TSLIB_TSDEVICE=/dev/input/event0
    root@dm814x-evm:~# export QWS_MOUSE_PROTO="Tslib:/dev/input/event0 Auto:/dev/inp
    ut/mice"


  • Hello,

    Yes, but matrix-gui-e is a script, these exports will not affect it like this. It is important what is exported in the script itself.

    Please, check this with:

    cat /etc/init.d/matrix-gui-e

    BR

    Vladimir

  • Hi Vladimir

    Thanks for reply.

    When I click the the LCD pannel, I can see the mouse cursor at cerrect position. But matrix demo not response.

    I notice that have two lines difference between the matrix-gui-e script and the press "set" in the console terminal.

    1. press "set" in the console terminal

    QWS_MOUSE_PROTO='Tslib:/dev/input/touchscreen0'

    TSLIB_TSDEVICE='/dev/input/touchscreen0'

    2. in the matrix-gui-e script file

    export TSLIB_TSDEVICE=/dev/input/event0
    export QWS_MOUSE_PROTO="Tslib:/dev/input/event0 Auto:/dev/input/mice"

    Is this difference cause the result?

    following is my matrix-gui-e script file contents.

    root@dm814x-evm:~# cat /etc/init.d/matrix-gui-e
    #! /bin/sh

    matrixgui="/usr/bin/matrix_guiE"
    GUI_OPTS="-qws /usr/share/matrix/html/menu_main.html"
    PIDFILE="/var/run/matrix-gui-e.pid"

    test -x "$matrixgui" || exit 0

    export TSLIB_TSDEVICE=/dev/input/event0
    export QWS_MOUSE_PROTO="Tslib:/dev/input/event0 Auto:/dev/input/mice"

    calibrate()
    {
    if [ ! -f /etc/pointercal ] ; then
    echo -n "Calibrating touchscreen (first time only)"
    ts_calibrate
    echo "."
    fi
    }

    case "$1" in
    start)
    calibrate

    if [ -e $PIDFILE ]; then
    PIDDIR=/proc/$(cat $PIDFILE)
    if [ -d ${PIDDIR} -a "$(readlink -f ${PIDDIR}/exe)" = "${matrixgui}" ]; then
    echo "$DESC already started; not starting."
    else
    echo "Removing stale PID file $PIDFILE."
    rm -f $PIDFILE
    fi
    fi

    echo -n "Starting Matrix GUI application"
    start-stop-daemon --start --quiet --background --exec $matrixgui -- $GUI_OPTS
    pidof matrix_guiE > $PIDFILE
    echo "."
    ;;

    stop)
    echo -n "Stopping Matrix GUI application"
    start-stop-daemon --stop --quiet --exec $matrixgui
    echo "."
    ;;
    *)
    echo "Usage: /etc/init.d/matrix-gui-e {start|stop}"
    exit 1
    esac

    exit 0
    root@dm814x-evm:~#

    difference

  • Hello,

    Did you managed to solve this issue?

    Normally /dev/input/touchscreen0 is a soft link to /dev/input/event0, but could be to another event in your case. On your side what is the output of ls -l /dev/input/ ?

    BR

    Vladimir

  • HI Vladimir

    This issue was solved.

    I changed the matrix-gui-e script file below and then found the demo work well.

    export TSLIB_TSDEVICE=/dev/input/event0
    export QWS_MOUSE_PROTO="Tslib:/dev/input/event0"

  • Hello Xu Steven,

    I am glad that the issue is solved. Thank you very much for the feedback.

    BR

    Vladimir