XBMC Community Forum
[LINUX] XBMC and Touchscreen on Linux? - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Linux and Live support (/forumdisplay.php?fid=52)
+---- Thread: [LINUX] XBMC and Touchscreen on Linux? (/showthread.php?tid=47263)

Pages: 1 2 3 4 5


- locu - 2009-07-20 20:11

[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


- succo - 2009-07-20 21:03

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?


new xorg - locu - 2009-07-20 21:29

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


- succo - 2009-07-20 22:52

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


- locu - 2009-07-21 07:06

no sorry running full version

can you explain where you set that command ?


- succo - 2009-07-21 08:03

i set it in .xsession


still a no go - locu - 2009-07-21 12:17

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


- ikoria - 2009-07-29 10:36

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


- LoloMc² - 2009-07-29 12:28

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


- ikoria - 2009-07-29 13:19

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?