Bug 516986 - Webcam Z-Star Microelectronics doesn't work
Summary: Webcam Z-Star Microelectronics doesn't work
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Hans de Goede
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: fitandfinish
TreeView+ depends on / blocked
 
Reported: 2009-08-12 08:13 UTC by Kamil Páral
Modified: 2010-01-05 12:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-05 12:20:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
rawhide non-working logs (15.76 KB, text/plain)
2009-08-12 08:13 UTC, Kamil Páral
no flags Details
ubuntu working logs (16.02 KB, text/plain)
2009-08-12 08:13 UTC, Kamil Páral
no flags Details
debug-bad.log (62.92 KB, text/plain)
2009-08-17 10:47 UTC, Kamil Páral
no flags Details
debug-modified.log (71.42 KB, text/plain)
2009-08-17 10:48 UTC, Kamil Páral
no flags Details

Description Kamil Páral 2009-08-12 08:13:10 UTC
Created attachment 357126 [details]
rawhide non-working logs

Description of problem:
USB webcam Z-Star Microelectronics doesn't work. When connected it is detected by kernel by Cheese program will not display any output. The same webcam works with Cheese in Ubuntu 9.04.

Version-Release number of selected component (if applicable):
Doesn't work:
current Rawhide from 2009-08-11 testday: https://fedoraproject.org/wiki/Test_Day:2009-08-11_Fit_and_Finish:Peripherals
Fedora 11
Works:
Ubuntu 9.04

How reproducible:
always

Steps to Reproduce:
1. Connect camera
2. Start cheese
3. No image received
  
Additional info:
See attachments for log files from Rawhide and from Ubuntu.

Comment 1 Kamil Páral 2009-08-12 08:13:31 UTC
Created attachment 357127 [details]
ubuntu working logs

Comment 2 Hans de Goede 2009-08-12 09:19:22 UTC
Hi,

Ok I think I've got an idea what is going on here.

For starters can you please with F-11 or the testday livecd do:
echo 199 > /sys/module/gspca_main/parameters/debug

Unplug, replug and then do:
dmesg > debug-bad.log

And attach debug-bad.log here ?

Can you then please follow these instructions:
http://hansdegoede.livejournal.com/6630.html

But before doing "make", edit "linux/drivers/media/video/gspca/zc3xx.c", find this line (near the end of the file):
        {USB_DEVICE(0x0ac8, 0x0302), .driver_info = SENSOR_PAS106},
And remove the ".driver_info = SENSOR_PAS106" part of it ?

Here you can use either F-11 or the testday live CD installed to disk, whatever is easier.

If my hunch is right, this should get your webcam working. After which I will need more help from you to find a way to make this work without removing the
".driver_info = SENSOR_PAS106" as that will probably break other cams with the
same usb-id.

Can you then (after rebooting) again do:
echo 199 > /sys/module/gspca_main/parameters/debug

Unplug, replug and then do:
dmesg > debug-modified.log

And attach debug-modified.log here too?


Thanks,

Hans

Comment 3 Kamil Páral 2009-08-13 13:56:43 UTC
I will help with this bug in a few days, first I have to find out how to resize LUKS+LVM partition in order to have place to install rawhide.

Comment 4 Hans de Goede 2009-08-13 17:41:52 UTC
(In reply to comment #3)
> I will help with this bug in a few days, first I have to find out how to resize
> LUKS+LVM partition in order to have place to install rawhide.  

Ok,

Note you can do the necessary testing with F-11 (or F-10 for that matter) too,
the instructions from here:
http://hansdegoede.livejournal.com/6630.html

Basically replace your entire video4linux subsystem (which is why the reboot
is needed).

Regards,

Hans

Comment 5 Kamil Páral 2009-08-17 10:47:59 UTC
Created attachment 357626 [details]
debug-bad.log

Hello:

1) debug-bad.log is attached
2) make menuconfig requires also ncurses-devel, which you may want to add to your blog
3) after making requested changes the webcam works
4) debug-modified.log is attached

Comment 6 Kamil Páral 2009-08-17 10:48:19 UTC
Created attachment 357627 [details]
debug-modified.log

Comment 7 Kamil Páral 2009-08-24 12:55:25 UTC
Hans, how is it possible that it works in one distribution and doesn't work in another? Don't they use the same project (gspca) for accessing the camera?

Comment 8 Hans de Goede 2009-08-24 13:05:04 UTC
(In reply to comment #7)
> Hans, how is it possible that it works in one distribution and doesn't work in
> another? Don't they use the same project (gspca) for accessing the camera?  

Kamil,

Ubuntu has an older version which does not have the .driver_info = SENSOR_PAS106,
present for the usb-id of your camera, so the Ubuntu version will never do the pas105 probe, which seems to mess up detection of your sensor.

I'm afraid it will stop working in the next Ubuntu version too.

Comment 9 Bug Zapper 2009-11-16 11:21:37 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 10 Hans de Goede 2009-12-20 09:26:48 UTC
Hi Kamil,

Sorry for the long silence, it looks like the upstream zc3xx maintainer has committed a fix which may fix this, can you please try:

yum install mercurial
hg clone http://linuxtv.org/hg/~jfrancois/gspca
cd gspca
make menuconfig
<choose exit>
make
sudo make install
reboot

And then try the webcam in question again? Thanks!

Comment 11 Kamil Páral 2010-01-05 11:21:37 UTC
Perfect, it works now.

Comment 12 Hans de Goede 2010-01-05 12:20:21 UTC
(In reply to comment #11)
> Perfect, it works now.  

That is good news! I'm closing this then with a resolution of upstream, the upstream change should find its way to a Fedora kernel within a couple of months.


Note You need to log in before you can comment on or make changes to this bug.