touchscreen only works on upper left corner, a possible method to calibrate?
#16
Quote: You fail to provide any meaningful information such as which touchscreen model you have, yet you rant and whine.
Such an attitude won't get you any help.

You're right, I overreacted, and I'm sorry and own up to it.

As far as the info on the screen, I did:
Code:
lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 0c24:000e Taiyo Yuden Bluetooth Device(BC04-External)
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 0eef:0005 D-WAV Scientific Co., Ltd
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0430:0530 Sun Microsystems, Inc.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

the "Bus 005 Device 002: ID 0eef:0005 D-WAV Scientific Co., Ltd" entry is the touch screen device. What's weird is that the egalax screens say the everything minus "egalax", suggesting that it's a close clone to it.

When I increase the verbosity with sudo lsusb -vv:
Code:
Bus 005 Device 002: ID 0eef:0005 D-WAV Scientific Co., Ltd
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0eef D-WAV Scientific Co., Ltd
  idProduct          0x0005
  bcdDevice            2.00
  iManufacturer           1 RPI_TOUCH
  iProduct                2 By ZH851
  iSerial                 3 iz785322U335
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           41
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      33
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              16
Device Status:     0x0000
  (Bus Powered)

and on dmesg:
Code:
[ 3518.984098] usb 5-2: new full-speed USB device number 3 using uhci_hcd
[ 3519.152112] usb 5-2: New USB device found, idVendor=0eef, idProduct=0005
[ 3519.152118] usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3519.152121] usb 5-2: Product: By ZH851
[ 3519.152123] usb 5-2: Manufacturer: RPI_TOUCH
[ 3519.152126] usb 5-2: SerialNumber: iz785322U335
[ 3519.160526] hid-generic 0003:0EEF:0005.0003: hiddev0,hidraw1: USB HID v1.10 Device [RPI_TOUCH By ZH851] on usb-0000:00:1d.0-2/input0

I was able to get the drivers and make them work with osmc and the touch does work, but only on the left upper corner as mentioned. I can touch anywhere on the screen while it is on the screensaver and osmc wakes up, suggesting that the screen works, but kodi needs something to map those touch events to the framebuffer, which is where I am at now.
Reply
#17
It's a really big problem. But not Kodi's problem) MOST popular touchscreens are "weird chinese touchscreens". Most of ALL touchscreens uses the same hardware drivers. Almost all solutions of this problem are for OpenELEC, OSMC etc... Furthermore, solutions are old and often not compatible with up-to-date versions of software.
But I finally got it!!! Compiled Kodi 14.2 following this tutorial: http://arendwierks.blogspot.nl/p/touchsc...-kodi.html (old post but is very hard to find)
There is one more solution, which, maybe, is better: http://forum.kodi.tv/showthread.php?tid=162608&page=3 (solution is on page 1. This is new a solution by ultraman (aka Peter Vicman), maybe 1 month old).
Now I have Kodi 14.2, RetroPie, Iceweasel on Raspbian 2015-05-05. All working perfect with eGalax.
Thank all guy writing software and such posts with tutorials.
Reply
#18
Thanks x3merrus. I'll give this a try.

I'm very sorry I was such an asshole here guys. I don't know what came over me. Stress and the high summer heat and humidity where I live I guess. You're right, it wasn't kodi's problem.
Reply
#19
Here is a great way to apologize....

https://kodi.tv/contribute/donate/
Reply
#20
(2015-07-23, 15:29)whitebelly Wrote: Here is a great way to apologize....

https://kodi.tv/contribute/donate/

I just now donated $1.
Reply
#21
The second solution in @x3merrus' post looks very good to me.
Uinput + tslib should get the job done.
Reply
#22
I understand thebestofall007's indignation. I'm a noob in UNIX systems. And I was shocked when faced with this problem. It's unbelievable for Windows users) (it DOES NOT mean, that Windows is better than UNIX)
If some one will use the ultraman's solution (second one), please write your result here http://forum.kodi.tv/showthread.php?tid=162608 and, maybe, tutorial)
Reply
#23
(2015-07-23, 18:49)x3merrus Wrote: I understand thebestofall007's indignation. I'm a noob in UNIX systems. And I was shocked when faced with this problem. It's unbelievable for Windows users) (it DOES NOT mean, that Windows is better than UNIX)
If some one will use the ultraman's solution (second one), please write your result here http://forum.kodi.tv/showthread.php?tid=162608 and, maybe, tutorial)

Maybe the post you named could become a sticky Wink
Reply
#24
I add waveshare touschscreen support in my tslib library. If anyone is interested...

The problem is that I build whole solution for OpenELEC. And I don't use any other distribution to prepare build/run instructions. Not to mentioned I don't even own egalax and waveshare and any other type of touchscreens.

But tslib is standard build - nothing fancy. Just needs to compile, install, configure and run one daemon program before Kodi. It should be easy on every other distro especially because OpenELEC is readonly and everything must be cross compiled.

Working touchscreen data:
Bus 001 Device 005: ID 0eef:0005 D-WAV Scientific Co., Ltd

DRIVER=hid-generic
HID_ID=0003:00000EEF:00000005
HID_NAME=RPI_TOUCH By ZH851
HID_PHYS=usb-3f980000.usb-1.5/input0
HID_UNIQ=3�785321R469
MODALIAS=hid:b0003g0001v00000EEFp00000005

hidraw data length: 22 bytes
Reply
#25
Hello everyone,
I am using Raspberry Pi offical display. On Rasbian OS touch screen works well but when I installed Kodi, only on top left cornor of display shows mouse coursor at correct position. I have tried using xinput_calibration but still no success. Where I am going wrong?

Thanks in advance
Neeraj
Reply
#26
neeraj3728, I think you need to set something in your config.txt file.
Reply
#27
managed to fix touch input by aligning touch input with screen, for my well cheap 800x480 touchscreen
(working on raspbian - pi3)


(from command line)
sudo startx
go to folder; user/share/kodi/system
open advancedsettings.xml (with text editor)

and paste: (in between <advancedsettings> and </advancedsettings>

<touchscreen>
        <x_offset>-36.00</x_offset> 
        <y_offset>-41.00</y_offset> 
        <x_stretch_factor>0.21</x_stretch_factor>
        <y_stretch_factor>0.132</y_stretch_factor>
</touchscreen>

the top 2 x & y's adjust screen positioning and size
and the bottom two adjust touch screen input size

(took me a while to figure out!!!!!!)

Safe tho G.
Reply
#28
Don't edit system files, it will be overwritten on updates, use the user configuration files instead:
http://kodi.wiki/view/advancedsettings.xml
Reply
#29
please help me guys,

This link describes my problem which is related to the thread's topic:
Raspberry Pi forums.

I've tried many methods including the advancedsettings.xml, with no luck Sad
Reply

Logout Mark Read Team Forum Stats Members Help
touchscreen only works on upper left corner, a possible method to calibrate?0