Le bazar de Stemp

Le bazar de Stemp

Karmic: get the latest drivers for gspca, uvc, usbvideo and other


Hercules Classic Link 06f8:3009

La version Française se trouve ici.

For gspsca drivers only, with the latest versions of Ubuntu, you may try this post : Gspca Snapshots.

I already mentioned the gspca driver and libv4l in the post [fr] Intrepid, les Webcams et les drivers Gspca. Unfortunately the topic is still relevant, the drivers being developed much faster than their integration into the distros kernel.

It’s time to update informations and expand them to all the drivers from linuxtv.org (V4L-DVB). For a list of the webcams please check the wiki (uvc, gspca, quickcam, Microdia, linux-uvc, etc …).

The procedure does not really change.

Installing needed packages:

sudo aptitude install mercurial build-essential linux-headers libncurses5-dev

Retrieving sources (from Douglas Schilling Landgraf V4L/DVB backports repository):

hg clone http://linuxtv.org/hg/v4l-dvb/

Copy the configuration file:

cd v4l-dvb
sudo cp /boot/config-`uname -r` v4l/.config

Note: currently FireDTV drivers do not compile easily (you need all the kernel sources) and are rarely used, we will disable them in the configuration.

Launch configuration:

sudo make menuconfig

Disable FireDTV support (Multimedia Support -> DVB/ATSC adapters -> set the option blank on FireDTV and FloppyDTV):




Exit, Exit.

Now let’s take care of usb webcams (Multimedia Support -> Video Capture adapters -> V4L USB devices)
Activate new modules drivers (press M on those marked NEW), in gspca for example:






Once the new drivers are enabled (M for module instead of a space), we can leave. Exit, Exit, etc… and save:


Launch the compilation:

sudo make install

If everything ok go to the next step, because the drivers also require the latest versions of libv4l.
For karmic it’s easy:

sudo add-apt-repository ppa:libv4l

Get the latest version if necessary:

sudo aptitude update
sudo aptitude full-upgrade

Restart and enjoy your new drivers.

36 réponses à “Karmic: get the latest drivers for gspca, uvc, usbvideo and other

  1. Tom Price 22 novembre 2009 à 22:33

    Thanks! That worked for me and I’m a total linux newbie.

  2. Pingback: [Ubuntu] Webcam Driver help needed please

  3. Edward Viesel 17 février 2010 à 12:41

    Thanks a ton for this wonderfully precise instruction! I did it with a little help from this website (I’m not too deeply into kernels and stuff under Linux):


    I’ve only ever read things like « … and then compile »; now that was a really uplifting experience….

    We sell Clevo notebooks (German brand « Nexoc ») with Kubuntu preinstalled.

    I’ve tried Kubuntu 10.04 Alpha 2. The webcam still did not work « out of the box ».

    Now I’m wondering: what will happen after upgrading a notebook with current Kubuntu 9.04 (kernel 2.6.31-19) to Kubuntu 10.04 (kernel 2.6.32-10 in Alpha 2)?

    Will the new kernel erase the changes done to 2.6.31-19, leaving the webcam malfunctioning?

    Can I protect the new modules in some way?

  4. Edward Viesel 17 février 2010 à 14:47

    Folder /home/USERNAME/gspca

    Oh, another question on the above mentioned folder.

    Is it a temporary folder that I can delete after carrying out the process of installing the new modules?

    It’s in my home folder, so I would assume it’s only a temporary needed folder.

    Thanks for the help!

  5. Pingback: Karmic : récupérer les derniers drivers pour gspca, uvc, usbvideo et autres « Le bazar de Stemp

  6. Sergio ROmano 29 mars 2010 à 03:17

    Thank you. Your instructions allowed me to install latest gspca module on Ubuntu 9.10 (2.6.31-20-server). This was supposed to enabled support for my Genius iLook 300 camara (with pac7302). Unfortunately, although module is loaded automatically and /dev/video0 is present, I can’t make it work yet.

    However, I feel more close to the solution now. Thanks for your help

    • Stemp 29 mars 2010 à 11:40

      Can’t make it work ? Is it the 093a:2628 Pixart Imaging, Inc. version ? (check lsusb to see).

      • Sergio 24 avril 2010 à 17:55

        Yes lsusb shows that my cam is recognized
        Bus 002 Device 002: ID 093a:2628 Pixart Imaging, Inc

        /dev/video0 is present.

        lsmod shows:
        gspca_pac7302 12352 0
        gspca_main 29088 1 gspca_pac7302
        videodev 45120 1 gspca_main

        However,nor Camorama nor Skype can use my cam (message is just « unable to capture image »)

        • Stemp 24 avril 2010 à 18:05

          Camorama doesn’t use v4l2, so you have to test it with :
          LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so camorama

  7. aztk 18 mai 2010 à 08:21

    Thanks bro!
    work it with my webcam 093a:2628 in Ubuntu 10.04

    Gracias bro!
    Funcionó con mi webcam 093a:2628 en Ubuntu 10.04

    🙂 Saludos desde México!

  8. Edward Viesel 18 mai 2010 à 10:44

    Oh, by the way, support for the following webcam:

    ID 5986:0241 Acer, Inc (Bison Electronics)

    seems to be in kernel 2.6.33.

    I used the routine described above to make it work and hoped for the next Kubuntu release for out-of-the-box support.

    But the webcam did not work for me in Kubuntu 10.04 (kernel 2.6.32). When I installed the mainline kernel 2.6.33 it worked « out of the box ».

    So if you have the same webcam, or have a similar model, you might try to install the latestet mainline kernel with (K)Ubuntu 10.04.

    You can always deinstall it if it creates other problems. The « old » kernels are kept.

    I just saw that a new stable version came out yesterday: « v2.6.33.4-lucid ».



  9. snix 26 mai 2010 à 20:38

    I think this the third time I’ve had to revisit this process – great to know it works, really well 🙂 but I’m beginning to wish I could just throw away my camera X-|
    Anyway… the facts mamm, only the facts … 🙂

    10.4 lucid
    lsusb > Bus 001 Device 006: ID 0ac8:0302 Z-Star Microelectronics Corp. ZC0302 Webcam (aka Pleomax PWC-3800)
    Skype (Beta0 v
    HP TC1100 (runnin’ fine :-0 )

    so how do I pin it down so the compiling focuses on the ‘module’ I require for MY web cam – selfish I know, but there are just too many I don’t need …

    CC [M] /home/nenglish/v4l-dvb/v4l/budget-core.o
    CC [M] /home/nenglish/v4l-dvb/v4l/budget.o
    CC [M] /home/nenglish/v4l-dvb/v4l/budget-av.o
    CC [M] /home/nenglish/v4l-dvb/v4l/budget-ci.o
    CC [M] /home/nenglish/v4l-dvb/v4l/budget-patch.o
    LD [M] /home/nenglish/v4l-dvb/v4l/dvb-ttpci.o
    CC [M] /home/nenglish/v4l-dvb/v4l/ttusb_dec.o
    CC [M] /home/nenglish/v4l-dvb/v4l/ttusbdecfe.o
    CC [M] /home/nenglish/v4l-dvb/v4l/dvb-ttusb …
    …. etc

    Thoughts and abuse welcome such is web 🙂 Feedback only kills speakers not listeners 😉

  10. Peter Flynn 7 juin 2010 à 16:10


    CC [M] /var/software/v4l-dvb/v4l/pvrusb2-sysfs.o
    /var/software/v4l-dvb/v4l/pvrusb2-sysfs.c: In function ‘class_dev_create’:
    /var/software/v4l-dvb/v4l/pvrusb2-sysfs.c:658: error: implicit declaration of function ‘sysfs_attr_init’
    make[3]: *** [/var/software/v4l-dvb/v4l/pvrusb2-sysfs.o] Error 1
    make[2]: *** [_module_/var/software/v4l-dvb/v4l] Error 2
    make[2]: Leaving directory `/usr/src/linux-headers-2.6.31-22-generic’
    make[1]: *** [default] Error 2
    make[1]: Leaving directory `/var/software/v4l-dvb/v4l’
    make: *** [all] Error 2

  11. Peter Flynn 10 juin 2010 à 22:38

    Thanks very much, now it compiles. Camera now works in Camorama but is not even recognised in Ekiga or in Flash plugins:
    pac207: Pixart PAC207BCA Image Processor and Control Chip detected (vid/pid 0x093A:0x2468)
    I am obviously missing something but I don’t know what.

  12. Richard 22 juin 2010 à 11:56

    Seems like linuxtv converted wholly to git. So to get sources, you need
    git clone git://linuxtv.org/v4l-dvb.git

  13. Amr_not_Amr 21 juillet 2010 à 13:10

    Excellent, It works for Lucid too.
    I’ve published this link over some ubuntu forums..

    Thanks a lot

  14. TunaCaserole 16 août 2010 à 13:41

    Just wanted to know if this really works for Lucid. I’ve tried testing this on Lucid in a VM but it kept on freezing my VM.

    Advice please.

  15. vpupkinn 18 août 2010 à 13:09

    Hi, Stemp. Genius iLook 300. Everitihing done as you write, and it’s working. But next day. Cheese – black screen. the reason is :
    « Disable FireDTV support (Multimedia Support -> DVB/ATSC adapters -> set the option blank on FireDTV and FloppyDTV): » – when i’m trying to repeat from the begining – it’s always enabled, even if I talled it « save » each time. What’s wrong?
    I’m new in linux, sorry.

  16. Grigoriy 24 août 2010 à 16:45

    The source is broken:

    /home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c: In function ‘cx25821_audio_upstream_irq’:
    /home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:573: error: ‘KERN_WARN’ undeclared (first use in this function)
    /home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:573: error: (Each undeclared identifier is reported only once
    /home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:573: error: for each function it appears in.)
    /home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:573: error: expected ‘)’ before string constant
    /home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:577: error: expected ‘)’ before string constant
    /home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:581: error: expected ‘)’ before string constant
    /home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:590: error: expected ‘)’ before string constant
    /home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c: In function ‘cx25821_audio_upstream_init’:
    /home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:731: error: ‘KERN_WARN’ undeclared (first use in this function)
    /home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.c:731: error: expected ‘)’ before string constant
    make[3]: *** [/home/grigoriy/v4l-dvb/v4l/cx25821-audio-upstream.o] Error 1
    make[2]: *** [_module_/home/grigoriy/v4l-dvb/v4l] Error 2
    make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-24-generic’
    make[1]: *** [default] Ошибка 2

    What to do?

    • Stemp 24 août 2010 à 17:10

      It looks like this backport commit : http://linuxtv.org/hg/v4l-dvb/rev/e64216157c2b broke the source.
      You have two choices :
      1° wait for Douglas Schilling Landgraf to fix it (if he’s aware of this bug)
      2° manually change the source linux/drivers/staging/cx25821/cx25821-audio-upstream.c and drop the KERN_WARN

      • Grigoriy 24 août 2010 à 17:30

        Thank you for your reply. I downloaded an older version of the source and build it.

        • Marko 31 août 2010 à 02:30

          I just commented with // lines where KERN_WARN appeared and added {} after each if statement and it went OK.
          Afterwards, I had to apply a patch for some file called ir-something.

  17. Luumil 25 août 2010 à 20:53

    Disculpa el idioma, he seguido cada paso, pero no he logrado imagen por ningun programa: camorama, emesene, amsn, xaw tv, cheese.
    Segruí la recomendación que le hiciste a Sergio <> sin exito. Muestra sin coneccion de video

    Estoy en Ubuntu 9.10 Karmik
    Detecta la camara

    Bus 002 Device 008: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 Webcam

    gspca_zc3xx 45564 0
    gspca_main 24732 1 gspca_zc3xx
    videodev 45024 1 gspca_main
    v4l1_compat 14336 1 videodev


  18. Pingback: Dell Webcam Problem (0c45:63e0) « Nastelroy's Blog

  19. Pingback: Ubuntu и Genius iLOOK300 - XXII век

  20. how_high 14 janvier 2011 à 10:40

    Thx! a lot!!!!!

  21. Paulo 19 mai 2011 à 08:49

    it worked! thank you so much!

  22. Pingback: ubuntu: install driver for webcam | LINUX | XUNIL

Votre commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l’aide de votre compte WordPress.com. Déconnexion /  Changer )

Image Twitter

Vous commentez à l’aide de votre compte Twitter. Déconnexion /  Changer )

Photo Facebook

Vous commentez à l’aide de votre compte Facebook. Déconnexion /  Changer )

Connexion à %s

%d blogueurs aiment cette page :