Sorry TVPL but I don't know what kind of display is this.
But because RPi is using sd card for libreelec it very easy to test
Touchsupport
-
_Jackson_ -
March 21, 2016 at 2:25 PM -
Thread is Resolved
-
-
Sorry TVPL but I don't know what kind of display is this.
But because RPi is using sd card for libreelec it very easy to testSorry I don't understand ... HU on my CRV 2015 based on Android OS, pls explain me how to test case ?
Many thank ! -
Sorry I don't understand
Same here -
Hello,
yesterday I received my Lilliput FA1011 and wanna try the Touch. On Libreelec 7.90.009 it's found under Peripherals as "eGalx USB Touch Screen".
So far, so good, but I couldn't calibrate itI've installed Touchscreen Addon from "Install from Repository -> Services". But everytime I wanna run Addon, nothing happens till cycling for wait process.
Even if I make an clean install oder install stable Version of Libreelec and Update to the newest one. The Addon doesn't workThis message I got in KODI.log:
Code20:51:51.680 T:1610236832 WARNING: COMXImageFile::GetCodingType progressive images not supported by decoder 20:51:51.680 T:1610236832 NOTICE: LoadJpeg: unable to load /storage/.kodi/addons/service.touchscreen/resources/media/background.jpg
But Image is still on that Location.In config.txt I set:
And in Kodi I set Resolution to 1024x600p. After that I have to calibrate the Video Settings.Touch still works but only in upper right Corner. And when I slide up, the Cursor wents right and when I slide down, it wents left. Sliding right = Cursor up and sliding left = Cursor down.
Can someone help me getting Touchscreen work properly?
Thx forward
-
This addon doesn't work magically when it is installed - it must be manually configured as written multiple times.
In folder /storage/.kodi/userdata/addon_data/service.touchscreen there are few files. You need to copy ts.conf and ts_env.sh based on samples there. I don't know what kind of display is this. If it is real egalax then use files ts.conf-generic and ts_env.sh-sample. If this is waveshare type then use waveshare files. After reboot calibration should work.
-
Thx, I will try later, when I'm at home
Quote
it must be manually configured as written multiple times.
Well I've searched for Touch by Addons and find it. There was no tip about configuring anything. And this thread I found today
Maybe this should be written as Tip on Addon-Screen. -
Now I've renamed file ts-conf.generic to ts.conf and ts_env.sh-sample to ts_env.sh and rebooted, but the same behaviour as before
Then I tried it with the waveshare-Files. Result is the same.Here what evtest shows:
Code
Display MoreLibreELEC:~ # evtest No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: eGalax Inc. USB TouchController /dev/input/event1: eGalax Inc. USB TouchController /dev/input/event2: Dell Dell USB Keyboard Select the device event number [0-2]: 1 Input driver version is 1.0.1 Input device ID: bus 0x3 vendor 0xeef product 0x1 version 0x210 Input device name: "eGalax Inc. USB TouchController" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 320 (BTN_TOOL_PEN) Event code 330 (BTN_TOUCH) Event type 3 (EV_ABS) Event code 0 (ABS_X) Value 0 Min 30 Max 4040 Event code 1 (ABS_Y) Value 0 Min 60 Max 4035 Event type 4 (EV_MSC) Event code 4 (MSC_SCAN) Properties: Testing ... (interrupt to exit) *********************************************** This device is grabbed by another process. No events are available to evtest while the other grab is active. In most cases, this is caused by an X driver, try VT-switching and re-run evtest again. Run the following command to see processes with an open fd on this device "fuser -v /dev/input/event1" *********************************************** LibreELEC:~ # evtest No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: eGalax Inc. USB TouchController /dev/input/event1: eGalax Inc. USB TouchController /dev/input/event2: Dell Dell USB Keyboard Select the device event number [0-2]: 0 Input driver version is 1.0.1 Input device ID: bus 0x3 vendor 0xeef product 0x1 version 0x210 Input device name: "eGalax Inc. USB TouchController" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 272 (BTN_LEFT) Event code 273 (BTN_RIGHT) Event type 3 (EV_ABS) Event code 0 (ABS_X) Value 0 Min 42 Max 1981 Event code 1 (ABS_Y) Value 0 Min 42 Max 1981 Event type 4 (EV_MSC) Event code 4 (MSC_SCAN) Properties: Testing ... (interrupt to exit) *********************************************** This device is grabbed by another process. No events are available to evtest while the other grab is active. In most cases, this is caused by an X driver, try VT-switching and re-run evtest again. Run the following command to see processes with an open fd on this device "fuser -v /dev/input/event0" ***********************************************
And here KODI.log:
Code16:06:32.971 T:1565520800 WARNING: COMXImageFile::GetCodingType progressive images not supported by decoder 16:06:32.971 T:1565520800 NOTICE: LoadJpeg: unable to load /storage/.kodi/addons/service.touchscreen/resources/media/background.jpg 16:08:46.358 T:1962102784 ERROR: GetDirectory - Error getting plugin://service.touchscreen/ 16:08:46.358 T:1962102784 ERROR: CGUIMediaWindow::GetDirectory(plugin://service.touchscreen/) failed 16:09:21.391 T:1780478880 ERROR: CPythonInvoker(3, /storage/.kodi/addons/service.touchscreen/calibrate.py): script didn't stop in 5 seconds - let's kill it
Is there anything I have to change in ts.conf and ts_envh.sh or only rename files?
-
Code
Input device ID: bus 0x3 vendor 0xeef product 0x1 version 0x210 Input device name: "eGalax Inc. USB TouchController"
Seems to me this is waveshare thing.
In ts_env.sh change PRODUCT_PID to 0210.
But this was only tested with display which had PRODUCT_PID=0005 and I don't know if your display will work too. Because this is hidraw device there is another entry in ts.conf named
len=22 indicates how much data it sends on one touch. You can read more here and if didn't work try len=25. If you can't figure out then you would need to use xxd tool to analyze the hidraw data (not included in addon).Also if using non-waveshare display then in file ts_env.sh TOUCHSCREEN_NAME variable must be set.
-
vpeter
Thx for your helpThis is what lsusb shows:
I took the waveshare-files and renamed them. I changed the PRODUCT_PID as you've written to 210. But still the same behaviour. The Addon will not start. The only thing I see is the rotate circle
Here is KODI-Log:
Code
Display More17:58:36.482 T:1823470496 NOTICE: Register - new joystick device registered on addon->peripheral.joystick/0: eGalax Inc. USB TouchController 17:58:37.249 T:1961709568 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList" 17:58:38.261 T:1961709568 NOTICE: initialize done 17:58:38.261 T:1961709568 NOTICE: Running the application... 17:58:38.305 T:1961709568 NOTICE: starting zeroconf publishing 17:58:38.309 T:1961709568 NOTICE: CWebServer[8080]: Started 17:58:38.309 T:1961709568 NOTICE: starting upnp client 17:58:38.326 T:1678013344 NOTICE: ES: Starting UDP Event server on port 9777 17:58:38.326 T:1678013344 NOTICE: UDP: Listening on port 9777 (ipv6 : false) 17:58:39.011 T:1753887648 WARNING: CSkinInfo: failed to load skin settings 17:58:48.317 T:1779430304 ERROR: GetDirectory - Error getting 17:58:48.489 T:1471722400 ERROR: Previous line repeats 2 times. 17:58:48.489 T:1471722400 WARNING: COMXImageFile::GetCodingType progressive images not supported by decoder 17:58:48.489 T:1471722400 NOTICE: LoadJpeg: unable to load /storage/.kodi/addons/service.touchscreen/resources/media/background.jpg
-
-
-
Good. I assume you need to adjust len parameter in ts.conf.
Sadly tool xxd is not included by addon. Which RPi image version you are using and I will compile it for you. -
Main Problem is that I only have touch (appr. 5cm x 5xm) on the right Corner with inverted touch controls. Means, when I slide up, the Cursor will move left and vice versa, and when I slide left, Cursor will move up.
It would be great if you would compile it. I'm using latest libreelec 7.90.009 for my Rpi3.
I'm using this Version only for testing because there is Touch Control integrated.
What I need is an stable Version of libreelec with KODI v17 because this would be the client for my wife's TV in Kitchen -
If your cursor movement is good then it is just a matter of calibration the screen I think.
Regarding inverted screen: in file ts.conf add swap_xy=1 to line with module linear like it is done in ts.conf-generic. -
Well Cursor movement isn't really good, because there is only an area about 5x5cm in the right Corner where the Touch is working.
The Rest of Display is Touchless area. And I couldn't reach all Areas of Display with Cursor. I've played with Settings in "Peripherals -> eGalax USB Touchscreen" but this wont help. -
And I couldn't reach all Areas of Display with Cursor.
That's why display needs to be calibrated -
Of course
Well I've also read about modifying the advancesettings.xml for KODI v17 Krypton.
Code<touchscreen> <x_offset>0</x_offset> <!-- set pixel x offset to align it to the used display--> <y_offset>0</y_offset> <!-- set pixel y offset to align it to the used display--> <x_stretch_factor>1.0</x_stretch_factor> <!-- stretch/compress the touch x axis--> <y_stretch_factor>1.0</y_stretch_factor> <!-- stretch/compress the touch y axis--> </Touchscreen>
But where I can get the Offset Parameters?
-
But where I can get the Offset Parameters?
I think this is black magic When you figure out let me know. Or ask kodi devs. Last time I checked raw coordinates were not exposed in kodi which means calibration addon is not possible. -