Making some progress on the webcam front; googling for stv0674 instead of stv0680 led me to gphoto2 (which I had already installed a few weeks ago), which supposedly supports the device. I even found this webpage which shows the French-marketed version of the same camera, but with different vendor/product numbers. There's a command in gphoto2 that supposedly lets you map one set of USB numbers onto another, but it wasn't working for me so I edited the source (here's the patch):

jcomeau@zero:~/tmp/libgphoto2-2.1.4$ gendiff . .orig
--- ./camlibs/stv0674/stv0674.c.orig    2004-01-18 19:47:04.000000000 +0000
+++ ./camlibs/stv0674/stv0674.c 2004-08-16 04:09:34.000000000 +0000
@@ -57,7 +57,8 @@
 *  Michael Rensing <mrensing@users.sourceforge.net>
 *      { "l'espion xtra by DigitalDream",   0x05DA, 0x1020 }
-      { "DigitalDream:l'espion xtra",   0x05DA, 0x1020 }
+      { "DigitalDream:l'espion xtra",   0x05DA, 0x1020 },
+      { "DigitalDream:James Bond 1", 0x4483, 0x0005 }

After rebuilding libgphoto2, the camera came up in the --list-cameras output, but still wouldn't be detected. I went over the installation instructions and realized I'd left a bunch of stuff undone in the /etc/hotplug directory, and corrected those things; still no go. Then, after running strace a few times, I realized it wasn't even looking under /proc/bus/usb. It seems slackware 9.1 has two versions of libusb installed, by two different packages:

root@zero:/tmp# grep 'libusb.*\.so' /var/log/packages/*

And the older one was symlinked to libusb.so and libusb.so.0. I corrected that:

root@zero:/usr/lib# ln -sf libusb-0.1.so.4.3.0 libusb.so
root@zero:/usr/lib# ln -sf libusb-0.1.so.4.3.0 libusb.so.0

And now it at least is recognized:

root@zero:~# gphoto2 -a
Abilities for camera             : DigitalDream James Bond 1
Serial port support              : no
USB support                      : yes
Capture choices                  :
                                 : Image
                                 : Preview
Configuration support            : no
Delete files on camera support   : no
File preview (thumbnail) support : yes
File upload support              : no

But the little green LED does not come on, and it fails --capture-image. So I'm not out of the woods yet.

Back to blog or home page

last updated 2013-01-10 20:28:21. served from tektonic.jcomeau.com