Author Topic: Uvcvideo  (Read 3627 times)

esnaider

  • Guest
Uvcvideo
« on: September 13, 2009, 02:38:35 PM »
When i start cheese a got the message:

libv4l2: error turning on stream: Protocol error

My camera didn't work.

I have (lsusb):
Bus 002 Device 003: ID 0c45:62c0 Microdia Sonix USB 2.0 Camera using dkms-uvcvideo.

In /dev i have video  (dev/video) but cheese and skype didn't work with cam.





Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11598
  • ----IOFLU----
Re: Uvcvideo
« Reply #1 on: September 13, 2009, 03:07:08 PM »
When i start cheese a got the message:

libv4l2: error turning on stream: Protocol error

My camera didn't work.

I have (lsusb):
Bus 002 Device 003: ID 0c45:62c0 Microdia Sonix USB 2.0 Camera using dkms-uvcvideo.

In /dev i have video  (dev/video) but cheese and skype didn't work with cam.


What kernel are you using? I couldn't get my uvc cam working right under the 2.6.26* kernel, but it works great with the 2.6.27* kernels from testing. Current that I'm using is 2.6.27.31.tex4, but it's just been replaced by 2.6.27.31.tex5.

I've just installed the 2.6.27.31.tex5 this morning, but haven't rebooted to it yet. If you enable testing from your chosen repository, it may still have the 2.6.27.31.tex4 kernel, as this was just uploaded to PASS, and won't have synced to the others yet. Go ahead an try that one; it's been working great for me.
« Last Edit: September 14, 2009, 07:21:24 AM by old-polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

esnaider

  • Guest
Re: Uvcvideo
« Reply #2 on: September 14, 2009, 12:07:27 AM »
U use 2.6.26.8.tex4 kernel, official not testing.
My cam was working, but now not working :( and i don't know why.
Maybe xorg or nvidia update crashed my camera?
I had installed kernel from testing repo (2.6.27.31.tex4) but dkms-uvcvideo didn't compiled under this kernel (just like under other kernel from testing repo), so i remove it from my hdd.
Today i'll try new kernel, just like You said, maybe my cam will back to work.

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11598
  • ----IOFLU----
Re: Uvcvideo
« Reply #3 on: September 14, 2009, 07:25:01 AM »
U use 2.6.26.8.tex4 kernel, official not testing.
My cam was working, but now not working :( and i don't know why.
Maybe xorg or nvidia update crashed my camera?
I had installed kernel from testing repo (2.6.27.31.tex4) but dkms-uvcvideo didn't compiled under this kernel (just like under other kernel from testing repo), so i remove it from my hdd.
Today i'll try new kernel, just like You said, maybe my cam will back to work.

The dkms-uvcvideo doesn't compile because the support is now in the kernel itself.  :D
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

esnaider

  • Guest
Re: Uvcvideo
« Reply #4 on: September 14, 2009, 02:21:22 PM »
Yes You right.
 I read about this on http://linux-uvc.berlios.de/. There is also o note on this page:
Linux 2.6.26 and newer includes the Linux UVC driver natively. You will not need to download the driver sources manually unless you want to test a newer version or help with development.


When i start my system or switch my camera on i got the message:
uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62c0)
uvcvideo: No valid video chain found.
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0) and no /dev/video :(.

That's why i'm always try to install dkms-uvcvideo.

I have 2.6.27.31.tex5 kernel now installed. My cam didn't work just like under earlier kernels from testing repo.



Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11598
  • ----IOFLU----
Re: Uvcvideo
« Reply #5 on: September 14, 2009, 04:06:15 PM »
Yes You right.
 I read about this on http://linux-uvc.berlios.de/. There is also o note on this page:
Linux 2.6.26 and newer includes the Linux UVC driver natively. You will not need to download the driver sources manually unless you want to test a newer version or help with development.


When i start my system or switch my camera on i got the message:
uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62c0)
uvcvideo: No valid video chain found.
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0) and no /dev/video :(.

That's why i'm always try to install dkms-uvcvideo.

I have 2.6.27.31.tex5 kernel now installed. My cam didn't work just like under earlier kernels from testing repo.



Try this command to see what you get.

[root@fatman ~]# ls -l /dev |grep video
lrwxrwxrwx 1 root   root            6 Sep 14 00:14 video -> video0
crw-rw---- 1 root   video     81,   0 Sep 14 00:14 video0

Post your results.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

esnaider

  • Guest
Re: Uvcvideo
« Reply #6 on: September 15, 2009, 01:37:05 PM »
After that command  i have nothing, because i don't have /dev/video device, just like i said in yesterday post.
Kernel 2.6.27.31.tex5 after that i switch on my cam:

uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62c0)
uvcvideo: No valid video chain found.
usb 2-5: New USB device found, idVendor=0c45, idProduct=62c0
usb 2-5: New USB device strings: Mfr=2, Product=1, SerialNumber=3
usb 2-5: Product: USB 2.0 Camera
usb 2-5: Manufacturer: Sonix Technology Co., Ltd.
usb 2-5: SerialNumber: SN0001

Kernel 2.6.26.8.tex4
[root@KALAPTOP dev]# ls -l /dev |grep video
lrwxrwxrwx 1 root    root            6 wrz 15 21:43 video -> video0
crw-rw---- 1 root    video     81,   0 wrz 15 21:43 video0

When i start cheese as root:
[root@KALAPTOP dev]# cheese

** (cheese:8137): WARNING **: Unable to connect to dbus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

** (cheese:8137): CRITICAL **: dbus_g_connection_register_g_object: assertion `connection != NULL' failed

** (cheese:8137): CRITICAL **: dbus_g_proxy_new_for_name: assertion `connection != NULL' failed

** (cheese:8137): CRITICAL **: dbus_g_proxy_call: assertion `DBUS_IS_G_PROXY (proxy)' failed
Segmentation fault

as me :):
@KALAPTOP ~]$ cheese
libv4l2: error turning on stream: Protocol error



« Last Edit: September 15, 2009, 01:53:34 PM by esnaider »

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11598
  • ----IOFLU----
Re: Uvcvideo
« Reply #7 on: September 15, 2009, 02:17:44 PM »
esnaider:

I just had a similar experience with the 2.6.27.31.tex5 kernel when i first booted. By unplugging the USB plug, then replugging it, the camers was immediately recognized, and the /dev/video and /dev/video0 block device and link were created. The driver module did not load automatically, so Cheese and Skype couldn't find the camera at first. the command;

[root@fatman ~]# modprobe uvcvideo                <Enter>

loaded the module, and both Cheese and Skype now give a proper picture from the webcam. Having had to do this manually, I rebooted, to see if this was something I'd have to do at each boot, but everything was fully in place by the time I got to the desktop, and just worked. I've rebooted 4 or 5 times since, and had no problems with the camera being recognized and the driver module loaded.

[root@fatman ~]# lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 046d:0990 Logitech, Inc. QuickCam Pro 9000           <-- There's the camera, big as life.
Bus 001 Device 004: ID 152d:2336 JMicron Technology Corp. / JMicron USA Technology Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 045e:0029 Microsoft Corp. IntelliMouse Optical
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
« Last Edit: September 15, 2009, 02:19:26 PM by old-polack »
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline MaddogF16

  • Hero Member
  • *****
  • Posts: 2711
Re: Uvcvideo
« Reply #8 on: September 15, 2009, 02:21:21 PM »
Is this installed?  dkms-gspcav1-1.00.20-1pclos2007.noarch.rpm
Why?

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11598
  • ----IOFLU----
Re: Uvcvideo
« Reply #9 on: September 15, 2009, 02:30:24 PM »
Is this installed?  dkms-gspcav1-1.00.20-1pclos2007.noarch.rpm

 ??? ???

Not used for a uvc camera. Or are you just curious as to whether a module is present for your own camera?
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline MaddogF16

  • Hero Member
  • *****
  • Posts: 2711
Re: Uvcvideo
« Reply #10 on: September 15, 2009, 02:40:38 PM »
Wrong camera,mixed up the numbers....but did find this..http://lists.berlios.de/pipermail/linux-uvc-devel/2009-June/004900.html


Don't know if this helps either,but havin' fun diggin'

https://groups.google.com/group/microdia/web/testing-microdia-driver-draft
« Last Edit: September 15, 2009, 02:44:43 PM by maddogf16 »
Why?

esnaider

  • Guest
Re: Uvcvideo
« Reply #11 on: September 15, 2009, 03:11:13 PM »
First i have laptop MSI EX600, so my cam is always on, except i switch it off by P1 button :).
Second i give up :(.
I'm to lazy to install another distro to check my cam, i must live without working cam, for not long time, i hope :).


P.S.
I was restarting my machine many times and nothing happened with cam, still dead.
Maybe tomorrow i'll try again.

Offline MaddogF16

  • Hero Member
  • *****
  • Posts: 2711
Re: Uvcvideo
« Reply #12 on: September 15, 2009, 03:15:03 PM »
Could install wxcam and try it with that app?? What do we have to lose...
Why?

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11598
  • ----IOFLU----
Re: Uvcvideo
« Reply #13 on: September 15, 2009, 03:19:54 PM »
Wrong camera,mixed up the numbers....but did find this..http://lists.berlios.de/pipermail/linux-uvc-devel/2009-June/004900.html


Don't know if this helps either,but havin' fun diggin'

https://groups.google.com/group/microdia/web/testing-microdia-driver-draft


Best part about the second link, for me, was this;

Code: [Select]
$ LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so mplayer tv:// \
    -tv driver=v4l2:width=640:height=480:fps=25:device=/dev/video0 -vo x11

That works beautifully to play the image of the web cam through mplayer.  ;D
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

esnaider

  • Guest
Re: Uvcvideo
« Reply #14 on: September 17, 2009, 05:53:03 AM »
Yesterday i installed MiniMe 2009.1. After that i installed the newest kernel from testing repo and cheese of course :).
Restart and :(, cam still dead and my favorite message ;) telling me:
uvcvideo: No valid video chain found.
Delete MiniMe from hdd  >:(

Today the next part, MiniMe with 2.6.26.8.tex3 kernel.
After that, if cam still not work, PCLOS 2009, next 2008, next 2007, next big beer  ;D, next sleep.


1) MiniMe 2.6.26.8.tex3 result :(. I have /dev/video0 but cam still dead.
Today coming:
2) Kernel 2.6.26.8.tex4 result :(
3) Kernel 2.6.26.8.tex4 with dkms-uvcvideo result :(
3) Sidux with 2.6.31 kernel result :(

Last chance = Windows.
I must check my cam, maybe it is broken or uvcvideo driver in kernels are not good for my cam.



« Last Edit: September 21, 2009, 01:05:09 AM by esnaider »