Dies ist eine alte Version des Dokuments!


Quelle1)

i dont know why all this while im not using webcam in linux until last week i try to plug the webcam in my ubuntu. It appear great result because the webcam driver detected by need to do something more to make its working better … now lets start by checking the device detected ..

gerald@thinkbuntu:~$ lsusb
 Bus 007 Device 001: ID 0000:0000
 Bus 006 Device 001: ID 0000:0000
 Bus 001 Device 004: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
 Bus 001 Device 003: ID 0a5c:2110 Broadcom Corp.
 Bus 001 Device 001: ID 0000:0000
 Bus 003 Device 002: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 WebCam
 Bus 003 Device 001: ID 0000:0000
 Bus 005 Device 001: ID 0000:0000
 Bus 002 Device 001: ID 0000:0000
 Bus 004 Device 002: ID 17ef:1003
 Bus 004 Device 001: ID 0000:0000

With this information we can know the Vendor_id=0ac8 and the Product_id=301b . We could also see this using the graphical user interfase usbview. Another thing that we can see is the manufacturer of the chipset Z-Star/Vimicro (that is also used in many other cheap webcams) Among the output of the usbview program, we can see somthing like this Manufacturer: Vimicro Corp. I’m going to summarize the steps I took:

1) Download and untar the file gspcav120071224.tar.gz:
wget -c http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz

tar xvfz gspcav1­20071224.tar.gz

2) Compile and install the driver:
cd gspcav1-20071224 
make clean
 make 
sudo make install
3) This is the extra step that I had to do:
sudo gedit /etc/modprobe.d/options

and add an option for this driver:

options gspca force_rgb=1
sudo apt-get install camorama

then try to open camorama, if cant open the application,try this:

$sudo lsmod |grep gspca
 gspca 660176 0
 videodev 28160 2 gspca,zc0301
 usbcore 134280 7 gspca,zc0301,usb_storage,libusual,ehci_hcd,uhci_hcd

Remove the zc0301 module:

$sudo modprobe -r zc0301

Insert module gspca back:

$ sudo modprobe gspca

Give a check first:

$ lsmod |grep gspca
 gspca 660176 0
 videodev 28160 1 gspca
 usbcore 134280 6 gspca,usb_storage,libusual,ehci_hcd,uhci_hcd

Let it be more confident:

$ lsmod | grep videodev
 videodev 28160 1 gspca
 v4l1_compat 15236 1 videodev
 v4l2_common 25216 1 videodev

If it still can’t run the camorama : check the device permission:

$ ls -l /dev/video0
 crw-rw—- 1 root video 81, 0 2008-01-27 08:10 /dev/video0

Device video0 running with user group video,so u should change the permission:

$ sudo chmod 777 /dev/video0
 $ ls -l /dev/video0
 crwxrwxrwx 1 root video 81, 0 2008-01-27 08:10 /dev/video0

@ the easier way is installing the gspca from repo (i forgot to check in repo, gspca is in it):

gerald@thinkbuntu:~$ sudo apt-get install gspca-source

Hope it working for u all because its working for me!!

 
Nach oben
usb/webcam/vimicro.1215603389.txt.gz · Zuletzt geändert: 2024/02/29 13:35 (Externe Bearbeitung)
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0
DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp   Dogecoin Donations Accepted Here    DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp  DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp