Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Webcam Vimicro zc0305b only shows a black screen
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3364
Location: de

PostPosted: Tue Oct 17, 2006 4:00 pm    Post subject: Webcam Vimicro zc0305b only shows a black screen Reply with quote

Hi,

today I got a webcam. On the box there's only the name "Digital Product - PC Camera". So I didn't know, what was inside of the camera.

And I'm nearly despairing, because that f***ing thing don't want to show me any lousy picture.

Ok, now the facts:
lshw told me:
Code:

              *-usb UNCLAIMED
                   description: Generic USB device
                   product: PC Camera
                   vendor: Vimicro Corp.
                   physical id: 1
                   bus info: usb@1:1
                   version: 1.00
                   capabilities: usb-1.10
                   configuration: maxpower=160mA speed=12.0MB/s


udevinfo:
Code:

udevinfo
    KERNEL=="1-1"
    SUBSYSTEM=="usb"
    DRIVER=="usb"
    ATTR{configuration}==""
    ATTR{product}=="PC Camera"
    ATTR{manufacturer}=="Vimicro Corp."
    ATTR{maxchild}=="0"
    ATTR{version}==" 1.10"
    ATTR{devnum}=="3"
    ATTR{speed}=="12"
    ATTR{bMaxPacketSize0}=="8"
    ATTR{bNumConfigurations}=="1"
    ATTR{bDeviceProtocol}=="00"
    ATTR{bDeviceSubClass}=="00"
    ATTR{bDeviceClass}=="ff"
    ATTR{bcdDevice}=="0100"
    ATTR{idProduct}=="305b"
    ATTR{idVendor}=="0ac8"
    ATTR{bMaxPower}=="160mA"
    ATTR{bmAttributes}=="80"
    ATTR{bConfigurationValue}=="1"
    ATTR{bNumInterfaces}==" 1"


lsusb
Code:

        Bus 001 Device 003: ID 0ac8:305b Z-Star Microelectronics Corp.


mplayer with gspcav1-driver:
Code:

        Selected device: Generic Zc0305b
        Capabilites: capture
        Device type: 1
        Supported sizes: 176x144 => 640x480
        Inputs: 1
        0: ZC301-2:  (tuner:0, norm:pal)
        Using input 'ZC301-2'
        Selected input hasn't got a tuner!


dmesg with gspcav1-driver:
Code:

/var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925/gspca_core.c: USB SPCA5XX camera found.(ZC3XX)
/var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925/gspca_core.c: [spca5xx_probe:3885] Camera type JPEG
/var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925/Vimicro/zc3xx.h: [zc3xx_config:515] Sensor ID:7
/var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925/Vimicro/zc3xx.h: [zc3xx_config:525] Find Sensor UNKNOW_0 force Tas5130
/var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925/gspca_core.c: [spca5xx_getcapability:1163] maxw 640 maxh 480 minw 176 minh 144
usbcore: registered new driver gspca
/var/tmp/portage/media-video/gspcav1-20060925/work/gspcav1-20060925/gspca_core.c: gspca driver 01.00.04 registered


dmesg with spca5xx-driver:
Code:

/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: driver spca5xx deregistered
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: USB SPCA5XX camera found. Type Vimicro Zc305B 0x305b
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: [spca5xx_probe:5480] Camera type JPEG
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/zc3xx.h: [zc3xx_config:487] Find Sensor UNKNOW_0 force Tas5130
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: [spca5xx_getcapability:1765] maxw 640 maxh 480 minw 176 minh 144
usbcore: registered new driver spca5xx
/var/tmp/portage/media-video/spca5xx-20060501-r1/work/spca5xx-20060501/drivers/usb/spca5xx.c: spca5xx driver 00.60.00 registered


My Computer:
- Laptop Dell C610
- Kernel Gentoo-sources-2.6.18

The support for video4linux is activated in the kernel. So videodev and v4l2-common is available and compiled in.

First I searched Google for Z-Star Vimicro and found the driver package spca5xx. I tried to install but it didn't compile. On https://bugs.gentoo.org/show_bug.cgi?id=149161 I stumbled to the gspcav1 driver. Maybe the successor of the spca5xx package. So I installed the gspcav1 driver, loaded it and got my /dev/video0. But when I startet mplayer (mplayer tv:// -tv driver=v4l:width=352:height=288:device=/dev/video0) I got only a black screen.

I searched more and found the hint to load the module with usbgrabber=1. Ok, rmmod gspcav1, modprobe gspcav1 usbgrabber=1. No difference. Only a black picture. I tried the camera also with spcaview and amsn. Again no pics.

Ok, maybe it's the wrong driver. I recompiled the kernel with every usb-webcam driver I found in the kernel. After rebooting I loaded every driver (modprobe ***, ls /dev/video0, rmmod ***,... next driver). But gspca was the only module where I got the /dev/video0 device.

Then I found after more searching a patch for using spca5xx driver with kernel 2.6.18. I used the modified ebuild (https://bugs.gentoo.org/show_bug.cgi?id=146124), compiled the spca5xx driver package, deinstalled the gspca driver and loaded the spca5xx driver. Again it loaded fine, but after using mplayer my notebook froze. Reset button, reboot and a new trial - same result.

Ok, again I searched my best friend (google) and found out, it's not really a good idea to use the spca5xx driver with 4kb kernel stacks. I recompiled the kernel the 8 kb kernel stacks, recompiled the spca5xx module, rebooted the machine. And again I got only a black picture. In several trials the computer froze again but no reproduceable everytime. I also tried load the module with modprobe spca5xx usbgrabber=1. Also no success.

On this list: http://mxhaard.free.fr/spca50x/embedded/ArmEP9302/Spca5xx-light-Edition.txt my cam is shown:
Code:

  {USB_DEVICE (0x0ac8, 0x305b)},   /* Z-star Vimicro zc0305b */


To get sure the webcam is working correctly I installed it on a friend's computer in WindowsXP. No problem there. The cam worked perfectly.

So what did I forget to try? Or is there no chance to get the Z-Star Vimicro zc 0305b working in Linux?
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3364
Location: de

PostPosted: Tue Oct 17, 2006 4:41 pm    Post subject: Reply with quote

Additional information:

On http://mxhaard.free.fr/spca5xx.html there's a list with supported chipsets. For z-star they have a link to http://zc0302.sourceforge.net/zc0302.php

But this project seems to be dead. Download the newest version from cvs is not possible
([login aborted]: connect to cvs.sourceforge.net(66.35.250.207):2401 failed: No route to host)

I downloaded the last beta version. But compiling fails with a lot of errors.
Back to top
View user's profile Send private message
lenk
Apprentice
Apprentice


Joined: 08 Mar 2004
Posts: 211

PostPosted: Fri Nov 24, 2006 7:49 pm    Post subject: Reply with quote

I have exactly the same problem. spca5xx hardlocks my system and gspca gives black screen with spcaview. My camera is the logitech communicate STX.
_________________
E6300 Gigabyte GA-965P-DS3 2GB Corsair 320GB Seagate 7200.10 XFX 7600GT Gentoo
Dell M1330 T7500 2GB 160GB 13.3" WXGA Gentoo
Sharp Zaurus SL-C760 Cacko ROM 1.21b / pdaXrom 1.10rc5 512MB CF + 512MB SD
Sun Ultra5 Gentoo
Back to top
View user's profile Send private message
lenk
Apprentice
Apprentice


Joined: 08 Mar 2004
Posts: 211

PostPosted: Fri Nov 24, 2006 7:52 pm    Post subject: Reply with quote

This is weird. I used a different usb port and now it works with gspca.
_________________
E6300 Gigabyte GA-965P-DS3 2GB Corsair 320GB Seagate 7200.10 XFX 7600GT Gentoo
Dell M1330 T7500 2GB 160GB 13.3" WXGA Gentoo
Sharp Zaurus SL-C760 Cacko ROM 1.21b / pdaXrom 1.10rc5 512MB CF + 512MB SD
Sun Ultra5 Gentoo
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3364
Location: de

PostPosted: Sat Nov 25, 2006 2:35 pm    Post subject: Reply with quote

Hmm, on my notebook I have only one USB-port. Bad luck.... :? Maybe the first port was only USB1 and the second one USB2 or viceversa.

Michel Xhaard wrote me an email that in the next driver release my cam will be supported. So I'm waiting and hoping.
Back to top
View user's profile Send private message
POLTER
n00b
n00b


Joined: 10 Oct 2007
Posts: 2

PostPosted: Wed Oct 10, 2007 6:25 am    Post subject: Reply with quote

musv, did you found the solution?
I have a problem with similar webcam.
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3364
Location: de

PostPosted: Thu Oct 11, 2007 2:30 pm    Post subject: Reply with quote

Yes with the update of gspcav1 from january or february 2007 the driver worked with that camera. Michel included the support.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum