|
|||||||||||
|
Re: Udev. Problems with ordering hardware using /dev/video
From: Nigel Henry <cave.dnb(at)tiscali.fr>
Date: Tue Jul 31 2007 - 18:45:54 EDT
Output below. Bear in mind that /dev/video0 should be the TV card, /dev/video1 the webcam, at least that is how they are loaded with pre Udev kernels.
ssh 192.168.0.8
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Udevinfo starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be composed by the attributes of the device and the attributes from one single parent device.
looking at device '/class/video4linux/video0':
KERNEL=="video0"
ATTR{exposure}=="0"
ATTR{hue}=="128"
ATTR{contrast}=="54"
ATTR{saturation}=="110"
ATTR{brightness}=="124"
ATTR{sensor}=="OV7620"
ATTR{bridge}=="OV511+"
ATTR{model}=="Generic Camera _no ID_"
ATTR{custom_id}=="0"
ATTR{name}=="OV511 USB Camera"
ATTR{dev}=="81:0"
looking at parent device '/devices/pci0000:00/0000:00:07.2/usb1/1-2':
KERNELS=="1-2"
ATTRS{configuration}==""
ATTRS{maxchild}=="0"
ATTRS{version}==" 1.00"
ATTRS{devnum}=="3"
ATTRS{speed}=="12"
ATTRS{bMaxPacketSize0}=="8"
ATTRS{bNumConfigurations}=="1"
ATTRS{bDeviceProtocol}=="00"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bDeviceClass}=="00"
ATTRS{bcdDevice}=="0100"
ATTRS{idProduct}=="a511"
ATTRS{idVendor}=="05a9"
ATTRS{bMaxPower}=="500mA"
ATTRS{bmAttributes}=="80"
ATTRS{bConfigurationValue}=="1"
ATTRS{bNumInterfaces}==" 1"
looking at parent device '/devices/pci0000:00/0000:00:07.2/usb1':
KERNELS=="usb1"
ATTRS{configuration}==""
ATTRS{serial}=="0000:00:07.2"
ATTRS{product}=="UHCI Host Controller"
ATTRS{manufacturer}=="Linux 2.6.17-2-686 uhci_hcd"
ATTRS{maxchild}=="2"
ATTRS{version}==" 1.10"
ATTRS{devnum}=="1"
ATTRS{speed}=="12"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{bNumConfigurations}=="1"
ATTRS{bDeviceProtocol}=="00"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bDeviceClass}=="09"
ATTRS{bcdDevice}=="0206"
ATTRS{idProduct}=="0000"
ATTRS{idVendor}=="0000"
ATTRS{bMaxPower}==" 0mA"
ATTRS{bmAttributes}=="e0"
ATTRS{bConfigurationValue}=="1"
ATTRS{bNumInterfaces}==" 1"
looking at parent device '/devices/pci0000:00/0000:00:07.2':
KERNELS=="0000:00:07.2"
ATTRS{modalias}=="pci:v00001106d00003038sv00000925sd00001234bc0Csc03i00"
ATTRS{local_cpus}=="ff"
ATTRS{irq}=="11"
ATTRS{class}=="0x0c0300"
ATTRS{subsystem_device}=="0x1234"
ATTRS{subsystem_vendor}=="0x0925"
ATTRS{device}=="0x3038"
ATTRS{vendor}=="0x1106"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
Udevinfo starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be composed by the attributes of the device and the attributes from one single parent device.
looking at device '/class/video4linux/video1':
KERNEL=="video1"
ATTR{card}=="10"
ATTR{name}=="BT878 video _Hauppauge _bt878__"
ATTR{dev}=="81:1"
looking at parent device '/devices/pci0000:00/0000:00:0a.0':
KERNELS=="0000:00:0a.0"
ATTRS{modalias}=="pci:v0000109Ed0000036Esv00000070sd000013EBbc04sc00i00"
ATTRS{local_cpus}=="ff"
ATTRS{irq}=="10"
ATTRS{class}=="0x040000"
ATTRS{subsystem_device}=="0x13eb"
ATTRS{subsystem_vendor}=="0x0070"
ATTRS{device}=="0x036e"
ATTRS{vendor}=="0x109e"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
Thanks for your concern. Nigel. -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Tue Jul 31 18:46:44 2007 This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 18:35:40 EDT |
||||||||||
|
|||||||||||