Hi all!
L_V, I have made this and the information from the command
apt-cache is showing below:
p.H, I had thought about these strings should math because I was looking only for the simple information of "
lsusb" command. When I used the command that you said, I understood what It was going on. Some output information from command "
lsusb -v" is being showed below:
Code: Select all
Bus 001 Device 006: ID 04ca:7070 Lite-On Technology Corp.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.01
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 64
idVendor 0x04ca Lite-On Technology Corp.
idProduct 0x7070
bcdDevice 0.23
iManufacturer 1 8SSC20F27068L1GZ9430E11
iProduct 2 Integrated Camera
iSerial 0
bNumConfigurations 1
Some doubt that I have It are:
[*] Why others integrated camera was showing the name of company in attribute ID_VENDOR and only in this specific camera is being showed stranger string "8SSC20F27068L1GZ9430E11"?[/*]
[*] Which attribute from libudev can I use since the command "
udevadm info -a /dev/video0" does not show any attributes with the company name information "Lite-on Technology Corp."? The output from this command is being showed below:[/*]
Code: Select all
Udevadm info 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 '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/video4linux/video0':
KERNEL=="video0"
SUBSYSTEM=="video4linux"
DRIVER==""
ATTR{index}=="0"
ATTR{dev_debug}=="0"
ATTR{name}=="Integrated Camera: Integrated C"
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0':
KERNELS=="1-8:1.0"
SUBSYSTEMS=="usb"
DRIVERS=="uvcvideo"
ATTRS{bAlternateSetting}==" 0"
ATTRS{iad_bFunctionSubClass}=="03"
ATTRS{iad_bFunctionClass}=="0e"
ATTRS{authorized}=="1"
ATTRS{bNumEndpoints}=="01"
ATTRS{bInterfaceNumber}=="00"
ATTRS{bInterfaceSubClass}=="01"
ATTRS{bInterfaceProtocol}=="00"
ATTRS{supports_autosuspend}=="1"
ATTRS{iad_bFunctionProtocol}=="00"
ATTRS{iad_bInterfaceCount}=="02"
ATTRS{bInterfaceClass}=="0e"
ATTRS{iad_bFirstInterface}=="00"
ATTRS{interface}=="Integrated Camera"
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8':
KERNELS=="1-8"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{ltm_capable}=="no"
ATTRS{product}=="Integrated Camera"
ATTRS{rx_lanes}=="1"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{speed}=="480"
ATTRS{idProduct}=="7070"
ATTRS{idVendor}=="04ca"
ATTRS{bConfigurationValue}=="1"
ATTRS{tx_lanes}=="1"
ATTRS{bNumInterfaces}==" 2"
ATTRS{version}==" 2.01"
ATTRS{manufacturer}=="8SSC20F27068L1GZ9430E11"
ATTRS{bDeviceSubClass}=="02"
ATTRS{bMaxPower}=="500mA"
ATTRS{bmAttributes}=="80"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{busnum}=="1"
ATTRS{bDeviceProtocol}=="01"
ATTRS{configuration}==""
ATTRS{bNumConfigurations}=="1"
ATTRS{maxchild}=="0"
ATTRS{removable}=="fixed"
ATTRS{urbnum}=="66"
ATTRS{quirks}=="0x0"
ATTRS{bcdDevice}=="0023"
ATTRS{devnum}=="6"
ATTRS{devpath}=="8"
ATTRS{bDeviceClass}=="ef"
ATTRS{authorized}=="1"
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1':
KERNELS=="usb1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{removable}=="unknown"
ATTRS{bNumConfigurations}=="1"
ATTRS{bDeviceProtocol}=="01"
ATTRS{bcdDevice}=="0502"
ATTRS{idVendor}=="1d6b"
ATTRS{devpath}=="0"
ATTRS{interface_authorized_default}=="1"
ATTRS{bMaxPower}=="0mA"
ATTRS{tx_lanes}=="1"
ATTRS{authorized_default}=="1"
ATTRS{urbnum}=="158"
ATTRS{ltm_capable}=="no"
ATTRS{authorized}=="1"
ATTRS{bNumInterfaces}==" 1"
ATTRS{bConfigurationValue}=="1"
ATTRS{speed}=="480"
ATTRS{configuration}==""
ATTRS{manufacturer}=="Linux 5.2.9 xhci-hcd"
ATTRS{product}=="xHCI Host Controller"
ATTRS{idProduct}=="0002"
ATTRS{bmAttributes}=="e0"
ATTRS{rx_lanes}=="1"
ATTRS{busnum}=="1"
ATTRS{quirks}=="0x0"
ATTRS{version}==" 2.00"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{devnum}=="1"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{bDeviceClass}=="09"
ATTRS{bDeviceSubClass}=="00"
ATTRS{serial}=="0000:00:14.0"
ATTRS{maxchild}=="12"
looking at parent device '/devices/pci0000:00/0000:00:14.0':
KERNELS=="0000:00:14.0"
SUBSYSTEMS=="pci"
DRIVERS=="xhci_hcd"
ATTRS{vendor}=="0x8086"
ATTRS{subsystem_vendor}=="0x17aa"
ATTRS{d3cold_allowed}=="1"
ATTRS{consistent_dma_mask_bits}=="64"
ATTRS{dma_mask_bits}=="64"
ATTRS{revision}=="0x00"
ATTRS{enable}=="1"
ATTRS{local_cpus}=="ff"
ATTRS{ari_enabled}=="0"
ATTRS{device}=="0x02ed"
ATTRS{driver_override}=="(null)"
ATTRS{irq}=="131"
ATTRS{broken_parity_status}=="0"
ATTRS{class}=="0x0c0330"
ATTRS{subsystem_device}=="0x2279"
ATTRS{local_cpulist}=="0-7"
ATTRS{msi_bus}=="1"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
*************************************************************************************************************
Udevadm info 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 '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/video4linux/video1':
KERNEL=="video1"
SUBSYSTEM=="video4linux"
DRIVER==""
ATTR{name}=="Integrated Camera: Integrated C"
ATTR{index}=="1"
ATTR{dev_debug}=="0"
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0':
KERNELS=="1-8:1.0"
SUBSYSTEMS=="usb"
DRIVERS=="uvcvideo"
ATTRS{iad_bFunctionClass}=="0e"
ATTRS{bInterfaceClass}=="0e"
ATTRS{supports_autosuspend}=="1"
ATTRS{iad_bInterfaceCount}=="02"
ATTRS{iad_bFirstInterface}=="00"
ATTRS{bAlternateSetting}==" 0"
ATTRS{iad_bFunctionProtocol}=="00"
ATTRS{iad_bFunctionSubClass}=="03"
ATTRS{interface}=="Integrated Camera"
ATTRS{bInterfaceNumber}=="00"
ATTRS{bNumEndpoints}=="01"
ATTRS{authorized}=="1"
ATTRS{bInterfaceProtocol}=="00"
ATTRS{bInterfaceSubClass}=="01"
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8':
KERNELS=="1-8"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{manufacturer}=="8SSC20F27068L1GZ9430E11"
ATTRS{configuration}==""
ATTRS{bDeviceSubClass}=="02"
ATTRS{urbnum}=="66"
ATTRS{devpath}=="8"
ATTRS{bDeviceProtocol}=="01"
ATTRS{maxchild}=="0"
ATTRS{bConfigurationValue}=="1"
ATTRS{speed}=="480"
ATTRS{idProduct}=="7070"
ATTRS{devnum}=="6"
ATTRS{tx_lanes}=="1"
ATTRS{ltm_capable}=="no"
ATTRS{bcdDevice}=="0023"
ATTRS{product}=="Integrated Camera"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{bNumInterfaces}==" 2"
ATTRS{idVendor}=="04ca"
ATTRS{bMaxPower}=="500mA"
ATTRS{removable}=="fixed"
ATTRS{rx_lanes}=="1"
ATTRS{bNumConfigurations}=="1"
ATTRS{quirks}=="0x0"
ATTRS{bmAttributes}=="80"
ATTRS{version}==" 2.01"
ATTRS{authorized}=="1"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{bDeviceClass}=="ef"
ATTRS{busnum}=="1"
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1':
KERNELS=="usb1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{manufacturer}=="Linux 5.2.9 xhci-hcd"
ATTRS{authorized_default}=="1"
ATTRS{serial}=="0000:00:14.0"
ATTRS{urbnum}=="158"
ATTRS{idProduct}=="0002"
ATTRS{bDeviceSubClass}=="00"
ATTRS{removable}=="unknown"
ATTRS{bcdDevice}=="0502"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{devnum}=="1"
ATTRS{interface_authorized_default}=="1"
ATTRS{idVendor}=="1d6b"
ATTRS{bConfigurationValue}=="1"
ATTRS{quirks}=="0x0"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{tx_lanes}=="1"
ATTRS{rx_lanes}=="1"
ATTRS{busnum}=="1"
ATTRS{authorized}=="1"
ATTRS{version}==" 2.00"
ATTRS{product}=="xHCI Host Controller"
ATTRS{bNumInterfaces}==" 1"
ATTRS{bDeviceProtocol}=="01"
ATTRS{devpath}=="0"
ATTRS{speed}=="480"
ATTRS{ltm_capable}=="no"
ATTRS{bDeviceClass}=="09"
ATTRS{bMaxPower}=="0mA"
ATTRS{configuration}==""
ATTRS{maxchild}=="12"
ATTRS{bNumConfigurations}=="1"
ATTRS{bmAttributes}=="e0"
looking at parent device '/devices/pci0000:00/0000:00:14.0':
KERNELS=="0000:00:14.0"
SUBSYSTEMS=="pci"
DRIVERS=="xhci_hcd"
ATTRS{local_cpus}=="ff"
ATTRS{subsystem_device}=="0x2279"
ATTRS{consistent_dma_mask_bits}=="64"
ATTRS{device}=="0x02ed"
ATTRS{enable}=="1"
ATTRS{irq}=="131"
ATTRS{driver_override}=="(null)"
ATTRS{broken_parity_status}=="0"
ATTRS{dma_mask_bits}=="64"
ATTRS{class}=="0x0c0330"
ATTRS{d3cold_allowed}=="1"
ATTRS{vendor}=="0x8086"
ATTRS{revision}=="0x00"
ATTRS{msi_bus}=="1"
ATTRS{subsystem_vendor}=="0x17aa"
ATTRS{ari_enabled}=="0"
ATTRS{local_cpulist}=="0-7"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
Thanks for help!
Best Regards.