PDA

View Full Version : conflitto webcam - scheda video


alberto t.
11-03-2009, 13:52
Ciao a tutti!
Ho seguito questa guida (http://stemp.wordpress.com/2007/01/20/video-devices-and-udev/) per cercare di non fare andare in conflitto la scheda tv e la webcam.
Il risultato del comando lsusb è:

Bus 001 Device 005: ID 0402:5602 ALi Corp. Video Camera Controller
Bus 001 Device 003: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 004 Device 002: ID 058f:9254 Alcor Micro Corp. Hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 04a9:2220 Canon, Inc. CanoScan LIDE 25
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Ho creato il file /etc/udev/rules.d/95-perso.rules inserendoci questo:
KERNEL=="video*", SYSFS{idVendor}=="0402“, SYSFS{idProduct}==”5602“, SYMLINK+=”webcam”
Come descritto nella guida

Il risultato del comando lspci è:

00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV250 If [Radeon 9000] (rev 01)
01:00.1 Display controller: ATI Technologies Inc Radeon RV250 [Radeon 9000] (Secondary) (rev 01)
02:00.0 Ethernet controller: 3Com Corporation 3c900B-Combo Etherlink XL [Cyclone] (rev 04)
02:01.0 Multimedia controller: Philips Semiconductors SAA7134/SAA7135HL Video Broadcast Decoder (rev 01)


Ora non capisco cosa devo aggiungere al file /etc/udev/rules.d/95-perso.rules.
stemp@caderousse:~$ lspci
…..
00:0a.0 Multimedia controller: Philips Semiconductors SAA7134 Video Broadcast Decoder (rev 01)
…..
With this code 00:0a.0 we could find the vendor and device idents :
stemp@caderousse:~$ cat /sys/devices/pci0000\:00/0000\:00\:0a.0/vendor
0×1131
stemp@caderousse:~$ cat /sys/devices/pci0000\:00/0000\:00\:0a.0/device
0×7134
Here is the new line for our file /etc/udev/rules.d/95-perso.rules :

KERNEL=="video*", SYSFS{vendor}=="0×1131“, SYSFS{device}==”0×7134“, SYMLINK+=”tv”

Chi mi aiuta? :)

Grazie :)