サービスを実行するためのタッチドライバの設定

サービスを実行するためのタッチドライバの設定

私たちはDebianシステムにタッチスクリーンを統合しようとしています。

タッチドライバ(ユニバーサルタッチ)

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.

エラーが見つかりません。

ベストアンサー1

おすすめ記事