Adding a Web Cam in Gusty?

Asked by coljohnhannibalsmith

I have a Logitech QuickCam Pro 9000 with a 2MP sensor and I would like to know how to get it to work in Ubuntu. The Offline Help instructed me to try to configure it with Ekiga Softphone. I tried this and the microphone works; but I can't get a picture. I also get some kind of error message. I used Video 4 Linux abbreviated V4L when attempting to configure this device. The other option was V4L2. I don't know if this would have helped. The room was also dark and I had no Internet connection at the time.

Does anyone know how to configue such a device?

Thanks, John

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
coljohnhannibalsmith
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

the webcam seems works with the uvc video drivers http://linux-uvc.berlios.de/
Please look at this (end of page) http://ubuntuforums.org/showthread.php?p=3945766
and this http://wiki.ubuntu-fi.org/Logitech_QuickCam_Pro_9000

Hope this helps

Revision history for this message
coljohnhannibalsmith (john-wakefield2) said :
#2

Marcobra,

Thanks for your reply.

The repository has moved. The new repository is located at:

"http://svn.berlios.de/viewcvs/linux-uvc/linux-uvc/trunk/"

The repository lists the following files, which appear to need to be compiled:

Makefile
dynctrl.txt
uvc_compat.h
uvc_ctrl.c
uvc_driver.c
uvc_isight.c
uvc_queue.c
uvc_status.c
uvc_v4l2.c
uvc_video.c
uvcvideo.h

What do I do with all of this? Also, isn't there a "uvcvideo" driver already compiled I can just download?

Thanks, John

Revision history for this message
coljohnhannibalsmith (john-wakefield2) said :
#3

Well, I bit-the-bullet and actually compiled the above files successfully. It took about four tries to get it right. Since I don't have an Internet connection at home, I copied the contents of these files to a "Notepad" text file on my computer at work, saved them to my USB Flash Drive, which I carry on my keychain and transferred these files to my system at home. Before saving, I deleted the extra lines at the end of the files, which caused "No End Of Line Character" when compiling. I then promptly added a "Hard Carriage Return" to each of these files and saved them again, which eliminated this problem. At the end of compiling I still got a "make: *** [uvcvideo] Error 2" message. I'm not sure what this means; but fortunately it didn't stop the driver from working. I then reconfigured Ekiga Softphone to use V4L2 and several seconds later, I had live video. Frankly, I had my doubts that any of this would even work, but fortunately it did.

I saved the terminal output from each of my steps from the compiling process, so there will be a concrete example here for anyone else who has to do this. The steps involved in doing this were as follows:

After copying the folder where the source code files were stored on my Flash Drive to the Desktop. I changed directory or "cd'd" in the "Terminal" to this folder on the Desktop, then executed the following commands:

make
sduo make install

That's pretty much it. BTW, I had already installed the "express-install" package which loads the copiling tools. Without having done this, the above steps would not have worked.

Also, the Output files of the "make" command were:

uvc_video.o
uvc_queue.o

I suspect "o" stands for "object" file; but I could be wrong. Apparently, there's no need to specify a name for the output files. The "make" command does this for you. "THANK GOD!!!"
And the "sudo make install" command copies both of the ".o" files to the correct location, without my having to specify the destination follder. Again, "BIG SIGH OF RELIEF!!!"

The Terminal Output text from the above commands follows:

**Output of Make Command:

john@Laptop:~$ cd Desktop
john@Laptop:~/Desktop$ cd uvc_video
john@Laptop:~/Desktop/uvc_video$ make
Building USB Video Class driver...
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
  CC [M] /home/john/Desktop/uvc_video/uvc_driver.o
  CC [M] /home/john/Desktop/uvc_video/uvc_queue.o
make[2]: *** No rule to make target `/home/john/Desktop/uvc_video/uvc_v4l2.o', needed by `/home/john/Desktop/uvc_video/uvcvideo.o'. Stop.
make[1]: *** [_module_/home/john/Desktop/uvc_video] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make: *** [uvcvideo] Error 2
john@Laptop:~/Desktop/uvc_video$

**Output of sudo make install:

john@Laptop:~/Desktop/uvc_video$ sudo make install
Installing USB Video Class driver...
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
  DEPMOD 2.6.22-14-generic
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
depmod -ae
john@Laptop:~/Desktop/uvc_video$

**Output of dmesg: (Not conplete, just what I believe are the relevant parts)

[ 771.276809] usb 3-1: USB disconnect, address 2
[ 791.299486] usb 3-1: new high speed USB device using ehci_hcd and address 3
[ 791.430035] usb 3-1: configuration #1 chosen from 1 choice
[ 791.520020] Linux video capture interface: v2.00
[ 791.525680] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0990)
[ 791.544832] usbcore: registered new interface driver uvcvideo
[ 791.545476] USB Video Class driver (v0.1.0)
[ 791.961985] usbcore: registered new interface driver snd-usb-audio
[ 817.931979] NET: Registered protocol family 10
[ 817.932369] lo: Disabled Privacy Extensions
[ 817.932669] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 817.932885] ADDRCONF(NETDEV_UP): eth1: link is not ready

Well all that said and done, it occurs to me that I still need an application that will let me record video from my Webcam, or any other video capture device for that matter! Also this Webcam is top-of-the-line, with a 2MP sensor and it would sure be nice to be able to increase the video resolution and frame size, so I can see and transmit a "Full-Screen" image if I want. But still, a tremendously satisfying experience getting this to work.

"I can compile in Ubuntu. I am master of all I survey. Bwah, Ha Ha Ha Ha!!!!"

Cheers, John

Revision history for this message
coljohnhannibalsmith (john-wakefield2) said :
#4

marcobra,

Please forgive my earlier rant about having to compile. You've helped me on many occaissions and I never would have even found the source code without your help. I've just been a little frustrated at the additional steps necessary to get hardware to work in Ubuntu. It's more of a challenge than I originally anticiapted; but I feel a sense of pride at mastering some of the essential skills.

Again many thanks indeed.

-John