I have an old noname cheapo webcam, that I dusted out of my junk (why? More on that in a post coming soon). I hoped that it would work in my Ubuntu setup out of the box like most of my other hardware. I connected it to my laptop’s usb port. dmesg gave the following output:
[21328.211333] usb 1-1: new full speed USB device using ohci_hcd and address 2 [21328.319698] usb 1-1: configuration #1 chosen from 1 choice [21328.439705] Linux video capture interface: v2.00 [21328.458509] zc0301: V4L2 driver for ZC0301[P] Image Processor and Control Chip v1:1.05 [21328.459113] usb 1-1: ZC0301[P] Image Processor and Control Chip detected (vid/pid 0x0AC8/0x301B) [21328.520576] usb 1-1: PB-0330 image sensor detected [21328.870287] usb 1-1: Initialization succeeded [21328.870919] usb 1-1: V4L2 device registered as /dev/video0 [21328.871001] usbcore: registered new interface driver zc0301 [21328.913737] usbcore: registered new interface driver gspca [21328.913811] ubuntu/media/gspcav1/gspca_core.c: gspca driver 01.00.12 registered
Great! Everything set up, I thought. But running various programs, camorama, camE, kopete, everything gave weird errors like “Connection could not be made”, “device not ready” or just showed a blank screen. But soon, after few trial and errors, I found the solution. Basically the “zc0301” module is the culprit and all you have to do to get your camera working is prevent it from loading. So, this is what I did:
sudo modprobe -r gspca sudo modprobe -r zc0301 sudo modprobe gspca
And voila! the webcam started working like magic. Of course, this tip is only for webcams that use this particular chip. And if you want to make this change permanent so that you don’t have to run these commands everytime you want to use your webcam, all you have to do is add the following line to your /etc/modprobe.d/blacklist file
This would prevent the module from loading whenever you connect your webcam to your computer. Let me know if this worked for you or if you have some of your own tips/tricks/hacks to get this or other webcams working on linux.