{"action":"created","issue":{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/126","labels_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/126/comments","events_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/126/events","html_url":"https://github.com/OpenKinect/libfreenect2/issues/126","id":53993588,"number":126,"title":"setIrInterfaceState failed with libusb error -99 on Ubuntu 14.4.1 (console output only, no windows)","user":{"login":"gnbl","id":1181708,"avatar_url":"https://avatars.githubusercontent.com/u/1181708?v=3","gravatar_id":"","url":"https://api.github.com/users/gnbl","html_url":"https://github.com/gnbl","followers_url":"https://api.github.com/users/gnbl/followers","following_url":"https://api.github.com/users/gnbl/following{/other_user}","gists_url":"https://api.github.com/users/gnbl/gists{/gist_id}","starred_url":"https://api.github.com/users/gnbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnbl/subscriptions","organizations_url":"https://api.github.com/users/gnbl/orgs","repos_url":"https://api.github.com/users/gnbl/repos","events_url":"https://api.github.com/users/gnbl/events{/privacy}","received_events_url":"https://api.github.com/users/gnbl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-11T14:46:35Z","updated_at":"2015-01-17T14:47:56Z","closed_at":null,"body":"*Updated summary:*\r\nXbox NUI Sensor (device firmware: 1.1.3327.0.7) with modified USB cable (A plug) on Renesas Technology Corp. uPD720202 USB 3.0 Host Controller gives the following error in protonect, causing no image output (see full listing in a later comment):\r\n```\r\n[ 0.845745] [00000d21] libusb: error [op_set_interface] setintf failed error -1 errno 28\r\n[UsbControl::setIrInterfaceState] failed! libusb error -99: LIBUSB_ERROR_OTHER\r\n```\r\nUbuntu 14.4.1 64 bit\r\nKernel 3.13.0-43-generic\r\nCPU Intel Core2 Duo\r\n\r\nHow can I verify that the patched libusb is being linked?\r\n\r\n---\r\n\r\nFollowing the instructions from https://github.com/OpenKinect/libfreenect2#ubuntu-1404-perhaps-earlier for a fresh Ubuntu 14.4.1 amd64 install I found the following dependecies neccessary:\r\n```\r\n~$ sudo apt-get update\r\n~$ sudo apt-get install git build-essential libtool cmake libx11-dev checkinstall mesa-utils mesa-common-dev automake libudev-dev libgl-dev libxrandr-dev libxi-dev libglu1-mesa-dev libturbojpeg libopencv-dev \r\n```\r\nThe XBOX Kinect apparently has the same USB IDs as the preview Kinect for Windows, libfreenect2 uses both when looking for devices.\r\n\r\nRunning requires priviliges `sudo ./bin/Protonect`or modifying the device rights as describet at https://groups.google.com/forum/#!topic/openkinect/qdCWdXGxIog , otherwise it will not find the device:\r\n```\r\n[Freenect2Impl] failed to open Kinect v2 @10:2!\r\n[Freenect2Impl] found 0 devices\r\n[Freenect2Impl] requested device 0 is not connected!\r\n```\r\n\r\nOnce running, I get the following output in the console, but no graphical output or window (data removed):\r\n\r\n```\r\n:~/libfreenect2/examples/protonect$ sudo ./bin/Protonect\r\n[Freenect2Impl] enumerating devices...\r\n[Freenect2Impl] 16 usb devices connected\r\n[Freenect2Impl] found valid Kinect v2 @10:2 with serial xxxxxxxx\r\n[Freenect2Impl] found 1 devices\r\n[Freenect2DeviceImpl] opening...\r\n[Freenect2DeviceImpl] opened\r\n[Freenect2DeviceImpl] starting...\r\n[Freenect2DeviceImpl] ReadData0x14 response\r\n92 bytes of raw data\r\n0x0000:  \r\n0x0010:  \r\n0x0020:  \r\n0x0030:  \r\n0x0040:  \r\n0x0050:  \r\n\r\n[Freenect2DeviceImpl] ReadStatus0x090000 response\r\n4 bytes of raw data\r\n0x0000:  \r\n\r\n[UsbControl::setIrInterfaceState] failed! libusb error -99: LIBUSB_ERROR_OTHER\r\n[Freenect2DeviceImpl] ReadStatus0x090000 response\r\n4 bytes of raw data\r\n0x0000:  \r\n\r\n[Freenect2DeviceImpl] enabling usb transfer submission...\r\n[Freenect2DeviceImpl] submitting usb transfers...\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[TransferPool::submit] failed to submit transfer\r\n[Freenect2DeviceImpl] started\r\ndevice serial: xxxxxxxxxxx\r\ndevice firmware: 1.1.3327.0.7\r\n[TurboJpegRgbPacketProcessor::doProcess] Failed to decompress rgb image! TurboJPEG error: 'Not a JPEG file: starts with 0xf7 0xc6'\r\n[TurboJpegRgbPacketProcessor] avg. time: 39.5483ms -> ~25.2856Hz\r\n^Z\r\n[2]+  Stopped                 sudo ./bin/Protonect\r\n```"},"comment":{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/comments/70369537","html_url":"https://github.com/OpenKinect/libfreenect2/issues/126#issuecomment-70369537","issue_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/126","id":70369537,"user":{"login":"christiankerl","id":425341,"avatar_url":"https://avatars.githubusercontent.com/u/425341?v=3","gravatar_id":"","url":"https://api.github.com/users/christiankerl","html_url":"https://github.com/christiankerl","followers_url":"https://api.github.com/users/christiankerl/followers","following_url":"https://api.github.com/users/christiankerl/following{/other_user}","gists_url":"https://api.github.com/users/christiankerl/gists{/gist_id}","starred_url":"https://api.github.com/users/christiankerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christiankerl/subscriptions","organizations_url":"https://api.github.com/users/christiankerl/orgs","repos_url":"https://api.github.com/users/christiankerl/repos","events_url":"https://api.github.com/users/christiankerl/events{/privacy}","received_events_url":"https://api.github.com/users/christiankerl/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T14:47:56Z","updated_at":"2015-01-17T14:47:56Z","body":"you can also check the linked version using the ldd command\r\n\r\nif you enable libusb debugging and logging it should also print the system error number (see https://github.com/libusb/libusb/blob/master/libusb/os/linux_usbfs.c#L1417 ). Would be interesting to have the Linux kernel error code to trace this further into the kernel itself"}}