Motion b

Wszystko związane z jądrem systemowym, sterownikami, sprzętem itp.
Awatar użytkownika
szlejk
Beginner
Posty: 100
Rejestracja: 23 marca 2011, 22:48
Lokalizacja: Warszawa

Motion błąd v4l2

Post autor: szlejk »

Witam.

Posiadam terminal Wyse vx0 a na nim Debian GNU/Linux 6.0
Cel monitoring mieszkania i podgląd przez www, znalazła się stara kamerka usb

Kod: Zaznacz cały

Bus 002 Device 003: ID 0c45:613e Microdia PC Camera (SN9C120)
Zainstalowałem motion i niestety mam problem z uruchomieniem monitoringu :(

Kod: Zaznacz cały

Using V4L2[1] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 0): Input/output error
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] Video device fatal error - Closing video device
[1] Closing video device /dev/video0
Proszę o wskazówki i pomoc bardziej doświadczonych członków forum.
Awatar użytkownika
LordRuthwen
Moderator
Posty: 2348
Rejestracja: 18 września 2009, 21:45
Lokalizacja: klikash?

Post autor: LordRuthwen »

Najprościej chyba będzie poszukać tam: http://linuxtv.org/wiki/index.php/Main_Page
Awatar użytkownika
szlejk
Beginner
Posty: 100
Rejestracja: 23 marca 2011, 22:48
Lokalizacja: Warszawa

Post autor: szlejk »

Nie tylko motion ma problem z kamerką, ale na Ubuntu 12.04 kamerka działa aż miło.
Może sterowniki są złe?

Kod: Zaznacz cały

szlejk@:~$ fswebcam  -r 320x240 test.jpeg--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
--- Capturing frame...
Timed out waiting for frame!
No frames captured.
Awatar użytkownika
Rafal_F
Moderator
Posty: 2350
Rejestracja: 29 sierpnia 2008, 16:45

Post autor: Rafal_F »

Wklej tu wyniki poleceń:

Kod: Zaznacz cały

lsmod
dmesg
Awatar użytkownika
szlejk
Beginner
Posty: 100
Rejestracja: 23 marca 2011, 22:48
Lokalizacja: Warszawa

Post autor: szlejk »

Proszę

Kod: Zaznacz cały

szlejk@donga-server:~$ lsmodModule                  Size  Used by
nfsd                  194111  13 
exportfs                2626  1 nfsd
nfs                   207470  0 
lockd                  49481  2 nfsd,nfs
fscache                24718  1 nfs
nfs_acl                 1695  2 nfsd,nfs
auth_rpcgss            25312  2 nfsd,nfs
sunrpc                135007  12 nfsd,nfs,lockd,nfs_acl,auth_rpcgss
ext2                   46277  1 
vt1211                  9756  0 
hwmon_vid               1528  1 vt1211
loop                    9777  0 
firewire_sbp2           9663  0 
firewire_core          31275  1 firewire_sbp2
crc_itu_t               1035  1 firewire_core
snd_via82xx            15256  0 
gameport                6069  1 snd_via82xx
snd_ac97_codec         79152  1 snd_via82xx
ac97_bus                 710  1 snd_ac97_codec
snd_mpu401_uart         4075  1 snd_via82xx
gspca_sonixj           14886  0 
snd_pcm                47226  2 snd_via82xx,snd_ac97_codec
gspca_main             15775  1 gspca_sonixj
snd_rawmidi            12513  1 snd_mpu401_uart
snd_timer              12270  1 snd_pcm
snd_seq_device          3673  1 snd_rawmidi
videodev               25661  1 gspca_main
snd_page_alloc          5061  2 snd_via82xx,snd_pcm
snd                    34431  7 snd_via82xx,snd_ac97_codec,snd_mpu401_uart,snd_pcm,snd_rawmidi,snd_timer,snd_seq_device
i2c_viapro              4423  0 
v4l1_compat            10250  1 videodev
parport_pc             15799  0 
shpchp                 21200  0 
evdev                   5609  3 
pcspkr                  1207  0 
serio_raw               2916  0 
parport                22554  1 parport_pc
soundcore               3450  1 snd
i2c_core               12795  2 videodev,i2c_viapro
button                  3598  0 
processor              26343  1 
pci_hotplug            18545  1 shpchp
ext3                   94536  1 
jbd                    32449  1 ext3
mbcache                 3762  2 ext2,ext3
usb_storage            31041  1 
sd_mod                 26029  5 
crc_t10dif              1012  1 sd_mod
ata_generic             2247  0 
fan                     2586  0 
pata_via                5709  2 
uhci_hcd               16073  0 
libata                115925  2 ata_generic,pata_via
thermal                 9206  0 
via_rhine              14651  0 
ehci_hcd               28745  0 
scsi_mod              105157  4 firewire_sbp2,usb_storage,sd_mod,libata
usbcore                99530  6 gspca_sonixj,gspca_main,usb_storage,uhci_hcd,ehci_hcd
thermal_sys             9378  3 processor,fan,thermal
mii                     2714  1 via_rhine
nls_base                4541  1 usbcore

Kod: Zaznacz cały

szlejk@donga-server:~$ dmesg 
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.32-5-686 (Debian 2.6.32-48squeeze1) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Feb 25 01:04:36 UTC 2013
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   NSC Geode by NSC
[    0.000000]   Cyrix CyrixInstead
[    0.000000]   Centaur CentaurHauls
[    0.000000]   Transmeta GenuineTMx86
[    0.000000]   Transmeta TransmetaCPU
[    0.000000]   UMC UMC UMC UMC
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
[    0.000000]  BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
[    0.000000]  BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
[    0.000000]  BIOS-e820: 0000000000100000 - 000000000eff0000 (usable)
[    0.000000]  BIOS-e820: 000000000eff0000 - 000000000eff3000 (ACPI NVS)
[    0.000000]  BIOS-e820: 000000000eff3000 - 000000000f000000 (ACPI data)
[    0.000000]  BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
[    0.000000] DMI 2.3 present.
[    0.000000] last_pfn = 0xeff0 max_arch_pfn = 0x100000
[    0.000000] MTRR default type: uncachable
[    0.000000] MTRR fixed ranges enabled:
[    0.000000]   00000-9FFFF write-back
[    0.000000]   A0000-BFFFF uncachable
[    0.000000]   C0000-CFFFF write-protect
[    0.000000]   D0000-EFFFF uncachable
[    0.000000]   F0000-F7FFF write-through
[    0.000000]   F8000-F8FFF uncachable
[    0.000000]   F9000-FFFFF write-through
[    0.000000] MTRR variable ranges enabled:
[    0.000000]   0 base 000000000 mask FF0000000 write-back
[    0.000000]   1 base 00F000000 mask FFF000000 uncachable
[    0.000000]   2 base 0E8000000 mask FF8000000 write-combining
[    0.000000]   3 disabled
[    0.000000]   4 disabled
[    0.000000]   5 disabled
[    0.000000]   6 disabled
[    0.000000]   7 disabled
[    0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[    0.000000] initial memory mapped : 0 - 01800000
[    0.000000] init_memory_mapping: 0000000000000000-000000000eff0000
[    0.000000]  0000000000 - 0000400000 page 4k
[    0.000000]  0000400000 - 000ec00000 page 2M
[    0.000000]  000ec00000 - 000eff0000 page 4k
[    0.000000] kernel direct mapping tables up to eff0000 @ 7000-d000
[    0.000000] RAMDISK: 0abe1000 - 0b433d28
[    0.000000] ACPI: RSDP 000f88b0 00014 (v00 CN333 )
[    0.000000] ACPI: RSDT 0eff3040 00028 (v01 CN333  AWRDACPI 42302E31 AWRD 00000000)
[    0.000000] ACPI: FACP 0eff30c0 00074 (v01 CN333  AWRDACPI 42302E31 AWRD 00000000)
[    0.000000] ACPI: DSDT 0eff3180 0413D (v01 CN333  AWRDACPI 00001000 MSFT 0100000E)
[    0.000000] ACPI: FACS 0eff0000 00040
[    0.000000] 0MB HIGHMEM available.
[    0.000000] 239MB LOWMEM available.
[    0.000000]   mapped low ram: 0 - 0eff0000
[    0.000000]   low ram: 0 - 0eff0000
[    0.000000]   node 0 low ram: 00000000 - 0eff0000
[    0.000000]   node 0 bootmap 00002000 - 00003e00
[    0.000000] (9 early reservations) ==> bootmem [0000000000 - 000eff0000]
[    0.000000]   #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
[    0.000000]   #1 [0000001000 - 0000002000]    EX TRAMPOLINE ==> [0000001000 - 0000002000]
[    0.000000]   #2 [0000006000 - 0000007000]       TRAMPOLINE ==> [0000006000 - 0000007000]
[    0.000000]   #3 [0001000000 - 00014ced2c]    TEXT DATA BSS ==> [0001000000 - 00014ced2c]
[    0.000000]   #4 [000abe1000 - 000b433d28]          RAMDISK ==> [000abe1000 - 000b433d28]
[    0.000000]   #5 [000009f800 - 0000100000]    BIOS reserved ==> [000009f800 - 0000100000]
[    0.000000]   #6 [00014cf000 - 00014d50ae]              BRK ==> [00014cf000 - 00014d50ae]
[    0.000000]   #7 [0000007000 - 0000009000]          PGTABLE ==> [0000007000 - 0000009000]
[    0.000000]   #8 [0000002000 - 0000004000]          BOOTMAP ==> [0000002000 - 0000004000]
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00001000
[    0.000000]   Normal   0x00001000 -> 0x0000eff0
[    0.000000]   HighMem  0x0000eff0 -> 0x0000eff0
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[2] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x0000009f
[    0.000000]     0: 0x00000100 -> 0x0000eff0
[    0.000000] On node 0 totalpages: 61327
[    0.000000] free_area_init_node: node 0, pgdat c13b6900, node_mem_map c14d7000
[    0.000000]   DMA zone: 32 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 3967 pages, LIFO batch:0
[    0.000000]   Normal zone: 448 pages used for memmap
[    0.000000]   Normal zone: 56880 pages, LIFO batch:15
[    0.000000] Using APIC driver default
[    0.000000] ACPI: PM-Timer IO Port: 0x408
[    0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
[    0.000000] No local APIC present or hardware disabled
[    0.000000] APIC: disable apic facility
[    0.000000] nr_irqs_gsi: 16
[    0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
[    0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
[    0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
[    0.000000] Allocating PCI resources starting at f000000 (gap: f000000:f0ff0000)
[    0.000000] Booting paravirtualized kernel on bare hardware
[    0.000000] NR_CPUS:32 nr_cpumask_bits:32 nr_cpu_ids:1 nr_node_ids:1
[    0.000000] PERCPU: Embedded 14 pages/cpu @c1800000 s34360 r0 d22984 u4194304
[    0.000000] pcpu-alloc: s34360 r0 d22984 u4194304 alloc=1*4194304
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 60847
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-5-686 root=UUID=89d06e05-2590-416b-a777-748c3287b0dd ro quiet
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Enabling fast FPU save and restore... done.
[    0.000000] Enabling unmasked SIMD FPU exception support... done.
[    0.000000] Initializing CPU#0
[    0.000000] Initializing HighMem for node 0 (00000000:00000000)
[    0.000000] Memory: 229336k/245696k available (2509k kernel code, 15704k reserved, 1331k data, 380k init, 0k highmem)
[    0.000000] virtual kernel memory layout:
[    0.000000]     fixmap  : 0xffd56000 - 0xfffff000   (2724 kB)
[    0.000000]     pkmap   : 0xff400000 - 0xff800000   (4096 kB)
[    0.000000]     vmalloc : 0xcf7f0000 - 0xff3fe000   ( 764 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xceff0000   ( 239 MB)
[    0.000000]       .init : 0xc13c1000 - 0xc1420000   ( 380 kB)
[    0.000000]       .data : 0xc12735eb - 0xc13c0504   (1331 kB)
[    0.000000]       .text : 0xc1000000 - 0xc12735eb   (2509 kB)
[    0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:1280
[    0.000000] Console: colour VGA+ 80x25
[    0.000000] console [tty0] enabled
[    0.000000] Fast TSC calibration using PIT
[    0.000000] Detected 1000.042 MHz processor.
[    0.008010] Calibrating delay loop (skipped), value calculated using timer frequency.. 2000.08 BogoMIPS (lpj=4000168)
[    0.008073] Security Framework initialized
[    0.008095] SELinux:  Disabled at boot.
[    0.008118] Mount-cache hash table entries: 512
[    0.008462] Initializing cgroup subsys ns
[    0.008473] Initializing cgroup subsys cpuacct
[    0.008487] Initializing cgroup subsys devices
[    0.008497] Initializing cgroup subsys freezer
[    0.008505] Initializing cgroup subsys net_cls
[    0.008564] CPU: L1 I Cache: 64K (32 bytes/line), D cache 64K (32 bytes/line)
[    0.008574] CPU: L2 Cache: 64K (32 bytes/line)
[    0.008614] Performance Events: 
[    0.008626] Checking 'hlt' instruction... OK.
[    0.024593] SMP alternatives: switching to UP code
[    0.037983] Freeing SMP alternatives: 13k freed
[    0.038051] ACPI: Core revision 20090903
[    0.047982] ACPI: setting ELCR to 0200 (from 1e00)
[    0.049362] Enabling APIC mode:  Flat.  Using 0 I/O APICs
[    0.049371] weird, boot CPU (#0) not listed by the BIOS.
[    0.049378] SMP motherboard not detected.
[    0.049386] Local APIC not detected. Using dummy APIC emulation.
[    0.049393] SMP disabled
[    0.050012] Brought up 1 CPUs
[    0.050025] Total of 1 processors activated (2000.08 BogoMIPS).
[    0.050068] CPU0 attaching NULL sched-domain.
[    0.050512] devtmpfs: initialized
[    0.051853] regulator: core version 0.5
[    0.052067] NET: Registered protocol family 16
[    0.052334] ACPI: bus type pci registered
[    0.053943] PCI: PCI BIOS revision 2.10 entry at 0xfa800, last bus=1
[    0.053952] PCI: Using configuration type 1 for base access
[    0.055184] bio: create slab <bio-0> at 0
[    0.056844] ACPI: EC: Look up EC in DSDT
[    0.071942] ACPI: Interpreter enabled
[    0.071955] ACPI: (supports S0 S1 S4 S5)
[    0.072055] ACPI: Using PIC for interrupt routing
[    0.085462] ACPI: No dock devices found.
[    0.085732] ACPI: PCI Root Bridge [PCI0] (0000:00)
[    0.085858] pci 0000:00:00.0: reg 10 32bit mmio pref: [0xe8000000-0xefffffff]
[    0.086329] pci 0000:00:01.0: supports D1
[    0.086425] pci 0000:00:0f.0: reg 20 io port: [0xe000-0xe00f]
[    0.086542] pci 0000:00:10.0: reg 20 io port: [0xe100-0xe11f]
[    0.086591] pci 0000:00:10.0: supports D1 D2
[    0.086600] pci 0000:00:10.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.086612] pci 0000:00:10.0: PME# disabled
[    0.086684] pci 0000:00:10.1: reg 20 io port: [0xe200-0xe21f]
[    0.086733] pci 0000:00:10.1: supports D1 D2
[    0.086742] pci 0000:00:10.1: PME# supported from D0 D1 D2 D3hot D3cold
[    0.086753] pci 0000:00:10.1: PME# disabled
[    0.086827] pci 0000:00:10.2: reg 20 io port: [0xe300-0xe31f]
[    0.086876] pci 0000:00:10.2: supports D1 D2
[    0.086884] pci 0000:00:10.2: PME# supported from D0 D1 D2 D3hot D3cold
[    0.086896] pci 0000:00:10.2: PME# disabled
[    0.086969] pci 0000:00:10.3: reg 20 io port: [0xe400-0xe41f]
[    0.087018] pci 0000:00:10.3: supports D1 D2
[    0.087026] pci 0000:00:10.3: PME# supported from D0 D1 D2 D3hot D3cold
[    0.087038] pci 0000:00:10.3: PME# disabled
[    0.087091] pci 0000:00:10.4: reg 10 32bit mmio: [0xf6000000-0xf60000ff]
[    0.087160] pci 0000:00:10.4: supports D1 D2
[    0.087169] pci 0000:00:10.4: PME# supported from D0 D1 D2 D3hot D3cold
[    0.087181] pci 0000:00:10.4: PME# disabled
[    0.087269] HPET not enabled in BIOS. You might try hpet=force boot option
[    0.087365] pci 0000:00:11.5: reg 10 io port: [0xe500-0xe5ff]
[    0.087437] pci 0000:00:11.5: supports D1 D2
[    0.087493] pci 0000:00:12.0: reg 10 io port: [0xe600-0xe6ff]
[    0.087510] pci 0000:00:12.0: reg 14 32bit mmio: [0xf6001000-0xf60010ff]
[    0.087576] pci 0000:00:12.0: supports D1 D2
[    0.087584] pci 0000:00:12.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.087596] pci 0000:00:12.0: PME# disabled
[    0.087683] pci 0000:01:00.0: reg 10 32bit mmio pref: [0xf0000000-0xf3ffffff]
[    0.087701] pci 0000:01:00.0: reg 14 32bit mmio: [0xf4000000-0xf4ffffff]
[    0.087734] pci 0000:01:00.0: reg 30 32bit mmio pref: [0x000000-0x00ffff]
[    0.087778] pci 0000:01:00.0: supports D1 D2
[    0.087844] pci 0000:00:01.0: bridge 32bit mmio: [0xf4000000-0xf5ffffff]
[    0.087859] pci 0000:00:01.0: bridge 32bit mmio pref: [0xf0000000-0xf3ffffff]
[    0.087878] pci_bus 0000:00: on NUMA node 0
[    0.087900] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[    0.173848] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 6 7 10 *11 12)
[    0.174331] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 6 7 10 11 *12)
[    0.174817] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 6 7 *10 11 12)
[    0.175245] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 6 7 10 11 12) *0, disabled.
[    0.175661] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 6 7 10 11 12) *0, disabled.
[    0.176092] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 6 7 10 11 12) *0, disabled.
[    0.176491] ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 6 7 10 11 12) *0, disabled.
[    0.176887] ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 6 7 10 11 12) *0, disabled.
[    0.177234] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=io+mem,locks=none
[    0.177244] vgaarb: loaded
[    0.177489] PCI: Using ACPI for IRQ routing
[    0.177922] Switching to clocksource tsc
[    0.180001] pnp: PnP ACPI init
[    0.180001] ACPI: bus type pnp registered
[    0.188825] pnp: PnP ACPI: found 11 devices
[    0.188835] ACPI: ACPI bus type pnp unregistered
[    0.188847] PnPBIOS: Disabled by ACPI PNP
[    0.188884] system 00:00: iomem range 0xd0000-0xd3fff has been reserved
[    0.188898] system 00:00: iomem range 0xda000-0xdbfff has been reserved
[    0.188911] system 00:00: iomem range 0xf0000-0xfbfff could not be reserved
[    0.188925] system 00:00: iomem range 0xfc000-0xfffff could not be reserved
[    0.188939] system 00:00: iomem range 0xeff0000-0xeffffff could not be reserved
[    0.188954] system 00:00: iomem range 0xffff0000-0xffffffff has been reserved
[    0.188967] system 00:00: iomem range 0x0-0x9ffff could not be reserved
[    0.188981] system 00:00: iomem range 0x100000-0xefeffff could not be reserved
[    0.188995] system 00:00: iomem range 0xfee00000-0xfee00fff has been reserved
[    0.189009] system 00:00: iomem range 0xfff80000-0xfffeffff has been reserved
[    0.189035] system 00:02: ioport range 0x400-0x47f has been reserved
[    0.189048] system 00:02: ioport range 0x500-0x50f has been reserved
[    0.189070] system 00:03: ioport range 0x4d0-0x4d1 has been reserved
[    0.189083] system 00:03: ioport range 0x800-0x87f has been reserved
[    0.189096] system 00:03: ioport range 0x880-0x8ff has been reserved
[    0.224355] pci 0000:00:01.0: PCI bridge, secondary bus 0000:01
[    0.224366] pci 0000:00:01.0:   IO window: disabled
[    0.224381] pci 0000:00:01.0:   MEM window: 0xf4000000-0xf5ffffff
[    0.224395] pci 0000:00:01.0:   PREFETCH window: 0xf0000000-0xf3ffffff
[    0.224425] pci 0000:00:01.0: setting latency timer to 64
[    0.224441] pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
[    0.224452] pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffff]
[    0.224466] pci_bus 0000:01: resource 1 mem: [0xf4000000-0xf5ffffff]
[    0.224478] pci_bus 0000:01: resource 2 pref mem [0xf0000000-0xf3ffffff]
[    0.224590] NET: Registered protocol family 2
[    0.224885] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.225878] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.226149] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.226401] TCP: Hash tables configured (established 8192 bind 8192)
[    0.226410] TCP reno registered
[    0.226723] NET: Registered protocol family 1
[    0.226813] pci 0000:00:01.0: disabling DAC on VIA PCI bridge
[    0.228036] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
[    0.228047] PCI: setting IRQ 11 as level-triggered
[    0.228064] pci 0000:00:10.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[    0.228094] pci 0000:00:10.0: PCI INT A disabled
[    0.228125] pci 0000:00:10.1: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[    0.228151] pci 0000:00:10.1: PCI INT A disabled
[    0.229147] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 12
[    0.229156] PCI: setting IRQ 12 as level-triggered
[    0.229171] pci 0000:00:10.2: PCI INT B -> Link[LNKB] -> GSI 12 (level, low) -> IRQ 12
[    0.229199] pci 0000:00:10.2: PCI INT B disabled
[    0.229227] pci 0000:00:10.3: PCI INT B -> Link[LNKB] -> GSI 12 (level, low) -> IRQ 12
[    0.229253] pci 0000:00:10.3: PCI INT B disabled
[    0.230268] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
[    0.230277] PCI: setting IRQ 10 as level-triggered
[    0.230293] pci 0000:00:10.4: PCI INT C -> Link[LNKC] -> GSI 10 (level, low) -> IRQ 10
[    0.230362] pci 0000:00:10.4: PCI INT C disabled
[    0.230378] pci 0000:00:11.0: Bypassing VIA 8237 APIC De-Assert Message
[    0.230404] pci 0000:01:00.0: Boot video device
[    0.230558] Unpacking initramfs...
[    1.301888] Freeing initrd memory: 8523k freed
[    1.346228] audit: initializing netlink socket (disabled)
[    1.346266] type=2000 audit(1362685696.344:1): initialized
[    1.359719] HugeTLB registered 4 MB page size, pre-allocated 0 pages
[    1.365403] VFS: Disk quotas dquot_6.5.2
[    1.365627] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.365871] msgmni has been set to 465
[    1.366541] alg: No test for stdrng (krng)
[    1.366655] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    1.366666] io scheduler noop registered
[    1.366674] io scheduler anticipatory registered
[    1.366682] io scheduler deadline registered
[    1.366819] io scheduler cfq registered (default)
[    1.367327] isapnp: Scanning for PnP cards...
[    1.721570] isapnp: No Plug & Play device found
[    1.726003] Linux agpgart interface v0.103
[    1.726389] agpgart: Detected VIA PM800/PN800/PM880/PN880 chipset
[    1.734879] agpgart-via 0000:00:00.0: AGP aperture is 128M @ 0xe8000000
[    1.734955] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.735121] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    1.735327] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    1.736083] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    1.736337] 00:09: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    1.736784] PNP: No PS/2 controller found. Probing ports directly.
[    1.988148] serio: i8042 KBD port at 0x60,0x64 irq 1
[    1.988433] mice: PS/2 mouse device common for all mice
[    1.988559] rtc_cmos 00:05: RTC can wake from S4
[    1.988686] rtc_cmos 00:05: rtc core: registered rtc_cmos as rtc0
[    1.988737] rtc0: alarms up to one year, y3k, 242 bytes nvram
[    1.988785] cpuidle: using governor ladder
[    1.988792] cpuidle: using governor menu
[    1.988806] No iBFT detected.
[    1.990242] TCP cubic registered
[    1.990769] NET: Registered protocol family 10
[    1.993568] Mobile IPv6
[    1.993580] NET: Registered protocol family 17
[    1.993642] Using IPI No-Shortcut mode
[    1.993925] PM: Resume from disk failed.
[    1.993956] registered taskstats version 1
[    1.994641] rtc_cmos 00:05: setting system clock to 2013-03-07 19:48:17 UTC (1362685697)
[    1.994839] Initalizing network drop monitor service
[    1.994940] Freeing unused kernel memory: 380k freed
[    1.996919] Write protecting the kernel text: 2512k
[    1.997013] Write protecting the kernel read-only data: 924k
[    2.068324] udev[46]: starting version 164
[    2.727741] usbcore: registered new interface driver usbfs
[    2.728521] usbcore: registered new interface driver hub
[    2.729243] usbcore: registered new device driver usb
[    2.747545] SCSI subsystem initialized
[    2.761590] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.761692] ehci_hcd 0000:00:10.4: PCI INT C -> Link[LNKC] -> GSI 10 (level, low) -> IRQ 10
[    2.761747] ehci_hcd 0000:00:10.4: EHCI Host Controller
[    2.761820] ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 1
[    2.761927] ehci_hcd 0000:00:10.4: irq 10, io mem 0xf6000000
[    2.769515] via-rhine.c:v1.10-LK1.4.3 2007-03-06 Written by Donald Becker
[    2.772165] ehci_hcd 0000:00:10.4: USB 2.0 started, EHCI 1.00
[    2.772281] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.772292] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.772303] usb usb1: Product: EHCI Host Controller
[    2.772312] usb usb1: Manufacturer: Linux 2.6.32-5-686 ehci_hcd
[    2.772321] usb usb1: SerialNumber: 0000:00:10.4
[    2.772905] usb usb1: configuration #1 chosen from 1 choice
[    2.773144] hub 1-0:1.0: USB hub found
[    2.773186] hub 1-0:1.0: 8 ports detected
[    2.773494] via-rhine 0000:00:12.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[    2.784654] ACPI Error (psargs-0359): [RBYT] Namespace lookup failure, AE_NOT_FOUND
[    2.784679] ACPI Error (psparse-0537): Method parse/execution failed [\RTMP] (Node ce81ad38), AE_NOT_FOUND
[    2.784799] ACPI Error (psparse-0537): Method parse/execution failed [\_TZ_.THRM._TMP] (Node ce81ae70), AE_NOT_FOUND
[    2.788179] eth0: VIA Rhine II at 0x1e600, 00:80:64:5e:b3:61, IRQ 11.
[    2.788904] eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 45e1.
[    2.894904] libata version 3.00 loaded.
[    2.912473] uhci_hcd: USB Universal Host Controller Interface driver
[    2.912687] uhci_hcd 0000:00:10.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[    2.912720] uhci_hcd 0000:00:10.0: UHCI Host Controller
[    2.912767] uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
[    2.912825] uhci_hcd 0000:00:10.0: irq 11, io base 0x0000e100
[    2.913013] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    2.913025] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.913035] usb usb2: Product: UHCI Host Controller
[    2.913044] usb usb2: Manufacturer: Linux 2.6.32-5-686 uhci_hcd
[    2.913053] usb usb2: SerialNumber: 0000:00:10.0
[    2.913678] usb usb2: configuration #1 chosen from 1 choice
[    2.913916] hub 2-0:1.0: USB hub found
[    2.913954] hub 2-0:1.0: 2 ports detected
[    2.914140] uhci_hcd 0000:00:10.1: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[    2.914168] uhci_hcd 0000:00:10.1: UHCI Host Controller
[    2.914219] uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
[    2.914267] uhci_hcd 0000:00:10.1: irq 11, io base 0x0000e200
[    2.914434] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    2.914445] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.914455] usb usb3: Product: UHCI Host Controller
[    2.914464] usb usb3: Manufacturer: Linux 2.6.32-5-686 uhci_hcd
[    2.914473] usb usb3: SerialNumber: 0000:00:10.1
[    2.927398] usb usb3: configuration #1 chosen from 1 choice
[    2.927815] hub 3-0:1.0: USB hub found
[    2.927863] hub 3-0:1.0: 2 ports detected
[    2.928169] uhci_hcd 0000:00:10.2: PCI INT B -> Link[LNKB] -> GSI 12 (level, low) -> IRQ 12
[    2.928200] uhci_hcd 0000:00:10.2: UHCI Host Controller
[    2.928231] uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 4
[    2.928283] uhci_hcd 0000:00:10.2: irq 12, io base 0x0000e300
[    2.928459] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    2.928471] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.928481] usb usb4: Product: UHCI Host Controller
[    2.928490] usb usb4: Manufacturer: Linux 2.6.32-5-686 uhci_hcd
[    2.928499] usb usb4: SerialNumber: 0000:00:10.2
[    2.929931] usb usb4: configuration #1 chosen from 1 choice
[    2.930329] hub 4-0:1.0: USB hub found
[    2.930371] hub 4-0:1.0: 2 ports detected
[    2.930568] uhci_hcd 0000:00:10.3: PCI INT B -> Link[LNKB] -> GSI 12 (level, low) -> IRQ 12
[    2.930603] uhci_hcd 0000:00:10.3: UHCI Host Controller
[    2.930633] uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 5
[    2.930683] uhci_hcd 0000:00:10.3: irq 12, io base 0x0000e400
[    2.930855] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
[    2.930866] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.930877] usb usb5: Product: UHCI Host Controller
[    2.930885] usb usb5: Manufacturer: Linux 2.6.32-5-686 uhci_hcd
[    2.930894] usb usb5: SerialNumber: 0000:00:10.3
[    2.944146] usb usb5: configuration #1 chosen from 1 choice
[    2.944544] hub 5-0:1.0: USB hub found
[    2.944584] hub 5-0:1.0: 2 ports detected
[    2.964835] pata_via 0000:00:0f.0: version 0.3.4
[    2.964885] pata_via 0000:00:0f.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[    2.964900] pata_via 0000:00:0f.0: VIA VLink IRQ fixup, from 255 to 11
[    2.968836] fan PNP0C0B:00: registered as cooling_device0
[    2.968868] ACPI: Fan [FAN] (on)
[    2.970744] scsi0 : pata_via
[    2.972529] scsi1 : pata_via
[    2.981482] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xe000 irq 14
[    2.981498] ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xe008 irq 15
[    3.084076] usb 1-1: new high speed USB device using ehci_hcd and address 2
[    3.144459] ata1.00: CFA: CF CARD 4GB, Ver6.04K, max UDMA/133
[    3.144473] ata1.00: 7806960 sectors, multi 1: LBA48 
[    3.144531] ata1.00: limited to UDMA/33 due to 40-wire cable
[    3.152327] ata1.00: configured for UDMA/33
[    3.152650] scsi 0:0:0:0: Direct-Access     ATA      CF CARD 4GB      Ver6 PQ: 0 ANSI: 5
[    3.153515] ata2: port disabled. ignoring.
[    3.193982] sd 0:0:0:0: [sda] 7806960 512-byte logical blocks: (3.99 GB/3.72 GiB)
[    3.194137] sd 0:0:0:0: [sda] Write Protect is off
[    3.194149] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    3.194215] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.194666]  sda: sda1 sda2 < sda5 >
[    3.200394] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.218033] usb 1-1: New USB device found, idVendor=090c, idProduct=1000
[    3.218048] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.218060] usb 1-1: Product: USB Flash Disk
[    3.218068] usb 1-1: Manufacturer: General
[    3.218076] usb 1-1: SerialNumber: 0421QQ0000002056
[    3.218419] usb 1-1: configuration #1 chosen from 1 choice
[    3.265942] Initializing USB Mass Storage driver...
[    3.266318] scsi2 : SCSI emulation for USB Mass Storage devices
[    3.267177] usbcore: registered new interface driver usb-storage
[    3.267190] USB Mass Storage support registered.
[    3.270573] usb-storage: device found at 2
[    3.270583] usb-storage: waiting for device to settle before scanning
[    3.427589] PM: Starting manual resume from disk
[    3.427606] PM: Resume from partition 8:5
[    3.427612] PM: Checking hibernation image.
[    3.428709] PM: Error -22 checking image file
[    3.428717] PM: Resume from disk failed.
[    3.503990] EXT3-fs: INFO: recovery required on readonly filesystem.
[    3.504003] EXT3-fs: write access will be enabled during recovery.
[    3.640078] usb 2-2: new full speed USB device using uhci_hcd and address 2
[    3.796868] usb 2-2: New USB device found, idVendor=0c45, idProduct=613e
[    3.796883] usb 2-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.796894] usb 2-2: Product: USB camera
[    3.797277] usb 2-2: configuration #1 chosen from 1 choice
[    8.268376] usb-storage: device scan complete
[    8.269090] scsi 2:0:0:0: Direct-Access     General  USB Flash Disk   1100 PQ: 0 ANSI: 4
[    8.273938] sd 2:0:0:0: [sdb] 31494144 512-byte logical blocks: (16.1 GB/15.0 GiB)
[    8.274684] sd 2:0:0:0: [sdb] Write Protect is off
[    8.274701] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
[    8.274711] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    8.277547] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    8.277625]  sdb: sdb1
[    8.281187] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    8.281266] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[   32.504110] kjournald starting.  Commit interval 5 seconds
[   32.504156] EXT3-fs: sda1: orphan cleanup on readonly fs
[   32.504177] ext3_orphan_cleanup: deleting unreferenced inode 8132
[   32.504315] EXT3-fs: sda1: 1 orphan inode deleted
[   32.504322] EXT3-fs: recovery complete.
[   33.175667] EXT3-fs: mounted filesystem with ordered data mode.
[   33.760146] udev[273]: starting version 164
[   34.408322] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[   34.473919] udev[326]: renamed network interface eth0 to eth1
[   34.734452] Marking TSC unstable due to TSC halts in idle
[   34.734781] processor LNXCPU:00: registered as cooling_device1
[   34.743317] Switching to clocksource acpi_pm
[   34.793782] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
[   34.793809] ACPI: Power Button [PWRB]
[   34.794030] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input1
[   34.794055] ACPI: Sleep Button [SLPB]
[   34.794304] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
[   34.794319] ACPI: Power Button [PWRF]
[   34.953310] input: PC Speaker as /devices/platform/pcspkr/input/input3
[   35.012972] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[   35.031006] parport_pc 00:0a: reported by Plug and Play ACPI
[   35.031051] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE,EPP]
[   35.161038] Linux video capture interface: v2.00
[   35.216744] gspca: main v2.7.0 registered
[   35.286333] gspca: probing 0c45:613e
[   35.292552] sonixj: Sonix chip id: 12
[   35.303658] gspca: probe ok
[   35.303720] usbcore: registered new interface driver sonixj
[   35.303731] sonixj: registered
[   35.307301] Error: Driver 'pcspkr' is already registered, aborting...
[   35.406507] VIA 82xx Audio 0000:00:11.5: PCI INT C -> Link[LNKC] -> GSI 10 (level, low) -> IRQ 10
[   35.406676] VIA 82xx Audio 0000:00:11.5: setting latency timer to 64
[   36.402895] Adding 210936k swap on /dev/sda5.  Priority:-1 extents:1 across:210936k 
[   36.561909] EXT3 FS on sda1, internal journal
[   36.873996] loop: module loaded
[   36.917570] vt1211: Found VT1211 chip at 0x6000, revision 2
[   37.210675] EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
[   37.839716] RPC: Registered udp transport module.
[   37.839728] RPC: Registered tcp transport module.
[   37.839736] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   37.928806] Slow work thread pool: Starting up
[   37.928966] Slow work thread pool: Ready
[   37.929212] FS-Cache: Loaded
[   38.066753] FS-Cache: Netfs 'nfs' registered for caching
[   38.161895] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   38.283725] eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
[   41.312249] svc: failed to register lockdv1 RPC service (errno 97).
[   41.320337] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
[   41.324749] NFSD: starting 90-second grace period
[   48.700100] eth1: no IPv6 routers present
i dziękuje
Awatar użytkownika
LordRuthwen
Moderator
Posty: 2348
Rejestracja: 18 września 2009, 21:45
Lokalizacja: klikash?

Post autor: LordRuthwen »

Użyj sterowników uvcvideo
Awatar użytkownika
szlejk
Beginner
Posty: 100
Rejestracja: 23 marca 2011, 22:48
Lokalizacja: Warszawa

Post autor: szlejk »

LordRuthwen pisze:Użyj sterowników uvcvideo
Ok a mogę prosić o wskazówki jak to zrobić :)
Awatar użytkownika
Rafal_F
Moderator
Posty: 2350
Rejestracja: 29 sierpnia 2008, 16:45

Post autor: Rafal_F »

Na stronie uvcvideo w sekcji obsługiwanego sprzętu nie ma urządzenia o ID 0c45:613e, a takie ma ta kamerka.
Czy polecenie dmesg zostało wydane po próbie użycia kamerki, czy przed? W logach dmesg nie ma żadnego błędu.
Zapoznałeś się z dokumentacją motion? Sprawdź zwłaszcza sekcję "Known Problems" http://www.lavrsen.dk/foswiki/bin/view/ ... n_Problems
Częstym problemem jest brak uprawnień do czytania z urządzenia, upewnij się czy motion takowe posiada.
Awatar użytkownika
szlejk
Beginner
Posty: 100
Rejestracja: 23 marca 2011, 22:48
Lokalizacja: Warszawa

Post autor: szlejk »

Polecenie dmesg zostało wykonane po urchomieniu motion, co do uprawnień

Kod: Zaznacz cały

crw-rw-rw- 1 root video 81, 0 03-10 15:00 /dev/video0
Jak uruchomie motion z poziomu roota to startuje webcam server in port 8081, bez roota już nie :icon5:

Kod: Zaznacz cały

szlejk@donga-server:~$ sudo motion -n
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3412993 LIBAVFORMAT_BUILD 3415808
[0] Thread 1 is from /etc/motion/motion.conf
[1] Thread 1 started
[1] cap.driver: "sonixj"
[1] cap.card: "USB camera"
[1] cap.bus_info: "usb-0000:00:10.0-2"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Config palette index 8 (YU12) doesn't work.
[0] motion-httpd/3.2.12 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Supported palettes:
[1] 0: JPEG (JPEG)
[1] Selected palette JPEG
[1] Test palette JPEG (320x240)
[1] Using palette JPEG (320x240) bytesperlines 320 sizeimage 29390 colorspace 00000007
[1] found control 0x00980900, "Brightness", range 0,65535 
[1]     "Brightness", default 32768, current 32768
[1] found control 0x00980901, "Contrast", range 0,127 
[1]     "Contrast", default 63, current 63
[1] found control 0x00980902, "Saturation", range 0,40 
[1]     "Saturation", default 25, current 25
[1] found control 0x0098090e, "Red Balance", range 24,40 
[1]     "Red Balance", default 32, current 32
[1] found control 0x0098090f, "Blue Balance", range 24,40 
[1]     "Blue Balance", default 32, current 32
[1] found control 0x00980910, "Gamma", range 0,40 
[1]     "Gamma", default 20, current 20
[1] found control 0x00980912, "Auto Gain", range 0,1 
[1]     "Auto Gain", default 1, current 1
[1] mmap information:
[1] frames=4
[1] 0 length=32768
[1] 1 length=32768
[1] 2 length=32768
[1] 3 length=32768
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[1] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 0): Input/output error
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] Error capturing first image
[1] Started stream webcam server in port 8081
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] Video device fatal error - Closing video device
[1] Closing video device /dev/video0
[1] Retrying until successful connection with camera
Jak sprawdzić czy kamerka przesyła obraz wo góle?
Awatar użytkownika
Rafal_F
Moderator
Posty: 2350
Rejestracja: 29 sierpnia 2008, 16:45

Post autor: Rafal_F »

Serwer może i startuje ale dalej ma problemy z czytaniem z kamerki. To widziałeś http://en.usenet.digipedia.org/thread/18550/27290/ ? Może podobny problem.
ODPOWIEDZ