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

modprobe: FATAL: Module videodev is in use #12885

Closed
rastinp opened this issue Apr 28, 2024 · 7 comments
Closed

modprobe: FATAL: Module videodev is in use #12885

rastinp opened this issue Apr 28, 2024 · 7 comments

Comments

@rastinp
Copy link

rastinp commented Apr 28, 2024


Required Info
Camera Model D400
Firmware Version latest
Operating System & Version Ubuntu 22.04 LTS
Kernel Version (Linux Only) 6.5.0-28-generic
Platform Intel NUC
SDK Version newest
Language {C/C#/labview/nodejs/opencv/pcl/python/unity }
Segment Robot

Issue Description

Hi,
I try to install librealsense2-dkms on the above mentioned setup for my D455. I am using a fresh installation of Ubuntu 22.04 LTS on the Intel NUC.

Installing librealsense2-dkms using
sudo apt-get install librealsense2-dkms

I get the following error

modprobe: FATAL: Module videodev is in use.

The camera is not attached to the NUC, secure boot is disabled and UEFI is enabled.

Did anybody else experience this error or can support me on solving this issue?

Thanks a lot and best regards,
Rastin

@MartyG-RealSense
Copy link
Collaborator

Hi @rastinp Can you confirm whether or not you attempted to apply a kernel patch script such as ./scripts/patch-realsense-ubuntu-lts-hwe.sh before you used the sudo apt-get install librealsense2-dkms command? An apt-get package install does not need a patch script to be applied because the patch is already bundled in the packages.

@rastinp
Copy link
Author

rastinp commented Apr 29, 2024

Hi @MartyG-RealSense,
yes, I can confirm this.
Using lsmod I see that the videodev is used by

videodev v4l2_async, v4l2_fwnode, ov13858

@MartyG-RealSense
Copy link
Collaborator

Thanks very much for the information. If the kernel has been patched, would it be possible for you to change to another kernel version so that the kernel becomes unpatched and then repeat sudo apt-get install librealsense2-dkms

@rastinp
Copy link
Author

rastinp commented Apr 29, 2024

I switched to another kernel (6.2.0-26-generic) but the problem still appears.
It again throws the error that the videodev is in use, which is actually the case:

videodev v4l2_async, ov13858
mc v4l2_async, videodev, ov13858

I am not sure what the ov13858 (camera module or graphic card) and the mc is. There is no camera attached to the NUC but I extended the NUC with a second ETH+2xUSB.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Apr 29, 2024

ov13858 is an OmniVision image sensor but not one of the OmniVision sensors used in RealSense 400 Series cameras for its RGB and infrared sensors. My research indicates that this component is referenced in videodev listings on computers that do not have a RealSense camera attached, such as laptops with a built-in webcam (though your NUC is not a laptop). Some PC desktop computer monitor screens have a webcam built into them, so you could check whether the screen being used with your NUC has this feature.

@rastinp
Copy link
Author

rastinp commented Apr 29, 2024

I am not sure why the ov13858 module is installed automatically.
However, I solved now the issue, by deactivating the module ov13858 using
sudo modprobe -r ov13858

Afterwards, the librealsense2-dkms installed without any issue.
Thanks a lot @MartyG-RealSense for your support.

@MartyG-RealSense
Copy link
Collaborator

You are very welcome, @rastinp - it's great to hear that you achieved a solution. Thanks very much for the update!

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