-
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
Camera no longer detected in Linux #7145
Comments
Hi @jkenney9a Do the cameras remain undetectable by rs-enumerate-devices if you unplug them, wait a couple of seconds and then re-insert them, please? |
Yes. I've unplugged and re-plugged them back in multiple times, into different ports etc. without any luck. |
Would it be possible to try building librealsense and pyrealsense2 together using the backend method of installation, please? As it is not dependent on Linux versions or kernel versions and does not need patching, it can eliminate a lot of the things that can go wrong in a librealsense build on Linux. |
Thanks I'll try this in a bit. However, we only use pyrealsense2 within an Anaconda environment, so I don't see how it would interfere with the realsense from recognizing the cameras outside the environment. Or perhaps I'm misunderstanding something. |
Ok I tried this and got the following errors:
I installed libusb-dev via apt-get, but didn't correct the error. Any ideas? |
Hi @jkenney9a You mentioned that the camera was not detected in the RealSense Viewer. The RealSense Viewer is not a Python program, it is C++ (a librealsense SDK program) and not connected to pyrealsense2. So if the camera was not detectable in the Viewer then it would suggest a wider problem with librealsense or with Linux kernel / patching, rather than one that is isolated to just the Python wrapper. Did you run the CMake instruction from inside the Build directory of the librealsense source-code folder please? librealsense > build The link below has information on the missing libusb problem: |
Yes, I believe so:
It finds CMakeLists.txt no problem when I run cmake |
Do you think updating my kernel would do it? And reinstalling using apt-get? |
Okay, I believe I've solved the issue; at least realsense viewer is working. It looks like it was a kernel-related issue. We had two kernels installed on the computer (4.4.0-186 and 4.4.0-187). It doesn't seem to work under 187 but it does for 186. Reinstalled using apt-get and made sure to choose the 186 kernel during boot and we're back to where we were. |
That's great news - thanks so much for the update! :) |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
Our realsense cameras are no longer detected by the realsense-viewer nor our Python code. I've uninstalled and reinstalled the SDK (was previously running 2.30 when this occurred), but no luck.
The devices show up with lsusb:
The output of
But neither camera (D435) is recognized:
What's surprising is that this seemed to happen 'spontaneously', i.e. it wasn't following any change to the system (updates, upgrades etc). Things were working fine, and then they suddenly stopped after a reboot.
The text was updated successfully, but these errors were encountered: