Debian 9 вебкамера и TV тюнер

Автор Горловчанин, 13 апреля 2019, 17:34:23

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

Горловчанин

Debian 9 вебкамера и TV тюнер при перезагрузке меняются местами video0<->video1

правила udev не применяются. Что я делаю не так? Подскажите

Открыть содержимое (спойлер)

root@alisa:~# udevadm info -a -p $(udevadm info -q path -p /class/video4linux/video1)

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:04.0/0000:01:06.0/video4linux/video1':
    KERNEL=="video1"
    SUBSYSTEM=="video4linux"
    DRIVER==""
    ATTR{card}=="69"
    ATTR{dev_debug}=="0"
    ATTR{index}=="0"
    ATTR{name}=="BT878 video (Active Imaging AIM"

  looking at parent device '/devices/pci0000:00/0000:00:04.0/0000:01:06.0':
    KERNELS=="0000:01:06.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="bttv"
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x040000"
    ATTRS{consistent_dma_mask_bits}=="32"
    ATTRS{d3cold_allowed}=="1"
    ATTRS{device}=="0x036e"
    ATTRS{dma_mask_bits}=="32"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{irq}=="19"
    ATTRS{local_cpulist}=="0-1"
    ATTRS{local_cpus}=="03"
    ATTRS{msi_bus}=="1"
    ATTRS{numa_node}=="0"
    ATTRS{subsystem_device}=="0x0000"
    ATTRS{subsystem_vendor}=="0x0000"
    ATTRS{vendor}=="0x109e"

  looking at parent device '/devices/pci0000:00/0000:00:04.0':
    KERNELS=="0000:00:04.0"
    SUBSYSTEMS=="pci"
    DRIVERS==""
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x060401"
    ATTRS{consistent_dma_mask_bits}=="32"
    ATTRS{d3cold_allowed}=="0"
    ATTRS{device}=="0x03f3"
    ATTRS{dma_mask_bits}=="32"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{irq}=="0"
    ATTRS{local_cpulist}=="0-1"
    ATTRS{local_cpus}=="03"
    ATTRS{msi_bus}=="1"
    ATTRS{numa_node}=="0"
    ATTRS{subsystem_device}=="0x83a4"
    ATTRS{subsystem_vendor}=="0x1043"
    ATTRS{vendor}=="0x10de"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

root@alisa:~# udevadm info -a -p $(udevadm info -q path -p /class/video4linux/video0)

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:02.1/usb1/1-2/1-2:1.0/video4linux/video0':
    KERNEL=="video0"
    SUBSYSTEM=="video4linux"
    DRIVER==""
    ATTR{dev_debug}=="0"
    ATTR{index}=="0"
    ATTR{name}=="Vimicro USB Camera (Altair)"

  looking at parent device '/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0':
    KERNELS=="1-2:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="uvcvideo"
    ATTRS{authorized}=="1"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bInterfaceClass}=="0e"
    ATTRS{bInterfaceNumber}=="00"
    ATTRS{bInterfaceProtocol}=="00"
    ATTRS{bInterfaceSubClass}=="01"
    ATTRS{bNumEndpoints}=="01"
    ATTRS{iad_bFirstInterface}=="00"
    ATTRS{iad_bFunctionClass}=="0e"
    ATTRS{iad_bFunctionProtocol}=="00"
    ATTRS{iad_bFunctionSubClass}=="03"
    ATTRS{iad_bInterfaceCount}=="02"
    ATTRS{interface}=="Vimicro USB Camera (Altair)"
    ATTRS{supports_autosuspend}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:02.1/usb1/1-2':
    KERNELS=="1-2"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="ef"
    ATTRS{bDeviceProtocol}=="01"
    ATTRS{bDeviceSubClass}=="02"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bMaxPower}=="100mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 2"
    ATTRS{bcdDevice}=="0900"
    ATTRS{bmAttributes}=="80"
    ATTRS{busnum}=="1"
    ATTRS{configuration}==""
    ATTRS{devnum}=="3"
    ATTRS{devpath}=="2"
    ATTRS{idProduct}=="3450"
    ATTRS{idVendor}=="0ac8"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}=="Vimicro"
    ATTRS{maxchild}=="0"
    ATTRS{product}=="Vimicro USB Camera (Altair)"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="unknown"
    ATTRS{speed}=="480"
    ATTRS{urbnum}=="1737844"
    ATTRS{version}==" 2.00"

  looking at parent device '/devices/pci0000:00/0000:00:02.1/usb1':
    KERNELS=="usb1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{authorized}=="1"
    ATTRS{authorized_default}=="1"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bMaxPower}=="0mA"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bcdDevice}=="0409"
    ATTRS{bmAttributes}=="e0"
    ATTRS{busnum}=="1"
    ATTRS{configuration}==""
    ATTRS{devnum}=="1"
    ATTRS{devpath}=="0"
    ATTRS{idProduct}=="0002"
    ATTRS{idVendor}=="1d6b"
    ATTRS{interface_authorized_default}=="1"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}=="Linux 4.9.0-8-amd64 ehci_hcd"
    ATTRS{maxchild}=="10"
    ATTRS{product}=="EHCI Host Controller"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="unknown"
    ATTRS{serial}=="0000:00:02.1"
    ATTRS{speed}=="480"
    ATTRS{urbnum}=="128"
    ATTRS{version}==" 2.00"

  looking at parent device '/devices/pci0000:00/0000:00:02.1':
    KERNELS=="0000:00:02.1"
    SUBSYSTEMS=="pci"
    DRIVERS=="ehci-pci"
    ATTRS{broken_parity_status}=="0"
    ATTRS{class}=="0x0c0320"
    ATTRS{companion}==""
    ATTRS{consistent_dma_mask_bits}=="32"
    ATTRS{d3cold_allowed}=="1"
    ATTRS{device}=="0x03f2"
    ATTRS{dma_mask_bits}=="32"
    ATTRS{driver_override}=="(null)"
    ATTRS{enable}=="1"
    ATTRS{irq}=="22"
    ATTRS{local_cpulist}=="0-1"
    ATTRS{local_cpus}=="03"
    ATTRS{msi_bus}=="1"
    ATTRS{numa_node}=="0"
    ATTRS{subsystem_device}=="0x83a4"
    ATTRS{subsystem_vendor}=="0x1043"
    ATTRS{uframe_periodic_max}=="100"
    ATTRS{vendor}=="0x10de"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""
[свернуть]
Далее содержание файла /etc/udev/rules.d/25-name-video-devices.rules

SUBSYSTEM=="video4linux", ATTR{name}=="BT878 video (Active Imaging AIM", SYMLINK+="video99"

SUBSYSTEM=="video4linux", ATTR{name}=="Vimicro USB Camera (Altair)", SYMLINK+="video88"

qupl

SUBSYSTEM=="video4linux", ATTRS{name}=="BT878 video (Active Imaging AIM", SYMLINK+="video99"
а так?

И еще лучше включить отладку udev, чтобы больше информации было.

ferum

  К сожалению все форумы по спутниковой рыбалке в  linux  давно почили . Там разбирались подобные проблемы когда две и более спутниковые карты так же менялись местами. Дело было давно 7-8 лет назад, помню только что решение было через  MAC  адреса устройств.
Русские дебианщики против цифрового слабоумия !