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

duplicate udev rules in /etc and /lib ? #6153

Closed
weblackey opened this issue Mar 29, 2020 · 11 comments
Closed

duplicate udev rules in /etc and /lib ? #6153

weblackey opened this issue Mar 29, 2020 · 11 comments

Comments

@weblackey
Copy link

When following all the instructions for installing the linux distribution with sources on a Jetson Nano with latest Jetpack, we end up with udev rules in both etc and lib and realsense-viewer complains about it.

why are the duplicates installed, and which one should be deleted ?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Mar 29, 2020

Which error does the RealSense Viewer give you, please? Also, which version of the RealSense SDK are you installing?

@weblackey
Copy link
Author

Here is the message:

Timestamp: 1585499111721.604492
Severity: Warn
Description: Multiple realsense udev-rules were found! :
1:/etc/udev/rules.d/99-realsense-libusb.rules
2: /lib/udev/rules.d/60-librealsense2-udev-rules.rules
Make sure to remove redundancies!

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Mar 29, 2020

There was a previous case of this error.

#4951

In that user's case, the multiple udev rules error occurred after doing an apt install following an initial install where they had missing udev rules and tried to install the rules manually. They used this link for the apt installation:

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

The eventual solution in their case was to install Librealsense the "manual" way, which I take to mean compiling from source. Compiling from source is recommendable for an installation on Jetson Nano.

@weblackey
Copy link
Author

thanks for the info. We did not have missing udev rules at any point in time an definitely never installed any udev rules manually.

Our main question is to determine which of these duplicates should be deleted, and of course it would be nice to know why the librealsense installation scripts install both of them in the first place

@MartyG-RealSense
Copy link
Collaborator

I do not have the knowledge of the udev rules to advise on that subject, unfortunately. One of the other RealSense support team members may be able to help with that in the coming week.

As there is more involved in a Jetson Nano installation process than the details in the standard installation guide, I would recommend removing the current install and following the guide on the JetsonHacks website for installing Librealsense on Nano.

https://github.com/JetsonHacksNano/installLibrealsense

@weblackey
Copy link
Author

ok thank you so much for the pointers and the link to jetsonhacks

it seems if we delete /lib/udev/rules.d/60-librealsense2-udev-rules.rules then it works with no error messages with the D435. Still have issues with D435i but we've given up on that one since simply swapping the D435 for the D435i makes it work... same system same cable same usb port same firmware and with only one udev rule file it would also be guaranteed to be the same udev rule

@MartyG-RealSense
Copy link
Collaborator

I'm very glad I could be of help. Thanks for sharing your information about the rules in case somebody else experiences a similar problem!

@ev-mp
Copy link
Collaborator

ev-mp commented Mar 29, 2020

@weblackey , the file /lib/udev/rules.d/60-librealsense2-udev-rules.rule is part of the Debian package librealsense2-udev-rules. I.e. the file has been installed with

sudo apt install librealsense2-udev-rules"

or any other Librealsense Debian package (all packages rely on that one).
Deleting it manually should be avoided as it will break Debian packages integrity.

On the other hand the udev file found under /etc folder is part of the manual installation.
Apparently you've triggered both installations thus having both versions installed.

As the manually-installed file is a stand-alone entity it is recommended to remove that one.
The only scenario where you'd might need to remove the Debian package with udev rules is when the Debian SDK package version is not up to date so that you download and build the latest version from source

@weblackey
Copy link
Author

On the other hand the udev file found under /etc folder is part of the manual installation.
As the manually-installed file is a stand-alone entity it is recommended to remove that one.

Done, and it works on D435 with no errors. D435i has issues, probably unrelated

@fabiang95
Copy link

hi, is it possible to share the steps to remove the unnecessary udev rules?

@MartyG-RealSense
Copy link
Collaborator

Hi @fabiang95 It is not a procedure that I have performed myself, but as far as I am aware it is simply a matter of navigating to the /etc/udev/rules.d/ folder in Linux and deleting a file called 99-realsense-libusb.rules

This is the only udev file that should be deleted. Do not delete the rule at lib/udev/rules.d/60-librealsense2-udev-rules.rules

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

4 participants