actionshrimp.com

fun and geekery

13  08 2008

Logitech QuickCam E2500 on Ubuntu Skype

Posted by Dave | Tags: , , , ,

193818I recently discovered the wonders of skype, and tried to get my new webcam working with it under linux, and of course this proved to be quite tricky. After much fiddling I eventually got it to work, hopefully these steps will work for you too.

The gspca drivers are available from here, I was using a specific version dated 20071224 to work with a patch file I found – many thanks to redeye on the QuickCam team forums. If you use a different version of the drivers, you can just examine the patch file and insert the changes manually.

First, download the drivers and the patch:

wget http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz
wget http://forums.quickcamteam.net/attachment.php?aid=86 -O patch.tar.gz

Then extract and apply the patch:

(UPDATE: For Ubuntu 8.10 users, this patch may no longer work. Try downloading the patch here instead, and then extract it using gzip -d gspcapatch.gz. Apply the extracted file in the same was as below, just neglect the -p1 switch, (so do: patch < gspcapatch), you can just ignore the tar -xvf patch.tar.gz command).

tar -xvf gspcav1-20071224.tar.gz
tar -xvf patch.tar.gz
cd gspcav1-20071224
patch -p1 < ../quickcamE2500.diff

There’s a handy build script included with the drivers so just run that (requires root):

sudo ./gspca_build

This generates the file

gspca.ko

which we use to replace the old gspca module.
Check to see if the old module is loaded, you should see something like:

dave@baracus:~$ lsmod | grep gspca
gspca                 680656  0
videodev               29440  1 gspca
usbcore               146028  9 gspca,snd_usb_audio,snd_usb_lib,usb_storage,usbhid,libusual,ehci_hcd,ohci_hcd

We want to find out where it is, so do the following:

sudo rmmod gspca
sudo modprobe -v gspca

You should see something like:

insmod /lib/modules/2.6.24-20-generic/ubuntu/media/gspcav1/gspca.ko

That is the location of the file we’re looking for, so, replacing where appropriate with what was output for you above, type:

sudo rmmod gspca
sudo rm /lib/modules/2.6.24-20-generic/ubuntu/media/gspcav1/gspca.ko
sudo mv gspca.ko /lib/modules/2.6.24-20-generic/ubuntu/media/gspcav1/
sudo modprobe gspca

This should have loaded the new module in place of the old one. See if you have a video device:

dave@baracus:~$ ls /dev/video*
/dev/video0

You can try and run Skype now, and in fact, if you’re not using the camera for Skype, this may well be enough. But for the Skype users: see if you get any picture by testing in the video devices option menu (be warned, it can take a little while to show up there after skype loads, and a little while for the picture to show when you press the test button, so be patient). If anything show’s up at all that’s a plus. (UPDATE: If you’re using Ubuntu 8.10, and have used the alternative patch I posted in the other “UPDATE:” bracket above, the webcam may still not work in Skype at this point. There seems to be some issue with permissions in this version of the driver, so you may need to run skype as root if it doesn’t appear to be working. In a terminal type “sudo skype” and hit enter. It’ll ask for your root password, then launch skype. See if the webcam works now).

Originally, I had a black image, so I assumed the camera wasn’t working, but I soon realised that the image was there, just very dark – shining a light on it showed this was the case. I tried fiddling around with gstfakevideo for a while to try and alter the output, but there was a much simpler solution. The gspca driver itself can take options, and an autoexposure setting was ruining my lighting. To fix this, edit the file /etc/modprobe.d/options, and add a line at the bottom:

options gspca gamma=1 autoexpo=0

The gamma=1 may not be necessary, but if it still appears too dark or too light for your taste you can change this parameter as you like. Finally, reload the module:

sudo rmmod gspca
sudo modprobe gspca

and try out skype again. Hopefully it works!

I ran into quite a lot of other problems while I was trying this out, so if you come across any errors, drop a comment below and I’ll try and get back to you asap.

UPDATE: I found a large problem when using the camera in Skype was that CPU usage would shoot up to 100%, causing things to freeze up and conversations to crash after a while. I had played around with gstfakevideo a bit when trying to get the camera to work originally, and it seems using this when the camera already ‘works’ means it uses up far less CPU. I haven’t had a chance to test it for a long period yet but it seems like it should do the trick. Here’s what I did:

First, download gstfakevideo using subversion (you may need to install the subversion package, sudo apt-get subversion probably does the trick, and then the command below will make a directory called gstfakevideo in your current location, so make sure it’s somewhere nice), then compile and install it:

svn checkout http://gstfakevideo.googlecode.com/svn/trunk/ gstfakevideo
cd gstfakevideo
make
sudo make install

gstfakevideo creates a new video stream using your webcam, which is formatted differently and skype seems to get along with it more. The only problem is, it outputs its stream to /dev/video0 which is where our webcam currently lives. So we have to move the webcam, but this is easy enough:

sudo mv /dev/video0 /dev/video1

(Actually, gstfakevideo seems to work for me with lower CPU without moving this – but try it moved first anyway). Watch out though, every time you reboot, your webcam will probably go to /dev/video0 by default, assuming you have no other video devices, so you will have to move stuff about to make a space in video0 each time. Now we see if it works:

gstfakevideo v4lsrc device=/dev/video1 ! ffmpegcolorspace

What this does is runs gstfakevideo, telling it that the source we’re using is a v4l source, and its from /dev/video1. The ffmpegcolorspace argument seems to be for making the stream YUV instead of RGB for some cameras so may not be necessary. It then launches skype, with hopefully the output below:

dave@baracus:~$ gstfakevideo v4lsrc device=/dev/video1 ! ffmpegcolorspace
gst.c create_pipeline (155): pipeline created
gst.c create_pipeline (159): pipeline linked

If you look in the skype video options now there will be no camera listed. You have to wait a while (it can take 30s or so), until you get some output, ending with something like:

gst.c shim_ioctl (201): request=803c7601 nr 1
gst.c shim_ioctl (208): VIDIOCGCAP
gst.c shim_ioctl (313): result=0 error=0 Success

Now a camera should show up in the video menu in skype, with a name like GStreamer fake video (/dev/video0). Try it out, and compare your CPU performance to before. Also try exiting skype, and moving your video source from /dev/video1 back to video0, and running gstfakevideo again, only with device=/dev/video0, and see if it works (and let me know your findings below!).

Finally if gstfakevideo works, we can clean it up so the command isn’t so long to type. The script should be stored in:

/usr/local/bin/gstfakevideo

(Can check this using):

dave@baracus:~$ whereis gstfakevideo
gstfakevideo: /usr/local/bin/gstfakevideo

So we edit this file (requires root):

sudo gedit /usr/local/bin/gstfakevideo

Now, find the line that looks like this:

export GST_PIPE="videotestsrc is-live=true ! video/x-raw-yuv,width=640,height=480,framerate=10/1 ! videoscale ! ffmpegcolorspace ! vertigotv ! ffmpegcolorspace"

and change it to (remember where you put your webcam source – if you moved it back to /dev/video0, change the device parameter accordingly):

export GST_PIPE="v4lsrc device=/dev/video1 ! ffmpegcolorspace"

and finally look a bit further down, and delete the line:

export GST_PIPE="$*"

Now Skype will launch with your faked video stream, just from the command gstfakevideo. Good luck! Let me know how you get on.


120 Responses to “Logitech QuickCam E2500 on Ubuntu Skype”

  1. Hey,
    you are great man! :-)
    You saved me. I have spent 24 hours before with my Logitech QuickCam E2500. This tutorial worked for me:-)
    Thank You!

  2. Glad it worked! If you’re using skype, have a play with the gstfakevideo stuff too.

  3. Thank You! Works!

  4. Hey this is just great! It worked fine. But there is something that annoyes me: First when i run gstfakevideo with skype “gstfakevideo v4lsrc device=/dev/video1 ! ffmpegcolorspace” my webcam worked perfect! it improved the brigthness automatically. after moving video0 to video1 it never worked again within skype. i moved it back but the brightness didnt improve automatically either.
    ps: it still works in cheese!!

    what can i do?

  5. Do you mean it worked the first time with the “device=/dev/video1″ part of the command, but your video was in video0? Also I find that if the autoexp=0 is set, if your room is very light it can really be far too bright in skype. Maybe try playing around with that setting?

  6. Hi,
    Thank you for this helpful site so far. I am somewhat of a beginner in this type of Terminal work. You lost me in the 5th paragraph.
    IOW the zipped tar files gspcav etc were downloaded to my Desktop.
    Do I stay in this directory when I extract the files or move the *.gz files to another directory? If so to which directory?
    (And to save me a lot of reading – how to move the files? )
    Thanks again.

  7. Me again. Re-reading my questions I realise I’ve left out key bits. I did extract both files. It was when I typed “cd gspcav1-20071224″ that things unravelled. I got an error ‘no such file or directory’. Therefore I assumed I had started out in the wrong (Desktop) directory! So (IOW) what now?
    FrankBe44

  8. Nice HowTo,

    Skype works with the webcam now, but this fakevideo stuff not yet, I got an error message when I used make to compile from the source, but I’ll try the next days to find the problem. Actually you saved my day ;-)

  9. u r the best!!! it worked. The only thing is, that it seems now a bit too bright. But i will try to adjust the gamma parameter.

    thanks a lot!

  10. ooops…I posted too early :( – When I wanna compile gstfakevideo I get this:

    ~/gstfakevideo$ make
    gcc -O2 -Wall -m32 `pkg-config gstreamer-0.10 –cflags` -ldl `pkg-config gstreamer-0.10 –libs` -shared -fpic gst.c gstfakevideo.c -o libgstfakevideo.so
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../libgstreamer-0.10.so when searching for -lgstreamer-0.10
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/../../../libgstreamer-0.10.a when searching for -lgstreamer-0.10
    /usr/bin/ld: skipping incompatible /usr/bin/../lib/libgstreamer-0.10.so when searching for -lgstreamer-0.10
    /usr/bin/ld: skipping incompatible /usr/bin/../lib/libgstreamer-0.10.a when searching for -lgstreamer-0.10
    /usr/bin/ld: skipping incompatible /usr/lib/libgstreamer-0.10.so when searching for -lgstreamer-0.10
    /usr/bin/ld: skipping incompatible /usr/lib/libgstreamer-0.10.a when searching for -lgstreamer-0.10
    /usr/bin/ld: cannot find -lgstreamer-0.10
    collect2: ld gab 1 als Ende-Status zurück
    make: *** [libgstfakevideo.so] Fehler 1

    any ideas how to fix that?

  11. hmm, might be a problem with dependencies… try:

    sudo apt-get install libgstreamer0.10-dev pkg-config

    and see what happens.

  12. nope…that doesn’t help. It tells me, that libgstreamer0.10-dev and pkg-config already are the newest versions. Do I have to install any 32bit libaries on my 64bit machine?

  13. ah, it might be a conflict with gstfakevideo and the 64 bit version of the gstreamer package then. I’m afraid I don’t know how you’d go about fixing that! sorry :(

  14. Perfect, my webcam with Skype works perfectly, thank you!!!

  15. Worked like a charm! Thanks.

  16. I followed your method on fc9.
    After I modprobe -v gspca, I can see /dev/video and video0.
    However, when I rrun cheese, there is nothing come out.
    The green light on the camera is not on.

    Any suggestion?

  17. I gave up.
    I bought another Logitech Quickcam Communicate MP
    and it worked well with Fedora 9.
    Just plug in!

  18. Thank you very much! Your tutorial worked properly for my webcam. Where can I find something about tuning light etc.?

  19. Just try adjusting the gamma and autoexp parameters and see what happens.

  20. The patch you provided does work for the Logitech Quickcam E2500 but no other logitech webcam (with product id 0×046d) will work with the gspca driver. This is due to a bad placement of the case for the model id 089d.
    The following patch will let all other logitech webcams work as usual with the gspca driver :
    424a425
    > LogitechQuickCamE2500,
    622a624
    > {LogitechQuickCamE2500,”Logitech QuickCam E2500″},
    836a839
    > {USB_DEVICE(0×046d, 0×089d)}, /* Logitech QuickCam E2500 */
    3353a3357,3361
    > case 0×089d:
    > spca50x->desc = LogitechQuickCamE2500;
    > spca50x->bridge = BRIDGE_ZC3XX;
    > spca50x->sensor = SENSOR_MC501CB;
    > break;

    Thank’s for all the help on this page, which has been of great help.

  21. The last patch is maybe clearer as following, it comes from the debian sources :

    — gspca-01.00.20/gspca_core.c 2007-12-24 17:56:47.000000000 +0100
    +++ gspca-01.00.20-1s1/gspca_core.c 2008-09-16 11:27:26.000000000 +0200
    @@ -422,6 +422,7 @@
    Lenovo,
    LogitechQC4Notebooks,
    PhilipsSPC220NC,
    + LogitechQuickCamE2500,
    LastCamera
    };
    static struct cam_list clist[] = {
    @@ -620,6 +621,7 @@
    {Lenovo,”lenovo MI1310_SOC”},
    {LogitechQC4Notebooks,”Logitech QuickCam for Notebooks”},
    {PhilipsSPC220NC,”Philips SPC220NC PAC207″},
    + {LogitechQuickCamE2500,”Logitech QuickCam E2500″},
    {-1, NULL}
    };
    static __devinitdata struct usb_device_id device_table[] = {
    @@ -834,6 +836,7 @@
    {USB_DEVICE(0×046d, 0×08af)}, /* Logitech QuickCam Cool */
    {USB_DEVICE(0×093a, 0×2472)}, /* PAC207 Genius VideoCam ge110 */
    {USB_DEVICE(0×093a, 0×2463)}, /* Philips spc200nc pac207 */
    + {USB_DEVICE(0×046d, 0×089d)}, /* Logitech QuickCam E2500 */
    {USB_DEVICE(0×0000, 0×0000)}, /* MystFromOri Unknow Camera */
    {} /* Terminating entry */
    };
    @@ -3351,6 +3354,11 @@
    spca50x->bridge = BRIDGE_SPCA500;
    spca50x->sensor = SENSOR_INTERNAL;
    break;
    + case 0×089d:
    + spca50x->desc = LogitechQuickCamE2500;
    + spca50x->bridge = BRIDGE_ZC3XX;
    + spca50x->sensor = SENSOR_MC501CB;
    + break;
    case 0×08a0:
    spca50x->desc = QCim;
    spca50x->bridge = BRIDGE_ZC3XX;

  22. Thanks for writing this, it worked for the most part, I just ran into one problem:

    editing /etc/modprobe.d/options refuses to save, as it’s a root owned file. I tried running a python script to write options gspca gamma=1 autoexpo=0 to, but that failed as well.

    How did you do it?

  23. Hi,
    This fix looks wonderful…
    Do you think it will work for S5500 quick cam..

    I am strugling to make it run…

    Cheers,
    Deeps

  24. logicalyrandom: have you tried editing the file as root?

    sudo gedit /etc/modprobe.d/options

    You should be able to save it like that.

    Deeps: sorry, I’m not sure about the specifics for that camera. Try doing lsusb and see if the camera has the code 046d:089d – that is the one associated with the E2500, and it may mean that the process is compatible somehow.

  25. Hi Dave, this are info about the uvc camera
    System is using:
    Logitech QuickCam S5500
    Release 2008
    ASIC: SPCA522
    Vendor ID:V046d
    Product ID:P09a1
    P/N:8L – 860-106(from box)
    M/N:V-UCR45 (from box)
    PID: LZ821B8 (from box)
    P/N:9L – 960-000245 (from box)
    with uvc driver, I am getting this message
    [170.198614] usb 1-1: new high speed USB device using fsl-ehci and address 2
    [ 170.455745] usb 1-1: device v046d p09a1 is not supported
    [ 170.461521] usb 1-1: configuration #1 chosen from 1 choice [170.486674] USB Host suspended

    Thanks for your time…
    Rgds,
    Deeps

  26. [...] Quickcam E2500 I have installed what i found here actionshrimp.com

  27. [...] the gspca drivers. Ekiga would not recognize the camera. I then followed the directions here: actionshrimp.com

  28. Was having no luck with my Logitech E2500. Also in a double bind as it works fine under Windows XP but I just got newly connected to the net with a cable connection and Windows won’t recognise the connection – nada – just keeps telling me it’s waiting for … something.
    However, Ubuntu and SuSE linux both recognised and dealt with the connection without me having to do anything at all – it just worked out of the box. So I really am not bothered about using Windows at all – but it does mean some gadgets need a lot more work – however your instructions worked perfectly. Haven’t tried the gstfakevideo thing yet, but the fact that I can get it to work in Camorama is a big step forward. Thanks a lot!

  29. Works like a charm! For me the gstfakevideo script also worked with /dev/video0, on Ubuntu 8.10 . Thanks a lot! The tutorial not only gave a great solution, but it saved me a lot of time for trying to make the cam work…

  30. This does not work on Ubuntu Intrepid 8.10. Other’s have had the same problem but no one seems to be able to find the solution. Here’s the output I get:

    REMOVE the old module if present
    ERROR: Module gspca does not exist in /proc/modules

    CLEAN gspca source tree
    rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
    .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
    *.symvers *.err

    COMPILE gspca Please Wait ….!!

    INSTALL gspca in the kernel binary tree
    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

    LOAD gspca in memory
    FATAL: Module gspca not found.

    PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
    make -C /lib/modules/`uname -r`/build SUBDIRS=/home/***/Downloads/gspcav1-20071224 CC=cc modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic’
    CC [M] /home/***/Downloads/gspcav1-20071224/gspca_core.o
    /home/***/Downloads/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
    /home/***/Downloads/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
    /home/***/Downloads/gspcav1-20071224/gspca_core.c:2466: error: implicit declaration of function ‘video_usercopy’
    /home/***/Downloads/gspcav1-20071224/gspca_core.c: At top level:
    /home/***/Downloads/gspcav1-20071224/gspca_core.c:2612: error: unknown field ‘owner’ specified in initializer
    /home/***/Downloads/gspcav1-20071224/gspca_core.c:2612: warning: initialization from incompatible pointer type
    /home/***/Downloads/gspcav1-20071224/gspca_core.c:2614: error: unknown field ‘type’ specified in initializer
    /home/***/Downloads/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
    /home/***/Downloads/gspcav1-20071224/gspca_core.c:2772: error: implicit declaration of function ‘video_device_create_file’
    /home/***/Downloads/gspcav1-20071224/gspca_core.c:2783: error: implicit declaration of function ‘video_device_remove_file’
    /home/***/Downloads/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
    /home/***/Downloads/gspcav1-20071224/gspca_core.c:4314: error: incompatible types in assignment
    make[2]: *** [/home/***/Downloads/gspcav1-20071224/gspca_core.o] Error 1
    make[1]: *** [_module_/home/***/Downloads/gspcav1-20071224] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic’
    make: *** [default] Error 2

  31. I am having the same problem as Permafrost91. I immediately noticed that the gspca module was not loaded in the new 2.6.27-7 kernel, even though most forums seem to indicate that it is included. I tried manually compiling from the original gspca source, but i get the same errors listed above.

    p.s. pulseaudio is giving me hell in ibex as well. upgrading has so far proven to be the wrong choice

  32. I have the same maddening issue.

    Hopefully its a trivial fix :-)

  33. Yeah I’m having the same issue guys, seems to be a kernel problem from what I’ve read and not a lot we can do. Hopefully the camera should just work on its own soon… I grow tired of fiddling around with it.

  34. i grow tired of it too – this is my only fiddly thing on my laptop.

  35. great! your detailed instructions have helped me so much, as you’ve saved me *many* hours and spared me the hassle of returning yet another webcam.)

    i’m using quickcam connect (not e2500), along w/ the patch that was given on forums.quickcamteam.net everything works exactly as you described: the video was really dark at first, so i added the line to the /etc/modprobe.d/options file. with this, it seems over-exposed and bright. also, if i simply use camorama, the colors are ugly and are yellow/blueish. any ideas? please email me. thanks!!

  36. Sorry but….

    ~$ gstfakevideo v4lsrc device=/dev/video1 ! ffmpegcolorspace
    gst.c create_pipeline (155): pipeline created
    gst.c create_pipeline (159): pipeline linked
    gst.c shim_ioctl (201): request=80685600 nr 0
    gst.c shim_ioctl (313): result=-1 error=515 Errore sconosciuto 515

    gst.c shim_ioctl (201): request=803c7601 nr 1
    gst.c shim_ioctl (208): VIDIOCGCAP
    gst.c shim_ioctl (313): result=0 error=0 Riuscito

    gst.c bus_callback (105): Error: Impossibile aprire il device «/dev/video1» in lettura e scrittura.

  37. Im running Ubuntu 8.10 now, and I have about the same errors as Permafrost91.

    INSTALL gspca in the kernel binary tree
    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 finns inte
    make: *** [install] Error 1

    LOAD gspca in memory
    FATAL: Module gspca not found.

    Any clues?

  38. Kubuntu 8.10 upgraded from Hardy. So i have 4 versions of kernel. the only one was working 4 me on hardy and interpid, was 2.6.24-19-generic with my webcam (trust 1400 T something. ) but S…omething happened to my cam :) and i got mikomi 300k (didnt work on interpid any way i tried. I read before about quite good support 4 logitech web cams so i have my Logitech QuickCam E 2500 around 3 hours, and guess what? Interpid dont seems to like her :) so i ended up with 2 webCams (mikomi and Logitech) its middle of the night, and in ireland cant even buy any drink:) (sorry 4 english) I can doo allmost everything i want (if i know how :) ) on kubuntu, russians send a dog into space years ago, and logitech can’t develop a webCam driver? Its in the price of Webcam, for windows, but i paid for it:( where is mine? I know im a bit cranky, but 3rd time same story? i allready sacraficed standard desktop effects because openGl and movies problem.

  39. i could’t get a drink, so i bought same webCam as i had 1st time Trust WB 1400T and it works wiet my old kernel from hardy (2.6.24-19-generic) and gspcav1-20071224. So i have 3 webcams and 1 working… ech, i wont install windows again anyway :)

  40. Got it working! Use the patch you can download in this forum:
    http://ubuntuforums.org/showthread.php?t=966932&highlight=e2500

    so instead of running wget http://forums.quickcamteam.net/attachment.php?aid=86 -O patch.tar.gz,

    do a

    gunzip gspca.patch.gz

    which will create gspca.patch

    cd into your gspca directory

    cd gspcav1-20071224

    and patch

    patch < ../gspca.patch

    gspca should compile now and correctly install when you run

    sudo ./gspca_build

    make sure to remove gspca_main module

  41. thanks sweeper! I even managed to get this to work using the source in the ubuntu gspca-source package on the repos, by patching the code there. Only problem is, it seems like the webcam’s not working at first because of strange permission issues, not quite sure what the problem is. A lot of apps wont work with the webcam giving a permission denied /dev/video0 error, but if you run the apps as root, it works fine. But hey – at least I have video in skype again now using sudo gstfakevideo.

    :)

  42. SWEEPER – You are awesome- Thanks.

  43. Does this tutorial also work on the S5500 model?

    Thanks.

  44. When I try to apply the patch nothing happens. The cursor just hangs. The process is sleeping and there’s no output in the terminal. I tried to reinstall patch, but no luck. Any ideas?

  45. Hey, This was very helpful, theres not a whole lot of camera selection here in Korea, so I whipped out my Notebook in the store and found this page and got a quickcam 2500. I’ve got the it working with skype in intrepid within two hours. Not bad considering I’m a linux newb.

    would anyone care to update the wiki at:https://wiki.ubuntu.com/HardwareSupportComponentsMultimediaWebCamerasLogitech

    Including a link to this page. I wouldn’t know how to do it right.

  46. hmm… comma splice and “got the it working”

    Would you believe I’m an English teacher?

  47. hey actionshrimp, great work, seems like the best guide so far to get this damned cam working. Unfortunately, i seem to be too noob to see it through.
    When i try to:

    sudo ./gspca_build

    i get this:

    sudo ./gspca_build

    REMOVE the old module if present
    ERROR: Module gspca does not exist in /proc/modules

    CLEAN gspca source tree
    rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
    .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
    *.symvers *.err

    COMPILE gspca Please Wait ….!!

    INSTALL gspca in the kernel binary tree
    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

    LOAD gspca in memory
    FATAL: Module gspca not found.

    PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
    make -C /lib/modules/`uname -r`/build SUBDIRS=/home/cynop/gspcav1-20071224 CC=cc modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic’
    CC [M] /home/cynop/gspcav1-20071224/gspca_core.o
    /home/cynop/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
    /home/cynop/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
    /home/cynop/gspcav1-20071224/gspca_core.c:2466: σφάλμα: implicit declaration of function ‘video_usercopy’
    /home/cynop/gspcav1-20071224/gspca_core.c: At top level:
    /home/cynop/gspcav1-20071224/gspca_core.c:2612: σφάλμα: unknown field ‘owner’ specified in initializer
    /home/cynop/gspcav1-20071224/gspca_core.c:2612: προειδοποίηση: initialization from incompatible pointer type
    /home/cynop/gspcav1-20071224/gspca_core.c:2614: σφάλμα: unknown field ‘type’ specified in initializer
    /home/cynop/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
    /home/cynop/gspcav1-20071224/gspca_core.c:2772: σφάλμα: implicit declaration of function ‘video_device_create_file’
    /home/cynop/gspcav1-20071224/gspca_core.c:2783: σφάλμα: implicit declaration of function ‘video_device_remove_file’
    /home/cynop/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
    /home/cynop/gspcav1-20071224/gspca_core.c:4314: σφάλμα: incompatible types in assignment
    make[2]: *** [/home/cynop/gspcav1-20071224/gspca_core.o] Error 1
    make[1]: *** [_module_/home/cynop/gspcav1-20071224] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic’
    make: *** [default] Error 2

    any ideas?

  48. just to add, i’m working with 8.10

  49. I’m just confirming this works in Intrepid for Kernel 2.6.27-9-generic

    with the second patch from the other forum of course

  50. Hi, im trying to install Logitech QuickCam E2500. Everything ok, but when i try to execute ./gspca_build the result is:

    FATAL you need to install the Kernel Source for your running kernel

    So i’ve tried:

    [user@localhost gspcav1-20071224]$ sudo yum install build-essential linux-headers-$(uname -r)
    Loaded plugins: refresh-packagekit
    Setting up Install Process
    Parsing package install arguments
    No package build-essential available.
    No package linux-headers-2.6.25-14.fc9.i686 available.
    Nothing to do
    [user@localhost gspcav1-20071224]$

    And:

    [kmarinr@localhost gspcav1-20071224]$ sudo yum install kernel-devel kernel-headers
    Loaded plugins: refresh-packagekit
    Setting up Install Process
    Parsing package install arguments
    Resolving Dependencies
    –> Running transaction check
    —> Package kernel-headers.i386 0:2.6.27.7-53.fc9 set to be updated
    —> Package kernel-devel.i686 0:2.6.27.7-53.fc9 set to be installed
    –> Finished Dependency Resolution

    Dependencies Resolved

    =============================================================================
    Package Arch Version Repository Size
    =============================================================================
    Installing:
    kernel-devel i686 2.6.27.7-53.fc9 updates-newkey 5.5 M
    Updating:
    kernel-headers i386 2.6.27.7-53.fc9 updates-newkey 750 k

    Transaction Summary
    =============================================================================
    Install 1 Package(s)
    Update 1 Package(s)
    Remove 0 Package(s)

    Total download size: 6.2 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/2): kernel-devel-2.6.27.7-53.fc9.i686.rpm | 5.5 MB 01:35
    (2/2): kernel-headers-2.6.27.7-53.fc9.i386.rpm | 750 kB 00:11
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing: kernel-devel ######################### [1/3]
    Updating : kernel-headers ######################### [2/3]
    Cleanup : kernel-headers ######################### [3/3]

    Installed: kernel-devel.i686 0:2.6.27.7-53.fc9
    Updated: kernel-headers.i386 0:2.6.27.7-53.fc9
    Complete!
    [kmarinr@localhost gspcav1-20071224]$ sudo ./gspca_build

    FATAL you need to install the Kernel Source for your running kernel

    what can i do??

    thanks.

  51. New Ubuntu 8.10 (Intrepid) install, and ended up with 2.6.27-10-generic. It still lacks support for Logitech QuickCam E 2500 (of course), so I tried to build gspcav1-20071224 with patch above (quickcamE2500.diff), and that failed badly:

    no include asm/semaphore.h (which probably has been moved to be linux/semaphore.h), then bad “struct video_device” (seems like the v1 variations have been gracefully removed as well). I can’t work it out, but a new patch is required.

    Or even better: someone should add it to the distributed gspca v2 (but then it wouldn’t not work out of the box, of course) (can’t help wondering where improvement will strike next… maybe disk drives have been working too well too long?)

  52. Got myself a Logitech Communicator S5500 instead. Worked out of the box with skype and cheese, but I have some problems with mplayer.

  53. Hi,
    I can’t build the gspca.ko but I can’t understand the reason why, can anybody help?

    root@ubuntu:/home/evg/Desktop/gspcav1-20071224# sudo ./gspca_build

    REMOVE the old module if present
    ERROR: Module gspca does not exist in /proc/modules

    CLEAN gspca source tree
    rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
    .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
    *.symvers *.err

    COMPILE gspca Please Wait ….!!

    INSTALL gspca in the kernel binary tree
    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

    LOAD gspca in memory
    FATAL: Module gspca not found.

    PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
    make -C /lib/modules/`uname -r`/build SUBDIRS=/home/evg/Desktop/gspcav1-20071224 CC=cc modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.27-9-generic’
    CC [M] /home/evg/Desktop/gspcav1-20071224/gspca_core.o
    /home/evg/Desktop/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
    /home/evg/Desktop/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
    /home/evg/Desktop/gspcav1-20071224/gspca_core.c:2466: error: implicit declaration of function ‘video_usercopy’
    /home/evg/Desktop/gspcav1-20071224/gspca_core.c: At top level:
    /home/evg/Desktop/gspcav1-20071224/gspca_core.c:2612: error: unknown field ‘owner’ specified in initializer
    /home/evg/Desktop/gspcav1-20071224/gspca_core.c:2612: warning: initialization from incompatible pointer type
    /home/evg/Desktop/gspcav1-20071224/gspca_core.c:2614: error: unknown field ‘type’ specified in initializer
    /home/evg/Desktop/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
    /home/evg/Desktop/gspcav1-20071224/gspca_core.c:2772: error: implicit declaration of function ‘video_device_create_file’
    /home/evg/Desktop/gspcav1-20071224/gspca_core.c:2783: error: implicit declaration of function ‘video_device_remove_file’
    /home/evg/Desktop/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
    /home/evg/Desktop/gspcav1-20071224/gspca_core.c:4314: error: incompatible types in assignment
    make[2]: *** [/home/evg/Desktop/gspcav1-20071224/gspca_core.o] Error 1
    make[1]: *** [_module_/home/evg/Desktop/gspcav1-20071224] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-9-generic’
    make: *** [default] Error 2

  54. I am having the same problem as Ernesto, unable to build the gspca.ko
    I have a large number of gspca_*.ko files in /lib/modules (for three different kernel versions)
    The camera is correctly identified if I “lsusb”.
    Is this a permissions issue, or am I missing something fundamental?

  55. Hi,

    I’m trying to download that patch mentioned above from Ubuntu Forums for 8.10 however I am not a registered user so I can’t access the patch. Registering with Ubuntu Forums sucks as they won’t send the activation link by mail necessary to access the patch.

    Can somebody please paste the patch here or upload it to a location where everybody can access it without registering? Thanks!

    Happy 2009!

    Tobias

  56. Hey Tobias, I’ve uploaded it to here if you still need it:

    http://www.actionshrimp.com/wordpress/wp-content/uploads/2009/01/gspcapatch.gz

  57. Thank!
    I have e2500 too and I tired to see 046d:089d.
    But I use kopete. Does kopete works with it?
    In program configurations it doesn’t detect webcam.
    Sorry for my English.

  58. william@linux-q17y:~/Logitech> tar -xvf gspcav1-20071224.tar.gz
    tar: gspcav1-20071224.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    william@linux-q17y:~/Logitech> tar -xvf patch.tar.gz
    tar: patch.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    william@linux-q17y:~/Logitech> cd gspcav1-20071224
    william@linux-q17y:~/Logitech/gspcav1-20071224> patch -p1 sudo ./gspca_build
    root’s password:

    REMOVE the old module if present
    ERROR: Module gspca does not exist in /proc/modules

    CLEAN gspca source tree
    rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
    .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
    *.symvers *.err

    COMPILE gspca Please Wait ….!!

    INSTALL gspca in the kernel binary tree
    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

    LOAD gspca in memory
    FATAL: Module gspca not found.

    PRINT COMPILATION MESSAGES if ERRORS look kgspca.err

    make -C /lib/modules/`uname -r`/build SUBDIRS=/home/william/Logitech/gspcav1-20071224 CC=cc modules
    make[1]: Entering directory `/usr/src/linux-2.6.27.7-9-obj/i386/pae’
    make -C ../../../linux-2.6.27.7-9 O=/usr/src/linux-2.6.27.7-9-obj/i386/pae/. modules
    CC [M] /home/william/Logitech/gspcav1-20071224/gspca_core.o
    /home/william/Logitech/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
    /home/william/Logitech/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
    /home/william/Logitech/gspcav1-20071224/gspca_core.c:2466: error: implicit declaration of function ‘video_usercopy’
    /home/william/Logitech/gspcav1-20071224/gspca_core.c: At top level:
    /home/william/Logitech/gspcav1-20071224/gspca_core.c:2612: error: unknown field ‘owner’ specified in initializer
    /home/william/Logitech/gspcav1-20071224/gspca_core.c:2612: warning: initialization from incompatible pointer type
    /home/william/Logitech/gspcav1-20071224/gspca_core.c:2614: error: unknown field ‘type’ specified in initializer
    /home/william/Logitech/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
    /home/william/Logitech/gspcav1-20071224/gspca_core.c:2772: error: implicit declaration of function ‘video_device_create_file’
    /home/william/Logitech/gspcav1-20071224/gspca_core.c:2783: error: implicit declaration of function ‘video_device_remove_file’
    /home/william/Logitech/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
    /home/william/Logitech/gspcav1-20071224/gspca_core.c:4314: error: incompatible types in assignment
    make[4]: *** [/home/william/Logitech/gspcav1-20071224/gspca_core.o] Error 1
    make[3]: *** [_module_/home/william/Logitech/gspcav1-20071224] Error 2
    make[2]: *** [sub-make] Error 2
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.27.7-9-obj/i386/pae’
    make: *** [default] Error 2

    Can’t get it to work in Skype (which ii exactly what I want!)

    Please help! I need ASAP, all family is getting it and I use Linux, and don’t want to use Windows…. PS I use openSUSE, but it’s the same basic principles, right?

    LinuxMonster761

  59. I got online, got a NZ$9.01c (new) camera in an auction, plugged it in, Cheese works, Xawtv works (only catches video with sound in Quicktime, but OggConvert can sort the files out). Skype works, aMSN works. All on straight out of the update manager files from Proposed, Intrepid 64 bit.
    I am sure there will soon be a fix for my Logitech E2500, but I might just stick with the nine dollar and one cent working one!

  60. Hello,

    I’ve tried several times to get this camera working in Intrepid using the 2.6.27-9 kernel and continue to fail. My install is fully up to date and I have followed all of the steps above (using the patch from ubuntuforums) but it still fails to work… Does anyone know what I’m doing wrong?

    I plug in the camera and run dmesg | tail and it shows the device supposedly using the correct driver:

    [ 1796.866152] usbcore: registered new interface driver gspca
    [ 1796.868701] gspca: gspca driver 01.00.20 registered
    [ 1912.351844] usbcore: deregistering interface driver gspca
    [ 1912.353885] gspca: driver gspca deregistered
    [ 1975.514550] gspca: USB GSPCA camera found.(ZC3XX)
    [ 1975.514565] gspca: [spca5xx_probe:4289] Camera type JPEG
    [ 1975.514570] gspca: [zc3xx_config:588] Sensor MC501CB
    [ 1975.517837] gspca: [spca5xx_getcapability:1252] maxw 640 maxh 480 minw 160 minh 120
    [ 1975.518029] usbcore: registered new interface driver gspca
    [ 1975.518036] gspca: gspca driver 01.00.20 registered

    But when I try to launch cheese it says it cannot find a camera and skype shows no devices (even when using gstfakevideo). When I run ls /dev/vid* it shows up /dev/video0 and I have no other video hardware installed. I did get it working in 8.04 but I 8.10. Does anyone know what might be wrong?

    Thanks
    David

  61. Thank you, it worked. I integrated the procedure I found above with something in the ubuntu forums about downloading gstfakevideo libraries. It was fun. I had never gone so far yet. My Logitech e2500 works on skype all right now.

  62. I also tried it, and used the patch of sweeper
    (November 14th, 2008 at 1:19 pm). I followed the instructions, but I don’t get an video-device in /dev, no video*? What can I do? Please help me!!!

  63. I also tried it (ubuntu 8.10), and used the patch-file of sweeper (November 14th, 2008 at 1:19 pm), because the other one doesn’t work.
    But I don’t get a video-device. No /dev/video* at all!!!!

    What can I do? Please help me!

  64. ups, sorry

  65. Now I have a /dev/video0 (because I connected the WebCam before I installed everything. Now I have the same problem as David Mulholland, January 3rd, 2009 at 11:29 pm

  66. Nischni, David,
    I had the same problems that you had but the answer was available on this very page. It will work if you run the program as root, because the permissions of the video are not set correctly.

    You could also fix this by running this command:

    # sudo chmod 777 /dev/video*

    Now all that’s off is the color, but that can probably be fixed with the solution of the original post. Add this line to /etc/modprobe.d/options:

    # options gspca gamma=1 autoexpo=0

    Now restart the module gspca:

    # sudo rmmod gspca
    # sudo modprobe gspca
    # sudo chmod 777 /dev/video*

    The problem should be fixed now. Cheese Webcam Booth won’t work, but Camorama does. I haven’t tested the extra things you should do to make Skype work.

    If anybody comes up with an automated way to start the gspca module on boot and then execute the chmod command automatically, I’d be pleased to know.

    Sincerely,
    Pieter

  67. YEEEEEAAAAAAAAAAAHHHHHHHH!!!!!!
    you totally rock!!!!!!!!

    i mean your page is the only one that could help me out with that camera + opensuse (i don’t have ubuntu)! i areally dig that you take your time to wirte tutorials like these!!! thanks a lot. it also helped me to gain some new experiences in linux and go deeper since i’ve just been using this for a few days… but slowly i’m making all my hardware work and it’s even fun!!
    that option file mentioned above hadn’t existed before so i just created it and even that works! i’m so glad and proud of all of us who contribute reclaiming our business (talking about open source and such..) – i don’t have to use windows anymore and that is so awesome!!!!

    again, thanks and all the best to all of you

  68. Dear Shrimps, my logitech e2500 webcam worked for a few days with the changes we were able to apport. then it stopped after I updated the system. I made it work again with skype but found some inconsistency in the procedure when we remove and then move the removed file gspca.ko. It’s ok with me but this time it was not ok with terminal since it said gspca.ko does not exist. I know – we just deleted it! so I skipped it and skype works… with gstfakevideo command after moving about a few times /dev/video0 to /dev/video1 and back again possibly repeating all the procedure from the very wget part at the beginning, or parts of it at every reboot… well, shall I trade my e2500 logitech for some more linux friendly device? or keep up the fight? The second for the time being, though cheese is not working and I cannot take pics of my beautiful face…

    Ciao

  69. ps: candlelight is best with skype and gamma1… while I redownloaded from source the missing module gspca a few times and reinstalled it whenever terminal went gspca: no such file or directory

  70. Cheese too is working ok now. The feeling is that if I take care of moving /dev/video0 to /dev/video1 before launching skipe with gstfakevideo command and move it back again to /dev/video0 after I quit, cheese too will work. It maybe a matter of /dev/video1 not existing, but skype just wants it in my machine after I interacted with this web page of yours. camorama worked all right from the beginning – was cheese jealous? I’ll let you know what happen when my hp idontknowwhat laptop’s (120 gb) circuitry cool down. Thank You, Thank You

  71. Hi everyone!

    I have a 8.10 64bit ubuntu with 2.6.27-9-generic kernel. I have a Logitech E2500 (M/N:V-UCV39). I’ve succeed to make the gspca.ko file, with Dave’s patch at the comments, and i followed the instuctions above. I think i made it right, but my amsn or ekiga don’t see the webcam.

    But it seems to be all right:

    jani@sleepingrabbit:~$ ls /dev/video*
    /dev/video0
    jani@sleepingrabbit:~$ lsmod | grep gspca
    gspca 702032 0
    compat_ioctl32 18176 1 gspca
    videodev 46720 2 gspca,compat_ioctl32
    usbcore 175376 8 snd_usb_audio,snd_usb_lib,btusb,gspca,usbhid,ehci_hcd,uhci_hcd

    Does anyone have an idea, what would be wrong?
    Sorry for my bad english.
    Thanks!

    Jani

  72. Nice work I have Logitech E2500 working with Skype on 64 bit ubuntu Intrepid.
    Got gstfakevideo compiled eventually (needed to set up 32 bit environment) and installed. unfortunately it does not work.
    output in terminal is:
    ERROR: ld.so: object ‘/usr/local/lib/libgstfakevideo.so’ from LD_PRELOAD cannot be preloaded: ignored.

    skype then starts: if I have video0 changed to video1 no camera shows in skype and no picture ever comes.
    if the /dev/video0 is left alone the camera shows as normal and shows a picture on test with the CPU at 100%.
    Any idea why gstfakevideo doesn’t work.
    thanks for the great work.
    pat

  73. Thanks a ton for this patch mate.

    I’m really happy to share that I figured out the issue with Ubuntu Intrepid (8.10) as well. Apparently users aren’t in the “video” group by default, while that’s the group that has permissions to read/write /dev/video0. (I checked this in /etc/group) Then it got trickier, I couldn’t add myself to this group for some reason. I tried through the Users and Groups administration, but the video group did not appear in the list under Group Management, even though it was there in /etc/group. Trying commandline (using gpasswd) didn’t result in any errors but /etc/group wasn’t updated. Updating /etc/group manually was fruitless as well. This still puzzles me.

    How I got around it: added a new group named video (GID 1001) through the Group Manager and restarted X (ctrl+alt+backspace). Then went back and removed the video group (now visible in Group Manager) again. Restarted X. Added the video group again (GID 44 as per /etc/group, where it did exist contrary to System->Administration->Users and Groups) and added myself (and root) to the video group. Then another X restart and presto! I no longer have to run Skype or AMSN as root (which changed permissions of AMSN’s config.xml to root, basically transferring these permissions issues from my /dev/video to my messengers! Running stuff as root is pretty evil most of the time).

    Webcam works for me under Skype and AMSN, not with cheese (though I do get a stream with gstreamer-properties).

  74. Works like a charm!
    Ubuntu 8.04.1 with Skype 2.0.0.72 and a Logitech QuickCam Chat.

    Great job and thank you!, cheers, Ibon.

  75. Hi, thanks for your detailed explanation – it worked well for me. However, I’m using my quickcam E 2500 with opencv, and when I run any program it takes 2 minutes (literally) for the webcam window to come up. A friend’s older quickcam works instantly. I checked the processor workload and it’s not overburdened. Any ideas on why it’s taking so long for the window to come up? (I’m using CENT OS 5.0)

  76. Thank you sooooooooo much !! Your explaination are the clearest.

  77. It’s works. You are great man. Many thanks!!!

  78. Dear Actionshrimp,

    I have a small problem in the installation. See the screen dump below. Basically there is no gspca.ko. From the shell script I do not understand where the file is generated, since the lines above ERROR 1 comprise file system housekeeping, permissions, etc. I do not see any compilation of the driver source code.

    Here are the files in the directory after ./gspca_build has been executed:
    ——————————————–
    changelog decoder gspca_core.c license Mars-Semi Sonix Transvision
    Conexant Etoms gspca.h Makefile Pixart Sunplus utils
    cutlog.py gspca_build kgspca.err Makefile.kld READ_AND_INSTALL Sunplus-jpeg Vimicro
    ———————————————

    Any comments would be very useful, please!

    Kind regards, Willem

    $ sudo ./gspca_build

    REMOVE the old module if present

    CLEAN gspca source tree
    rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
    .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
    *.symvers *.err

    COMPILE gspca Please Wait ….!!

    INSTALL gspca in the kernel binary tree
    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

    LOAD gspca in memory

    PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
    make -C /lib/modules/`uname -r`/build SUBDIRS=/home/willem/Desktop/Logitech E2500/gspcav1-20071224 CC=cc modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.24-23-generic’
    make[1]: *** No rule to make target `E2500/gspcav1-20071224′. Stop.
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-23-generic’
    make: *** [default] Error 2

  79. The solution to the above problem was very easy but extraneous. The name of the directory in which the software had been downloaded was “Logitech E2500″. Of course, the make machine sees this as two words and not as a single directory name. After a change to “Logitech_E2500″ the make works correct and gspca.ko is built. Apologise for posting a trivial post. Kind regards, Willem.

  80. Hey Willem, glad you got it sorted.

  81. I have a Logitech E2500 webcam. Having done the modification above and having installed the new version of gspca.ko, I cannot get a logical device associated with the module. Check the following procedure that I commented in capitals:

    $ ls /lib/modules/2.6.24-23-generic/ubuntu/media/gspcav1/
    gspca.ko # THE KERNEL MODULE IS THERE

    $ sudo modprobe -v gspca # NOW LOAD THE MODULE
    insmod /lib/modules/2.6.24-23-generic/kernel/drivers/media/video/v4l1-compat.ko
    insmod /lib/modules/2.6.24-23-generic/kernel/drivers/media/video/v4l2-common.ko
    insmod /lib/modules/2.6.24-23-generic/kernel/drivers/media/video/videodev.ko
    insmod /lib/modules/2.6.24-23-generic/ubuntu/media/gspcav1/gspca.ko

    $ lsmod | grep gspca # CONFIRM THAT IT IS LOADED
    gspca 643920 0
    videodev 29440 1 gspca
    usbcore 146412 7 gspca,ndiswrapper,usbserial,hci_usb,ehci_hcd,uhci_ hcd

    $ ls /dev/video* # BUT THERE IS NO ASSOCIATED LOGICAL DEVICE !!
    ls: cannot access /dev/video*: No such file or directory

    I understand too little to comprehend what the problem may be but it looks to me probably a basic lack of understanding of how Linux kernel modules work.

    I would appreciate any help. Kind regards.

  82. Dave

    Perfect instructions – thank you! (Haven’t bothered with the CPU problems yet but will when my Skype-ing gets more)

    Switched on Solar!

  83. Willem sorry for the slow replies – sounds odd. Unfortunately I think there are a few reasons this can happen. Have you tried unplugging then plugging the webcam back in after the module has loaded? Also try running the ‘lsusb’ command to make sure that your system recognizes the cam properly. Otherwise I’m not too sure what the problem can be – it has been a while since I played around with it I’m afraid. Have you had any progress since you posted?

  84. Dave, Thanks for the reply. It was probably a hardware problem. Attempted to connect to a Windows machine using the software provided with no success (It irritates be intensely if one has to fall back to Microsoft but that is what the official Logitech driver is written for). Anyway, took it back to the shop and they offered me an E3500 which ran plug-and-play. So there is not final resolution to the problem but the probability of hardware malfunction is 99%. I have been involved with Linux a few years now (first Redhat 7, then Fedora, then Ubuntu) and I must say I get immense satisfaction from working with a completely open system. However, the array of terminal-driven commands is really bewildering and I learn every day. This is the first time I have messed with kernel modules and it was very instructive. Thanks so much for your time. Kind regards, Willem.

  85. good man!

    it works with fedora 9, but with kernel 2.6.25.14 only
    highest versions don’t support gspca

  86. Awesome! You have saved me from booting into Wind*ws to call my relatives, you rock!

  87. Hey,

    I’m up to building gspca, but I get this error:

    brooksaar@Hyperion:~/Desktop/crap/gspcav1-20071224$ sudo ./gspca_build

    REMOVE the old module if present
    ERROR: Module gspca does not exist in /proc/modules

    CLEAN gspca source tree
    rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
    .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
    *.symvers *.err

    COMPILE gspca Please Wait ….!!

    INSTALL gspca in the kernel binary tree
    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

    LOAD gspca in memory
    FATAL: Module gspca not found.

    PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
    make -C /lib/modules/`uname -r`/build SUBDIRS=/home/brooksaar/Desktop/crap/gspcav1-20071224 CC=cc modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.27-11-generic’
    CC [M] /home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.o
    /home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
    /home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
    /home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.c:2466: error: implicit declaration of function ‘video_usercopy’
    /home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.c: At top level:
    /home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.c:2607: error: ‘v4l_compat_ioctl32’ undeclared here (not in a function)
    /home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.c:2612: error: unknown field ‘owner’ specified in initializer
    /home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.c:2612: warning: initialization from incompatible pointer type
    /home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.c:2614: error: unknown field ‘type’ specified in initializer
    /home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
    /home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.c:2772: error: implicit declaration of function ‘video_device_create_file’
    /home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.c:2783: error: implicit declaration of function ‘video_device_remove_file’
    /home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
    /home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.c:4314: error: incompatible types in assignment
    make[2]: *** [/home/brooksaar/Desktop/crap/gspcav1-20071224/gspca_core.o] Error 1
    make[1]: *** [_module_/home/brooksaar/Desktop/crap/gspcav1-20071224] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-11-generic’
    make: *** [default] Error 2

    Any ideas on how to fix it?

    Thanks,

  88. Hello! Thank you for the help. I was able to get the e2500 working in xubuntu 8.10 with skype. However, I have two questions:

    1) How do I get the mic to work? I’ve tried the different ’sound in’ options in skype with no luck, and I’ve cranked all the faders in the OS’s sound mixer

    2) can I ever use skype without going into terminal and using ’sudo skype’?

  89. Please ignore question #1. I solved that issue.

  90. some remarks for beginners:

    1. before running “sudo ./gspca_build” to compile the patched module, you might need to install the “build essential” package which contains everything necessary to perform compilation of modules for your system (sudo apt-get install build-essential) – if you never compiled anything before.

    2. if you get problems with compiling gstfakevideo after checking it from svn, first do: sudo apt-get install libgstreamer0.10-dev – because this one can be missing on your system.

    3. i was doing all the above on fujitsu siemens amilo pro, and its graphics card seems to be not fully supported! one of the results was, that the skype preview window would never show any picture, while the camera actually worked! (even without fakevideo!) the message in the terminal window was “No suitable overlay format found” – so if your preview window remains black, just call somebody to check if you can be seen.

    (the above was tested on ubuntu 8.04. on newer versions of ubuntu the problems might be gone or the packages version might be different. check it in synaptic)

  91. hey man,

    thanks so much – i followed your instruction and it worked!!!!! you’re a legend!!

  92. hey man. i know you probably tired of hearing questions about this issue, you have help me a lot as is so first, thank you. but second…when i open skype and test the video connection i get a green screen of sorts. it is somewhat of a mixture of green with like snow on a tv. a digital green garble if you will. i did get video in cheese..which is awesome! but the video is really dark…so i was looking to edit the exposure like you were saying. I cannot seem to edit the gspca driver however. when typing in the code “sudo rmmod gspca” i get…… “ERROR: Module gspca does not exist in /proc/modules” I tried that code because i could not follow the instruction… “To fix this, edit the file /etc/modprobe.d/options, and add a line at the bottom:” because i cannot find the file…so if you could help me more i would appreciate it..thanks!

  93. also just to add that i am on ubuntu 9.04…so maybe i didnt get the right driver to begin with? im somewhat new to the terminal and sorts, but trying my best because i like what ubuntu stands for so any help will be appreciated.

  94. Hey, I must admit I haven’t tried this out on Jaunty. Not quite sure what has been updated on the gspca front so I’m not a lot of help I’m afraid. This guide could probably do with a bit of an update – if I manage to get it going on 9.04 I’l be sure to make a post though. Sorry :(

  95. I tried this walk-thru on Ubuntu 9.04, and got the camera working. However I was unable to get the fake video gateway to work.

    There were some steps that were different in 9.04 (like setting module load options). The step-by-step that I went through can be found here:

    http://evernote.com/pub/joeymink/openbook/#2ffda174-c6bc-4cef-bc33-ad4a2e6412e0

    Thanks for this article!

  96. works! thank you very much!!!

  97. Joey – link above is broken – could you re-post these instructions?

  98. This camera works out of the box as of the latest update of 9.04

    w00t for FOSS

  99. Hi,

    This worked great to get the cam to work initially, however I can’t get the gstfakevideo part to work. I’m using 9.10.

    When I get to the “make” command it fails miserably.

    brandon@Resident-Geek:~/gstfakevideo$ make
    gcc -O2 -Wall -m32 `pkg-config gstreamer-0.10 –cflags` -ldl `pkg-config gstreamer-0.10 –libs` -shared -fpic gst.c gstfakevideo.c -o libgstfakevideo.so
    Package gstreamer-0.10 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gstreamer-0.10.pc’
    to the PKG_CONFIG_PATH environment variable
    No package ‘gstreamer-0.10′ found
    Package gstreamer-0.10 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gstreamer-0.10.pc’
    to the PKG_CONFIG_PATH environment variable
    No package ‘gstreamer-0.10′ found
    gst.c:25:21: error: gst/gst.h: No such file or directory
    gst.c:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    gst.c:75: error: expected ‘)’ before ‘*’ token
    gst.c:76: error: expected ‘)’ before ‘*’ token
    gst.c:79: error: expected ‘)’ before ‘*’ token
    gst.c: In function ‘on_alarm’:
    gst.c:89: warning: implicit declaration of function ‘play’
    gst.c:89: error: ‘pipeline’ undeclared (first use in this function)
    gst.c:89: error: (Each undeclared identifier is reported only once
    gst.c:89: error: for each function it appears in.)
    gst.c: At top level:
    gst.c:93: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bus_callback’
    gst.c:123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    gst.c:174: error: expected ‘)’ before ‘*’ token
    gst.c:178: error: expected ‘)’ before ‘*’ token
    gst.c: In function ‘shim_open’:
    gst.c:185: error: ‘pipeline’ undeclared (first use in this function)
    gst.c:186: warning: implicit declaration of function ‘create_pipeline’
    gst.c:192: warning: implicit declaration of function ‘g_print’
    make: *** [libgstfakevideo.so] Error 1

    Any ideas on how to fix this?
    Thanks.

  100. Totally meant 9.04 there, aye. Not 9.10. :P

  101. UPDATE: I tried adding another step in, based on the instructions here . (The middle line was the added one.)

    cd gstfakevideo
    sudo apt-get install libgstreamer0.10-dev
    make

    This got me as far as testing it out… and got the following.

    brandon@Resident-Geek:~/gstfakevideo$ gstfakevideo v4lsrc device=/dev/video1 ! ffmpegcolorspace
    gst.c create_pipeline (155): pipeline created
    gst.c create_pipeline (159): pipeline linked
    gst.c shim_ioctl (201): request=80685600 nr 0
    gst.c shim_ioctl (313): result=-1 error=515 Unknown error 515

    gst.c shim_ioctl (201): request=803c7601 nr 1
    gst.c shim_ioctl (208): VIDIOCGCAP
    gst.c shim_ioctl (313): result=0 error=0 Success

    gst.c bus_callback (105): Error: Could not open device “/dev/video1″ for reading and writing.

    (Skype returned the error “Sign in failed, Another Skype instance may exist”. There was definitely no other instance running.)

    So again, I’m stuck. Which way should I go? And how do I fix that way?

  102. Ok then, I’m assuming that there will be no help from here. :S

  103. Hi, it doesn’t work for me. Using cheese the webcam works fine, but with skype I just get a random pixel sort of image. Anybody having the same problems ?

  104. Hi,

    thank you very much this tip worked for my ubuntu 9.04, I also applied the patch:

    $./gspca_build
    $make install

    after that my microsoft(Microsoft Corp. LifeCam VX-3000) camera became instantly visible in skype and camorama.

  105. Thanks mate – works perfectly, even better that with other webcams I’ve had.

  106. Hi,

    I built the gspca driver using your post. When it’s loaded I got following messages:

    #
    Sep 13 22:17:10 dcerouter kernel: [36747.700776] Linux video capture interface: v2.00
    #
    Sep 13 22:17:11 dcerouter kernel: [36747.758067] gspca: probe of 2-2.2:1.0 failed with error -5
    #
    Sep 13 22:17:11 dcerouter kernel: [36747.759218] usbcore: registered new interface driver gspca
    #
    Sep 13 22:17:11 dcerouter kernel: [36747.760309] gspca: gspca driver 01.00.20 registered

    The /dev/videoX is not created. Any idea how to fix it? I run Kubuntu 7.10 with kernel 2.6.27.2

  107. Just a quick note to thank you for posting this quick guide. Worked like a charm.

    If you want the gspca module to load automatically at boot time, just configure your /etc/modules script and add the following 2 lines:

    #GSPCA module for Logitech Quickcam Connect
    gspca

    Hope that works.

    Thanks again.

    Joe

  108. REMOVE the old module if present
    ERROR: Module gspca does not exist in /proc/modules

    CLEAN gspca source tree
    rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
    .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
    *.symvers *.err

    COMPILE gspca Please Wait ….!!

    INSTALL gspca in the kernel binary tree
    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

    LOAD gspca in memory
    FATAL: Module gspca not found.

    PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
    make -C /lib/modules/`uname -r`/build SUBDIRS=/home/david/Downloads/gspcav1-20071224 CC=cc modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.31-14-generic’
    CC [M] /home/david/Downloads/gspcav1-20071224/gspca_core.o
    /home/david/Downloads/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
    In file included from /home/david/Downloads/gspcav1-20071224/gspca_core.c:848:
    /home/david/Downloads/gspcav1-20071224/utils/spcausb.h: In function ‘spca5xxRegRead’:
    /home/david/Downloads/gspcav1-20071224/utils/spcausb.h:95: error: implicit declaration of function ‘info’
    /home/david/Downloads/gspcav1-20071224/utils/spcausb.h: In function ‘spca_set_interface’:
    /home/david/Downloads/gspcav1-20071224/utils/spcausb.h:278: error: implicit declaration of function ‘warn’
    In file included from /home/david/Downloads/gspcav1-20071224/gspca_core.c:856:
    /home/david/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_init’:
    /home/david/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:122: error: called object ‘info’ is not a function
    /home/david/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:136: error: called object ‘info’ is not a function
    /home/david/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:141: error: called object ‘info’ is not a function
    /home/david/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:148: error: called object ‘info’ is not a function
    /home/david/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:176: error: called object ‘info’ is not a function
    /home/david/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_start’:
    /home/david/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:214: error: called object ‘info’ is not a function
    /home/david/Downloads/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:230: error: called object ‘info’ is not a function
    /home/david/Downloads/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
    /home/david/Downloads/gspcav1-20071224/gspca_core.c:2466: error: implicit declaration of function ‘video_usercopy’
    /home/david/Downloads/gspcav1-20071224/gspca_core.c: At top level:
    /home/david/Downloads/gspcav1-20071224/gspca_core.c:2612: error: unknown field ‘owner’ specified in initializer
    /home/david/Downloads/gspcav1-20071224/gspca_core.c:2612: warning: initialization from incompatible pointer type
    /home/david/Downloads/gspcav1-20071224/gspca_core.c:2614: error: unknown field ‘type’ specified in initializer
    /home/david/Downloads/gspcav1-20071224/gspca_core.c:2618: warning: initialization from incompatible pointer type
    /home/david/Downloads/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
    /home/david/Downloads/gspcav1-20071224/gspca_core.c:2772: error: implicit declaration of function ‘video_device_create_file’
    /home/david/Downloads/gspcav1-20071224/gspca_core.c:2783: error: implicit declaration of function ‘video_device_remove_file’
    /home/david/Downloads/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
    /home/david/Downloads/gspcav1-20071224/gspca_core.c:4314: error: incompatible types when assigning to type ‘struct device’ from type ‘struct device *’
    make[2]: *** [/home/david/Downloads/gspcav1-20071224/gspca_core.o] Error 1
    make[1]: *** [_module_/home/david/Downloads/gspcav1-20071224] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic’
    make: *** [default] Error 2

  109. I got what that David guy got, wtf do I do? – Kubuntu 9.10

  110. THIS SHIT ISNT FUCKING WORKING SOMEONE PAY ATTENTION TO THE FUCKING FORUM

  111. Finally my e2500 works on my 9.10-64bit.No kernel change and no fiddling with expose..JUST instal skype 64bit with mediubuntu repos and synaptic like above..

    ->
    sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list \
    –output-document=/etc/apt/sources.list.d/medibuntu.list &&
    sudo apt-get -q update &&
    sudo apt-get –yes -q –allow-unauthenticated install medibuntu-keyring &&
    sudo apt-get -q update

    ->open synaptic->search skype->install 64bit version(from mediubuntu).If you dont see skype mediubuntu in synaptic maybe you have to apply in “software sources”
    …thats it…no need to expose.it works here..

  112. NOTE….DONT test your e2500 in dark rooms!!, only in full daylight will tell if you have to fiddle with expose or gamma…i was struggling alot with the very dark picture in the skype test window, with my e2500.a lot of the above solution worked, but was still very dark. I always tested at night, but alot of light was on, so i didnt suspect the light to be a problem. For the first time i tested a solution(mediubuntu) in full daylight, and it works like a charm. Another cam(stevinson) also worked “ootb” with the mediubuntu/synaptic skype64 bit solution.

  113. Could someone point me in the right direction to make this work with debian Lenny, i’ve tried evrything & it’s been driving me crazy for months!
    Thank YoU

  114. Anyone get this camera working with 9.10? How?

  115. Anyone having this camera working with 9.10? How?

  116. [...] o problema das webcams e do driver gspca no Ubuntu Skype 2 com webcam no Ubuntu Logitech QuickCam E2500 on Ubuntu Skype Categories: linux Tags: linux, webcam Comentários (0) Trackbacks (0) Deixar um [...]

  117. My E2500 is working witch Cheese on th e desktop. I have no experience with Skype on the desktop. The Test give a green screen with green snow…
    I think I have to download the software as listed here.

    I use Acer EEE PC 900 with Skype 2.0.0.72 for Skype, but that laptop has a built-in camera in the lid. It works fine.

Leave a Reply

Other posts:
« jsvi and TiddlyWiki | Cryptic Crossword Solver »