Monday, December 29, 2008

webcam Creative Live! Cam Vista IM in ubuntu

Just got a webcam Creative Live! Cam Vista IM (model: VF0260).
Need to connect to a Dell D620 using usb.
Main Problem found on Ubuntu gutsy: can't open /dev/video0: No such device
Main facts found: Linux will recognize it as a webcam device: OV519 USB Camera

howto troubleshoot?
========================

1- via camorama ( apt-get install camorama )
user@delld620:~$ camorama -D
VIDIOCGCAP -- could not get camera capabilities, exiting.....

2- via v4l-conf ( apt-get install v4l-conf )
user@delld620:~$ v4l-conf
v4l-conf: using X11 display :0.0
dga: version 2.0
mode: 1440x900, depth=24, bpp=32, bpl=5760, base=0xd0000000
can't open /dev/video0: No such file or directory

3- using cat
root@delld620:~# cat /dev/video0
cat: /dev/video0: No such device

4- using lsusb
root@delld620:~# lsusb
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 002: ID 12d1:1001
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 006: ID 0b97:7762 O2 Micro, Inc. Oz776 SmartCard Reader
Bus 005 Device 005: ID 0b97:7761 O2 Micro, Inc.
Bus 005 Device 004: ID 413c:8116 Dell Computer Corp.
Bus 005 Device 002: ID 413c:a005 Dell Computer Corp.
Bus 005 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 002 Device 004: ID 041e:4052 Creative Technology, Ltd
Bus 002 Device 001: ID 0000:0000

device ID = 041e:4052 which is the model that need to be checked here http://opensource.creative.com/webcam.html in the compatibility list.


installation procedure ?
========================
followed most of this link: http://www.rastageeks.org/ov51x-jpeg/index.php/Ov51xJpegHackedInstall


check kernel version:
root@delld620:~# uname -a
Linux delld620 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux

apt-get packages:
root@delld620:~# apt-get update
root@delld620:~# apt-get install ov51x-jpeg-source module-assistant
root@delld620:~# module-assistant a-i ov51x-jpeg
Although the program run without noticeble errors, it did not installed the driver correctly.


So I end to download latest release of "ov51x-jpeg"
http://www.rastageeks.org/downloads/ov51x-jpeg/ov51x-jpeg-1.5.9.tar.gz
2- tar xfz ov51x-jpeg-1.5.9.tar.gz
3- make
4- make install
5- verifications using lsmod ; camorama



root@delld620:~# tar xzf ov51x-jpeg-1.5.9.tar.gz
root@delld620:~# cd ov51x-jpeg-1.5.9/
root@delld620:~/ov51x-jpeg-1.5.9# ls
ChangeLog ov511-decomp.c ov519-decomp.c ov51x-jpeg.h test
Makefile ov518-decomp.c ov51x-jpeg-core.c ov7670.h

root@delld620:~# uname -a
Linux delld620 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux


root@delld620:~/ov51x-jpeg-1.5.9# make
make -C /lib/modules/2.6.22-14-generic/build M=/home/user/ov51x-jpeg-1.5.9 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
CC [M] /home/user/ov51x-jpeg-1.5.9/ov51x-jpeg-core.o
CC [M] /home/user/ov51x-jpeg-1.5.9/ov511-decomp.o
CC [M] /home/user/ov51x-jpeg-1.5.9/ov518-decomp.o
CC [M] /home/user/ov51x-jpeg-1.5.9/ov519-decomp.o
LD [M] /home/user/ov51x-jpeg-1.5.9/ov51x-jpeg.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/user/ov51x-jpeg-1.5.9/ov51x-jpeg.mod.o
LD [M] /home/user/ov51x-jpeg-1.5.9/ov51x-jpeg.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
root@delld620:~/ov51x-jpeg-1.5.9# make install
make -C /lib/modules/2.6.22-14-generic/build M=/home/user/ov51x-jpeg-1.5.9 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make -C /lib/modules/2.6.22-14-generic/build M=/home/user/ov51x-jpeg-1.5.9 modules_install
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
INSTALL /home/user/ov51x-jpeg-1.5.9/ov51x-jpeg.ko
DEPMOD 2.6.22-14-generic
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
depmod -a

root@delld620:~/ov51x-jpeg-1.5.9# lsmod | grep -i ov

root@delld620:~/ov51x-jpeg-1.5.9# modprobe -v ov51x-jpeg
insmod /lib/modules/2.6.22-14-generic/kernel/drivers/usb/ov51x-jpeg.ko

root@delld620:~/ov51x-jpeg-1.5.9# lsmod | grep -i ov
ov51x_jpeg 153592 0
videodev 29312 1 ov51x_jpeg
usbcore 138632 8 ov51x_jpeg,pl2303,option,usbserial,ohci_hcd,ehci_hcd,uhci_hcd

root@delld620:~/ov51x-jpeg-1.5.9# ls /dev/video*
/dev/video /dev/video0



root@delld620:~/ov51x-jpeg-1.5.9# camorama -D

VIDIOCGCAP
device name = OV519 USB Camera
device type = 513
can use mmap()
# of channels = 1
# of audio devices = 0
max width = 640
max height = 480
min width = 64
min height = 48

VIDIOCGWIN
x = 0
y = 0
width = 640
height = 480
chromakey = 0
flags = 30

VIDIOCGWIN
x = 0
y = 0
width = 320
height = 240
chromakey = 0
flags = 30

VIDIOCGPICT:
bright = 32768
hue = 33792
colour = 0
contrast = 32768
whiteness = 26880
colour depth = 12
YUV420

VIDIOCGMBUF
mb.size = 1843216
mb.frames = 2
mb.offset = 921608
update_tooltip called
tip - acap off
** Message: SET PIC
** Message: SET PIC
** Message: SET PIC
** Message: SET PIC
update_tooltip called
tip - acap off
name = medium

med

VIDIOCGWIN
x = 0
y = 0
width = 320
height = 240
chromakey = 0
flags = 30
name = small

small

VIDIOCGWIN
x = 0
y = 0
width = 64
height = 48
chromakey = 0
flags = 30
dir now = /root/Webcam_Pictures
file now = Webcam


finally, saved driver ov51x-jpeg in file /etc/modprobe.d/options, so that it loads upon boot.

options ov51x-jpeg force_palette=13



Important links:
compatibility list: http://opensource.creative.com/webcam.html
driver source: http://www.rastageeks.org/ov51x-jpeg/index.php/Ov51xJpegHackedSource
driver as package: http://www.rastageeks.org/ov51x-jpeg/index.php/Ov51xJpegHackedSource
driver installation howto: http://www.rastageeks.org/ov51x-jpeg/index.php/Ov51xJpegHackedInstall
driver wiki: http://www.rastageeks.org/ov51x-jpeg/index.php/Main_Page
http://knowledge76.com/index.php/Creative_WebCam_Notebook_setup_on_Ubuntu

No comments: