{"action":"created","issue":{"url":"https://api.github.com/repos/kergoth/tslib/issues/39","repository_url":"https://api.github.com/repos/kergoth/tslib","labels_url":"https://api.github.com/repos/kergoth/tslib/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/kergoth/tslib/issues/39/comments","events_url":"https://api.github.com/repos/kergoth/tslib/issues/39/events","html_url":"https://github.com/kergoth/tslib/issues/39","id":137926491,"number":39,"title":"Zytronic BTC_ZXY100-U-OFF-32-A not working with tslib","user":{"login":"RazZziel","id":42769,"avatar_url":"https://avatars.githubusercontent.com/u/42769?v=3","gravatar_id":"","url":"https://api.github.com/users/RazZziel","html_url":"https://github.com/RazZziel","followers_url":"https://api.github.com/users/RazZziel/followers","following_url":"https://api.github.com/users/RazZziel/following{/other_user}","gists_url":"https://api.github.com/users/RazZziel/gists{/gist_id}","starred_url":"https://api.github.com/users/RazZziel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RazZziel/subscriptions","organizations_url":"https://api.github.com/users/RazZziel/orgs","repos_url":"https://api.github.com/users/RazZziel/repos","events_url":"https://api.github.com/users/RazZziel/events{/privacy}","received_events_url":"https://api.github.com/users/RazZziel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-02T16:40:47Z","updated_at":"2016-03-03T10:34:53Z","closed_at":null,"body":"I'm trying to make the following Zytronic BTC_ZXY100-U-OFF-32-A USB touchscreen with Qt5/EGLFS on a Raspberry Pi 2 with Raspian and libts-0.0-0:armhf 1.0-12:\r\n```\r\nBus 001 Device 035: ID 14c8:0005 Zytronic \r\nDevice Descriptor:\r\n  bLength                18\r\n  bDescriptorType         1\r\n  bcdUSB               2.00\r\n  bDeviceClass            0 (Defined at Interface level)\r\n  bDeviceSubClass         0 \r\n  bDeviceProtocol         0 \r\n  bMaxPacketSize0        64\r\n  idVendor           0x14c8 Zytronic\r\n  idProduct          0x0005 \r\n  bcdDevice            1.00\r\n  iManufacturer           1 Zytronic Displays Limited\r\n  iProduct                2 Zytronic Touchscreen Controller\r\n  iSerial                 0 \r\n  bNumConfigurations      1\r\n  Configuration Descriptor:\r\n    bLength                 9\r\n    bDescriptorType         2\r\n    wTotalLength           34\r\n    bNumInterfaces          1\r\n    bConfigurationValue     1\r\n    iConfiguration          0 \r\n    bmAttributes         0xa0\r\n      (Bus Powered)\r\n      Remote Wakeup\r\n    MaxPower              100mA\r\n    Interface Descriptor:\r\n      bLength                 9\r\n      bDescriptorType         4\r\n      bInterfaceNumber        0\r\n      bAlternateSetting       0\r\n      bNumEndpoints           1\r\n      bInterfaceClass         3 Human Interface Device\r\n      bInterfaceSubClass      0 No Subclass\r\n      bInterfaceProtocol      0 None\r\n      iInterface              0 \r\n        HID Device Descriptor:\r\n          bLength                 9\r\n          bDescriptorType        33\r\n          bcdHID               1.01\r\n          bCountryCode            0 Not supported\r\n          bNumDescriptors         1\r\n          bDescriptorType        34 Report\r\n          wDescriptorLength     219\r\n         Report Descriptors: \r\n           ** UNAVAILABLE **\r\n      Endpoint Descriptor:\r\n        bLength                 7\r\n        bDescriptorType         5\r\n        bEndpointAddress     0x81  EP 1 IN\r\n        bmAttributes            3\r\n          Transfer Type            Interrupt\r\n          Synch Type               None\r\n          Usage Type               Data\r\n        wMaxPacketSize     0x0040  1x 64 bytes\r\n        bInterval               8\r\nDevice Status:     0x0002\r\n  (Bus Powered)\r\n  Remote Wakeup Enabled\r\n```\r\nwhich is detected as:\r\n```\r\n/dev/input/event0\r\n/dev/input/mouse0\r\n/dev/input/by-path/platform-3f980000.usb-usb-0:1.2:1.0-event\r\n/dev/input/by-id/usb-Zytronic_Displays_Limited_Zytronic_Touchscreen_Controller-event-if00\r\n```\r\n\r\n`ts_calibrate` doesn't recognice touchs at all, and neither does `ts_print`. When I use `module_raw ucb1x00` instead of `module_raw input`, `ts_print` starts recognizing activity when I slide my finger on the touchscreen, but `ts_calibrate` still refuses to work.\r\n\r\nIf it helps, this is the output of evtest when touching, sliding and raising my finger: https://clbin.com/dGBLI. It looks pretty standard to me:\r\n\r\n* type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1\r\n* type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3623\r\n* type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 1298\r\n* type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0"},"comment":{"url":"https://api.github.com/repos/kergoth/tslib/issues/comments/191698967","html_url":"https://github.com/kergoth/tslib/issues/39#issuecomment-191698967","issue_url":"https://api.github.com/repos/kergoth/tslib/issues/39","id":191698967,"user":{"login":"RazZziel","id":42769,"avatar_url":"https://avatars.githubusercontent.com/u/42769?v=3","gravatar_id":"","url":"https://api.github.com/users/RazZziel","html_url":"https://github.com/RazZziel","followers_url":"https://api.github.com/users/RazZziel/followers","following_url":"https://api.github.com/users/RazZziel/following{/other_user}","gists_url":"https://api.github.com/users/RazZziel/gists{/gist_id}","starred_url":"https://api.github.com/users/RazZziel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RazZziel/subscriptions","organizations_url":"https://api.github.com/users/RazZziel/orgs","repos_url":"https://api.github.com/users/RazZziel/repos","events_url":"https://api.github.com/users/RazZziel/events{/privacy}","received_events_url":"https://api.github.com/users/RazZziel/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T10:34:53Z","updated_at":"2016-03-03T10:34:53Z","body":"With `module_raw input`, ts_print_raw` doesn't print anything (and neither does `ts_print`), but with `module_raw ucb1x00`, `TSLIB_TSDEVICE=/dev/input/event0 ts_print_raw` does get events, and so does `ts_print`.\r\n\r\nThis is what `ts_print_raw` shows with `ucb1x00` after a quick touch:\r\n```\r\n3735555.000054:  22232  51233   4406\r\n3473411.002078:  22232  51233   4406\r\n3538947.001979:  22232  51233   4406\r\n21626881.000001:  22232  51233   4406\r\n3.002078:  22232  51233   4406\r\n65539.001979:  22232  51233   4406\r\n0.000000:  22232  51233   4406\r\n3735555.-00001:  22232   1656   4406\r\n21626881.000000:  22232   1656   4406\r\n0.000000:  22232   1656   4406\r\n```\r\nand after a slide\r\n```\r\n3735555.000055:  22232  45507   4455\r\n3473411.001804:  22232  45507   4455\r\n3538947.001465:  22232  45507   4455\r\n21626881.000001:  22232  45507   4455\r\n3.001804:  22232  45507   4455\r\n65539.001465:  22232  45507   4455\r\n0.000000:  22232  45507   4455\r\n3473411.001826:  22232  34457   4455\r\n3538947.001468:  22232  34457   4455\r\n3.001826:  22232  34457   4455\r\n65539.001468:  22232  34457   4455\r\n0.000000:  22232  34457   4455\r\n3473411.001833:  22232  42476   4455\r\n3538947.001469:  22232  42476   4455\r\n3.001833:  22232  42476   4455\r\n65539.001469:  22232  42476   4455\r\n0.000000:  22232  42476   4455\r\n3473411.001843:  22232  50450   4455\r\n3538947.001471:  22232  50450   4455                                                                                                                              \r\n(...)\r\n```\r\n\r\nThe output of `ts_print` is very similar. Still, `ts_calibrate` doesn't react, even with `ucb1x00` and with a working `ts_print`."}}