Kodi Community Forum

Full Version: [LINUX] XBMC and Touchscreen on Linux?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
[quote=succo]what kind of howto do you need?
as far as i can see evtouch doesn't seem to work with any touchscreen, so, if it receives events on yours (as me) you're lucky Smile
again, even if it works better that evtouch (at least for me) there is no calibration tool, so i had to use the data submitted to evtouch...
anyway, have you got any output from your /dev/input/eventX device with input-event when moving around the screen/tapping on it?[/QUOT

/dev/input# ls
by-id by-path event0 event1 event2 event3 event4 event5 event6 event7 event8 mice mouse0 mouse1 mouse2 mouse3

and touchscreen works in ubutu but like you said static in xbmc i have a shuttle x50 running

tryed to setup the xorg with the info

Section "InputDevice"
Identifier "touchscreen"
Driver "evtouch"
Option "Device" "/dev/input/event6"
Option "DeviceName" "touchscreen"
Option "MinX" "548"
Option "MinY" "789"
Option "MaxX" "3560"
Option "MaxY" "3269"
Option "ReportingMode" "Raw"
Option "SendCoreEvents" "On"
Option "SwapX" "true"
EndSection

Section "InputDevice"
Identifier "dummy"
Driver "void"
Option "Device" "/dev/input/mice"
EndSection

xinput set-int-prop "touchscreen" "Evdev Axis Calibration" 16 3535 842 614 3269
Unable to connect to X server


:/dev/input# ls /dev/input/by-id
usb-04d9_1101-event-kbd usb-04d9_1101-kbd usb-Logitech_Optical_USB_Mouse-event-mouse usb-Logitech_Optical_USB_Mouse-mouse usb-_USB_Keyboard-event-kbd
:/dev/input# ls by-path
pci-0000:00:1d.2-usb-0:1:1.0-event-mouse pci-0000:00:1d.3-usb-0:1:1.0-event-kbd pci-0000:00:1d.7-usb-0:8.3:1.0-kbd
pci-0000:00:1d.2-usb-0:1:1.0-mouse pci-0000:00:1d.7-usb-0:8.3:1.0-event-kbd platform-pcspkr-event-spkr

checked all events but they don't seem to give any info for the touchscreen


and after some looking around i found

:/dev/usb# ls
hiddev0

i think this is where the info comes into of the touchscreen with evtouch
so you're using evtouch... as i said, i solved UNinstalling evtouch and using evdev... if you're using evtouch i think bruno can be of much more help than me
anyway, what does dmesg say about touchscreen? are you sure it's on dev/input/event6? did you try to listen to it with input-event and see if anything is captured?
Section "InputDevice"
Identifier "touchscreen"
Driver "evdev"
Option "Device" "/dev/usb/hiddev0"
Option "DeviceName" "touchscreen"
Option "MinX" "548"
Option "MinY" "789"
Option "MaxX" "3560"
Option "MaxY" "3269"
Option "ReportingMode" "Raw"
Option "SendCoreEvents" "On"
Option "SwapX" "true"
EndSection

Section "InputDevice"
Identifier "dummy"
Driver "void"
Option "Device" "/dev/input/mice"
EndSection


dmesg gives

[ 20.164906] usbcore: registered new interface driver usbtouchscreen

xinput still giving errors
# xinput set-int-prop "touchscreen" "Evdev Axis Calibration" 16 3535 842 614 3269
Unable to connect to X server
ahem... are you running live?
i set that command to auto-execute on xorg session start in my installment, as you need to be running x to run it, but it's a full ubuntu installation, not a minimal/live version
no sorry running full version

can you explain where you set that command ?
i set it in .xsession
still no go,

I starting to think i'm gonna install windows. its agains all my better jugment. but ....... i see no way out Sad
Hi all ^^
i try to search a solution for this problem...lots of post about it around the world Wink.

(Scuse my english...i'm french)

Well...I have Babylon (XBMC 9.04) installed on a SSD with Point Of View ION M330.
I have a 8' tft touchscreen and i'm trying to use MARK-III skin (think easy skin for mouse / touchscreen).

This touchscreen is drived by evtouch.
It work perfectly on ubuntu 9.04 after some modifications.
However, I have a strange effect on Babylon:
To have clic effect, i must to "drag (the mouse to the button) and unpress" the touchscreen...Oo

I had thinck about xorg.conf configuration but it seem to have no effect with XBMC...
You know that touchscreen emulate mouse...

I hope those informations can help us to solve this problem...

Iko
Hi everybody,

I had a lot of troubles to make my touchscreen work with Ubuntu :
I tried evtouch (and all the other included drivers) without any good result.

The only one I got working was evtouch. Calibration was ok but while left click was working well on the desktop, left click was NOT working in xbmc Eek
I was not able to do a drag'n'drop also on the desktop.

After searching for days on the internet, I found a tutorial on the French Ubuntu help website (could not find it again, grrrrrr!) with a link to this driver. There is a readme file inside which explain the VERY easy steps.
Another link that may be usefull :
http://tzilla.is-a-geek.com/articles/egalax/

If you uninstall all others drivers and restart, the driver has worked out of the box for me.

I hope it will help some of you Smile
I give you my way to make evtouch driver for my egalax 8'' tft touchscreen:
Work perfectly on ubuntu 9.04

Code:
1.
sudo gedit  /etc/udev/rules.d/10-local.rules (create it)

SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="eGalax Inc. USB TouchController", SYMLINK+="input/touchscreen"


2.
cd /tmp

apt-get build-dep xserver-xorg-input-evtouch

apt-get source xserver-xorg-input-evtouch

cd xf86-input-evtouch-0.8.8/

3.
rm debian/patches/02-buttonless-device.patch

wget -O debian/patches/02-buttonless-device.patch http://launchpadlibrarian.net/26529094/02-buttonless-device.patch

echo 02-buttonless-device.patch >> debian/patches/series

4.

dpkg-buildpackage (for the xserver...deb)

next is xorg.conf modification:

Code:
Section "ServerLayout"
        Identifier "Default Layout"
    Screen    "Default Screen"
        InputDevice "touchscreen" "SendCoreEvents"
EndSection

Section "InputDevice"
        Identifier "touchscreen"
        Driver "evtouch"
        Option "Device" "/dev/input/touchscreen"
    Option "DeviceName" "touchscreen"
    Option "MinX"            "155"
    Option "MinY"            "85"
    Option "MaxX"            "1900"
    Option "MaxY"            "1935"
    Option    "ReportingMods"         "Raw"
    Option    "Emulate3Buttons"    
    Option    "Emulate3Timeouts"     "50"
    Option    "SendCoreEvents"    "on"
    Option    "MoveLimit"         "10"
    #Option    "Calibrate"         "1"
    Option    "Rotate"        "cw"
    #Option "SwapX"            "1"
    #Option "SwapY"            "1"
    Option    "LongTouchTimer"    "500"
    Option    "longtouch_action"    "click"
    Option    "longtouch_button"    "2"
    Option    "TapTimer"        "0"
EndSection

And just restart ^^

Have you some ideas about how xbmc mouse gesture?
Bruno Wrote:Ciao Succo, (ti scrivo in inglese perche magari l'argomento interessa altri)
I suppose that the touchscreen works perfectly with other sw, and that you are able to use click functionalities with the OS.
Wrt to my problem, I ended up modifying and recompiling the code: my problem arises from incompatibility between SDL and my touchscreen

If you are a programmer, I suggest you the following approach:
download SDL library (http://www.libsdl.org/)
Then, download some SDL code for handling mouse events (like http://www.siforge.org/articles/2004/09/..._tile.html) and compile it.
Then check if you are able to interact with this application in the proper way ...

I hope not! If your touchscreen doesn't work with this sw and if you notice the same behaviour than in xbmc than ... you will know that it comes from the SDL library (xbmc is built upon this library).

In my case, I was quite lucky: I just changed one line (line 62: SDL_ShowCursor(0); putting 1 instead of 0), recompiled and my touchscreen started working perfectly!

When you will have solved your problem, come back in touch: you will discover that there is no way to simulate the right click(this event allows to go the parent menu) ... sorry I should say, there WAS no way!

I have now implement a finger movement recognition to run those kind of events: now my touchscreen works fine even with skins that have no 'back' buttons

-- unfortunatly aeon and MediaStream are still not compatibles --

Hi Guys,

I got a problem, i got a eGTalaxyTouch screen and want to let it work with XBMC under Linux
I Got the 9.11 live cd installed, installed drivers and configured xorg.conf.

The problem i get is that i cant use the pointer in full screen, when i touch the screen its going away.
When i switch to "Windowed" mode it works perfectly! does somebody has a clue where to look?
Will the "Dirty Patch" of Bruno as quoted fix my problem?
Hope somebody can and will help!

Thanks in advanced!
I have an Elo Touchscreen and have exactly the same problem.
It was function in the past few months.
Now the touchscreen functionality its gone.
i dont know why.
i have tried to install xserver-xorg-input-evtouch again
any help, please
i have seen also the xorg.conf file and everything seems ok
Pages: 1 2 3