__Plasma__
Posts: 29
Joined: Sat Mar 05, 2016 9:31 pm

Touchscreen Works in Raspian but not in Kodi, mouse works OK

Mon Apr 04, 2016 9:27 pm

I'm trying to build a media centre using an old ELO Touchscreen that is mounted in my kitchen wall.

I have an rPi 3 running latest Raspian Jesse.
I've upgraded Kodi to v16 from Pippleware Repo

The touchscreen works fine in Raspian, apart from I can't get right click working but I am investigating that separately.

Once I open Kodi the touchscreen becomes un-responsive and I have to use the mouse. :(

I know Kodi doesn't use X, and I'm guessing thats where the problem comes in, read a few places that Touchscreen support is being integrated slowly.

The info from the touchscreen is:

Code: Select all

I: Bus=0003 Vendor=04e7 Product=0020 Version=0100
N: Name="Elo TouchSystems, Inc. Elo TouchSystems 2700 IntelliTouch(r) USB Touchmonitor Interface"
P: Phys=usb-3f980000.usb-1.3/input0
S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:04E7:0020.0001/input/input0
U: Uniq=20000000
H: Handlers=mouse0 js0 event0 
B: PROP=0
B: EV=1b
B: KEY=10000 0 0 0 0 0 0 0 0
B: ABS=100 3
B: MSC=10
Some diagnostic info here:

Code: Select all

[email protected]:$ evtest
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
Available devices:
/dev/input/event0:	Elo TouchSystems, Inc. Elo TouchSystems 2700 IntelliTouch(r) USB Touchmonitor Interface
/dev/input/event1:	ELMCU iPazzPort
/dev/input/event2:	ELMCU iPazzPort
Select the device event number [0-2]: 0
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x4e7 product 0x20 version 0x100
Input device name: "Elo TouchSystems, Inc. Elo TouchSystems 2700 IntelliTouch(r) USB Touchmonitor Interface"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 272 (BTN_LEFT)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value    639
      Min        0
      Max     4095
    Event code 1 (ABS_Y)
      Value   1601
      Min        0
      Max     4095
    Event code 40 (ABS_MISC)
      Value      0
      Min        0
      Max      256
  Event type 4 (EV_MSC)
    Event code 4 (MSC_SCAN)
Properties:
Testing ... (interrupt to exit)
Event: time 1459809595.868723, type 3 (EV_ABS), code 0 (ABS_X), value 2078
Event: time 1459809595.868723, type 3 (EV_ABS), code 1 (ABS_Y), value 2564
Event: time 1459809595.868723, type 3 (EV_ABS), code 40 (ABS_MISC), value 67
Event: time 1459809595.868723, -------------- EV_SYN ------------
Event: time 1459809595.876726, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90001
Event: time 1459809595.876726, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 1459809595.876726, type 3 (EV_ABS), code 40 (ABS_MISC), value 87
Event: time 1459809595.876726, -------------- EV_SYN ------------
Event: time 1459809595.888725, type 3 (EV_ABS), code 40 (ABS_MISC), value 111
Event: time 1459809595.888725, -------------- EV_SYN ------------

I think the files I need to tweak are maybe:

Code: Select all

/etc/udev/rules.d/99-input.rules
/etc/udev/rules.d/10-permissions.rules
However I'm not sure what, I need to add to these. If anyone can give me any pointers that would be great.

Kind Regards

Plasma
Last edited by __Plasma__ on Fri Apr 08, 2016 3:22 pm, edited 2 times in total.

Rascas
Posts: 649
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: Touchscreen Works in Raspian but not in Kodi, mouse work

Wed Apr 06, 2016 1:21 pm

First, you have to configure your Touchscreen LCD to work properly in Raspbian. Most need to be calibrated to work properly.

After this, you have to setup Kodi properly also on Raspbian. See the complete instructions here, for my Kodi version, it has all the necessary permissions needed for that touchscreen:
viewtopic.php?f=66&t=109088&start=475#p936238

Then, try first on the Kodi 16 stable version. Kodi 17 is still in development and it is very likely to have bugs.

If after this, it is still not working properly, say what, and I will take a look if there is something that I can do.

__Plasma__
Posts: 29
Joined: Sat Mar 05, 2016 9:31 pm

Re: Touchscreen Works in Raspian but not in Kodi, mouse work

Wed Apr 06, 2016 4:55 pm

Rascas wrote:First, you have to configure your Touchscreen LCD to work properly in Raspbian. Most need to be calibrated to work properly.

After this, you have to setup Kodi properly also on Raspbian. See the complete instructions here, for my Kodi version, it has all the necessary permissions needed for that touchscreen:
viewtopic.php?f=66&t=109088&start=475#p936238

Then, try first on the Kodi 16 stable version. Kodi 17 is still in development and it is very likely to have bugs.

If after this, it is still not working properly, say what, and I will take a look if there is something that I can do.
Thanks I'll take a look and report back. I have the touchscreen working fully in Raspbian now, including calibration and right click.

Kind Regards

Plasma

__Plasma__
Posts: 29
Joined: Sat Mar 05, 2016 9:31 pm

Re: Touchscreen Works in Raspian but not in Kodi, mouse work

Fri Apr 08, 2016 2:56 pm

Rascas wrote:See the complete instructions here, for my Kodi version, it has all the necessary permissions needed for that touchscreen:
viewtopic.php?f=66&t=109088&start=475#p936238
Rascas I've had time to look at this now and unfortunately it still isn't working. I have downgraded back to Kodi 16 and I had already followed those instructions on another thread you replied to. As I was having trouble with Kodi locking up on exit, so I have checked and double checked all those files and permissions:

Code: Select all

[email protected]:~ $ sudo addgroup --system input
addgroup: The group `input' already exists as a system group. Exiting.

[email protected]:~ $ cat /etc/udev/rules.d/99-input.rules 
SUBSYSTEM==input, GROUP=input, MODE=0660
KERNEL==tty[0-9]*, GROUP=tty, MODE=0660

[email protected]:~ $ cat /etc/udev/rules.d/10-permissions.rules 
# input
KERNEL=="mouse*|mice|event*",   MODE="0660", GROUP="input"
KERNEL=="ts[0-9]*|uinput",     MODE="0660", GROUP="input"
KERNEL==js[0-9]*,             MODE=0660, GROUP=input
# tty
KERNEL==tty[0-9]*,            MODE=0666
# vchiq
SUBSYSTEM==vchiq,  GROUP=video, MODE=0660

[email protected]:~ $ sudo usermod -a -G audio pi
[email protected]:~ $ sudo usermod -a -G video pi
[email protected]:~ $ sudo usermod -a -G input pi
[email protected]:~ $ sudo usermod -a -G dialout pi
[email protected]:~ $ sudo usermod -a -G plugdev pi
[email protected]:~ $ sudo usermod -a -G tty pi
When Kodi opens the "Movies" selection is highlighted blue, when I tap the touch screen this de-selects and goes grey. So there is "some" interaction from the touch screen in Kodi but not much. To get my Touchscreen working and calibrated in X I added this to /usr/share/X11/xorg.conf.d/10-evdev.conf

Code: Select all

Section "InputClass"
        Identifier "elo touchscreen catchall"
        MatchProduct "2700 IntelliTouch"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "InvertY" "true"
        Option "Calibration" "50 4067 4040 27"
        Option "EmulateThirdButton" "1"
        Option "EmulateThirdButtonTimeout" "750"
        Option "EmulateThirdButtonMoveThreshold" "30"
EndSection

If there's anymore info I can provide that might shed more light on it I am happy to do so.

Kind Regards

Plasma

__Plasma__
Posts: 29
Joined: Sat Mar 05, 2016 9:31 pm

Re: Touchscreen Works in Raspian but not in Kodi, mouse work

Sun Apr 17, 2016 2:12 pm

Still struggling with this and no further forward. Any help would be appreciated.

Plasma

Rascas
Posts: 649
Joined: Tue Mar 11, 2014 6:18 pm
Location: Porto, Portugal
Contact: Website

Re: Touchscreen Works in Raspian but not in Kodi, mouse work

Sun Apr 17, 2016 7:19 pm

From a quick search I found that Elo TouchSystems 2700 IntelliTouch USB Touchmonitor is a very old touchscreen (from 2005 ?) and may not be supported in Kodi.
I checked my Kodi 16 packages again and they have all touchscreen patches currently available for Raspberry. At least, the foundation oficial touchscreen, waveshare screens, and even some chinese HDMI touchscreens are confirmed to work.
So I think this is some callibration problem with the touchscreen or not supported by Kodi. Like you already know, there is no X support in Kodi on the Raspberry Pi.
Post your problem in Kodi forums, maybe they can help you there.

__Plasma__
Posts: 29
Joined: Sat Mar 05, 2016 9:31 pm

Re: Touchscreen Works in Raspian but not in Kodi, mouse work

Sun May 22, 2016 6:35 pm

I'm still battling with this but I am now 99% there, I just need to tweak it!

I followed the manual instructions, on this page - http://markamc.traki-iski.co.uk/raspber ... uchscreen/

And have successfully installed "ts_lib", run the screen calibration utility and then installed "uimapper".

The good news is I can now get the Touchscreen working in KODI, however it looks like in KODI the touchscreen is only expected to be small, so the top left quadrant of the touchscreen works, but it covers the whole whole screen. e.g moving from the top left to the top middle, takes the mouse pointer all the way across the screen, and going top left to middle left takes it all the way to the bottom. I'm guessing this is just a matter of telling KODI (or the ts / uimapper config that the screen is taller and wider).

Any idea where the config files for these might be so I can look at tweaking them, or is there a setting in KODI?

Kind Regards

Plasma

xelum
Posts: 1
Joined: Wed Apr 05, 2017 8:38 pm

Re: Touchscreen Works in Raspian but not in Kodi, mouse work

Wed Apr 05, 2017 8:39 pm

Hi there, I am facing the exact same issue. Did you ever succeed?

Return to “Media centres”