PDA

View Full Version : Slackware: webcam


XFalco
27-01-2004, 21:52
Qualcuno saprebbe dirmi come far funzionare la webcam?? è una creative webcam nx

Ho provato a seguire questa guida http://www.slackware-italia.com/articoli.php?IDART=25

ho ricompilato il kernel (2.6.0) con supporto a hotplug, pcia,video4linux, vari modelli di webcam(come moduli), supporto usb, ed installato correttamente gnomemeeting ma c'è qualcosa che non va xchè mi rimanda questo errore:

Error while opening video device /dev/video1

The chosen Video Image will be transmitted during calls. If you didn't choose any image, then the default GnomeMeeting logo will be transmitted. Notice that you can always transmit a given image or the GnomeMeeting logo by choosing "Picture" as video device.

There was an error while opening the device. Please check your permissions and make sure that the appropriate driver is loaded.


Ho cercato in rete ma non riesco a capire cosa sbaglio o dimentico, o addirittura se la mia webcam è supportata o meno...

Qualcuno saprebbe spiegarmi come devo procedere, e cosa serve esattamente per il funzionamento?

Grazie

ilsensine
27-01-2004, 22:12
/dev/video1 è il _secondo_ dispositivo video, se non ne hai altri devi usare /dev/video0.

Cmq puoi controllare con dmesg cosa succede, se il modulo di gestione viene caricato correttamente, ecc.

HenryTheFirst
27-01-2004, 22:14
Probabilmente non hai i permessi per aprire /dev/video1
Prova a vedere se funziona da root, se da li va vuol dire che devi modificare i permessi di /dev/video1 in modo che sia accessibile anche dagli utenti non root. Meglio ancora sarebbe assegnare /dev/video1 ad un gruppo (per esempio al gruppo "video") e aggiungere gli utenti a cui intendi concedere l'utilizzo della webcam al medesimo gruppo.

Cmq per ora prova ad usare gnomemeeting da root e vedi se ti funziona la webcam ;)

XFalco
27-01-2004, 23:40
Originariamente inviato da ilsensine
/dev/video1 è il _secondo_ dispositivo video, se non ne hai altri devi usare /dev/video0.

Cmq puoi controllare con dmesg cosa succede, se il modulo di gestione viene caricato correttamente, ecc.

Niente, stesso errore anche con /dev/video0

Con dmesg l'output è questo, sinceramente non lo so interpretare(o meglio non ho capito cosa devo guardare)

Linux version 2.6.1 (root@falcopc) (gcc version 3.2.3) #1 SMP Tue Jan 27 23:01:16 CET 2004
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
BIOS-e820: 000000001fff0000 - 000000001fff8000 (ACPI data)
BIOS-e820: 000000001fff8000 - 0000000020000000 (ACPI NVS)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000ffee0000 - 00000000fff00000 (reserved)
BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
511MB LOWMEM available.
On node 0 totalpages: 131056
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 126960 pages, LIFO batch:16
HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI: RSDP (v000 AMI ) @ 0x000fa340
ACPI: RSDT (v001 AMIINT SiS735XX 0x00001000 MSFT 0x0100000b) @ 0x1fff0000
ACPI: FADT (v001 AMIINT SiS735XX 0x00001000 MSFT 0x0100000b) @ 0x1fff0030
ACPI: DSDT (v001 SiS 735 0x00000100 MSFT 0x0100000d) @ 0x00000000
Building zonelist for node : 0
Kernel command line: BOOT_IMAGE=Linux-2.6.1 ro root=302 hdc=ide-scsi hdd=ide-scsi
ide_setup: hdc=ide-scsi
ide_setup: hdd=ide-scsi
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
PID hash table entries: 2048 (order 11: 16384 bytes)
Detected 1606.812 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Memory: 513404k/524224k available (3095k kernel code, 10072k reserved, 1088k data, 196k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 3178.49 BogoMIPS
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0383fbff c1cbfbff 00000000 00000000
CPU: After vendor identify, caps: 0383fbff c1cbfbff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After all inits, caps: 0383fbff c1cbfbff 00000000 00000020
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
CPU0: AMD Athlon(tm) XP 1900+ stepping 02
per-CPU timeslice cutoff: 731.72 usecs.
task migration cache decay timeout: 1 msecs.
SMP motherboard not detected.
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1606.0580 MHz.
..... host bus clock speed is 267.0763 MHz.
Starting migration thread for cpu 0
CPUS done 8
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfdb01, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20031002
ACPI: IRQ 9 was Edge Triggered, setting to Level Triggerd
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: Power Resource [URP1] (off)
ACPI: Power Resource [URP2] (off)
ACPI: Power Resource [FDDP] (off)
ACPI: Power Resource [LPTP] (off)
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 *5 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 7 10 11 *12 14 15)
Linux Plug and Play Support v0.97 (c) Adam Belay
SCSI subsystem initialized
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKH] enabled at IRQ 12
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKG] enabled at IRQ 11
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 5
PCI: Using ACPI for IRQ routing
PCI: if you experience problems, try using option 'pci=noacpi' or even 'acpi=off'
vga16fb: initializing
vga16fb: mapped to 0xc00a0000
fb0: VGA16 VGA frame buffer device
Machine check exception polling timer started.
Installing knfsd (copyright (C) 1996 [email protected]).
NTFS driver 2.1.5 [Flags: R/W].
udf: registering filesystem
ACPI: Power Button (FF) [PWRF]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Processor [CPU1] (supports C1)
Console: switching to colour frame buffer device 80x30
pty: 256 Unix98 ptys configured
request_module: failed /sbin/modprobe -- parport_lowlevel. error = -16
lp: driver loaded but no devices found
Linux agpgart interface v0.100 (c) Dave Jones
[drm:drm_init] *ERROR* Cannot initialize the agpgart module.
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
parport0: PC-style at 0x378 [PCSPP(,...)]
lp0: using parport0 (polling).
Using anticipatory io scheduler
Floppy drive(s): fd0 is 1.44M
spurious 8259A interrupt: IRQ7.
FDC 0 is a post-1991 82077
loop: loaded (max 8 devices)
sis900.c: v1.08.07 11/02/2003
eth0: Realtek RTL8201 PHY transceiver found at address 1.
eth0: Using transceiver found at address 1 as default
eth0: SiS 900 PCI Fast Ethernet at 0xd400, IRQ 11, 00:07:95:01:4e:13.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SIS5513: IDE controller at PCI slot 0000:00:02.5
SIS5513: chipset revision 208
SIS5513: not 100% native mode: will probe irqs later
SIS5513: SiS735 ATA 100 (2nd gen) controller
ide0: BM-DMA at 0xff00-0xff07, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xff08-0xff0f, BIOS settings: hdc:DMA, hdd:DMA
hda: WDC WD400BB-00DEA0, ATA DISK drive
hdb: Maxtor 6E040L0, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: SAMSUNG CD-R/RW SW-252B, ATAPI CD/DVD-ROM drive
hdd: HL-DT-ST CD-ROM GCR-8520B, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 78165360 sectors (40020 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
hda: hda1 hda2 hda3
hdb: max request size: 128KiB
hdb: 80293248 sectors (41110 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
hdb: hdb1
ide-scsi is deprecated for cd burning! Use ide-cd and give dev=/dev/hdX as device
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: SAMSUNG Model: CD-R/RW SW-252B Rev: R700
Type: CD-ROM ANSI SCSI revision: 02
scsi1 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: HL-DT-ST Model: CD-ROM GCR-8520B Rev: 1.00
Type: CD-ROM ANSI SCSI revision: 02
sr0: scsi3-mmc drive: 52x/52x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr1: scsi3-mmc drive: 52x/52x cd/rw xa/form2 cdda tray
Attached scsi CD-ROM sr1 at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 5
Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0, type 5
video1394: Installed video1394 module
Console: switching to colour frame buffer device 80x30
ohci_hcd: 2003 Oct 13 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
ohci_hcd 0000:00:02.2: OHCI Host Controller
ohci_hcd 0000:00:02.2: irq 11, pci mem e0830000
ohci_hcd 0000:00:02.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
ohci_hcd 0000:00:02.3: OHCI Host Controller
ohci_hcd 0000:00:02.3: irq 12, pci mem e0832000
ohci_hcd 0000:00:02.3: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1
drivers/usb/core/usb.c: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
drivers/usb/core/usb.c: registered new driver usb-storage
USB Mass Storage support registered.
drivers/usb/core/usb.c: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
drivers/usb/core/usb.c: registered new driver usbtest
mice: PS/2 mouse device common for all mice
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
Advanced Linux Sound Architecture Driver Version 0.9.7 (Thu Sep 25 19:16:36 2003 UTC).
request_module: failed /sbin/modprobe -- snd-card-0. error = -16
intel8x0: clocking to 48000
ALSA device list:
#0: SiS SI7012 at 0xdc00, irq 11
NET: Registered protocol family 2
hub 1-0:1.0: new USB device on port 1, assigned address 2
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 32768)
NET: Registered protocol family 1
NET: Registered protocol family 17
ACPI: (supports S0 S1 S4 S5)
drivers/usb/input/hid-core.c: ctrl urb status -75 received
input: USB HID v1.10 Mouse [Cellink Co., Cellink RF Mouse] on usb-0000:00:02.2-1
found reiserfs format "3.6" with standard journal
hub 2-0:1.0: new USB device on port 1, assigned address 2
Reiserfs journal params: device hda2, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
reiserfs: checking transaction log (hda2) for (hda2)
journal-1153: found in header: first_unflushed_offset 3798, last_flushed_trans_id 45877
journal-1206: Starting replay from offset 3798, trans_id 45878
journal-1299: Setting newest_mount_id to 163
Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 196k freed
Adding 1208332k swap on /dev/hda3. Priority:-1 extents:1
NTFS volume version 3.1.
request_module: failed /sbin/modprobe -- char-major-10-135. error = 256
nvidia: module license 'NVIDIA' taints kernel.
0: nvidia: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-5336 Wed Jan 14 18:29:26 PST 2004
eth0: Media Link On 100mbps full-duplex
request_module: failed /sbin/modprobe -- net-pf-10. error = 256
request_module: failed /sbin/modprobe -- char-major-10-134. error = 256
request_module: failed /sbin/modprobe -- agpgart. error = 256
0: NVRM: AGPGART: unable to retrieve symbol table
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).




Dando il comando lsusb risulta invece questo:

Unknown line at line 1809
Duplicate HUT Usage Spec at line 2650
Bus 002 Device 002: ID 041e:401c Creative Labs
Bus 002 Device 001: ID 0000:0000 Virtual Hub
Bus 001 Device 002: ID 1733:0101
Bus 001 Device 001: ID 0000:0000 Virtual Hub

è positivo? sembra che la veda...sembra

XFalco
27-01-2004, 23:42
Originariamente inviato da HenryTheFirst
Probabilmente non hai i permessi per aprire /dev/video1
Prova a vedere se funziona da root, se da li va vuol dire che devi modificare i permessi di /dev/video1 in modo che sia accessibile anche dagli utenti non root. Meglio ancora sarebbe assegnare /dev/video1 ad un gruppo (per esempio al gruppo "video") e aggiungere gli utenti a cui intendi concedere l'utilizzo della webcam al medesimo gruppo.

Cmq per ora prova ad usare gnomemeeting da root e vedi se ti funziona la webcam ;)


niente, neppure da root funzia

ilsensine
28-01-2004, 08:43
Originariamente inviato da XFalco
Niente, stesso errore anche con /dev/video0

Con dmesg l'output è questo, sinceramente non lo so interpretare(o meglio non ho capito cosa devo guardare)
Niente, non c'è nessun messaggio relativo a v4l o altro.


Dando il comando lsusb risulta invece questo:

Unknown line at line 1809
Duplicate HUT Usage Spec at line 2650
Bus 002 Device 002: ID 041e:401c Creative Labs
Bravo! E' l'informazione più utile che potevi dare. Quell'identificativo consente di stabilire univocamente che dispositivo è, se è supportato e da chi.

Il tuo dispositivo ha l'usb id 041e:401c, che - da quello che vedo nei sorgenti del kernel 2.6.1, in particolare nel file pwc-if.c - non è supportato. Della Creative sono supportate le webcam con usb id pari a 041e:400c e 041e:4011, relativo sempre a webcam simili alla tua (ma non necessariamente compatibili!), dal driver Philips pwc (evidentemente la Creative usa chip Philips).

Se vuoi fare una prova alquanto disperata (ma a volte la disperazione fa miracoli), prova ad applicare la patch che allego. Ricompila e reinstalla includendo il modulo pwc per webcam Philips, vediamo che succede. Non ti aspettare nulla, però...

ilsensine
28-01-2004, 08:45
Ehm...l'allegato :D

XFalco
28-01-2004, 20:56
Non funzia, grazie comunque della disponibilità!

purtroppo ho trovato questo sconfortante link

http://www.qbik.ch/usb/devices/search_res.php?pattern=nx

faccio qualche altra prova, ma mi sa che dovrò aspettare il supporto (chissà quando!)

ilsensine
28-01-2004, 21:02
...un'altro paperweight. Prendo nota...