Skip to content
Lingzhu Xiang edited this page Feb 12, 2016 · 18 revisions

Troubleshooting Guide

Windows

Try upgrading USB 3 controller driver

Windows 7 does not have great USB 3.0 drivers. In our testing the above known working devices will stop working after running for a while. However, the official Kinect v2 SDK does not support Windows 7 at all, so there is still hope for Windows 7 users. Windows 8.1 and 10 have improved USB 3.0 drivers.

Disabling "USB selective suspend"

Might be helpful to ameliorate transfer problems.

Mac OS X

Verify Kinect is indeed connected to a USB 3 port.

Open "System Information" from Spotlight, go to the USB section, and verify "Xbox NUI Sensor" is under "USB 3.0 SuperSpeed Bus" not "High-Speed Bus". If this is not the case, try unplugging the Kinect from power source with the USB cable connected, and plug the power again, then verify.

Linux

Hardware issues

Verify Kinect is indeed connected to a USB 3 port.

lsusb -t

(Add an example)

We have seen people trying to connect Kinect to USB 2 ports.

Check the connectors on the Kinect adaptor

The connector on the Kinect adaptor is easy to come loose.

Try replugging.

Sometimes the Kinect is not detected by the OS if plugged before or during boot.

Check the USB 3 controller support status

lspci | grep USB

Likely working:

  • Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI
  • Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI
  • NEC Corporation uPD720200 USB 3.0 Host Controller

Probably not working:

  • ASMedia Technology Inc. Device 1142
  • ASMedia Technology Inc. ASM1042

OS and kernel issues

You must have access to the USB device.

(Add an example)

sudo cp platform/linux/udev/90-kinect2.rules /etc/udev/rules.d/ and replug if not done yet.

Try upgrading the kernel

For Ubuntu 14.04, sudo apt-get install linux-image-generic-lts-wily (4.2) or linux-image-generic-lts-vivid (3.19). (Or linux-image-generic-lts-xenial when it becomes available.)

Caveat: May interfere with Nvidia graphics driver.

Check dmesg after running Protonect.
  • Not enough bandwidth for new device state: Your hardware does not have required bandwidth for the Kinect, even if it supports USB 3.
  • ERROR Transfer event TRB DMA ptr not part of current TD. xHCI host not responding to stop endpoint command. Assuming host is dying, halting host: Major bugs in the XHCI driver, your USB 3 controller is not well supported by the OS.
  • WARN Event TRB for slot x ep y with no TDs queued?: Harmless warning.
  • xHCI xhci_drop_endpoint called with disabled ep: Useless warning removed after kernel 4.0.
  • page allocation failure: order:7 in proc_do_submiturb: USB buffer allocation fails due to memory fragmentation. Reserve memory sudo sysctl -w vm.min_free_kbytes=65536 or more (but always less than 5% of total memory) to mitigate this.
Try disabling USB autosuspend

# for i in /sys/bus/usb/devices/*/power/autosuspend; do echo -1 >$i; done. Then verify in grep . /sys/bus/usb/devices/*/power/autosuspend everything is -1.

Sometimes the USB power management can cause some issues. Do not keep doing this if this doesn't improve things.

(Intel OpenCL only) Check known issues at https://www.freedesktop.org/wiki/Software/Beignet/

Some 3.x kernels need # echo 0 > /sys/module/i915/parameters/enable_cmd_parser. If it works by default, don't use this.

(Multiple Kinects) Try increasing USBFS buffer size

# echo 64 > /sys/module/usbcore/parameters/usbfs_memory_mb, or maybe 128. Don't set it too large.

Library issues

Enable libusb debug logging

LIBUSB_DEBUG=3 ./Protonect

This outputs INFO and ERROR level messages from libusb to the console.

(OpenGL only) Check driver version

glxinfo | grep OpenGL

Either the "OpenGL core profile version string" or the "OpenGL version string" must be greater than 3.1. If not, you don't have required graphics driver or you have not installed one correctly. Also, you should not see llvmpipe which is a software OpenGL renderer.

Clone this wiki locally