-
Notifications
You must be signed in to change notification settings - Fork 38
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
Control ioctl results in No such file or directory #1
Comments
I'm using 14.10 with Linux 3.16.0-30 at the moment. I don't know of anything that I used that might be newer than your system though. Can you paste a log from starting the app through trying to adjust several controls? |
I have the same issues with 3.16.7 on debian. I fail to set the camera controls.
|
Ah! v4l2_query_ext_ctrl is new in Linux 3.17. Installing the 3.17 kernel isn't sufficient for it to compile as the file /usr/include/linux/videodev2.h doesn't come from the kernel package but from linux-libc-dev:amd64. I thought I commented it out before pushing. If you are running 3.17 or newer you can copy the version from the kernel headers to /usr/include/linux/. I had to write a patch to the kernel that includes that file to get the infrared video feed, so the next update is going to have some documentation on how to change that file. I want to write a second patch that adds the controls to the ext_ctrl interface so that generic v4l2 applications can get a listing of the controls with labels without having special knowledge of what they are. |
I think the new SDK and the firmware update that came with it broke this tool completely, one can only open/close the camera. |
@AlperAydemir which branch are you using? What OS and kernel version are you using? Can you paste in the output of
I sure hope they didn't break things with a firmware update that isn't easy to fix. The original version of this software partially worked because of a bug in the firmware that I documented. If they fixed that, but didn't change other things then the main branch might be broken now, but others may still work with the Linux kernel patch. |
Master branch. I did some very brief detective work on the Windows USB logs with the new firmware. I'm on ubuntu 14.04. kernel version 3.13.0-37-generic and there's the verbose camera log from a camera with new fw.
|
@AlperAydemir was this firmware update preformed automatically with a new SDK install? |
@vcazan the new SDK doesn't work with a camera that has an old firmware. there's another installer called "depth camera manager" that when run detects the camera needs to be updated and prompts the user to do so. since this SDK will be shipped all new cameras will have the new firmware making this tool crippled. |
@AlperAydemir They did fix the one firmware bug I knew about which causes the depth stream to be selected when the color stream is selected on the depth camera. I don't know why there is a color stream advertised on the depth camera, but it's there. This app originally only worked because of that bug. I haven't tried my kernel patch against 3.14 yet, but there is a good chance it will work on that version. https://github.com/teknotus/depthview/tree/kernelpatchfmt There is also a user mode driver that works with the camera without a kernel patch. I haven't made this tool support it yet. It hasn't been merged into the main source so only Steve McGuire's repo works with it at the moment. You have to detach the camera from the kernel driver to get it to work. https://github.com/mcguire-steve/libuvc All of the stuff before calibration is about the pixel formats, and why a kernel patch is necessary in this blog post. |
I wrote some code to make the v4l2 standard control interface work with the camera which is currently in the udev branch. It uses the udev daemon to add the controls to the kernel when a camera is connected. https://github.com/teknotus/depthview/tree/udev Replacing all of the UVCIOC_CTRL_QUERY occurrences with the v4l2 versions of those ioctl's VIDIOC_G_CTRL, VIDIOC_S_CTRL, etc seems to make this error go away for everyone I've talked to. The remote_control branch has this change made, and also adds controls for the color camera. Controls do not currently appear until the camera is opened as it queries the kernel for a list of controls. |
Every UVCIOC_CTRL_QUERY ioctl results in a errno 2: No such file or directory on my system,
I'm running in a Ubuntu 14.04 with a 3.13.0-45 kernel. The application is running fine, I can see the camera feed, just the controls do not work for me.
The text was updated successfully, but these errors were encountered: