I've traveled the cosmos attempting to get my webcam to work. It worked alright in Hardy (granted it gave less-than-perfect image quality), but from the posts I've been reading it appears that the new kernel-integrated gspca module is super buggy. The new bugs in the kernel result in me not being able to compile the old 3rd party gspca module which is known to work. I guess there's also some issues with gstreamer and v4l, but the complexity of these bugs is a bit much for me to understand what I need to do.
At this point, I'm just going to sit around and wait until 1) some non-noobophobe responds to this post with a step-by-step solution that puts a smile on my face (and gratitude in my heart), or 2) Ubuntu develops the fix and releases it as an update.
For those of you who would like to help tackle my problem, I will disclose the necessary background information, and post some errors:
produces the following output:
With the QuickCam being the device I'm interested in.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:092f Logitech, Inc. QuickCam Express Plus
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
produces the following output:
But this is the kernel-integrated module that's buggy, so it's not reliable for my purposes.
gspca_spca561 19328 0
gspca_main 29312 1 gspca_spca561
videodev 41344 2 uvcvideo,gspca_main
usbcore 148848 5 uvcvideo,gspca_spca561,gspca_main,uhci_hcd
I have all the necessary dependencies installed to build the older 3rd party module: namely module-assistant gspca-source build-essential yaddyaddyadda.
My steps were as follows:
And the terminal output was:
Getting source for kernel version: 2.6.27-9-generic
Kernel headers available in /usr/src/linux
Couldn't create the /usr/src/linux symlink!
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
And the module-assistant entered into its interactive mode and this happens:
So I attempted an alternative by gathering the gspca package from another source and trying to compile that, but there were errors.
The following is an exact copy of what my terminal looked like when I finished my attempt (errors included):
At this point, my cam will work with Cheese, but it's super dark. It will also work with Xawtv, but again it is super dark. Whenever I open it with one of these programs, the green light on the cam will turn off when the program closes. When I try to access it in Kopete in "Settings -> Configure..." it's just a blank black square, and also causes the green light on the cam to go off. It does not work in Camorama or aMSN. aMSN just renders the same blank black square that Kopete gives, while Camorama gives me this:
gluonman@Cygnus-X1:~$ wget -c http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz
--2008-12-12 23:48:46-- http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz
Resolving mxhaard.free.fr... 18.104.22.168
Connecting to mxhaard.free.fr|22.214.171.124|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 214717 (210K) [application/x-gzip]
Saving to: `gspcav1-20071224.tar.gz'
100%[==============================================>] 214,717 79.4K/s in 2.6s
2008-12-12 23:48:49 (79.4 KB/s) - `gspcav1-20071224.tar.gz' saved [214717/214717]
gluonman@Cygnus-X1:~$ tar -xvf gspcav1-20071224.tar.gz
gluonman@Cygnus-X1:~$ cd gspcav1-20071224
gluonman@Cygnus-X1:~/gspcav1-20071224$ make clean
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
.gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/gluonman/gspcav1-20071224 CC=cc modules
make: Entering directory `/usr/src/linux-headers-2.6.27-9-generic'
CC [M] /home/gluonman/gspcav1-20071224/gspca_core.o
/home/gluonman/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
/home/gluonman/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
/home/gluonman/gspcav1-20071224/gspca_core.c:2463: error: implicit declaration of function ‘video_usercopy’
/home/gluonman/gspcav1-20071224/gspca_core.c: At top level:
/home/gluonman/gspcav1-20071224/gspca_core.c:2609: error: unknown field ‘owner’ specified in initializer
/home/gluonman/gspcav1-20071224/gspca_core.c:2609: warning: initialization from incompatible pointer type
/home/gluonman/gspcav1-20071224/gspca_core.c:2611: error: unknown field ‘type’ specified in initializer
/home/gluonman/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
/home/gluonman/gspcav1-20071224/gspca_core.c:2769: error: implicit declaration of function ‘video_device_create_file’
/home/gluonman/gspcav1-20071224/gspca_core.c:2780: error: implicit declaration of function ‘video_device_remove_file’
/home/gluonman/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
/home/gluonman/gspcav1-20071224/gspca_core.c:4301: error: incompatible types in assignment
make: *** [/home/gluonman/gspcav1-20071224/gspca_core.o] Error 1
make: *** [_module_/home/gluonman/gspcav1-20071224] Error 2
make: Leaving directory `/usr/src/linux-headers-2.6.27-9-generic'
make: *** [default] Error 2
gluonman@Cygnus-X1:~/gspcav1-20071224$ sudo make install
[sudo] password for gluonman:
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: cannot stat `gspca.ko': No such file or directory
make: *** [install] Error 1
And, of course, Camorama also turns off the green light on the cam.
Regarding the green light on the cam, I found that dmesg only contained information about gspca and my webcam when the green light was on.
But when the green light was off, none of that information was in there.
[ 3996.688148] usb 2-2: USB disconnect, address 2
[ 3996.693913] gspca: disconnect complete
[ 3998.416118] usb 2-2: new full speed USB device using uhci_hcd and address 3
[ 3998.646011] usb 2-2: configuration #1 chosen from 1 choice
[ 3998.649222] gspca: probing 046d:092f
[ 3998.735149] gspca: probe ok
My real goal, though, is to get my webcam to work in Kopete and aMSN so that my friends can see me. And a side-goal is to be able to improve the image quality once it is working. I need better resolution and I need to be able to adjust brightness more reasonably.
So you've seen everything I've seen. My errors, my compilation attempts. I've been all over the forums and found people who had fixes and solutions that didn't work for me. I tried patches to the gspca package, and tried a bunch of things, but I'm lost. Nothing has worked.
PLEASE, if you've actually been patient and kind enough to read over the necessary information and error messages that I've posted and have a solution, or at least an idea of what I can do, let me know. Feel free to ask me questions if you need more information while trying to help me.
I'll be keeping an eye on this thread for any productive solutions you wonderful people might post.