Logitech webcam doesn't work (v4l2 support needed)

Bug #352765 reported by Qugar
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux
Invalid
Undecided
Unassigned
amsn (Ubuntu)
New
Undecided
Unassigned
camorama (Ubuntu)
New
Undecided
Unassigned
cheese (Ubuntu)
New
Undecided
Unassigned
linux (Ubuntu)
Won't Fix
Medium
Stefan Bader

Bug Description

In Ubuntu 9.04 Beta, my webcam in lsusb:
jesus@jesus-portatil:~$ lsusb
Bus 001 Device 002: ID 046d:0896 Logitech, Inc. OrbiCam
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems)
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
jesus@jesus-portatil:~$

but cheese and amsn not load webcam. But in hardy heron the webcam are perfect.

Sorry for my english, i speak spanish.

affects: ubuntu → linux (Ubuntu)
Revision history for this message
kriekske (kriekske) wrote :

I've the same problem.
In Hardy my webcam Acer Crystal Eye worked out of the box but it doensn't work in Jaunty.

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 062a:0000 Creative Labs Optical mouse
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 5986:0102 Acer, Inc Crystal Eye webcam
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

In multimediasystems the parameters are:

plugin: video for linux 2 (v4l2)
pipeline: v4l2src device="dev/video0"

Revision history for this message
sk (yahs) wrote :

Same for me

Logitech quickcam stx

Works perfectly in Hardy but not Intrepid or Jaunty

Found this article from Launchpad which gave me a solution

pgmmpk said on 2008-11-01:

Found a workaround for this.

The core of the problem is that gspca drivers in 8.10 apparently implement V4L2, while many applications are still using V4L1 protocol. See http://hansdegoede.livejournal.com/3636.html .

Diagnostics:
install camstream
start camstream, open trace window, and start camera. Expect to see messages like:
VIDIOCSYNC(1) failed (Invalid argument)

How to workaround this (see also https://lists.linux-foundation.org/pipermail/bugme-janitors/2008-October/011912.html):

1. Download and unpack http://people.atrpms.net/~hdegoede/libv4l-0.5.0.tar.gz
2. See README, and install: sudo make install
3. Open terminal window
4. $ export LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so
5. $ camstream
Start camera, should now work.

How to make skype work:
1. create new shell script (call it skype_wrapper), put it somehwere (e.g. /usr/local/bin/skype_wrapper). Content:
#!/bin/bash
export LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so
skype
2. Open System/Root Menu manager, locate Skype, Edit the shortcut replacing command "skype" => "/usr/local/bin/skype_wrapper".
3. Start skype (restart, if already running). Test video should now work.

Guys, if anyone knows how to **really** fix it (not going thru the pain in the @$$ above), please let me know.

Credit for the solution should go to http://hansdegoede.livejournal.com/3636.html . Errors and typos are all mine ;)

Regards,
-Mike

Revision history for this message
Qugar (yezumg) wrote : RE: [Bug 352765] Re: webcam and v4l2

Thank you very much, I've installed the library and run the command,
and the webcam works in aMSN. Yet camorama Cheese and does not work,
but at least I do use it I'm perfect.

> Date: Thu, 9 Apr 2009 08:58:40 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 352765] Re: webcam and v4l2
>
> Same for me
>
> Logitech quickcam stx
>
> Works perfectly in Hardy but not Intrepid or Jaunty
>
> Found this article from Launchpad which gave me a solution
>
> pgmmpk said on 2008-11-01:
>
> Found a workaround for this.
>
> The core of the problem is that gspca drivers in 8.10 apparently
> implement V4L2, while many applications are still using V4L1 protocol.
> See http://hansdegoede.livejournal.com/3636.html .
>
> Diagnostics:
> install camstream
> start camstream, open trace window, and start camera. Expect to see messages like:
> VIDIOCSYNC(1) failed (Invalid argument)
>
> How to workaround this (see also https://lists.linux-
> foundation.org/pipermail/bugme-janitors/2008-October/011912.html):
>
> 1. Download and unpack http://people.atrpms.net/~hdegoede/libv4l-0.5.0.tar.gz
> 2. See README, and install: sudo make install
> 3. Open terminal window
> 4. $ export LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so
> 5. $ camstream
> Start camera, should now work.
>
> How to make skype work:
> 1. create new shell script (call it skype_wrapper), put it somehwere (e.g. /usr/local/bin/skype_wrapper). Content:
> #!/bin/bash
> export LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so
> skype
> 2. Open System/Root Menu manager, locate Skype, Edit the shortcut replacing command "skype" => "/usr/local/bin/skype_wrapper".
> 3. Start skype (restart, if already running). Test video should now work.
>
> Guys, if anyone knows how to **really** fix it (not going thru the pain
> in the @$$ above), please let me know.
>
> Credit for the solution should go to
> http://hansdegoede.livejournal.com/3636.html . Errors and typos are all
> mine ;)
>
> Regards,
> -Mike
>
> --
> webcam and v4l2
> https://bugs.launchpad.net/bugs/352765
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “linux” source package in Ubuntu: New
>
> Bug description:
> In Ubuntu 9.04 Beta, my webcam in lsusb:
> jesus@jesus-portatil:~$ lsusb
> Bus 001 Device 002: ID 046d:0896 Logitech, Inc. OrbiCam
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 005 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems)
> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> jesus@jesus-portatil:~$
>
> but cheese and amsn not load webcam. But in hardy heron the webcam are perfect.
>
> Sorry for my english, i speak spanish.

_________________________________________________________________
¿Quieres que tus hijos naveguen seguros? Aprende aquí cómo con Protección Infantil
http://www.protegeatushijos.com

Revision history for this message
Sergio Zanchetta (primes2h) wrote : Re: webcam and v4l2

== Regression details ==
Discovered in version: Intrepid, Jaunty
Last known good version: Hardy

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
tags: added: regression-release
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

I faced the same problem on a friend's laptop.

Revision history for this message
Sergio Zanchetta (primes2h) wrote :

Sorry, the upstream bug was closed because it's a problem of applications not supporting v4l2 yet.
On the other hand it could be fixed introducing a sort of external GSPCA as it was in Hardy, waiting for applications like cheese, camorama etc. implementing v4l2 (avoiding the regression).

Changed in linux:
importance: Unknown → Undecided
status: Unknown → New
importance: Undecided → Unknown
status: New → Unknown
importance: Unknown → Undecided
status: Unknown → New
status: New → Invalid
summary: - webcam and v4l2
+ Logitech webcam doesn't work (v4l2 support needed)
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

There is a bug opened upstream requesting v4l2 support for camorama.
http://bugzilla.gnome.org/show_bug.cgi?id=487119

Changed in linux:
importance: Undecided → Unknown
status: Invalid → Unknown
importance: Unknown → Undecided
status: Unknown → New
status: New → Invalid
Revision history for this message
Sergio Zanchetta (primes2h) wrote : apport-collect data

Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
ProcEnviron:
 SHELL=/bin/bash
 LANG=it_IT.UTF-8
Uname: Linux 2.6.28-13-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Stefan Bader (smb)
Changed in linux (Ubuntu):
assignee: nobody → Stefan Bader (stefan-bader-canonical)
Revision history for this message
Stefan Bader (smb) wrote :

This will not get fixed in the kernel. The basic problem is you got one driver for a certain piece of hardware. Any more just causes problems. And the gspca driver is working. It is just the applications that need a fix. There is the v4lcompat library that will make v4l1 applications work with v4l2 cam drivers. I thought this was already taken care of on the application side. Unfortunately I did not get any response when trying to find out what the problem there might be.

Changed in linux (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

Marked as duplicate of bug #260918, please add any comment directly to that bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.