[Bug] xioctl(UVCIOC_CTRL_QUERY) timeout on VIA VL805/806 USB controller — raw V4L2 streaming works fine
Camera Model
D405
LibRealSense SDK Version
2.56.5.9235
Firmware Version
5.12.14.100
Operating System
Ubuntu 22.04
Kernel Version (Linux Only)
6.8.0-138-generic
MIPI Driver Version (NVIDIA Jetson Only)
No response
Platform
PC (AMD64/x86_64)
Connection Type
USB3
Language
Python
Application Segment
Robotics
Issue Description
When the D405 is connected to a PCIe USB 3.0 expansion card using the VIA VL805/806 chipset, pyrealsense2.pipeline.start() fails during intrinsics retrieval with:
RuntimeError: set_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed Last Error: Connection timed out
The same camera, same cable, same PC — when connected instead to the onboard Intel xHCI controller — works perfectly, hitting a stable 30fps across color+depth+infra1+infra2 streams simultaneously.
We bypassed pyrealsense2/librealsense entirely and streamed raw depth video directly via V4L2 while the camera was connected to the VIA controller:
v4l2-ctl -d /dev/video8 --set-fmt-video=width=1280,height=720,pixelformat='Z16 ' --stream-mmap --stream-count=1000 --stream-to=/dev/null
This streamed cleanly at a steady 30.00 fps with no errors, drops, or stalls. Kernel logs also confirm the device enumerates correctly at full SuperSpeed on the VIA controller:
usb 4-4.2: new SuperSpeed USB device number 18 using xhci_hcd usb 4-4.2: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 405 (8086:0b5b)
This confirms basic UVC enumeration and USB 3.0 SuperSpeed video streaming both work fine on this controller. The failure is isolated specifically to librealsense's XU control transaction used for calibration/control data.
Expected behavior: either the XU control transaction succeeds on this chipset, or librealsense provides a clearer diagnostic pointing at the host controller limitation rather than a raw ioctl timeout.
pika_diagnostic_report 1.txt pika_diagnostic_report 2.txt
pika_diagnostic_report 1.txt pika_diagnostic_report 2.txt
Steps to Reproduce
- Connect a D405 to a PCIe USB 3.0 card using a VIA VL805/806 chipset (confirmed via lspci)
- Run a pyrealsense2 pipeline that enables color and depth streams and calls pipeline.start(), or calls .get_intrinsics() on a stream
- Observe the RuntimeError: set_xu(...) failure
- (Optional, to confirm isolation of the fault) Run a raw V4L2 stream test on the same device node instead of using pyrealsense2: v4l2-ctl -d /dev/videoX --set-fmt-video=width=1280,height=720,pixelformat='Z16 ' --stream-mmap --stream-count=1000 --stream-to=/dev/null This streams successfully at a steady 30fps, confirming the fault is specific to the XU control transaction, not the video data path.
Expected Behavior
Either the XU control transaction should succeed on this chipset (matching behavior on Intel's onboard xHCI controller), or librealsense should surface a clearer diagnostic pointing at a host-controller-specific limitation rather than a raw ioctl timeout — since the underlying video streaming and USB enumeration both work correctly on this same controller.
Actual Behavior
Pipeline fails immediately with:
RuntimeError: set_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed Last Error: Connection timed out
This occurs specifically when the D405 is connected to a VIA VL805/806-based PCIe USB 3.0 controller. The same camera and cable work correctly when moved to the onboard Intel xHCI controller, achieving a stable 30fps.
Relevant Log Output
usb 4-4.2: new SuperSpeed USB device number 18 using xhci_hcd
usb 4-4.2: New USB device found, idVendor=8086, idProduct=0b5b, bcdDevice=50.ce
usb 4-4.2: Product: Intel(R) RealSense(TM) Depth Camera 405
usb 4-4.2: SerialNumber: 334323070975
uvcvideo 4-4.2:1.1: Unknown video format 00000050-0000-0010-8000-00aa00389b71
usb 4-4.2: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 405 (8086:0b5b)
--- pyrealsense2 error ---
RuntimeError: set_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed Last Error: Connection timed out
--- v4l2-ctl raw streaming test (bypassing pyrealsense2/librealsense) ---
$ v4l2-ctl -d /dev/video8 --set-fmt-video=width=1280,height=720,pixelformat='Z16 ' --stream-mmap --stream-count=1000 --stream-to=/dev/null
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps
(streamed cleanly, no errors, for the full duration tested)Additional Context
Our host system: HP Pro Tower 400 G9, Intel Alder Lake-S platform, onboard Intel USB 3.2 xHCI controller (8086:7ae0) plus an added PCIe card using the VIA VL805/806 xHCI USB 3.0 Controller (1106:3483, rev 01).
This came up while trying to run two D405 cameras simultaneously at full 1280x720@30fps by splitting them across two independent USB host controllers to avoid bandwidth contention on a single controller. AgileX Robotics (manufacturer of a robot gripper platform using these cameras) confirmed they have tested PCIe USB expansion cards for other purposes (CAN bus stability) but had not specifically tested the D405 on any add-in card, so this may be a previously unreported chipset-specific compatibility gap. Happy to provide full lsusb -t, lspci, and dmesg output if useful.
Source: realsenseai/librealsense