Comment 2 for bug 352765

Revision history for this message
sk (yahs) wrote : 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