QuickCam Team Forums

Full Version: Orbit AF: No focus control!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'm using the libwebcam r23 and uvcvideo v 260 and I have a similar "Unknown custom V4L2 control ID encountered" problem than Terry. I'm using Ubuntu and everything worked Ok with libwebcam-0.1.1 and uvcvideo rev -178. Thougth I can succesfully send Pan and Tilt commands I do not have control on focus. When I try to import the logitecth.xml file an error occurs:

"logitech.xml: error: device 'video0' skipped because the driver 'uvcvideo' behind it does not seem to support dynamic controls."

I have an Orbit-AF but now the focus control just doesn't appear!

$ uvcdynctrl -c

[libwebcam] Unknown custom V4L2 control ID encountered: 134217728 (V4L2_CID_PRIVATE_BASE + 0)
Listing available controls for device video0:
White Balance Temperature
White Balance Temperature, Auto
Exposure (Absolute)
Exposure, Auto
Pan/Tilt (reset)
Tilt (relative)
Pan (relative)
Sharpness
Power Line Frequency
Backlight Compensation
Gain
Saturation
Contrast
Brightness

Where is focus? Libwebcam compiled with no errors but I don't know what am I doing wrong.

Please help Sad
problem solved:

I had to download the latest uvcvideo (svn r262) and replace the *.ko file. Now the camera is working perfectly with all its controls.

Smile

sayo Wrote:
problem solved:

I had to download the latest uvcvideo (svn r262) and replace the *.ko file. Now the camera is working perfectly with all its controls.

Smile



Hello Sayo,

I got a similar problem. The error looks like this.

Code:
[libwebcam] Unknown custom V4L2 control ID encountered: 134217728 (V4L2_CID_PRIVATE_BASE + 0)
[libwebcam] Invalid menu control choice range encountered.
  Indicated range is [ 0 .. 255 ] but querying choice 0 failed.
[libwebcam] Invalid or unsupported V4L2 control encountered: ctrl_id = 134217738, name = 'Exposure, Auto'
[libwebcam] Unknown custom V4L2 control ID encountered: 134217728 (V4L2_CID_PRIVATE_BASE + 0)
Listing available devices:
  video0   USB 2.0 Camera
  video1   UVC Camera (046d:0990)


and my question is, which *.ko files have you replaced and where.

Thanks[/php]

SebastianS Wrote:
and my question is, which *.ko files have you replaced and where.


Hi Sebastian,

I looks like you do have the same problem I did. First, be sure you don't have the latest version of uvcvideo:

Code:
$modinfo uvcvideo

I think the latest version is r263. This command will also tell you the location of the file. In my case (I have ubuntu gutsy) it is:

/lib/modules/2.6.22-15-generic/ubuntu/media/usbvideo/uvcvideo.ko

To replace with the newest uvcvideo, first download it:

Code:
$ svn co http://svn.berlios.de/svnroot/repos/linux-uvc/linux-uvc/trunk/

Then run make to create the *.ko file:

Code:
cd trunk
make

You may get a message about the uvcvideo been deprecated (it's been replaced by linuxtv). The generated file is the one you must replace in the adress I told you.

Good luck and let me know how it goes!

Hello Sayo,
I just typed "modprobe uvcvideo" but I got a Fatal Error that looks like this.

Code:
root@Master:/home/sebastian/Desktop/linux-uvc2/trunk# modprobe uvcvideo
FATAL: Error inserting uvcvideo (/lib/modules/2.6.24-17-generic/ubuntu/media/usbvideo/uvcvideo.ko): Unknown symbol in module, or unknown parameter (see dmesg)
root@Master:/home/sebastian/Desktop/linux-uvc2/trunk#


Than I tried to reinstall the newest version of the Linux-uvc, but I ever got the same error message.

Code:
root@Master:/home/sebastian/Desktop/linux-uvc2/trunk# make
Building USB Video Class driver...
make[1]: Betrete Verzeichnis '/usr/src/linux-headers-2.6.24-17-generic'
  CC [M]  /home/sebastian/Desktop/linux-uvc2/trunk/uvc_driver.o
  LD [M]  /home/sebastian/Desktop/linux-uvc2/trunk/uvcvideo.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not open /home/sebastian/Desktop/linux-uvc2/trunk/version.h: Invalid argument
  LD [M]  /home/sebastian/Desktop/linux-uvc2/trunk/uvcvideo.ko
make[1]: Verlasse Verzeichnis '/usr/src/linux-headers-2.6.24-17-generic'


What can I do??

thanks
Sebastian

I think Kubuntu don't like me :-(

SebastianS Wrote:
Hello Sayo,
I just typed "modprobe uvcvideo" but I got a Fatal Error that looks like this.

Code:
root@Master:/home/sebastian/Desktop/linux-uvc2/trunk# modprobe uvcvideo
FATAL: Error inserting uvcvideo (/lib/modules/2.6.24-17-generic/ubuntu/media/usbvideo/uvcvideo.ko): Unknown symbol in module, or unknown parameter (see dmesg)
root@Master:/home/sebastian/Desktop/linux-uvc2/trunk#


Than I tried to reinstall the newest version of the Linux-uvc, but I ever got the same error message.

Code:
root@Master:/home/sebastian/Desktop/linux-uvc2/trunk# make
Building USB Video Class driver...
make[1]: Betrete Verzeichnis '/usr/src/linux-headers-2.6.24-17-generic'
  CC [M]  /home/sebastian/Desktop/linux-uvc2/trunk/uvc_driver.o
  LD [M]  /home/sebastian/Desktop/linux-uvc2/trunk/uvcvideo.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not open /home/sebastian/Desktop/linux-uvc2/trunk/version.h: Invalid argument
  LD [M]  /home/sebastian/Desktop/linux-uvc2/trunk/uvcvideo.ko
make[1]: Verlasse Verzeichnis '/usr/src/linux-headers-2.6.24-17-generic'


What can I do??

thanks
Sebastian

I think Kubuntu don't like me :-(


Hi Sebastian,

Despite the modprobe error, could you locate the uvcvideo.ko file? If so, could you replaced it with the file generated when running the make command? It looks like you could succesfully generate the file:

Code:
root@Master:/home/sebastian/Desktop/linux-uvc2/trunk# make
Building USB Video Class driver...
(bla, bla)
  LD [M]  /home/sebastian/Desktop/linux-uvc2/trunk/uvcvideo.ko <- Here!
(bla, bla)


Don't give up! I guess kubuntu may get kiddy but he's still a good guy!
Wink

Sebastian,

Something does not click right.

What version of uvc are using?
Do you have the kernel source for your kernel?

$rpm -qa | grep kernel

The kernel and the kernel source must be the same version the kernel header do not need to.

BTW you do not need to run make as root, make install OTOH need to be run as root.

This is the output of rev 263, the last one to use, because the newest kernels have uvc "build in". So the only place you should download the uvc is from berlios.de

<<<<<<<<<<<
tdec@amd:~/installations/trunk> make uvcvideo
Building USB Video Class driver...
make[1]: Entering directory `/usr/src/linux-2.6.25.18-0.2-obj/x86_64/default'
make -C /usr/src/linux-2.6.25.18-0.2 O=/usr/src/linux-2.6.25.18-0.2-obj/x86_64/default/. modules
CC [M] /home/tdec/installations/trunk/uvc_driver.o
CC [M] /home/tdec/installations/trunk/uvc_queue.o
CC [M] /home/tdec/installations/trunk/uvc_v4l2.o
CC [M] /home/tdec/installations/trunk/uvc_video.o
CC [M] /home/tdec/installations/trunk/uvc_ctrl.o
CC [M] /home/tdec/installations/trunk/uvc_status.o
CC [M] /home/tdec/installations/trunk/uvc_isight.o
LD [M] /home/tdec/installations/trunk/uvcvideo.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/tdec/installations/trunk/uvcvideo.mod.o
LD [M] /home/tdec/installations/trunk/uvcvideo.ko

>>>>>>>>>>>

Note: the <make uvcvideo> is to bypass the info that says that the new kernels are in another site. You should stay with 263!!!

-=terry=-
Hello Terry and Sayo,

sorry for my late reply, is was ill, but I found out that I lost my /dev/videoX devices. But I don't know the reason for this. I have just switched to Kubuntu Intrepid and tried to install everything from the beginning.
But I ever got the same error while I tried to install the Rev 263 of the uvcvideo driver

Code:
root@Master:/home/sebastian/uvcvideo_263# make uvcvideo                                              
Building USB Video Class driver...                                                                    
make[1]: Betrete Verzeichnis '/usr/src/linux-headers-2.6.27-7-generic'                                
  CC [M]  /home/sebastian/uvcvideo_263/uvc_driver.o                                                  
  CC [M]  /home/sebastian/uvcvideo_263/uvc_queue.o                                                    
  CC [M]  /home/sebastian/uvcvideo_263/uvc_v4l2.o                                                    
  CC [M]  /home/sebastian/uvcvideo_263/uvc_video.o                                                    
  CC [M]  /home/sebastian/uvcvideo_263/uvc_ctrl.o                                                    
  CC [M]  /home/sebastian/uvcvideo_263/uvc_status.o                                                  
  CC [M]  /home/sebastian/uvcvideo_263/uvc_isight.o                                                  
  LD [M]  /home/sebastian/uvcvideo_263/uvcvideo.o                                                    
  Building modules, stage 2.                                                                          
  MODPOST 1 modules                                                                                  
WARNING: could not open /home/sebastian/uvcvideo_263/version.h: Invalid argument                      
  CC      /home/sebastian/uvcvideo_263/uvcvideo.mod.o                                                
  LD [M]  /home/sebastian/uvcvideo_263/uvcvideo.ko                                                    
make[1]: Verlasse Verzeichnis '/usr/src/linux-headers-2.6.27-7-generic'


and if I tried to install the libwebcam, I got another error messages

Code:
root@Master:/home/sebastian/libwebcam-0.1# make install
Making install in Libs
make[1]: Betrete Verzeichnis '/home/sebastian/libwebcam-0.1/Libs'
Making install in libwebcam
make[2]: Betrete Verzeichnis '/home/sebastian/libwebcam-0.1/Libs/libwebcam'
/bin/bash ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -Werror -I../../Common/include -I/usr/include/libxml2     -g -O2 -MT libwebcam_la-libwebcam.lo -MD -MP -MF .deps/libwebcam_la-libwebcam.Tpo -c -o libwebcam_la-libwebcam.lo `test -f 'libwebcam.c' || echo './'`libwebcam.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -Werror -I../../Common/include -I/usr/include/libxml2 -g -O2 -MT libwebcam_la-libwebcam.lo -MD -MP -MF .deps/libwebcam_la-libwebcam.Tpo -c libwebcam.c  -fPIC -DPIC -o .libs/libwebcam_la-libwebcam.o
libwebcam.c: In Funktion »get_control_id_from_v4l2«:
libwebcam.c:1599: Fehler: »V4L2_CID_PANTILT_RESET« nicht deklariert (erste Benutzung in dieser Funktion)
libwebcam.c:1599: Fehler: (Jeder nicht deklarierte Bezeichner wird nur einmal aufgeführt
libwebcam.c:1599: Fehler: für jede Funktion in der er auftritt.)
libwebcam.c:1604: Fehler: »V4L2_CID_WHITE_BALANCE_TEMPERATURE_AUTO« nicht deklariert (erste Benutzungin dieser Funktion)
make[2]: *** [libwebcam_la-libwebcam.lo] Fehler 1
make[2]: Verlasse Verzeichnis '/home/sebastian/libwebcam-0.1/Libs/libwebcam'
make[1]: *** [install-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/home/sebastian/libwebcam-0.1/Libs'
make: *** [install-recursive] Fehler 1


I have just excluded the lines of the libwebcam.c, but than I got errors with the dynctrl.c file. :-(

@ Terry
If i want to run the rpm command, I got no output

Quote:
What version of uvc are using?
Do you have the kernel source for your kernel?
$rpm -qa | grep kernel


Code:
sebastian@Master:~$ rpm -qa | grep kernel
sebastian@Master:~$


Help, .... :-(


Are there any other options to set the focus for my Logitech Pro 9000?
I only need to set the focus to a fixed value, ... :-(

Sebastian,

I realized you are running ubuntu (deb based distro) so it does not uses rpm therefore the response is correct Sad

This link will help you to install the kernel sources. Be sure the are the same as $uname -r
You do not need the whole thing is is message.

http://www.howtoforge.com/roll_a_kernel_...ubuntu_way

Sorry I do no run ubuntu so I prefer you read it from a reliable source ;-)

-=terry=-
Hello Terry, hi Sayo,

thank you for your help, I have solved the problem. I have sold the Pro 9000 Webcam and I have just bought a Quickcam Communicate Deluxe with a manual focus, because I spent so much time with the focus control of the pro 9000 and I only needed a defined focus for my application.

So I wish you merry Xmas and have a good time.

Greets from Germany und vielen Dank nochmal!!
Sebastian
Reference URL's