Xavion
2012-03-03 00:23:35 UTC
My Microdia (SN9C201) webcam was working in Linux, but it has been
failing lately. Take a look at the attached snapshot to see what I
mean. It's like that all the time in Linux these days, but it works
perfectly in Windows.
I've tried using different USB ports and even a different computer
without success. Does anyone know what's going on here and how we can
prevent this problem? Let me know if you want me to send any
additional information.
`--> lsusb | grep Cam
Bus 001 Device 006: ID 0c45:627b Microdia PC Camera (SN9C201 + OV7660)
`--> lsmod | grep sn9c
gspca_sn9c20x         27437 1
gspca_main            21628 2 gspca_sn9c20x
usbcore              146241 11
ehci_hcd,uhci_hcd,usbhid,snd_usbmidi_lib,snd_usb_audio,uas,gspca_main,usb_storage,gspca_sn9c20x,ums_cypress
`--> uname -a
Linux <Host> 3.2.8-1-ARCH #1 SMP PREEMPT Mon Feb 27 21:51:46 CET 2012
x86_64 Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz GenuineIntel
GNU/Linux
`--> tail /var/log/kernel.log
...
Mar 3 09:54:10 <Host> kernel: [ 4122.732350] gspca_sn9c20x: Set 640x480
Mar 3 09:56:28 <Host> kernel: [ 4260.776109] gspca_sn9c20x: Set 640x480
Mar 3 09:56:29 <Host> kernel: [ 4261.408847] gspca_main: ISOC data
error: [0] len=0, status=-18
Mar 3 09:56:29 <Host> kernel: [ 4261.408853] gspca_main: ISOC data
error: [1] len=0, status=-18
Mar 3 10:21:41 <Host> kernel: [ 5773.917404] gspca_sn9c20x: Set 640x480
`--> tail /var/log/errors.log
Mar 3 10:48:00 <Host> motion: [1] Retrying until successful
connection with camera
Mar 3 10:48:03 <Host> motion: [1] v4l2_next: VIDIOC_DQBUF: EIO
(s->pframe 0): Input/output error
Mar 3 10:48:03 <Host> motion: [1] v4l2_next: VIDIOC_QBUF: Invalid argument
Mar 3 10:48:03 <Host> motion: [1] Video device fatal error - Closing
video device
Mar 3 10:48:10 <Host> motion: [1] Retrying until successful
connection with camera
...
failing lately. Take a look at the attached snapshot to see what I
mean. It's like that all the time in Linux these days, but it works
perfectly in Windows.
I've tried using different USB ports and even a different computer
without success. Does anyone know what's going on here and how we can
prevent this problem? Let me know if you want me to send any
additional information.
`--> lsusb | grep Cam
Bus 001 Device 006: ID 0c45:627b Microdia PC Camera (SN9C201 + OV7660)
`--> lsmod | grep sn9c
gspca_sn9c20x         27437 1
gspca_main            21628 2 gspca_sn9c20x
usbcore              146241 11
ehci_hcd,uhci_hcd,usbhid,snd_usbmidi_lib,snd_usb_audio,uas,gspca_main,usb_storage,gspca_sn9c20x,ums_cypress
`--> uname -a
Linux <Host> 3.2.8-1-ARCH #1 SMP PREEMPT Mon Feb 27 21:51:46 CET 2012
x86_64 Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz GenuineIntel
GNU/Linux
`--> tail /var/log/kernel.log
...
Mar 3 09:54:10 <Host> kernel: [ 4122.732350] gspca_sn9c20x: Set 640x480
Mar 3 09:56:28 <Host> kernel: [ 4260.776109] gspca_sn9c20x: Set 640x480
Mar 3 09:56:29 <Host> kernel: [ 4261.408847] gspca_main: ISOC data
error: [0] len=0, status=-18
Mar 3 09:56:29 <Host> kernel: [ 4261.408853] gspca_main: ISOC data
error: [1] len=0, status=-18
Mar 3 10:21:41 <Host> kernel: [ 5773.917404] gspca_sn9c20x: Set 640x480
`--> tail /var/log/errors.log
Mar 3 10:48:00 <Host> motion: [1] Retrying until successful
connection with camera
Mar 3 10:48:03 <Host> motion: [1] v4l2_next: VIDIOC_DQBUF: EIO
(s->pframe 0): Input/output error
Mar 3 10:48:03 <Host> motion: [1] v4l2_next: VIDIOC_QBUF: Invalid argument
Mar 3 10:48:03 <Host> motion: [1] Video device fatal error - Closing
video device
Mar 3 10:48:10 <Host> motion: [1] Retrying until successful
connection with camera
...