Skip to content
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

RealSense device detected only when using sudo #13671

Open
SwooshMihu opened this issue Jan 10, 2025 · 5 comments
Open

RealSense device detected only when using sudo #13671

SwooshMihu opened this issue Jan 10, 2025 · 5 comments

Comments

@SwooshMihu
Copy link

Required Info
Camera Model D455
Firmware Version 5.16.0.1
Operating System & Version Linux (Ubuntu 22) / Jetpack 6.1
Kernel Version (Linux Only) 5.15.148
Platform Jetson Orin Nano
SDK Version 2.55.1
Segment Robotics

Issue Description

I am running in a peculiar issue with the realsense-viewer. I've installed the SDK using libuvc_installation.sh because I'm using a Jetson Orin Nano running on Jetpack 6.1. Realsense-viewer doesn't find the camera without running the command with sudo privileges.

Error log:
Found 0 RealSense devices (0xff requested & 0xff from device-mask in settings)

@MartyG-RealSense
Copy link
Collaborator

Hi @SwooshMihu RealSense can have problems with detecting IMU-equipped camera models such as D455 when using JetPack 6. This is because a component called hiddraw that RealSense IMU cameras (known as HID devices) rely upon was removed from JP6. For some RealSense users, building the librealsense SDK from source code with the libuvc method (as you did) can be a workaround fix for this camera non-detection issue.

As your camera is only detected in realsense-viewer when using sudo, it is possible that the udev device handling rules - which are installed by lines 42-44 of the libuvc_installation.sh script - are not working on your Jetson. Using the sudo admin powers can be an alternative to the udev rules.

@SwooshMihu
Copy link
Author

Thank you for the answer. Can you be more specific about what "using sudo admin powers" mean and how that can be practically integrated in this application?

@MartyG-RealSense
Copy link
Collaborator

The link below has information about sudo admin power on Ubuntu.

https://help.ubuntu.com/kubuntu/desktopguide/hu/root-and-sudo.html

using sudo just requires putting the word sudo in front of a program's launch command in the terminal, such as sudo realsense-viewer

@SwooshMihu
Copy link
Author

Yes, ok. I have stated in the issue definition that by using SUDO, the realsesnse-viewer works as expected. The issue arrises when i am working in a context that forbids me from using the admin privileges.
1.Do you have another suggestion beyond that?
or
2.Is this fix something on the development roadmap for the intel-realsense sdk?

@MartyG-RealSense
Copy link
Collaborator

Intel's official installation instruction page for Jetson can be found here:

https://github.com/intelRealSense/librealsense/blob/master/doc/installation_jetson.md

It states that for Jetson Orin with JetPack 6.0 you need to follow the build procedure for the MIPI driver at the link below before installing the librealsense SDK, as the Kernel 5.15 default configuration was released with HID disabled.

https://github.com/IntelRealSense/realsense_mipi_platform_driver

I believe that if you have already installed librealsense using the libuvc_installation.sh build script then you should not need to install librealsense again after the MIPI driver has been installed.

However, there is not currently information available about timescales regarding future support of JetPack versions newer than 6.0, such as 6.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants