I think for starters I will make community builds with this feature and later we can move forward.I have only two special LVDS displays which are working ootb and for all others some manual config must be made.

I've build a community image of LibreELEC 7.0.1 for egalax touchscreens with "vpeter's" tslib approach.

I've also build a LibreELEC 7.0.1 image for Faytech touchscreens with integrated 3rd party drivers.

First of all, I'm not a developer I've just followed a few tutorials and was successfull

you can download the LibreELEC 7.0.1 image with egalax support and tslib integration here

you can download the LibreELEC 7.0.1 image with egalax support and tslib integration for Faytech touchscreens here-> it should work out of the box, if there is a calibration problem just go to programm section and start the calibration addon and touch the five crosses (do not plug in any keybord or other USB device before Kodi is loaded, except WiFi)

For installation of non Faytech touchscreens follow this tutorial after the building process at the line with the beginning "Start a ssh session with your Pi2"

-> The possible versions of LibreELEC you can checkout are available on Github --> here I chose the latest stable version 7.0.1

3.) Cross-Compile a clean build to check possible errors:

- The building process takes a few hours, depending on your hardware. With my hardware (quad core 4x4Ghz) ca. 2 hours. - The following command is for building an image for Raspberry Pi 2 & 3

Code

PROJECT=RPi2 ARCH=arm make image

- After this Cross-Compiling process you should have a working LibreELEC 7.0.1 Image in the target folder -> /LibreELEC.tv/target - For a test you can unpack and install 'LibreELEC-RPi2.arm-7.0.1.img.gz' to your Rasberry Pi 2 or 3 SD-Card

4.) In this step we intergate the 'tslib approach' from vpeter into LibreELEC to get egalax touchscreen support:

- Download tslib --> here - Unzip the content and copy the tslib folder to LibreELEC.tv/packages - Now we have to edit the package.mk in LibreELEC.tv/packages/linux to integrate tslib into the building process

->SSH-Login: root / SSH-Password: libreelec - If you got a tochscreen e.g with 4:3 ratio and a resolution of 1024x768 we change first the resulution in config.txt (a list with more hdmi_groups & hdmi_modes you can find here )

Code

mount -o remount,rw /flash

nano /flash/config.txt

- copy the following lines at the end of config.txt

Code

hdmi_group=2

hdmi_mode=16

-> Exit with--> Ctrl+x-> Save with--> y-> Confirm with--> Enter

Code

mount -o remount,ro /flash

reboot

- Start a new SSH-Session and run the following commands:

Code

systemctl stop kodi

cd /storage/.config/ts

cp ts_env.sh-sample ts_env.sh

cp ts.conf-generic ts.conf

- Checkout the input/event number your touchscreen has got with 'evtest'

Code

evtest

-> Choose each number and touch your screen to see if there is a output. If you get an output from your touchscreen remember the input/event number.-> Exit or cancel 'evtest' with--> Ctrl+c

-> change the number from "/dev/fb0" to your Frame Buffer Device you have got from 'ls /dev/fb*'-> for example: sed -i 's|export TSLIB_FBDEVICE=.*|export TSLIB_FBDEVICE=/dev/fb3|g' /storage/.config/ts/ts_env.sh

- Creating autostart.sh

Code

nano /storage/.config/autostart.sh

copy the following lines:

Shell-Script

#!/bin/sh

(sleep 3; \

. /usr/bin/ts_env.sh;

ts_uinput_touch -x 1024-y 768

)&

--> If you have set a different resolution before in 'config.txt' (hdmi_group & hdmi_mode) you have to use it here.

-> Exit with--> Ctrl+x-> Save with--> y-> Confirm with--> Enter

- Calibration

Code

. /usr/bin/ts_env.sh

ts_uinput_touch -x 1024 -y 768

-> If you have set a different resolution before in 'config.txt' (hdmi_group & hdmi_mode) you have to use it here.

@ Grruhn: also a big thank you from me! yesterday I compiled, today I installed Libreelec with Touchsupport on my Nuc's in the kitchen and in the bathroom - they are attached on egalax Touchscreens. everything went fine and now in every room is the same system like in the livingroom - no Kodibuntu anymore

_Jackson_ thats great to hear! Don't forget to thank vpeter, his work on the tslib approach and his great support to me made it possible for me to write this tutorial, in the past in openelec forum and nowerdays at this great LibreELEC project.