di Aragorn il 20 nov 2007, 17:17
udevinfo -a -p $(udevinfo -q path -n /dev/video0)
- Codice: Seleziona tutto
aragorn@MinasTirith:~$ udevinfo -a -p $(udevinfo -q path -n /dev/video0)
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"
SUBSYSTEM=="video4linux"
DRIVER==""
ATTR{pictsetting}=="force_rgb=0, gamma=3, OffRed=0, OffBlue=0, OffGreen=0, GRed=256, GBlue=256, GGreen= 256 "
ATTR{model}=="Kodak EZ200"
ATTR{stream_id}=="JPEG"
ATTR{name}=="GSPCA USB Camera"
ATTR{dev}=="81:0"
looking at parent device '/devices/pci0000:00/0000:00:02.0/usb1/1-4':
KERNELS=="1-4"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{product}=="Kodak EZ200 DIGITAL CAMERA"
ATTRS{manufacturer}=="EASTMAN KODAK COMPANY"
ATTRS{quirks}=="0x0"
ATTRS{maxchild}=="0"
ATTRS{version}==" 1.10"
ATTRS{devnum}=="9"
ATTRS{busnum}=="1"
ATTRS{speed}=="12"
ATTRS{bMaxPacketSize0}=="8"
ATTRS{bNumConfigurations}=="1"
ATTRS{bDeviceProtocol}=="ff"
ATTRS{bDeviceSubClass}=="ff"
ATTRS{bDeviceClass}=="ff"
ATTRS{bcdDevice}=="0100"
ATTRS{idProduct}=="0300"
ATTRS{idVendor}=="040a"
ATTRS{bMaxPower}=="500mA"
ATTRS{bmAttributes}=="80"
ATTRS{bConfigurationValue}=="1"
ATTRS{bNumInterfaces}==" 2"
ATTRS{configuration}==""
ATTRS{dev}=="189:8"
looking at parent device '/devices/pci0000:00/0000:00:02.0/usb1':
KERNELS=="usb1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{serial}=="0000:00:02.0"
ATTRS{product}=="OHCI Host Controller"
ATTRS{manufacturer}=="Linux 2.6.22-14-generic ohci_hcd"
ATTRS{quirks}=="0x0"
ATTRS{maxchild}=="10"
ATTRS{version}==" 1.10"
ATTRS{devnum}=="1"
ATTRS{busnum}=="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"
ATTRS{configuration}==""
ATTRS{dev}=="189:0"
looking at parent device '/devices/pci0000:00/0000:00:02.0':
KERNELS=="0000:00:02.0"
SUBSYSTEMS=="pci"
DRIVERS=="ohci_hcd"
ATTRS{msi_bus}==""
ATTRS{broken_parity_status}=="0"
ATTRS{modalias}=="pci:v000010DEd0000005Asv000010DEsd0000CB84bc0Csc03i10"
ATTRS{local_cpus}=="ff"
ATTRS{irq}=="17"
ATTRS{class}=="0x0c0310"
ATTRS{subsystem_device}=="0xcb84"
ATTRS{subsystem_vendor}=="0x10de"
ATTRS{device}=="0x005a"
ATTRS{vendor}=="0x10de"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
ATTRS{uevent}==""
udevinfo -a -p $(udevinfo -q path -n /dev/video1)
- Codice: Seleziona tutto
aragorn@MinasTirith:~$ udevinfo -a -p $(udevinfo -q path -n /dev/video1)
node name not found
udevinfo: option requires an argument -- p
«Non tutto quel ch'è oro brilla,
Né gli erranti sono perduti;
Il vecchio ch'è forte non s'aggrinza,
le radici profonde non gelano.
Dalle ceneri rinascerà un fuoco,
L'ombra sprigionerà una scintilla;
Nuova sarà la lama ora rotta,
E re quei ch'è senza corona.»