-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
D455 USB permissions issue on WSL2 #10506
Comments
Hi @tomstix We do not receive many WSL2 questions as it is my understanding that it does not have support for USB devices by default. It sounds as though you are performing a workaround for that with usbip. Is that correct, please? Assuming that the problem is related to not having permissions without using sudo, a RealSense user at the link below offers advice about reloading udev after the /etc rule is added.
|
Hello @MartyG-RealSense, thank you for your quick response. I tried to connect the camera to a laptop running Windows 11 and one on Windows 10. |
Thanks very much @tomstix for the update and for sharing the details of your solution with the RealSense community! |
Hello @tomstix, I have tried setting up the realsense stack on WSL2, however the biggest problem for me has been the lack of extra kernel modules |
Hey @tomstix, I run into the same issue as well, when I use sudo for realsense-viewer it works but does not work otherwise. and I have WSL2 setup too. What did you actually mean by fiddling around with the udev rules? Could you clarify please? |
|
@may-iCOMgiken I was not able to find a solution. |
Issue Description
Hello,
I tried installing the SDK using the libuvc installation script on Windows Subsystem for Linux. The camera is connected via usbip. This works but I have to use sudo for realsense-viewer or other tools to be able to connect to the camera. When I run realsense-viewer without sudo, it doesn't connect to the camera and the console output is:
13/05 10:33:07,336 ERROR [140169059489536] (handle-libusb.h:51) failed to open usb interface: 0, error: RS2_USB_STATUS_ACCESS 13/05 10:33:07,337 ERROR [140169152157440] (sensor.cpp:572) acquire_power failed: failed to set power state 13/05 10:33:07,339 WARNING [140169152157440] (rs.cpp:310) null pointer passed for argument "device" 13/05 10:33:07,339 WARNING [140169152157440] (rs.cpp:2691) Couldn't refresh devices - failed to set power state
I added 99-realsense-libusb.rules to /etc/udev/rules.d/ and restarted the udev service but I still can't connect without sudo. My user is in the plugdev group.
Any suggestions on how to fix this?
The text was updated successfully, but these errors were encountered: