[linux] Re: webcam

Wybo Dekker wybo op servalys.nl
Zo Jun 24 13:08:17 CEST 2007


Hugo van der Kooij wrote:
> On Sat, 23 Jun 2007, Wybo Dekker wrote:
> 
>> onderstaande gevolgd (dus config file gecopieerd).
>> SN9C1xx stond al als module in de kernel.
> 
> Stop. Gooi module en zo eens eruit 

root>lsmod |grep sn9c102
sn9c102                92044  0
videodev               26880  1 sn9c102
v4l2_common            26240  2 sn9c102,videodev
usbcore               128004  7 
sn9c102,snd_usb_audio,snd_usb_lib,usb_storage,ehci_hcd,uhci_hcd
root>modprobe -r sn9c102
root>lsmod |grep sn9c102
root>modprobe sn9c102
root>lsmod |grep sn9c102
sn9c102                92044  0
videodev               26880  1 sn9c102
v4l2_common            26240  2 sn9c102,videodev
usbcore               128004  7 
sn9c102,snd_usb_audio,snd_usb_lib,usb_storage,ehci_hcd,uhci_hcd
root>motion
[0] Processing thread 0 - config file /usr/local/etc/motion.conf
[0] Motion going to daemon mode

 > en laad hem opnieuw en kijk dan in de
> syslog wat de module meld.

wat in messages verschijnt heb ik geattacht. Het laden van de module 
lijkt goed te gaan, maar het starten van motion eindigt met:

ioctl (VIDIOCGCAP): Invalid argument
Capture error calling vid_start
Removed process id file (pid file).


> Daar hoort ook gemeld te worden welk device wordt aangemaakt. Dat is stap 
> 1 en daar meld je al niets over. Dan heeft de rest geen zin.
> 
> Elke stap die geen aansluiting heeft op de vorige stap is geen goede stap.
> 
> Hugo.
> 

-- 
Wybo


-- Attached file included as plaintext by Ecartis --
-- File: messages

Jun 24 13:00:31 servalys kernel: usbcore: deregistering driver sn9c102
Jun 24 13:00:31 servalys kernel: usb 2-1: Disconnecting SN9C10x PC Camera...
Jun 24 13:00:31 servalys kernel: usb 2-1: V4L2 device /dev/video0 deregistered
Jun 24 13:00:40 servalys kernel: Linux video capture interface: v2.00
Jun 24 13:00:40 servalys kernel: sn9c102: V4L2 driver for SN9C10x PC Camera Controllers v1:1.27
Jun 24 13:00:40 servalys kernel: usb 2-1: SN9C103 PC Camera Controller detected (vid/pid 0x0C45/0x60AF)
Jun 24 13:00:40 servalys kernel: usb 2-1: PAS202BCA image sensor detected
Jun 24 13:00:40 servalys kernel: usb 2-1: Initialization succeeded
Jun 24 13:00:40 servalys kernel: usb 2-1: V4L2 device registered as /dev/video0
Jun 24 13:00:40 servalys kernel: usbcore: registered new driver sn9c102
Jun 24 13:03:26 servalys motion: [0] Processing thread 0 - config file /usr/local/etc/motion.conf
Jun 24 13:03:26 servalys motion: [0] Created process id file /var/run/motion.pid. Process ID is 14539
Jun 24 13:03:26 servalys motion: [0] Motion running as daemon process
Jun 24 13:03:26 servalys motion: [0] Capturing 1 frames/s when idle
Jun 24 13:03:26 servalys motion: [0] Thread 1 is from /usr/local/etc/motion.conf
Jun 24 13:03:26 servalys motion: [1] Thread started
Jun 24 13:03:26 servalys motion: [1] ioctl (VIDIOCGCAP): Invalid argument
Jun 24 13:03:26 servalys motion: [1] Capture error calling vid_start
Jun 24 13:03:26 servalys motion: [1] Removed process id file (pid file).





More information about the Linux mailing list