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

Linux 5.4 support? #6368

Closed
moshimeow opened this issue May 8, 2020 · 13 comments
Closed

Linux 5.4 support? #6368

moshimeow opened this issue May 8, 2020 · 13 comments
Labels

Comments

@moshimeow
Copy link

  • 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 :)


Required Info
Camera Model { T265 }
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version {Ubuntu 20.04}
Kernel Version (Linux Only) (e.g. 5.4.0)
Platform PC.
SDK Version { legacy / 2.. }
Language { C }
Segment {/VR/AR }

Issue Description

Can we get kernel modules for Linux 5.4? Currently, it looks like y'all only support 4.x.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented May 8, 2020

Officially Librealsense already supports Kernel 5.0 and 5.3, though a RealSense user who had 5.4 said that Librealsense worked for them.

#5723 (comment)

@thorstink
Copy link

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.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented May 30, 2020

@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

@thorstink
Copy link

The script doesn't allow it:
Unsupported distribution focal kernel version 5.4.0-29-generic . The patches are maintained for Ubuntu16/18 (Xenial/Bionic) with LTS kernels 4-[4,8,10,13,15,18]

I don't know if how safe it is to disable the check and just see?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented May 30, 2020

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.

  1. Go to the Librealsense root directory and create a Build folder, and then change to that created folder using the command below (if you have not created the Build folder already):

mkdir build && cd build

  1. Whilst in the Build folder, run the CMake command below:

cmake ../ -DFORCE_RSUSB_BACKEND=true -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=true

@thorstink
Copy link

make'ing as we speak. I'll update asap.

@thorstink
Copy link

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?

@MartyG-RealSense
Copy link
Collaborator

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?

#5212 (comment)

@thorstink
Copy link

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.

@MartyG-RealSense
Copy link
Collaborator

Thanks so much for the update!

@MartyG-RealSense
Copy link
Collaborator

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!

@malapatiravi
Copy link

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.

Are you able to use pyrealsense2 using python ?

@MartyG-RealSense
Copy link
Collaborator

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.

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

No branches or pull requests

4 participants