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

D435i doesn't work on Ubuntu 22.04 - Frames didn't arrived within 5 seconds #12701

Closed
pgluz opened this issue Feb 24, 2024 · 9 comments
Closed

Comments

@pgluz
Copy link

pgluz commented Feb 24, 2024


Required Info
Camera Model D435i
Firmware Version 5.15.1
Operating System & Version Ubuntu 22.04 LTS
Kernel Version (Linux Only) 6.5, 5.15
Platform PC
SDK Version 2.54.2

I have a serious problem when trying to install the D435i on Ubuntu 22.04. I've installed the SDK according to these instructions.
The camera is recognised as a USB device and found by realsense-viewer, but neither RGB nor stereo image is detected. The viewer shows only "Frames didn't arrived within 5 seconds!". Also, modinfo uvcvideo does not include "realsense" string, as mentioned in the instructions.

I've tried on kernels 6.5 and 5.15. I also tried to patch 5.15 kernel with patch-realsense-ubuntu-lts-hwe.sh without effects, just output "Only garbage was found in the patch input".

The camera itself definitely works because I've tested it on Realsense Viewer on Windows 11. I have no idea what's going on with this Linux, so I will be extremely grateful for any help.

I've found similar problems on GitHub from the past but without any specific solution.

@pgluz pgluz changed the title D435i doesnt work D435i doesn't work on Ubuntu 22.04 - Frames didn't arrived within 5 seconds Feb 24, 2024
@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Feb 24, 2024

Hi @pgluz Support for kernel 6.5 has been added to the development branch of librealsense, which becomes the next master branch of the SDK once released. The next librealsense master release is anticipated to be during the Q1 2024 window (between January and March).

https://github.com/IntelRealSense/librealsense/tree/development

The current librealsense master (2.54.2) supports kernel 5.15. However, a kernel patch script should not be applied to a DKMS package installation of librealsense (which is what the instructions that you linked to are) as the patch is already bundled within the packages.

The absence of the "realsense" string when using recent kernel versions has previously been reported by a couple of RealSense users - #12581 is an example of such a case - but it does not appear to prevent librealsense from working normally.


I would recommend first removing your previous package installation of librealsense from your computer using the instruction below.

dpkg -l | grep "realsense" | cut -d " " -f 3 | xargs sudo dpkg --purge

Then try building librealsense from source code using the build script at the link below.

https://github.com/IntelRealSense/librealsense/blob/master/doc/libuvc_installation.md

This installation method bypasses the Linux kernel and so is useful for getting librealsense working on computers that are having kernel related conflicts with librealsense. It also does not require the application of a patch script.

@padhupradheep
Copy link

Hey, it would be nice to know, when will the release for the newer version with the support for kernel 6.5.

ROS 2 needs it, because as you know Foxy is EoL and folks would love to move to 22.04 with the latest kernel versions.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Feb 29, 2024

Hi @padhupradheep Precise release dates for new SDK versions are not announced in advance. As mentioned above, the planned window for the next release is the Q1 2024 quarter (which will likely now be the coming month of March at the time of writing this).

If the librealsense SDK is built from source code with CMake with the flag -DFORCE_RSUSB_BACKEND=TRUE included in the CMake build instruction then the SDK will not be dependent on Linux versions or kernel versions (as RSUSB = true bypasses the kernel) and a kernel patch script does not need to be applied to the kernel.

@padhupradheep
Copy link

Then try building librealsense from source code using the build script at the link below.
https://github.com/IntelRealSense/librealsense/blob/master/doc/libuvc_installation.md
This installation method bypasses the Linux kernel and so is useful for getting librealsense working on computers that are having kernel related conflicts with librealsense. It also does not require the application of a patch script.

Just running this should take care of all the necessary flags right?

@MartyG-RealSense
Copy link
Collaborator

The libuvc_installation.sh build script will build the SDK in kernel bypass mode, though it will not include the example programs and tools such as realsense-viewer. So if you need those tools and examples then you could create your own custom version of the build script (at the link below) and edit its CMake build instruction.

https://github.com/IntelRealSense/librealsense/raw/master/scripts/libuvc_installation.sh

cmake ../ -DFORCE_LIBUVC=true -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=TRUE -DBUILD_GRAPHICAL_EXAMPLES=TRUE

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Mar 8, 2024

Hi @pgluz and @padhupradheep Do either of you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

@padhupradheep
Copy link

padhupradheep commented Mar 18, 2024

Sorry for the late response. Even the bypass solution does not work actually as expected. Is there a possibility to get on an email conversation about it?

@MartyG-RealSense
Copy link
Collaborator

Hi @padhupradheep Email discussion is available if there is something confidential that you would like to share that you cannot post on this public support forum. You can contact me at the address below.

martyx.grover@intel.com

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

3 participants