서비스 실행을 위한 터치 드라이버 설정

서비스 실행을 위한 터치 드라이버 설정

우리는 데비안 시스템에 터치 스크린을 통합하려고 합니다.

터치 드라이버(유니버설 터치)

Linux 서비스에서 이 애플리케이션을 실행하려고 합니다. 내가 따라온 단계는 다음과 같습니다.

드라이버 설치

cp -rf Gentouch_S/ /usr/local/Gentouch_S/
cp -f 10-evdev.conf /usr/share/X11/xorg.conf.d/10-evdev.conf
cp -f 69-gentouch.rules /etc/udev/rules.d/69-gentouch.rules

터치 서비스 설정

 cp genTouchService /etc/init.d/genTouchSevice
 chmod 755 /etc/init.d/genTouchSevice
 update-rc.d genTouchSevice defaults

스크립트 세부정보: /etc/init.d/genTouchSevice

#! /bin/sh
# /etc/init.d/genTouchSevice
#
# Carry out specific functions when asked to by the system
case "$1" in
  start)
    logger "Gentouch module started by service"
    /usr/local/Gentouch_S/GT_service start
    ;;
  stop)
    logger "Gentouch module stopped by service"
    /usr/local/Gentouch_S/GT_service stop
    ;;
  restart)
    logger "Gentouch module restarted by service"
    /usr/local/Gentouch_S/GT_service restart
    ;;

  *)
    echo "Usage: /etc/init.d/genTouchSevice {start|stop|restart}"
    exit 1
    ;;
esac

exit 0

이렇게 하면 시작 중에 애플리케이션이 서비스를 통해 시작된다고 확신합니다. 로그 검증 통과 (2014년 8월 20일 00:58:24::logger::Gentouch 모듈이 서비스에 의해 시작되었습니다)

서비스가 시작되었는데 화면을 터치해도 아무런 터치 이벤트가 보이지 않습니다. (포인터 위치도 움직이지 않습니다.)

따라서 다음 조건에서 터치 드라이버를 다시 시작해 보십시오.

1. genTouchService 서비스를 다시 시작합니다.

No effeci, Still there was no touch event detection

2./usr/local/Gentouch_S/ST_service 재시작

My application was able to sense the touch events.

어떤 오류를 찾을 수 없습니다.

관련 정보