Bug 625852 - The webcam Creative Live! Cam Optia AF doesn't work on Fedora 13
Summary: The webcam Creative Live! Cam Optia AF doesn't work on Fedora 13
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Hans de Goede
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-20 15:43 UTC by Panormitis Petrou
Modified: 2013-01-10 06:10 UTC (History)
10 users (show)

Fixed In Version: 2.6.34.7-56
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-30 21:03:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
dmesg output after trying to use the webcam with cheese (48.72 KB, text/plain)
2010-08-23 11:53 UTC, Panormitis Petrou
no flags Details
dmesg output when the computer has just started. Before unplugging the webcam (50.86 KB, text/plain)
2010-09-04 23:16 UTC, Panormitis Petrou
no flags Details
dmesg output when the computer is running, and have unplugged and replugged the webcam (51.28 KB, text/plain)
2010-09-04 23:19 UTC, Panormitis Petrou
no flags Details

Description Panormitis Petrou 2010-08-20 15:43:40 UTC
Description of problem:
The webcam Creative Live! Cam Optia AF doesn't work on Fedora 13.
This webcam should work correctly using the uvcvideo driver/module, and it was working on Fedora 10 & 11 but no longer works on fedora 13.
There could be a bug on uvcvideo driver/module and/or kernel.


How reproducible:

Steps to Reproduce:
1. Install Fedora 13 and perform a yum update to update the system.

2. Install ucview and/or cheese, then connect a Creative Live! Cam Optia AF webcam, and run ucview or cheese.

3. The webcam's blue led turns on, but no image/video is displayed, just a black area.
  
Actual results:
The webcam doesn't display video.

Expected results:
The webcam should work correctly with uvcvideo, like it was working on previous Fedora versions.

Additional info:
The webcam is not faulty, it was tested and working on other operating systems.

Comment 1 Hans de Goede 2010-08-23 07:45:33 UTC
Hi,

Thanks for the bug report, can you please run the following command from a terminal after trying to use the webcam:
dmesg > dmesg.txt

And then attach dmesg.txt to this bug?

Thanks,

Hans

Comment 2 Panormitis Petrou 2010-08-23 11:53:43 UTC
Created attachment 440365 [details]
dmesg output after trying to use the webcam with cheese

I attached the dmesg output (dmesg.txt file) after trying to use the webcam with cheese.

Comment 3 Andre Robatino 2010-08-23 18:43:22 UTC
I have a Creative Live! Cam Optia Pro (which is probably very similar) which works in F13 x86_64. It didn't work in ucview the first time I tried (in fact ucview hung), but it worked after that in cheese and then in ucview.

Comment 4 Panormitis Petrou 2010-08-25 00:40:48 UTC
The problem remains, so far the webcam Creative Live! Cam Optia AF doesn't work, even with the latest fedora kernel: kernel-2.6.33.8-149.fc13.x86_64

Comment 5 Hans de Goede 2010-08-25 06:34:46 UTC
(In reply to comment #4)
> The problem remains, so far the webcam Creative Live! Cam Optia AF doesn't
> work, even with the latest fedora kernel: kernel-2.6.33.8-149.fc13.x86_64

Hi,

There is nothing in your logs I'm afraid. Before investigating this further can you please try with a later kernel:

http://koji.fedoraproject.org/koji/buildinfo?buildID=191473
http://koji.fedoraproject.org/koji/buildinfo?buildID=191587

Note you also need to update your linux firmware package:
http://koji.fedoraproject.org/koji/buildinfo?buildID=189958

Regards,

Hans

Comment 6 Panormitis Petrou 2010-08-25 23:08:16 UTC
Hi,
The linux firmware package you suggested was already installed. I tried both kernels you suggested, but they didn't help. The webcam couldn't work.

I went to http://www.ideasonboard.org/uvc/ and then to http://linuxtv.org/hg/v4l-dvb/ to download the uvcvideo source tarball (http://linuxtv.org/hg/v4l-dvb/archive/tip.tar.gz).
I compiled the source code and installed it. When I rebooted the webcam worked.

In other words what I did was:
su -
cd /usr/src
wget http://linuxtv.org/hg/v4l-dvb/archive/tip.tar.gz
tar -xzf tip.tar.gz
cd v4l-dvb*
make
make install
reboot

And then the webcam worked fine.

Could there be a bug in the uvcvideo module that is included on Fedora 13 kernels?

Comment 7 Panormitis Petrou 2010-09-04 23:16:25 UTC
Created attachment 443110 [details]
dmesg output when the computer has just started. Before unplugging the webcam

Comment 8 Panormitis Petrou 2010-09-04 23:19:15 UTC
Created attachment 443111 [details]
dmesg output when the computer is running, and have unplugged and replugged the webcam

Comment 9 Panormitis Petrou 2010-09-04 23:49:04 UTC
Hello,
Currently I'm using kernel-2.6.34.6-47.fc13.x86_64 (kernel updated using yum update).

So far I haven't compiled/installed on this kernel the uvcvideo module sources I mentioned on Comment 6, because I wanted to do some more testing about this webcam bug.

I have noticed the following:
When the computer is started, if I try to use the webcam (with cheese for example) all I get is a black video output, (black window on cheese) but the blue led of the webcam is turned on.
However, when the computer (and fedora is loaded/started), if I unplug and afterwards replug the webcam (while the computer & fedora is running the whole time), then finally the webcam works fine (until I shutdown the pc).

Therefore, I have attached the dmesg output, before unplugging the webcam (when the computer has just started) and after replugging it (while the computer is running).

I suppose the dmesg output can be useful, for locating this bug.
One thing I noticed in the dmesg output, is that in the start the webcam is found/registered as: input: UVC Camera (041e:4058) as /devices/pci0000:00/0000:00:1d.7/usb1/1-2/1-2.2/1-2.2:1.0/input/input6
And then after repluging it as: input: UVC Camera (041e:4058) as /devices/pci0000:00/0000:00:1d.7/usb1/1-2/1-2.2/1-2.2:1.0/input/input7

I don't get why the webcam doesn't work when it's found/registered as /input/input6 but works when is found/registered as /input/input7


Best regards,
Panormitis

Comment 10 Hans de Goede 2010-09-05 08:42:52 UTC
Hi,

(In reply to comment #6)
> Hi,
> The linux firmware package you suggested was already installed. I tried both
> kernels you suggested, but they didn't help. The webcam couldn't work.
> 
> I went to http://www.ideasonboard.org/uvc/ and then to
> http://linuxtv.org/hg/v4l-dvb/ to download the uvcvideo source tarball
> (http://linuxtv.org/hg/v4l-dvb/archive/tip.tar.gz).
> I compiled the source code and installed it. When I rebooted the webcam worked.
> 
> In other words what I did was:
> su -
> cd /usr/src
> wget http://linuxtv.org/hg/v4l-dvb/archive/tip.tar.gz
> tar -xzf tip.tar.gz
> cd v4l-dvb*
> make
> make install
> reboot
> 
> And then the webcam worked fine.
> 
> Could there be a bug in the uvcvideo module that is included on Fedora 13
> kernels?

Sure seems like it. The interesting thing is that the v4l-dvb hg tree has not
been updated in a while, so what you've done likely comes down to *downgrading* your uvcvideo driver.

IOW I think that this is broken in newer uvcvideo versions, which matches with your initial report that the camera did work in F10 and F11. I'll contact the uvcvideo driver author and hopefully he has some insights.

Thanks & Regards,

Hans


p.s.

The comment about the camera working when hotplugged, but not when present from boot is interesting, but the /dev/input nr does not have anything to do with this issue, if you unplug and replug the camera again it will get yet a higher 
/dev/input number this is normal.

Comment 11 Panormitis Petrou 2010-09-13 23:38:01 UTC
Hello,
I'm currently using kernel-2.6.34.6-54.fc13.x86_64.
The situation remains the same (as I described on Comment 9).

Best regards,
Panormitis

Comment 12 Hans de Goede 2010-09-14 07:52:40 UTC
Hi,

Hmm, I'm getting the feeling that this may be related to bug 615589, which is also happening since F-12. I have 2 theories now:

1) Something changed in userspace and is probing the usb device in a way it does
   not like. This matches well with bug 615589, but does not match with
   your works after re-plug behaviour

2) USB autosuspend is somehow causing this issue. Can you try booting
   with usbcore.autosuspend=-1 added your kernel cmdline and see if that helps?

Thanks,

Hans

Comment 13 Panormitis Petrou 2010-09-14 08:47:02 UTC
(In reply to comment #12)
> Hi,
> 
> Hmm, I'm getting the feeling that this may be related to bug 615589, which is
> also happening since F-12. I have 2 theories now:
> 
> 1) Something changed in userspace and is probing the usb device in a way it
> does
>    not like. This matches well with bug 615589, but does not match with
>    your works after re-plug behaviour
> 
> 2) USB autosuspend is somehow causing this issue. Can you try booting
>    with usbcore.autosuspend=-1 added your kernel cmdline and see if that helps?
> 
> Thanks,
> 
> Hans

Dear Hans,
I added usbcore.autosuspend=-1 on grub.conf and tried booting, but the situation did not change at all. When I tried to use the webcam right after booting, all I got was a black video output. The webcam worked correctly only when I unplugged and replugged it (just like I mentioned on Comment 9).

Currently my grub.conf has the following:
title Fedora (2.6.34.6-54.fc13.x86_64)
	root (hd0,0)
	kernel /vmlinuz-2.6.34.6-54.fc13.x86_64 ro root=/dev/mapper/vg_armor-lv_root LANG=el_GR.UTF-8 SYSFONT=iso07u-16 KEYBOARDTYPE=pc KEYTABLE=gr rhgb quiet vga=0x31B nomodeset rdblacklist=nouveau usbcore.autosuspend=-1
	initrd /initramfs-2.6.34.6-54.fc13.x86_64.img


Best regards,
Panormitis

Comment 14 Hans de Goede 2010-09-14 09:05:14 UTC
Hmm, that leaves the first theory, can you try the following:

1) unplug, replug the cam 
2) test it works
3) run as root: "udevadm trigger --action=add"
4) test the cam again

Thanks,

Hans

Comment 15 Panormitis Petrou 2010-09-14 10:23:03 UTC
(In reply to comment #14)
> Hmm, that leaves the first theory, can you try the following:
> 
> 1) unplug, replug the cam 
> 2) test it works
> 3) run as root: "udevadm trigger --action=add"
> 4) test the cam again
> 
> Thanks,
> 
> Hans

Dear Hans,
I tried the following:
1) I started computer & booted: I tried the webcam and didn't work (black video output).
2) I unplugged and replugged the webcam, while the computer was running: Webcam worked.
3) After I unplugged and replugged the webcam, I run "udevadm trigger --action=add" as root (without the quotes): Then I tested the webcam and it was working.
4) I restarted the computer and immediately after Fedora was loaded, I run "udevadm trigger --action=add" as root (without the quotes), without unplugging/replugging the webcam: Then I tested the webcam but it didn't work.

So apparently the command "udevadm trigger --action=add" didn't affect the webcam's behavior at all. What does this command do?
By the way I still have the option "usbcore.autosuspend=-1" on grub.conf.

Best regards,
Panormitis

Comment 16 Panormitis Petrou 2010-09-27 16:16:29 UTC
Hello,

Two days ago, I updated my kernel to kernel-2.6.34.7-56.fc13.x86_64, (using yum update) and the webcam issue disappeared, it works now right from the start, without having to unplug-replug it.
Any ideas what could have changed in this kernel version, causing the webcam to work normally?

Best regards,
Panormitis

Comment 17 Chuck Ebbert 2010-09-30 21:03:48 UTC
(In reply to comment #16)
> Two days ago, I updated my kernel to kernel-2.6.34.7-56.fc13.x86_64, (using yum
> update) and the webcam issue disappeared, it works now right from the start,
> without having to unplug-replug it.
> Any ideas what could have changed in this kernel version, causing the webcam to
> work normally?
> 

There was a USB bug that affected a lot of devices.


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