Posts by jacarandr
-
-
WOOOOHOOOO!!!!
There appears to be 2 similar directories here..
/storage/.kodi/userdata/addon_data/service.touchscreen - here i have copied ts.conf-generic to ts.conf and ts_env.sh-sample to ts_env.sh
/storage/.kodi/addons/service.touchscreen - here are the generic files.. there is no /config subdir.. So i just copied them there too and we are sorted!
Thanks so much.. i have a 14 inch glass 3mm thick touchscreen running libreelec KODI krytpon. Its the bollocks.
You rock.. thanks
-
there are two ts_env.sh
one is in /bin and the other in /config
they are not the same though
-
-
no i've definitely done that
CodeTOUCHSCREEN_NAME="Elan TouchScreen" TSLIB_TSDEVICE=$(echo 999 | evtest 2>&1 >/dev/null | awk -F':' -v TS_NAME="$TOUCHSCREEN_NAME" '$0 ~ TS_NAME {print $1; exit}') export TSLIB_TSDEVICE export TSLIB_PLUGINDIR=$ADDON_DIR/lib export TSLIB_CONSOLEDEVICE=none export TSLIB_FBDEVICE=/dev/fb0 export TSLIB_CALIBFILE=/storage/.kodi/userdata/addon_data/service.touchscreen/pointercal export TSLIB_CONFFILE=/storage/.kodi/userdata/addon_data/service.touchscreen/ts.conf
-
Code
Display More● service.touchscreen.service - Touchscreen support daemon Loaded: loaded (/storage/.kodi/addons/service.touchscreen/system.d/service.to uchscreen.service; enabled; vendor preset: disabled) Active: active (exited) since Fri 2017-05-19 14:01:31 UTC; 1 months 26 days a go Process: 522 ExecStart=/bin/sh -c exec /bin/sh /storage/.kodi/addons/service.t ouchscreen/bin/ts_uinput_touch.sh service (code=exited, status=1/FAILURE) Process: 492 ExecStartPre=/bin/sh -c exec /bin/sh /storage/.kodi/addons/servic e.touchscreen/bin/ts_calibrate.sh service (code=exited, status=0/SUCCESS) Main PID: 522 (code=exited, status=1/FAILURE) CGroup: /system.slice/service.touchscreen.service May 19 14:01:31 LibreELEC sh[522]: TSLIB_PLUGINDIR: '(null)' May 19 14:01:31 LibreELEC sh[522]: TSLIB_CONSOLEDEVICE: '(null)' May 19 14:01:31 LibreELEC sh[522]: TSLIB_FBDEVICE: '(null)' May 19 14:01:31 LibreELEC sh[522]: TSLIB_CALIBFILE: '(null)' May 19 14:01:31 LibreELEC sh[522]: TSLIB_CONFFILE: '(null)' May 19 14:01:31 LibreELEC sh[522]: TSLIB_RES_X: '(null)' May 19 14:01:31 LibreELEC sh[522]: TSLIB_RES_Y: '(null)' May 19 14:01:31 LibreELEC sh[522]: TSLIB_TOUCH_HOME_TIME: '(null)' May 19 14:01:31 LibreELEC sh[522]: resolution: 0x0 May 19 14:01:31 LibreELEC systemd[1]: Started Touchscreen support daemon.
-
its IS in addons/service.touchscreen/bin and it looks like this
Code
Display More. /etc/profile oe_setup_addon service.touchscreen if [ -d /usr/share/kodi/addons/service.touchscreen ]; then # addon included in image ADDON_DIR="/usr/share/kodi/addons/service.touchscreen" fi . $ADDON_DIR/bin/ts_env.sh params=$* if [ "$1" = "service" ]; then # skip service parameter and daemonize params="-d" else # started from command line systemctl stop ts_uinput_touch >/dev/null 2>&1 killall ts_uinput_touch >/dev/null 2>&1 fi echo " touchscreen device: '$TSLIB_TSDEVICE'" if [ -n "$TSLIB_RES_X" -a -n "$TSLIB_RES_Y" ]; then echo "touchscreen resolution: '${TSLIB_RES_X}x${TSLIB_RES_Y}'" params="-x $TSLIB_RES_X -y $TSLIB_RES_Y $params" fi echo "params: .$params." if [ ! -x $ADDON_HOME/ts_uinput_touch ]; then ts_uinput_touch $params else echo "Using $ADDON_HOME/ts_uinput_touch" $ADDON_HOME/ts_uinput_touch $params fi
-
i feel the file is not where it should be!
-
Unit ts_uinput_touch.service could not be found.
-
This is the problem i figure:
Process: 569 ExecStart=/bin/sh -c exec /bin/sh /storage/.kodi/addons/service.touchscreen/bin/ts_uinput_touch.sh service (code=exited, status=1/FAILURE)
-
Hi vpeter. I'm having similar issue to Wim.. I'm using a RPI3 with a chalkelec 14" capacitive touch screen. The screen works in raspbian but with libreelec I can't get the touch screen service to start. I have modified ts_env.sh and ts_conf as per your instructions, including the screen name in dev/input/event2 but the service wont start.
I attach evtest and service status.. any ideas would be wonderful as its an awesome screen..
Code
Display MoreLibreELEC:~ # systemctl stop kodi LibreELEC:~ # evtest No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: Logitech Logitech BT Mini-Receiver /dev/input/event1: Logitech Logitech BT Mini-Receiver /dev/input/event2: ELAN Touchscreen Select the device event number [0-2]: 2 Input driver version is 1.0.1 Input device ID: bus 0x3 vendor 0x4f3 product 0x196 version 0x110 Input device name: "ELAN Touchscreen" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 330 (BTN_TOUCH) Event type 3 (EV_ABS) Event code 0 (ABS_X) Value 0 Min 0 Max 3968 Resolution 12 Event code 1 (ABS_Y) Value 0 Min 0 Max 2240 Resolution 12 Event code 47 (ABS_MT_SLOT) Value 0 Min 0 Max 9 Event code 48 (ABS_MT_TOUCH_MAJOR) Value 0 Min 0 Max 255 Resolution 1 Event code 49 (ABS_MT_TOUCH_MINOR) Value 0 Min 0 Max 255 Resolution 1 Event code 52 (ABS_MT_ORIENTATION) Value 0 Min 0 Max 1 Event code 53 (ABS_MT_POSITION_X) Value 0 Min 0 Max 3968 Resolution 12 Event code 54 (ABS_MT_POSITION_Y) Value 0 Min 0 Max 2240 Resolution 12 Event code 57 (ABS_MT_TRACKING_ID) Value 0 Min 0 Max 65535 Event code 60 (ABS_MT_TOOL_X) Value 0 Min 0 Max 3968 Resolution 12 Event code 61 (ABS_MT_TOOL_Y) Value 0 Min 0 Max 2240 Resolution 12 Properties: Property type 1 (INPUT_PROP_DIRECT) Testing ... (interrupt to exit) Event: time 1500058494.531234, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0 Event: time 1500058494.531234, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 39 Event: time 1500058494.531234, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 44 Event: time 1500058494.531234, type 3 (EV_ABS), code 60 (ABS_MT_TOOL_X), value 39 Event: time 1500058494.531234, type 3 (EV_ABS), code 61 (ABS_MT_TOOL_Y), value 44 Event: time 1500058494.531234, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 1 Event: time 1500058494.531234, type 3 (EV_ABS), code 49 (ABS_MT_TOUCH_MINOR), value 1 Event: time 1500058494.531234, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1 Event: time 1500058494.531234, type 3 (EV_ABS), code 0 (ABS_X), value 39 Event: time 1500058494.531234, type 3 (EV_ABS), code 1 (ABS_Y), value 44 Event: time 1500058494.531234, -------------- SYN_REPORT ------------ Event: time 1500058494.539212, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 2 Event: time 1500058494.539212, type 3 (EV_ABS), code 49 (ABS_MT_TOUCH_MINOR), value 2 Event: time 1500058494.539212, -------------- SYN_REPORT ------------ Event: time 1500058494.555200, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 3 Event: time 1500058494.555200, type 3 (EV_ABS), code 49 (ABS_MT_TOUCH_MINOR), value 3 Event: time 1500058494.555200, -------------- SYN_REPORT ------------ Event: time 1500058494.594226, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1 Event: time 1500058494.594226, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0 Event: time 1500058494.594226, -------------- SYN_REPORT ------------ Event: time 1500058495.750084, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 1 Event: time 1500058495.750084, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3968 Event: time 1500058495.750084, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 39 Event: time 1500058495.750084, type 3 (EV_ABS), code 60 (ABS_MT_TOOL_X), value 3968 Event: time 1500058495.750084, type 3 (EV_ABS), code 61 (ABS_MT_TOOL_Y), value 39 Event: time 1500058495.750084, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1 Event: time 1500058495.750084, type 3 (EV_ABS), code 0 (ABS_X), value 3968 Event: time 1500058495.750084, type 3 (EV_ABS), code 1 (ABS_Y), value 39 Event: time 1500058495.750084, -------------- SYN_REPORT ------------ Event: time 1500058495.758077, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3964 Event: time 1500058495.758077, type 3 (EV_ABS), code 60 (ABS_MT_TOOL_X), value 3964 Event: time 1500058495.758077, type 3 (EV_ABS), code 0 (ABS_X), value 3964 Event: time 1500058495.758077, -------------- SYN_REPORT ------------ Event: time 1500058495.773079, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3962 Event: time 1500058495.773079, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 38 Event: time 1500058495.773079, type 3 (EV_ABS), code 60 (ABS_MT_TOOL_X), value 3962 Event: time 1500058495.773079, type 3 (EV_ABS), code 61 (ABS_MT_TOOL_Y), value 38 Event: time 1500058495.773079, type 3 (EV_ABS), code 0 (ABS_X), value 3962 Event: time 1500058495.773079, type 3 (EV_ABS), code 1 (ABS_Y), value 38 Event: time 1500058495.773079, -------------- SYN_REPORT ------------ Event: time 1500058495.805101, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3964 Event: time 1500058495.805101, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 35 Event: time 1500058495.805101, type 3 (EV_ABS), code 60 (ABS_MT_TOOL_X), value 3964 Event: time 1500058495.805101, type 3 (EV_ABS), code 61 (ABS_MT_TOOL_Y), value 35 Event: time 1500058495.805101, type 3 (EV_ABS), code 0 (ABS_X), value 3964 Event: time 1500058495.805101, type 3 (EV_ABS), code 1 (ABS_Y), value 35 Event: time 1500058495.805101, -------------- SYN_REPORT ------------ Event: time 1500058495.812104, type 3 (EV_ABS), code 49 (ABS_MT_TOUCH_MINOR), value 2 Event: time 1500058495.812104, -------------- SYN_REPORT ------------ Event: time 1500058495.820106, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1 Event: time 1500058495.820106, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0 Event: time 1500058495.820106, -------------- SYN_REPORT ------------ Event: time 1500058496.837855, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 2 Event: time 1500058496.837855, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3954 Event: time 1500058496.837855, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 2240 Event: time 1500058496.837855, type 3 (EV_ABS), code 60 (ABS_MT_TOOL_X), value 3954 Event: time 1500058496.837855, type 3 (EV_ABS), code 61 (ABS_MT_TOOL_Y), value 2240 Event: time 1500058496.837855, type 3 (EV_ABS), code 49 (ABS_MT_TOUCH_MINOR), value 3 Event: time 1500058496.837855, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1 Event: time 1500058496.837855, type 3 (EV_ABS), code 0 (ABS_X), value 3954 Event: time 1500058496.837855, type 3 (EV_ABS), code 1 (ABS_Y), value 2240 Event: time 1500058496.837855, -------------- SYN_REPORT ------------ Event: time 1500058496.915891, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1 Event: time 1500058496.915891, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0 Event: time 1500058496.915891, -------------- SYN_REPORT ------------ Event: time 1500058497.909621, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 3 Event: time 1500058497.909621, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 21 Event: time 1500058497.909621, type 3 (EV_ABS), code 60 (ABS_MT_TOOL_X), value 21 Event: time 1500058497.909621, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1 Event: time 1500058497.909621, type 3 (EV_ABS), code 0 (ABS_X), value 21 Event: time 1500058497.909621, -------------- SYN_REPORT ------------ Event: time 1500058497.917623, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 22 Event: time 1500058497.917623, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 2238 Event: time 1500058497.917623, type 3 (EV_ABS), code 60 (ABS_MT_TOOL_X), value 22 Event: time 1500058497.917623, type 3 (EV_ABS), code 61 (ABS_MT_TOOL_Y), value 2238 Event: time 1500058497.917623, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 4 Event: time 1500058497.917623, type 3 (EV_ABS), code 0 (ABS_X), value 22 Event: time 1500058497.917623, type 3 (EV_ABS), code 1 (ABS_Y), value 2238 Event: time 1500058497.917623, -------------- SYN_REPORT ------------ Event: time 1500058497.933617, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 2235 Event: time 1500058497.933617, type 3 (EV_ABS), code 61 (ABS_MT_TOOL_Y), value 2235 Event: time 1500058497.933617, type 3 (EV_ABS), code 1 (ABS_Y), value 2235 Event: time 1500058497.933617, -------------- SYN_REPORT ------------ Event: time 1500058497.949632, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 2233 Event: time 1500058497.949632, type 3 (EV_ABS), code 61 (ABS_MT_TOOL_Y), value 2233 Event: time 1500058497.949632, type 3 (EV_ABS), code 1 (ABS_Y), value 2233 Event: time 1500058497.949632, -------------- SYN_REPORT ------------ Event: time 1500058497.980644, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value -1 Event: time 1500058497.980644, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0 Event: time 1500058497.980644, -------------- SYN_REPORT ------------ ? service.touchscreen.service - Touchscreen support daemon Loaded: loaded (/storage/.kodi/addons/service.touchscreen/system.d/service.touchscreen.service; enabled; vendor preset: disabled) Active: active (exited) since Fri 2017-05-19 14:01:29 UTC; 1 months 25 days ago Process: 569 ExecStart=/bin/sh -c exec /bin/sh /storage/.kodi/addons/service.touchscreen/bin/ts_uinput_touch.sh service (code=exited, status=1/FAILURE) Process: 541 ExecStartPre=/bin/sh -c exec /bin/sh /storage/.kodi/addons/service.touchscreen/bin/ts_calibrate.sh service (code=exited, status=0/SUCCESS) Main PID: 569 (code=exited, status=1/FAILURE) CGroup: /system.slice/service.touchscreen.service May 19 14:01:29 LibreELEC sh[569]: TSLIB_PLUGINDIR: '(null)' May 19 14:01:29 LibreELEC sh[569]: TSLIB_CONSOLEDEVICE: '(null)' May 19 14:01:29 LibreELEC sh[569]: TSLIB_FBDEVICE: '(null)' May 19 14:01:29 LibreELEC sh[569]: TSLIB_CALIBFILE: '(null)' May 19 14:01:29 LibreELEC sh[569]: TSLIB_CONFFILE: '(null)' May 19 14:01:29 LibreELEC sh[569]: TSLIB_RES_X: '(null)' May 19 14:01:29 LibreELEC sh[569]: TSLIB_RES_Y: '(null)' May 19 14:01:29 LibreELEC sh[569]: TSLIB_TOUCH_HOME_TIME: '(null)' May 19 14:01:29 LibreELEC sh[569]: resolution: 0x0 May 19 14:01:29 LibreELEC systemd[1]: Started Touchscreen support daemon.
-
Hi, has anyone got this to work with eGalax tpouch screen?