-
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
Linux 5.4 support? #6368
Comments
Officially Librealsense already supports Kernel 5.0 and 5.3, though a RealSense user who had 5.4 said that Librealsense worked for them. |
I installed from source on ubuntu 20.04 / kernel 5.4, but the frame metadata doesn't seem work... still figuring out if there's something I can do. |
@thorstink When installing from source on Linux, metadata support has to be patched in. Have you tried the patching instruction that works with 18.04 LTS to see if it works with 20.04, please? ./scripts/patch-realsense-ubuntu-lts.sh This is step 4 of the installation instructions for building Librealsense from source. https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md#prerequisites |
The script doesn't allow it: I don't know if how safe it is to disable the check and just see? |
If patching is a problem when installing using the usual installation methods, there is the option of doing a "backend" installation that requires an internet connection but is not reliant on Linux versions, kernel versions or patches and should include metadata support in the installation. The instructions for this process are below.
mkdir build && cd build
cmake ../ -DFORCE_RSUSB_BACKEND=true -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=true |
make'ing as we speak. I'll update asap. |
Seems to have done the trick. Thanks. I didn't look at performance yet, but from some quick scanning, it seems there's (minimal) performance consequences of using RSUSB_BACKEND? |
Great news - thanks for the update! The link below describes the advantages and disadvantages of the backend installation method compared to the usual methods such as compiling from source. Please scroll down the linked-to comment to the section headed 'What are the advantages and disadvantages of using libuvc vs patched kernel modules? |
Tiny update though: I haven't tested too much with it, but it does seem that video stream is less stable compared to the kernel patches. None the less, good workaround for now until 20.04 gets support. |
Thanks so much for the update! |
I reviewed this case again and concluded that since support for new kernels gets added by the Librealsense developer team over time, there was no need to make a special request to do so for kernel 5.4, as new kernels will already be in the developers' minds. I will therefore close this case. Thanks! |
Are you able to use pyrealsense2 using python ? |
I just wanted to let commenters on this discussion know that support for Kernel 5.4 and Ubuntu 20 have been added in the new SDK 2.40.0 release. |
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
Can we get kernel modules for Linux 5.4? Currently, it looks like y'all only support 4.x.
The text was updated successfully, but these errors were encountered: