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

realsense-viewer setting option give error #6937

Closed
tarekmuallim opened this issue Jul 27, 2020 · 5 comments
Closed

realsense-viewer setting option give error #6937

tarekmuallim opened this issue Jul 27, 2020 · 5 comments

Comments

@tarekmuallim
Copy link


Required Info
Camera Model D400
Firmware Version 05.12.06.00
Operating System & Version Linux (Ubuntu 18)
Kernel Version (Linux Only) 5.3.0-28-generic
Platform PC
SDK Version 2.36
Language c++

Issue Description

I have installed the packages using apt-get
the installation was fine
no error.

when I open the realsense-viewer I get this errors:

27/07 16:34:35,448 ERROR [140020130440960] (types.h:308) xioctl(VIDIOC_S_CTRL) failed Last Error: Invalid argument
27/07 16:34:35,448 WARNING [140020130440960] (sensor.cpp:632) Exception was thrown when inspecting Raw RGB Camera property Controls exposure time of color camera. Setting any value will disable auto exposure
27/07 16:34:35,479 ERROR [140020130440960] (types.h:308) xioctl(VIDIOC_S_CTRL) failed Last Error: Invalid argument
27/07 16:34:35,479 WARNING [140020130440960] (sensor.cpp:632) Exception was thrown when inspecting Raw RGB Camera property Controls white balance of color image. Setting any value will disable auto white balance

and if I try to change any parameter value for example "Laser Power" I get an error:

Backend in rs2_set_option(options:0x7f58dc015ea0, option:Laser Power, value:300):
set_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed Last Error: Device or resource busy

what is the problem and how to solve it.

Screenshot from 2020-07-27 16-40-50

@MartyG-RealSense
Copy link
Collaborator

Hi @tarekmuallim There was a similar past case in the link below.

#5166

It is a very long discussion, so a good starting point may be the link below, which jumps to a point in the discussion that provides a list of instructions to try that will hopefully correct your problem.

#5166 (comment)

@tarekmuallim
Copy link
Author

Hi @MartyG-RealSense

I tried this:

sudo apt-get purge librealsense2-dkms
sudo apt-get purge librealsense2-dbg
sudo apt-get purge librealsense2-dev
sudo apt-get purge librealsense2-utils

sudo apt-get update --fix-missing && sudo apt-get install -f && sudo apt-get dist-upgrade -y

sudo apt-get install --reinstall linux-modules-extra-$(uname -r)

then I run this patch with no error
./scripts/patch-realsense-ubuntu-lts.sh

sudo apt-get install librealsense2-dkms
sudo apt-get install librealsense2-utils
sudo apt-get install librealsense2-dev
sudo apt-get install librealsense2-dbg

and I still have the same error!

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jul 28, 2020

I would expect to see VIDIOC errors as a result of a problem related to the Linux kernel. There are a couple more cases in the links below that are similar to yours:

#3426
#5815

I believe that patching a DKMS package installation with ./scripts/patch-realsense-ubuntu-lts.sh is not necessary, and instead is a command used doing a manual installation from source.

One RealSense user got their installation working by purging old files and then doing a fresh install from the repositories.

#3426 (comment)
https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md

Alternatively, another installation method that you could consider is building librealsense from a source-code folder with a backend RSUSB installation after downloading a source-code zip file from the SDK releases page and extracting the librealsense folder from it.

#6368 (comment)

The Releases page is in the link below, and the "Assets" list containing the download link for the source-code zip file is at the bottom of the information listing for each SDK version.

https://github.com/IntelRealSense/librealsense/releases/

image

@tarekmuallim
Copy link
Author

Thank you for your help @MartyG-RealSense
building from source using -DFORCE_RSUSB_BACKEND=true solve the problem

@MartyG-RealSense
Copy link
Collaborator

I'm very pleased to hear that the method worked for you - thanks 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