how to attach drivers to devices in WSL2

SCIEN 6 Reputation points
2022-10-15T18:55:09.85+00:00

Hei!

I try to connect my xbox controller to WSL2 (need to use it in ROS).
I got xbox controller attached to wsl2 using usbipd and it appears under /dev/bus/usb/00x/ devices but no drivers "attached".
250767-image.png
Also, it did not appear under /dev/input/jsx device.
Under Linux computer it looks like this
250745-image.png
I see that there is xpad driver in wsl kernel https://github.com/microsoft/WSL2-Linux-Kernel/blob/master/drivers/input/joystick/xpad.c. How should I make that device under dev/bus/usb/00x to use this xpad driver?

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,422 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Dave Patrick 426.2K Reputation points MVP
    2022-10-15T19:07:58.667+00:00

    The product group for WSL actively monitors questions over at
    https://github.com/microsoft/WSL#readme
    https://stackoverflow.com/questions/tagged/windows-subsystem-for-linux?tab=Newest

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments