ubuntuusers.de

Brauche Hilfe bei uDev-Regel - Webcam wird falsch erkannt

Status: Ungelöst | Ubuntu-Version: Ubuntu 17.10 (Artful Aardvark)
Antworten |

SandUhrGucker

Anmeldungsdatum:
3. Juni 2015

Beiträge: 22

Hallo @all,

ich versuche eine Puveedo DV200 4K action cam als Webcam zu nutzen. Leider scheint da was schief zu laufen. Für eine Sekunde erscheint ein /dev/video0 Device, das aber dann gleich wieder verschwindet. Ich nehme an, das man das Problem mit ein/zwi uDev Regeln fixen kann, aber ich habe leider nicht genug Ahnung davon. Vielleicht wisst Ihr da weiter?

Wenn ich USB-Verbindung herstelle, kann ich auf der cam auswählen: 1. USB-Mode, 2. Webcam, 3. recharge only.

lssub sagt folgendes:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
Metis munsch # lsusb -v -d 1f3a:1002

Bus 001 Device 024: ID 1f3a:1002 Onda (unverified) 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x1f3a Onda (unverified)
  idProduct          0x1002 
  bcdDevice            2.33
  iManufacturer           2 USB Developer
  iProduct                3 Android
  iSerial                 4 20080411
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           55
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xc0
      Self Powered
    MaxPower              224mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              1 Mass Storage
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass     66 
      bInterfaceProtocol      1 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

In der Syslog steht beim Verbinden des USB-Steckers folgendes:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
Jan 30 13:24:45 Metis kernel: [12594.891617] usb 1-2: new high-speed USB device number 25 using xhci_hcd
Jan 30 13:24:46 Metis kernel: [12595.032202] usb 1-2: New USB device found, idVendor=1f3a, idProduct=1002
Jan 30 13:24:46 Metis kernel: [12595.032206] usb 1-2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Jan 30 13:24:46 Metis kernel: [12595.032209] usb 1-2: Product: Android
Jan 30 13:24:46 Metis kernel: [12595.032212] usb 1-2: Manufacturer: USB Developer
Jan 30 13:24:46 Metis kernel: [12595.032214] usb 1-2: SerialNumber: 20080411
Jan 30 13:24:46 Metis kernel: [12595.033000] usb-storage 1-2:1.0: USB Mass Storage device detected
Jan 30 13:24:46 Metis kernel: [12595.033382] scsi host6: usb-storage 1-2:1.0
Jan 30 13:24:46 Metis mtp-probe: checking bus 1, device 25: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Jan 30 13:24:46 Metis mtp-probe: bus: 1, device: 25 was not an MTP device
Jan 30 13:24:47 Metis kernel: [12596.036335] scsi 6:0:0:0: Direct-Access     USB 2.0  USB Flash Driver 0100 PQ: 0 ANSI: 2
Jan 30 13:24:47 Metis kernel: [12596.037133] sd 6:0:0:0: Attached scsi generic sg4 type 0
Jan 30 13:24:47 Metis kernel: [12596.039235] sd 6:0:0:0: [sdd] Attached SCSI removable disk

Wenn ich dann den "Webcam"-Modus auf der Kamera aussuche steht in der syslog:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Jan 30 13:26:13 Metis kernel: [12682.611388] usb 1-2: USB disconnect, device number 25
Jan 30 13:26:13 Metis kernel: [12682.938830] usb 1-2: new high-speed USB device number 26 using xhci_hcd
Jan 30 13:26:14 Metis kernel: [12683.079458] usb 1-2: New USB device found, idVendor=1f3a, idProduct=100e
Jan 30 13:26:14 Metis kernel: [12683.079462] usb 1-2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Jan 30 13:26:14 Metis kernel: [12683.079465] usb 1-2: Product: Android
Jan 30 13:26:14 Metis kernel: [12683.079467] usb 1-2: Manufacturer: USB Developer
Jan 30 13:26:14 Metis kernel: [12683.079469] usb 1-2: SerialNumber: 20080411
Jan 30 13:26:14 Metis kernel: [12683.080569] uvcvideo: Found UVC 1.00 device Android (1f3a:100e)
Jan 30 13:26:14 Metis kernel: [12683.085271] uvcvideo 1-2:1.0: Entity type for entity Processing 2 was not initialized!
Jan 30 13:26:14 Metis kernel: [12683.085276] uvcvideo 1-2:1.0: Entity type for entity Camera 1 was not initialized!
Jan 30 13:26:14 Metis kernel: [12683.085621] input: Android as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/input/input22
Jan 30 13:26:14 Metis mtp-probe: checking bus 1, device 26: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Jan 30 13:26:14 Metis mtp-probe: bus: 1, device: 26 was not an MTP device
Jan 30 13:26:16 Metis kernel: [12685.706857] usb 1-2: USB disconnect, device number 26
Jan 30 13:26:17 Metis kernel: [12686.338798] usb 1-2: new high-speed USB device number 27 using xhci_hcd
Jan 30 13:26:17 Metis kernel: [12686.479404] usb 1-2: New USB device found, idVendor=1f3a, idProduct=1002
Jan 30 13:26:17 Metis kernel: [12686.479408] usb 1-2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Jan 30 13:26:17 Metis kernel: [12686.479411] usb 1-2: Product: Android
Jan 30 13:26:17 Metis kernel: [12686.479414] usb 1-2: Manufacturer: USB Developer
Jan 30 13:26:17 Metis kernel: [12686.479416] usb 1-2: SerialNumber: 20080411
Jan 30 13:26:17 Metis kernel: [12686.480182] usb-storage 1-2:1.0: USB Mass Storage device detected
Jan 30 13:26:17 Metis kernel: [12686.480425] scsi host6: usb-storage 1-2:1.0
Jan 30 13:26:17 Metis mtp-probe: checking bus 1, device 27: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Jan 30 13:26:17 Metis mtp-probe: bus: 1, device: 27 was not an MTP device
Jan 30 13:26:18 Metis kernel: [12687.491395] scsi 6:0:0:0: Direct-Access     USB 2.0  USB Flash Driver 0100 PQ: 0 ANSI: 2
Jan 30 13:26:18 Metis kernel: [12687.492203] sd 6:0:0:0: Attached scsi generic sg4 type 0
Jan 30 13:26:18 Metis kernel: [12687.493238] sd 6:0:0:0: [sdd] Attached SCSI removable disk

Und wenn ich dem udev-deamon beim Einstecken auf die Finger gucke:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
Metis munsch # udevadm monitor --udev
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing

UDEV  [12788.193521] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2 (usb)
UDEV  [12788.195986] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0 (usb)
UDEV  [12788.196226] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1 (usb)
UDEV  [12788.200928] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6 (scsi)
UDEV  [12788.201353] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/scsi_host/host6 (scsi_host)
UDEV  [12789.187968] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0 (scsi)
UDEV  [12789.188644] add      /devices/virtual/bdi/8:48 (bdi)
UDEV  [12789.190182] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0 (scsi)
UDEV  [12789.192564] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/scsi_disk/6:0:0:0 (scsi_disk)
UDEV  [12789.193958] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/scsi_generic/sg4 (scsi_generic)
UDEV  [12789.194033] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/scsi_device/6:0:0:0 (scsi_device)
UDEV  [12789.196511] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/bsg/6:0:0:0 (bsg)
UDEV  [12789.216779] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/block/sdd (block)
UDEV  [12789.224747] change   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/block/sdd (block)

und wenn ich dann in den Webcam-Modes wechsele:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
UDEV  [12799.029497] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/scsi_generic/sg4 (scsi_generic)
UDEV  [12799.029877] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/scsi_device/6:0:0:0 (scsi_device)
UDEV  [12799.030341] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/scsi_disk/6:0:0:0 (scsi_disk)
UDEV  [12799.031265] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/bsg/6:0:0:0 (bsg)
UDEV  [12799.031631] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/block/sdd (block)
UDEV  [12799.033975] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0 (scsi)
UDEV  [12799.042278] remove   /devices/virtual/bdi/8:48 (bdi)
UDEV  [12799.042688] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0 (scsi)
UDEV  [12799.081075] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/scsi_host/host6 (scsi_host)
UDEV  [12799.081504] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6 (scsi)
UDEV  [12799.081641] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1 (usb)
UDEV  [12799.082028] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0 (usb)
UDEV  [12799.085477] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2 (usb)
UDEV  [12799.525930] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2 (usb)
UDEV  [12799.528353] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0 (usb)
UDEV  [12799.529313] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1 (usb)
UDEV  [12799.530499] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2 (usb)
UDEV  [12799.530544] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/media1 (media)
UDEV  [12799.530837] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/input/input23 (input)
UDEV  [12799.531565] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/video4linux/video0 (video4linux)
UDEV  [12799.577722] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/input/input23/event19 (input)
UDEV  [12802.057176] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/video4linux/video0 (video4linux)
UDEV  [12802.074032] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/input/input23/event19 (input)
UDEV  [12802.102730] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/input/input23 (input)
UDEV  [12802.103400] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/media1 (media)
UDEV  [12802.103821] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1 (usb)
UDEV  [12802.104982] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2 (usb)
UDEV  [12802.105060] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0 (usb)
UDEV  [12802.115031] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-2 (usb)
UDEV  [12803.125915] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2 (usb)
UDEV  [12803.129903] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1 (usb)
UDEV  [12803.131635] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0 (usb)
UDEV  [12803.134332] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6 (scsi)
UDEV  [12803.136272] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/scsi_host/host6 (scsi_host)
UDEV  [12804.103175] add      /devices/virtual/bdi/8:48 (bdi)
UDEV  [12804.103995] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0 (scsi)
UDEV  [12804.106255] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0 (scsi)
UDEV  [12804.109465] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/scsi_device/6:0:0:0 (scsi_device)
UDEV  [12804.109528] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/scsi_disk/6:0:0:0 (scsi_disk)
UDEV  [12804.110603] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/scsi_generic/sg4 (scsi_generic)
UDEV  [12804.113433] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/bsg/6:0:0:0 (bsg)
UDEV  [12804.131554] add      /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/block/sdd (block)
UDEV  [12804.139825] change   /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/block/sdd (block)

Ich bin mit meinem Latein wirklich am Ende. Hat jemand einen Rat was man versuchen könnte?

Gruß Sandman

Taomon Team-Icon

Supporter
Avatar von Taomon

Anmeldungsdatum:
30. Januar 2011

Beiträge: 8458

Wohnort: Digiworld

Zeige bitte

udevadm test --action=add /sys/class/video4linux/video0 

bitte benutzte für den sys-Pfad (gelber Augenkrebs) autocomplete also Tab-Taste drücken, da ich kein artful habe.

Gruß Taomon

SandUhrGucker

(Themenstarter)

Anmeldungsdatum:
3. Juni 2015

Beiträge: 22

Hallo Taomon,

gern:

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
munsch@Metis ~ $ sudo udevadm test --action=add /sys/class/video4linux/video0
calling: test
version 229
This program is for debugging only, it does not run any program
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

=== trie on-disk ===
tool version:          229
file size:         7064122 bytes
header size             80 bytes
strings            1764282 bytes
nodes              5299760 bytes
Load module index
Network interface NamePolicy= disabled on kernel command line, ignoring.
timestamp of '/etc/systemd/network' changed
timestamp of '/lib/systemd/network' changed
Parsed configuration file /lib/systemd/network/99-default.link
Created link configuration context.
timestamp of '/etc/udev/rules.d' changed
timestamp of '/lib/udev/rules.d' changed
Reading rules file: /etc/udev/rules.d/10_uvc_device_options.rules
Reading rules file: /lib/udev/rules.d/39-usbmuxd.rules
Reading rules file: /lib/udev/rules.d/40-crda.rules
Reading rules file: /lib/udev/rules.d/40-iio-sensor-proxy.rules
Reading rules file: /lib/udev/rules.d/40-usb-media-players.rules
Reading rules file: /lib/udev/rules.d/40-usb_modeswitch.rules
Reading rules file: /lib/udev/rules.d/40-vm-hotadd.rules
Reading rules file: /lib/udev/rules.d/50-apport.rules
Reading rules file: /lib/udev/rules.d/50-bluetooth-hci-auto-poweron.rules
Reading rules file: /lib/udev/rules.d/50-firmware.rules
Reading rules file: /lib/udev/rules.d/50-udev-default.rules
Reading rules file: /lib/udev/rules.d/55-dm.rules
Reading rules file: /lib/udev/rules.d/55-makerbot-dev.rules
Reading rules file: /lib/udev/rules.d/56-hpmud.rules
Reading rules file: /lib/udev/rules.d/56-lvm.rules
Reading rules file: /lib/udev/rules.d/60-avrdude.rules
Reading rules file: /lib/udev/rules.d/60-block.rules
Reading rules file: /lib/udev/rules.d/60-cdrom_id.rules
Reading rules file: /lib/udev/rules.d/60-drm.rules
Reading rules file: /lib/udev/rules.d/60-evdev.rules
Reading rules file: /lib/udev/rules.d/60-gnupg.rules
Reading rules file: /lib/udev/rules.d/60-gnupg2.rules
Reading rules file: /lib/udev/rules.d/60-inputattach.rules
Reading rules file: /lib/udev/rules.d/60-libgphoto2-6.rules
Reading rules file: /lib/udev/rules.d/60-libsane.rules
Reading rules file: /lib/udev/rules.d/60-openobex.rules
Reading rules file: /lib/udev/rules.d/60-pcmcia.rules
Reading rules file: /lib/udev/rules.d/60-persistent-alsa.rules
Reading rules file: /lib/udev/rules.d/60-persistent-input.rules
Reading rules file: /lib/udev/rules.d/60-persistent-storage-dm.rules
Reading rules file: /lib/udev/rules.d/60-persistent-storage-tape.rules
Reading rules file: /lib/udev/rules.d/60-persistent-storage.rules
Reading rules file: /lib/udev/rules.d/60-persistent-v4l.rules
Reading rules file: /lib/udev/rules.d/60-serial.rules
Reading rules file: /lib/udev/rules.d/60-virtualbox-dkms.rules
Reading rules file: /lib/udev/rules.d/60-virtualbox.rules
Reading rules file: /lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules
Reading rules file: /lib/udev/rules.d/61-gnome-settings-daemon-rfkill.rules
Reading rules file: /lib/udev/rules.d/61-persistent-storage-android.rules
Reading rules file: /lib/udev/rules.d/64-btrfs.rules
Reading rules file: /lib/udev/rules.d/64-xorg-xkb.rules
Reading rules file: /lib/udev/rules.d/65-libwacom.rules
Reading rules file: /lib/udev/rules.d/66-xorg-synaptics-quirks.rules
Reading rules file: /lib/udev/rules.d/69-cd-sensors.rules
Reading rules file: /lib/udev/rules.d/69-libmtp.rules
Reading rules file: /lib/udev/rules.d/69-lvm-metad.rules
Reading rules file: /lib/udev/rules.d/69-wacom.rules
Reading rules file: /lib/udev/rules.d/69-xorg-vmmouse.rules
Reading rules file: /lib/udev/rules.d/70-debian-uaccess.rules
Reading rules file: /lib/udev/rules.d/70-mouse.rules
Reading rules file: /lib/udev/rules.d/70-power-switch.rules
Reading rules file: /lib/udev/rules.d/70-printers.rules
Reading rules file: /lib/udev/rules.d/70-resolvconf-initramfs-copy.rules
Reading rules file: /lib/udev/rules.d/70-uaccess.rules
Reading rules file: /lib/udev/rules.d/70-udev-acl.rules
Reading rules file: /lib/udev/rules.d/71-nvidia.rules
Reading rules file: /lib/udev/rules.d/71-power-switch-proliant.rules
Reading rules file: /lib/udev/rules.d/71-seat.rules
Reading rules file: /lib/udev/rules.d/71-u-d-c-gpu-detection.rules
Reading rules file: /lib/udev/rules.d/73-seat-late.rules
Reading rules file: /lib/udev/rules.d/73-special-net-names.rules
Reading rules file: /lib/udev/rules.d/73-usb-net-by-mac.rules
Reading rules file: /lib/udev/rules.d/75-net-description.rules
Reading rules file: /lib/udev/rules.d/75-probe_mtd.rules
Reading rules file: /lib/udev/rules.d/77-mm-cinterion-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-ericsson-mbm.rules
Reading rules file: /lib/udev/rules.d/77-mm-huawei-net-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-longcheer-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-mtk-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-nokia-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules
Reading rules file: /lib/udev/rules.d/77-mm-platform-serial-whitelist.rules
Reading rules file: /lib/udev/rules.d/77-mm-qdl-device-blacklist.rules
Reading rules file: /lib/udev/rules.d/77-mm-simtech-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-telit-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-usb-device-blacklist.rules
Reading rules file: /lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules
Reading rules file: /lib/udev/rules.d/77-mm-x22x-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-zte-port-types.rules
Reading rules file: /lib/udev/rules.d/78-graphics-card.rules
Reading rules file: /lib/udev/rules.d/78-sound-card.rules
Reading rules file: /lib/udev/rules.d/80-debian-compat.rules
Reading rules file: /lib/udev/rules.d/80-drivers.rules
Reading rules file: /lib/udev/rules.d/80-ifupdown.rules
Reading rules file: /lib/udev/rules.d/80-libinput-device-groups.rules
Reading rules file: /lib/udev/rules.d/80-mm-candidate.rules
Reading rules file: /lib/udev/rules.d/80-net-setup-link.rules
Reading rules file: /lib/udev/rules.d/80-udisks2.rules
Reading rules file: /lib/udev/rules.d/80-uvcdynctrl.rules
Reading rules file: /lib/udev/rules.d/84-nm-drivers.rules
Reading rules file: /lib/udev/rules.d/85-brltty.rules
Reading rules file: /lib/udev/rules.d/85-hdparm.rules
Reading rules file: /lib/udev/rules.d/85-hplj10xx.rules
Reading rules file: /lib/udev/rules.d/85-keyboard-configuration.rules
Reading rules file: /lib/udev/rules.d/85-nm-unmanaged.rules
Reading rules file: /lib/udev/rules.d/85-regulatory.rules
Reading rules file: /lib/udev/rules.d/90-alsa-restore.rules
Reading rules file: /lib/udev/rules.d/90-fwupd-devices.rules
Reading rules file: /lib/udev/rules.d/90-libgpod.rules
Reading rules file: /lib/udev/rules.d/90-libinput-model-quirks.rules
Reading rules file: /lib/udev/rules.d/90-pulseaudio.rules
Reading rules file: /lib/udev/rules.d/95-cd-devices.rules
Reading rules file: /lib/udev/rules.d/95-kpartx.rules
Reading rules file: /lib/udev/rules.d/95-upower-csr.rules
Reading rules file: /lib/udev/rules.d/95-upower-hid.rules
Reading rules file: /lib/udev/rules.d/95-upower-wup.rules
Reading rules file: /lib/udev/rules.d/97-dmraid.rules
Reading rules file: /lib/udev/rules.d/97-hid2hci.rules
Reading rules file: /lib/udev/rules.d/99-mb-digitizer-mm-blacklist.rules
Reading rules file: /lib/udev/rules.d/99-systemd.rules
rules contain 393216 bytes tokens (32768 * 12 bytes), 38963 bytes strings
27311 strings (229018 bytes), 23555 de-duplicated (193812 bytes), 3757 trie nodes used
unable to open device '/sys/class/video4linux/video0'
Unload module index
Unloaded link configuration context.

Um das Problem mal grundsätzlich zu zeigen habe ich ein Video gemacht (30 sek) https://youtu.be/3LZVot5sJ9A NUR beim erstellen dieses Videos ist video0 eine "Creative HD 720p", die das Video aufzeichnet. Rechts oben sieht man beim Modeswitch das kurzfristige erscheinen von video1 mit der ersehnten cam. Die Mitte zeigt syslog und unten sieht man dem uDev daemon auf die Finger.

SpiritOfTux

Avatar von SpiritOfTux

Anmeldungsdatum:
14. September 2017

Beiträge: 369

Du hast da nicht nur ein Gerät, sehe mal auf die idProduct=

Jan 30 13:26:13 Metis kernel: [12682.611388] usb 1-2: USB disconnect, device number 25
Jan 30 13:26:13 Metis kernel: [12682.938830] usb 1-2: new high-speed USB device number 26 using xhci_hcd
Jan 30 13:26:14 Metis kernel: [12683.079458] usb 1-2: New USB device found, idVendor=1f3a, idProduct=100e
Jan 30 13:26:14 Metis kernel: [12683.079462] usb 1-2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Jan 30 13:26:14 Metis kernel: [12683.079465] usb 1-2: Product: Android
Jan 30 13:26:14 Metis kernel: [12683.079467] usb 1-2: Manufacturer: USB Developer
Jan 30 13:26:14 Metis kernel: [12683.079469] usb 1-2: SerialNumber: 20080411
Jan 30 13:26:14 Metis kernel: [12683.080569] uvcvideo: Found UVC 1.00 device Android (1f3a:100e)

Jan 30 13:24:46 Metis kernel: [12595.032202] usb 1-2: New USB device found, idVendor=1f3a, idProduct=1002
Jan 30 13:24:46 Metis kernel: [12595.032206] usb 1-2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Jan 30 13:24:46 Metis kernel: [12595.032209] usb 1-2: Product: Android
Jan 30 13:24:46 Metis kernel: [12595.032212] usb 1-2: Manufacturer: USB Developer
Jan 30 13:24:46 Metis kernel: [12595.032214] usb 1-2: SerialNumber: 20080411
Jan 30 13:24:46 Metis kernel: [12595.033000] usb-storage 1-2:1.0: USB Mass Storage device detected

fehlt in der Liste für USB-Devices

1f3a  Onda (unverified)
	efe8  V972 tablet in flashing mode
        idProduct=1002 fehlt in der Liste für USB-Devices
        idProduct=100e fehlt in der Liste für USB-Devices
CyanogenMod/LineageOS
on property:sys.usb.config=mass_storage,adb
    write /sys/class/android_usb/android0/enable 	0
    write /sys/class/android_usb/android0/idVendor 	1f3a
    write /sys/class/android_usb/android0/idProduct	1002
    write /sys/class/android_usb/android0/functions	${sys.usb.config}
    write /sys/class/android_usb/android0/enable 	1
    start adbd
    setprop sys.usb.state ${sys.usb.config}

SandUhrGucker

(Themenstarter)

Anmeldungsdatum:
3. Juni 2015

Beiträge: 22

Hallo SpiritOfTux,

vielen Dank für den Hinweis! Das war mir vorher gar nicht aufgefallen. Ist es denn jetzt nicht möglich das Problem via uDev-Regeln zu lösen? Leider bin ich in dem Thema relativ ahnungslos, aber so wie ich das verstanden habe, müsste man doch per Regel festlegen können das z.B.:

Nur auf USB-Port 1 das Gerät als Massenspeicher arbeitet und andere Geräte "ignoriert" werden und Nur auf USB-Port 2 das Gerät als Webcam arbeitet, und alle anderen Geräte "ignoriert werden.

Oder ist das Wunschdenken und nicht möglich? Ich weiß halt nicht wie 😉

SpiritOfTux

Avatar von SpiritOfTux

Anmeldungsdatum:
14. September 2017

Beiträge: 369

Bitte, uDev-Regel mal in " uDev-Regel " könnte möglich sein über idVendor und Mode-Setting, versprechen kann ich aber nichts, Frag mal Tante Google nach idVendor=1f3a

SandUhrGucker

(Themenstarter)

Anmeldungsdatum:
3. Juni 2015

Beiträge: 22

Hallo nochmal!

Ich habe ein paar udev-regeln in betrieb genommen, und der Treiber bleibt jetzt zwei sekunden länger dabei.

1
2
3
4
KERNELS=="[1-9]*-[0-9]*", SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{idVendor}!="1f3a", ENV{IF_STORAGE_REMOVE_ME}="1"
KERNELS=="[1-9]*-[0-9]*", SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="1002", ENV{IF_STORAGE_REMOVE_ME}="1"
ENV{IF_STORAGE_REMOVE_ME}=="1", DRIVERS=="usb-storage", DRIVER=="sd", RUN+="/bin/sh -c 'echo -n %k >/sys%p/driver/unbind'"
SUBSYSTEM=="video4linux", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="100e", NAME:="video1"

So konnte ich den letzten Diagnose-Befehl von x doch noch ausführen. Die cam wird nun "kurz" als video1 erkannt (video0 ist noch die von creative).

Hier der output:

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
munsch@Metis / $ sudo udevadm test --action=add /sys/class/video4linux/video1
calling: test
version 229
This program is for debugging only, it does not run any program
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

=== trie on-disk ===
tool version:          229
file size:         7064122 bytes
header size             80 bytes
strings            1764282 bytes
nodes              5299760 bytes
Load module index
Network interface NamePolicy= disabled on kernel command line, ignoring.
timestamp of '/etc/systemd/network' changed
timestamp of '/lib/systemd/network' changed
Parsed configuration file /lib/systemd/network/99-default.link
Created link configuration context.
timestamp of '/etc/udev/rules.d' changed
Reading rules file: /lib/udev/rules.d/39-usbmuxd.rules
Reading rules file: /lib/udev/rules.d/40-crda.rules
Reading rules file: /lib/udev/rules.d/40-iio-sensor-proxy.rules
Reading rules file: /lib/udev/rules.d/40-usb-media-players.rules
Reading rules file: /lib/udev/rules.d/40-usb_modeswitch.rules
Reading rules file: /lib/udev/rules.d/40-vm-hotadd.rules
Reading rules file: /lib/udev/rules.d/50-apport.rules
Reading rules file: /lib/udev/rules.d/50-bluetooth-hci-auto-poweron.rules
Reading rules file: /lib/udev/rules.d/50-firmware.rules
Reading rules file: /lib/udev/rules.d/50-udev-default.rules
Reading rules file: /lib/udev/rules.d/55-dm.rules
Reading rules file: /lib/udev/rules.d/55-makerbot-dev.rules
Reading rules file: /lib/udev/rules.d/56-hpmud.rules
Reading rules file: /lib/udev/rules.d/56-lvm.rules
Reading rules file: /lib/udev/rules.d/60-avrdude.rules
Reading rules file: /lib/udev/rules.d/60-block.rules
Reading rules file: /lib/udev/rules.d/60-cdrom_id.rules
Reading rules file: /lib/udev/rules.d/60-drm.rules
Reading rules file: /lib/udev/rules.d/60-evdev.rules
Reading rules file: /lib/udev/rules.d/60-gnupg.rules
Reading rules file: /lib/udev/rules.d/60-gnupg2.rules
Reading rules file: /lib/udev/rules.d/60-inputattach.rules
Reading rules file: /lib/udev/rules.d/60-libgphoto2-6.rules
Reading rules file: /lib/udev/rules.d/60-libsane.rules
Reading rules file: /lib/udev/rules.d/60-openobex.rules
Reading rules file: /lib/udev/rules.d/60-pcmcia.rules
Reading rules file: /lib/udev/rules.d/60-persistent-alsa.rules
Reading rules file: /lib/udev/rules.d/60-persistent-input.rules
Reading rules file: /lib/udev/rules.d/60-persistent-storage-dm.rules
Reading rules file: /lib/udev/rules.d/60-persistent-storage-tape.rules
Reading rules file: /lib/udev/rules.d/60-persistent-storage.rules
Reading rules file: /lib/udev/rules.d/60-persistent-v4l.rules
Reading rules file: /lib/udev/rules.d/60-serial.rules
Reading rules file: /lib/udev/rules.d/60-virtualbox-dkms.rules
Reading rules file: /lib/udev/rules.d/60-virtualbox.rules
Reading rules file: /lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules
Reading rules file: /lib/udev/rules.d/61-gnome-settings-daemon-rfkill.rules
Reading rules file: /lib/udev/rules.d/61-persistent-storage-android.rules
Reading rules file: /lib/udev/rules.d/64-btrfs.rules
Reading rules file: /lib/udev/rules.d/64-xorg-xkb.rules
Reading rules file: /lib/udev/rules.d/65-libwacom.rules
Reading rules file: /lib/udev/rules.d/66-xorg-synaptics-quirks.rules
Reading rules file: /lib/udev/rules.d/69-cd-sensors.rules
Reading rules file: /lib/udev/rules.d/69-libmtp.rules
Reading rules file: /lib/udev/rules.d/69-lvm-metad.rules
Reading rules file: /lib/udev/rules.d/69-wacom.rules
Reading rules file: /lib/udev/rules.d/69-xorg-vmmouse.rules
Reading rules file: /lib/udev/rules.d/70-debian-uaccess.rules
Reading rules file: /lib/udev/rules.d/70-mouse.rules
Reading rules file: /lib/udev/rules.d/70-power-switch.rules
Reading rules file: /lib/udev/rules.d/70-printers.rules
Reading rules file: /lib/udev/rules.d/70-resolvconf-initramfs-copy.rules
Reading rules file: /lib/udev/rules.d/70-uaccess.rules
Reading rules file: /lib/udev/rules.d/70-udev-acl.rules
Reading rules file: /lib/udev/rules.d/71-nvidia.rules
Reading rules file: /lib/udev/rules.d/71-power-switch-proliant.rules
Reading rules file: /lib/udev/rules.d/71-seat.rules
Reading rules file: /lib/udev/rules.d/71-u-d-c-gpu-detection.rules
Reading rules file: /lib/udev/rules.d/73-seat-late.rules
Reading rules file: /lib/udev/rules.d/73-special-net-names.rules
Reading rules file: /lib/udev/rules.d/73-usb-net-by-mac.rules
Reading rules file: /lib/udev/rules.d/75-net-description.rules
Reading rules file: /lib/udev/rules.d/75-probe_mtd.rules
Reading rules file: /lib/udev/rules.d/77-mm-cinterion-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-ericsson-mbm.rules
Reading rules file: /lib/udev/rules.d/77-mm-huawei-net-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-longcheer-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-mtk-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-nokia-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules
Reading rules file: /lib/udev/rules.d/77-mm-platform-serial-whitelist.rules
Reading rules file: /lib/udev/rules.d/77-mm-qdl-device-blacklist.rules
Reading rules file: /lib/udev/rules.d/77-mm-simtech-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-telit-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-usb-device-blacklist.rules
Reading rules file: /lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules
Reading rules file: /lib/udev/rules.d/77-mm-x22x-port-types.rules
Reading rules file: /lib/udev/rules.d/77-mm-zte-port-types.rules
Reading rules file: /lib/udev/rules.d/78-graphics-card.rules
Reading rules file: /lib/udev/rules.d/78-sound-card.rules
Reading rules file: /lib/udev/rules.d/80-debian-compat.rules
Reading rules file: /lib/udev/rules.d/80-drivers.rules
Reading rules file: /lib/udev/rules.d/80-ifupdown.rules
Reading rules file: /lib/udev/rules.d/80-libinput-device-groups.rules
Reading rules file: /lib/udev/rules.d/80-mm-candidate.rules
Reading rules file: /lib/udev/rules.d/80-net-setup-link.rules
Reading rules file: /lib/udev/rules.d/80-udisks2.rules
Reading rules file: /lib/udev/rules.d/80-uvcdynctrl.rules
Reading rules file: /lib/udev/rules.d/84-nm-drivers.rules
Reading rules file: /lib/udev/rules.d/85-brltty.rules
Reading rules file: /lib/udev/rules.d/85-hdparm.rules
Reading rules file: /lib/udev/rules.d/85-hplj10xx.rules
Reading rules file: /lib/udev/rules.d/85-keyboard-configuration.rules
Reading rules file: /lib/udev/rules.d/85-nm-unmanaged.rules
Reading rules file: /lib/udev/rules.d/85-regulatory.rules
Reading rules file: /lib/udev/rules.d/90-alsa-restore.rules
Reading rules file: /lib/udev/rules.d/90-fwupd-devices.rules
Reading rules file: /lib/udev/rules.d/90-libgpod.rules
Reading rules file: /lib/udev/rules.d/90-libinput-model-quirks.rules
Reading rules file: /lib/udev/rules.d/90-pulseaudio.rules
Reading rules file: /lib/udev/rules.d/95-cd-devices.rules
Reading rules file: /lib/udev/rules.d/95-kpartx.rules
Reading rules file: /lib/udev/rules.d/95-upower-csr.rules
Reading rules file: /lib/udev/rules.d/95-upower-hid.rules
Reading rules file: /lib/udev/rules.d/95-upower-wup.rules
Reading rules file: /lib/udev/rules.d/97-dmraid.rules
Reading rules file: /lib/udev/rules.d/97-hid2hci.rules
Reading rules file: /lib/udev/rules.d/99-mb-digitizer-mm-blacklist.rules
Reading rules file: /lib/udev/rules.d/99-systemd.rules
Reading rules file: /etc/udev/rules.d/99_uvc_device_options.rules
rules contain 393216 bytes tokens (32768 * 12 bytes), 39056 bytes strings
27332 strings (229214 bytes), 23572 de-duplicated (193919 bytes), 3761 trie nodes used
value '[dmi/id]sys_vendor' is 'To Be Filled By O.E.M.'
value '[dmi/id]sys_vendor' is 'To Be Filled By O.E.M.'
GROUP 44 /lib/udev/rules.d/50-udev-default.rules:33
IMPORT 'v4l_id /dev/video1' /lib/udev/rules.d/60-persistent-v4l.rules:7
starting 'v4l_id /dev/video1'
'v4l_id /dev/video1'(out) 'ID_V4L_VERSION=2'
'v4l_id /dev/video1'(out) 'ID_V4L_PRODUCT=Android'
'v4l_id /dev/video1'(out) 'ID_V4L_CAPABILITIES=:capture:'
Process 'v4l_id /dev/video1' succeeded.
IMPORT builtin 'usb_id' /lib/udev/rules.d/60-persistent-v4l.rules:9
/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0: if_class 14 protocol 0
LINK 'v4l/by-id/usb-USB_Developer_Android_20080411-video-index0' /lib/udev/rules.d/60-persistent-v4l.rules:10
IMPORT builtin 'path_id' /lib/udev/rules.d/60-persistent-v4l.rules:16
LINK 'v4l/by-path/pci-0000:00:14.0-usb-0:6:1.0-video-index0' /lib/udev/rules.d/60-persistent-v4l.rules:17
RUN 'uaccess' /lib/udev/rules.d/73-seat-late.rules:15
RUN '/lib/udev/uvcdynctrl' /lib/udev/rules.d/80-uvcdynctrl.rules:9
NAME 'video1' /etc/udev/rules.d/99_uvc_device_options.rules:4
handling device node '/dev/video1', devnum=c81:1, mode=0660, uid=0, gid=44
preserve permissions /dev/video1, 020660, uid=0, gid=44
preserve already existing symlink '/dev/char/81:1' to '../video1'
found 'c81:1' claiming '/run/udev/links/\x2fv4l\x2fby-id\x2fusb-USB_Developer_Android_20080411-video-index0'
creating link '/dev/v4l/by-id/usb-USB_Developer_Android_20080411-video-index0' to '/dev/video1'
preserve already existing symlink '/dev/v4l/by-id/usb-USB_Developer_Android_20080411-video-index0' to '../../video1'
found 'c81:1' claiming '/run/udev/links/\x2fv4l\x2fby-path\x2fpci-0000:00:14.0-usb-0:6:1.0-video-index0'
creating link '/dev/v4l/by-path/pci-0000:00:14.0-usb-0:6:1.0-video-index0' to '/dev/video1'
preserve already existing symlink '/dev/v4l/by-path/pci-0000:00:14.0-usb-0:6:1.0-video-index0' to '../../video1'
created db file '/run/udev/data/c81:1' for '/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/video4linux/video1'
.MM_USBIFNUM=00
ACTION=add
COLORD_DEVICE=1
COLORD_KIND=camera
DEVLINKS=/dev/v4l/by-id/usb-USB_Developer_Android_20080411-video-index0 /dev/v4l/by-path/pci-0000:00:14.0-usb-0:6:1.0-video-index0
DEVNAME=/dev/video1
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/video4linux/video1
ID_BUS=usb
ID_FOR_SEAT=video4linux-pci-0000_00_14_0-usb-0_6_1_0
ID_MODEL=Android
ID_MODEL_ENC=Android
ID_MODEL_ID=100e
ID_PATH=pci-0000:00:14.0-usb-0:6:1.0
ID_PATH_TAG=pci-0000_00_14_0-usb-0_6_1_0
ID_REVISION=0233
ID_SERIAL=USB_Developer_Android_20080411
ID_SERIAL_SHORT=20080411
ID_TYPE=video
ID_USB_DRIVER=uvcvideo
ID_USB_INTERFACES=:0e0100:0e0200:ff4201:
ID_USB_INTERFACE_NUM=00
ID_V4L_CAPABILITIES=:capture:
ID_V4L_PRODUCT=Android
ID_V4L_VERSION=2
ID_VENDOR=USB_Developer
ID_VENDOR_ENC=USB\x20Developer
ID_VENDOR_ID=1f3a
MAJOR=81
MINOR=1
SUBSYSTEM=video4linux
TAGS=:uaccess:seat:
USEC_INITIALIZED=54289960816
net.ifnames=0
run: 'uaccess'
run: '/lib/udev/uvcdynctrl'
Unload module index
Unloaded link configuration context.

Ich bin mir nu nicht sicher, ob diese Ausgabe jetzt etwas gutes ist oder nicht ;-/ Kann damit jemand etwas anfangen? Hilft das weiter?

SandUhrGucker

(Themenstarter)

Anmeldungsdatum:
3. Juni 2015

Beiträge: 22

Und nochmal ich. Scheinbar gehts jetzt ein Stückchen weiter, denn ich habe plötzlich Bild (!) wenn ich im richtigen Moment guvcview starte (während den 3 Sekunden wo video1 existiert). Das verrückte ist, das es dann dauerhaft zu funktionieren scheint.

Jetzt denke ich mir erst recht, das man es hinbekommen könnte. Ich weiß nur nicht wie ich jetzt weiter vorgehen soll.

Hat jemand noch einen Tip?

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
munsch@Metis / $ guvcview -d /dev/video1
GUVCVIEW: version 2.0.5
GUVCVIEW: couldn't open /home/munsch/.config/guvcview2/video1 for read: Datei oder Verzeichnis nicht gefunden
V4L2_CORE: ERROR opening V4L interface: Datei oder Verzeichnis nicht gefunden
GUVCVIEW (1): Guvcview error
	 no video device found
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
munsch@Metis / $ guvcview -d /dev/video1
GUVCVIEW: version 2.0.5
GUVCVIEW: couldn't open /home/munsch/.config/guvcview2/video1 for read: Datei oder Verzeichnis nicht gefunden
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Datei oder Verzeichnis nicht gefunden
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Datei oder Verzeichnis nicht gefunden
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Datei oder Verzeichnis nicht gefunden
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Datei oder Verzeichnis nicht gefunden
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Datei oder Verzeichnis nicht gefunden
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Datei oder Verzeichnis nicht gefunden
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Datei oder Verzeichnis nicht gefunden
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Datei oder Verzeichnis nicht gefunden
V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Datei oder Verzeichnis nicht gefunden
V4L2_CORE: Control 0x80000000 failed to query with error -1
buggy V4L2_CTRL_FLAG_NEXT_CTRL flag implementation (workaround enabled)
V4L2_CORE: (get control values) empty control list
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
Cannot connect to server socket err = Datei oder Verzeichnis nicht gefunden
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
V4L2_CORE: ioctl (-1067952623) retried 4 times - giving up: Die Ressource ist zur Zeit nicht verfügbar)
V4L2_CORE: (VIDIOC_DQBUF) Unable to dequeue buffer: Die Ressource ist zur Zeit nicht verfügbar
V4L2_CORE: ioctl (-1067952623) retried 4 times - giving up: Die Ressource ist zur Zeit nicht verfügbar)
V4L2_CORE: (VIDIOC_DQBUF) Unable to dequeue buffer: Die Ressource ist zur Zeit nicht verfügbar
V4L2_CORE: ioctl (-1067952623) retried 4 times - giving up: Die Ressource ist zur Zeit nicht verfügbar)
V4L2_CORE: (VIDIOC_DQBUF) Unable to dequeue buffer: Die Ressource ist zur Zeit nicht verfügbar
V4L2_CORE: ioctl (-1067952623) retried 4 times - giving up: Die Ressource ist zur Zeit nicht verfügbar)
V4L2_CORE: (VIDIOC_DQBUF) Unable to dequeue buffer: Die Ressource ist zur Zeit nicht verfügbar
V4L2_CORE: ioctl (-1067952623) retried 4 times - giving up: Die Ressource ist zur Zeit nicht verfügbar)
V4L2_CORE: (VIDIOC_DQBUF) Unable to dequeue buffer: Die Ressource ist zur Zeit nicht verfügbar
V4L2_CORE: ioctl (-1067952623) retried 4 times - giving up: Die Ressource ist zur Zeit nicht verfügbar)
V4L2_CORE: (VIDIOC_DQBUF) Unable to dequeue buffer: Die Ressource ist zur Zeit nicht verfügbar
V4L2_CORE: (set control defaults) empty control list
V4L2_CORE: ioctl (-1067952623) retried 4 times - giving up: Die Ressource ist zur Zeit nicht verfügbar)
V4L2_CORE: (VIDIOC_DQBUF) Unable to dequeue buffer: Die Ressource ist zur Zeit nicht verfügbar
V4L2_CORE: ioctl (-1067952623) retried 4 times - giving up: Die Ressource ist zur Zeit nicht verfügbar)
V4L2_CORE: (VIDIOC_DQBUF) Unable to dequeue buffer: Die Ressource ist zur Zeit nicht verfügbar
V4L2_CORE: ioctl (-1067952623) retried 4 times - giving up: Die Ressource ist zur Zeit nicht verfügbar)
V4L2_CORE: (VIDIOC_DQBUF) Unable to dequeue buffer: Die Ressource ist zur Zeit nicht verfügbar

Taomon Team-Icon

Supporter
Avatar von Taomon

Anmeldungsdatum:
30. Januar 2011

Beiträge: 8458

Wohnort: Digiworld

Noch 2 Abfragen.

lsmod | grep usb

und

usb-devices | grep 1f3a -A8 -B2

Gruß Taomon

SandUhrGucker

(Themenstarter)

Anmeldungsdatum:
3. Juni 2015

Beiträge: 22

Hallo Taomon, danke für den Beistand!

lsmod zeigt keinen unterschied, wenn ich im 1002 (storage) modus bin oder im 100e (cam):

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Metis munsch # lsmod | grep usb
usb_storage            69632  1 uas
snd_usb_audio         196608  2
snd_usbmidi_lib        32768  1 snd_usb_audio
snd_hwdep              20480  2 snd_hda_codec,snd_usb_audio
snd_pcm                98304  6 snd_hda_intel,snd_hda_codec,snd_usb_audio,snd_hda_core,snd_hda_codec_hdmi
snd_rawmidi            32768  2 snd_seq_midi,snd_usbmidi_lib
usblp                  20480  0
snd                    81920  30 snd_hda_intel,snd_hwdep,snd_seq,snd_hda_codec,snd_usb_audio,snd_timer,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_usbmidi_lib,snd_seq_device,snd_hda_codec_realtek,snd_pcm
usbhid                 49152  0
hid                   118784  3 i2c_hid,hid_generic,usbhid

usb-devices hier, bei normaler Verbindung (1002 storage):

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
Metis munsch # usb-devices | grep 1f3a -A8 -B2
T:  Bus=01 Lev=01 Prnt=01 Port=05 Cnt=04 Dev#= 22 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1f3a ProdID=1002 Rev=02.33
S:  Manufacturer=USB Developer
S:  Product=Android
S:  SerialNumber=20080411
C:  #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=224mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)

T:  Bus=01 Lev=01 Prnt=01 Port=06 Cnt=05 Dev#=  5 Spd=1.5 MxCh= 0

und hier, wenn ich den "webcam-modus" (100e) einschalte, und er für 2-3 sekunden drinn bleibt:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Metis munsch # usb-devices | grep 1f3a -A8 -B2
T:  Bus=01 Lev=01 Prnt=01 Port=05 Cnt=04 Dev#= 23 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1f3a ProdID=100e Rev=02.33
S:  Manufacturer=USB Developer
S:  Product=Android
S:  SerialNumber=20080411
C:  #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr=224mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=00 Driver=uvcvideo
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
I:  If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none)

Taomon Team-Icon

Supporter
Avatar von Taomon

Anmeldungsdatum:
30. Januar 2011

Beiträge: 8458

Wohnort: Digiworld

Dann probieren wir was. verschieb erstmal Deine udev-regeln, damit die nicht dazwischen funken.

Dieses Gerät und andere nicht gebrauchte abstöpseln.

sudo rmmod uas usb-storage

versuch Module zu entladen. wenn das geht.

sudo modpobe -v usb-storage  quirks=1f3a:1002

danach deine Webcam im "Webcam-Modus"anschließen. Lüppt sie? Wenn ja, lege die Datei /etc/modprobe.d/usb-storage.conf an.

Mit Inhalt

options usb-storage quirks=1f3a:1002:u

Danach initrid updaten

sudo update-initramfs -u -k all

Gruß Taomon

SandUhrGucker

(Themenstarter)

Anmeldungsdatum:
3. Juni 2015

Beiträge: 22

Hallo Taomon,

...du hast den ..Lüppt die? wenn nein- Fall vergessen. Leider haben das Entladen und das problem mit quirks keine Besserung gebracht.

1
2
3
Metis rules.d # sudo rmmod uas usb-storage
Metis rules.d # sudo modprobe -v usb-storage  quirks=1f3a:1002
insmod /lib/modules/4.13.0-32-generic/kernel/drivers/usb/storage/usb-storage.ko quirks=1f3a:1002

Mir ist aber was im log aufgefallen. Das erstellen und wieder entfernen des video1 devices sieht beim daeom ja so aus:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
UDEV  [14577.951038] add      /devices/pci0000:00/0000:00:14.0/usb1/1-6 (usb)
UDEV  [14577.953609] add      /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0 (usb)
UDEV  [14577.953630] add      /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.2 (usb)
UDEV  [14577.953641] add      /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/media1 (media)
UDEV  [14577.953685] add      /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/input/input31 (input)
UDEV  [14577.954897] add      /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.1 (usb)
UDEV  [14578.013332] add      /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/input/input31/event27 (input)
UDEV  [14579.345180] add      /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/video4linux/video1 (video4linux)
UDEV  [14581.828801] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/video4linux/video1 (video4linux)
UDEV  [14581.844774] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/input/input31/event27 (input)
UDEV  [14581.868705] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/input/input31 (input)
UDEV  [14581.869333] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/media1 (media)
UDEV  [14581.869352] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.2 (usb)
UDEV  [14581.869365] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0 (usb)
UDEV  [14581.870540] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.1 (usb)
UDEV  [14581.873772] remove   /devices/pci0000:00/0000:00:14.0/usb1/1-6 (usb)

Und der uDev sieht logt das so:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Feb  1 20:11:51 Metis systemd[1]: Started udev Kernel Device Manager.
Feb  1 20:11:59 Metis kernel: [14529.995002] usbcore: deregistering interface driver uas
Feb  1 20:11:59 Metis kernel: [14530.011897] usbcore: deregistering interface driver usb-storage
Feb  1 20:12:20 Metis kernel: [14550.420884] usb-storage 1-6:1.0: USB Mass Storage device detected
Feb  1 20:12:20 Metis kernel: [14550.420927] scsi host6: usb-storage 1-6:1.0
Feb  1 20:12:20 Metis kernel: [14550.420975] usbcore: registered new interface driver usb-storage
Feb  1 20:12:21 Metis kernel: [14551.431977] scsi 6:0:0:0: Direct-Access     USB 2.0  USB Flash Driver 0100 PQ: 0 ANSI: 2
Feb  1 20:12:21 Metis kernel: [14551.432317] sd 6:0:0:0: Attached scsi generic sg4 type 0
Feb  1 20:12:21 Metis kernel: [14551.432843] sd 6:0:0:0: [sdd] Attached SCSI removable disk
Feb  1 20:12:47 Metis kernel: [14577.461363] usb 1-6: USB disconnect, device number 18
Feb  1 20:12:47 Metis kernel: [14577.811415] usb 1-6: new high-speed USB device number 19 using xhci_hcd
Feb  1 20:12:47 Metis kernel: [14577.951929] usb 1-6: New USB device found, idVendor=1f3a, idProduct=100e
Feb  1 20:12:47 Metis kernel: [14577.951930] usb 1-6: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Feb  1 20:12:47 Metis kernel: [14577.951931] usb 1-6: Product: Android
Feb  1 20:12:47 Metis kernel: [14577.951931] usb 1-6: Manufacturer: USB Developer
Feb  1 20:12:47 Metis kernel: [14577.951932] usb 1-6: SerialNumber: 20080411
Feb  1 20:12:47 Metis kernel: [14577.952494] uvcvideo: Found UVC 1.00 device Android (1f3a:100e)
Feb  1 20:12:47 Metis kernel: [14577.953529] uvcvideo 1-6:1.0: Entity type for entity Processing 2 was not initialized!
Feb  1 20:12:47 Metis kernel: [14577.953530] uvcvideo 1-6:1.0: Entity type for entity Camera 1 was not initialized!
Feb  1 20:12:47 Metis kernel: [14577.953571] input: Android: UVC Camera as /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/input/input31
Feb  1 20:12:47 Metis mtp-probe: checking bus 1, device 19: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6"
Feb  1 20:12:47 Metis mtp-probe: bus: 1, device: 19 was not an MTP device
Feb  1 20:12:48 Metis kernel: [14578.279413] uvcvideo: Failed to query (GET_DEF) UVC control 2 on unit 2: -110 (exp. 2).
Feb  1 20:12:48 Metis kernel: [14578.599424] uvcvideo: Failed to query (GET_DEF) UVC control 2 on unit 2: -110 (exp. 2).
Feb  1 20:12:48 Metis kernel: [14578.919487] uvcvideo: Failed to query (GET_DEF) UVC control 2 on unit 2: -110 (exp. 2).
Feb  1 20:12:49 Metis kernel: [14579.239412] uvcvideo: Failed to query (GET_DEF) UVC control 2 on unit 2: -110 (exp. 2).
Feb  1 20:12:51 Metis kernel: [14581.839383] usb 1-6: USB disconnect, device number 19
Feb  1 20:12:52 Metis kernel: [14582.467367] usb 1-6: new high-speed USB device number 20 using xhci_hcd
Feb  1 20:12:52 Metis kernel: [14582.607820] usb 1-6: New USB device found, idVendor=1f3a, idProduct=1002
Feb  1 20:12:52 Metis kernel: [14582.607821] usb 1-6: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Feb  1 20:12:52 Metis kernel: [14582.607822] usb 1-6: Product: Android
Feb  1 20:12:52 Metis kernel: [14582.607822] usb 1-6: Manufacturer: USB Developer
Feb  1 20:12:52 Metis kernel: [14582.607823] usb 1-6: SerialNumber: 20080411
Feb  1 20:12:52 Metis kernel: [14582.608510] usb-storage 1-6:1.0: USB Mass Storage device detected
Feb  1 20:12:52 Metis kernel: [14582.608583] scsi host6: usb-storage 1-6:1.0
Feb  1 20:12:52 Metis mtp-probe: checking bus 1, device 20: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6"
Feb  1 20:12:52 Metis mtp-probe: bus: 1, device: 20 was not an MTP device
Feb  1 20:12:52 Metis kernel: [14582.637932] usbcore: registered new interface driver uas
Feb  1 20:12:53 Metis kernel: [14583.623684] scsi 6:0:0:0: Direct-Access     USB 2.0  USB Flash Driver 0100 PQ: 0 ANSI: 2
Feb  1 20:12:53 Metis kernel: [14583.623849] sd 6:0:0:0: Attached scsi generic sg4 type 0
Feb  1 20:12:53 Metis kernel: [14583.624935] sd 6:0:0:0: [sdd] Attached SCSI removable disk

Sind diese uvcvideo-einträge da nicht auffällig? Failed klingt ja erstmal schlecht...

SandUhrGucker

(Themenstarter)

Anmeldungsdatum:
3. Juni 2015

Beiträge: 22

Hallo nochmal,

inzwischen kann ich Taomon's Ansatz verstehen. Allerdings stoße ich bei meinen Recherchen auf andere Werte, und scheinbar werden einfach gar keine berücksichtigt. Ganz konkret: Ich entlade die Treiber:

1
sudo rmmod uas usb-storage uvcvideo

Dann lade ich den uvcvideo treiber mit quirk neu:

1
sudo modprobe -v uvcvideo quirks:256

Dann schalte ich die cam inden webcam modus, worauf sie erkannt wird. Trotz des quirks wird GET_DEF geprobt. *kopfkratz* Ich versteh einfach nicht warum. modinfo uvcvideo zeigte mir das die option der quirks vorhanden sei, und als uint interpretiert wird:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
modinfo uvcvideo
..
..
depends:        videodev,videobuf2-core,videobuf2-v4l2,videobuf2-vmalloc,media
intree:         Y
name:           uvcvideo
vermagic:       4.13.0-32-generic SMP mod_unload 
parm:           clock:Video buffers timestamp clock
parm:           hwtimestamps:Use hardware timestamps (uint)
parm:           nodrop:Don't drop incomplete frames (uint)
parm:           quirks:Forced device quirks (uint)
parm:           trace:Trace level bitmask (uint)
parm:           timeout:Streaming control requests timeout (uint)

Ich habe mal quirks=0x100 mal quirks=256 mal quirks:256 angegeben. Das Modul wurde auf jede Art geladen. Aber berücksichtigt hat er das quirk dann nicht.

1
Feb  2 00:42:17 Metis kernel: [30747.322228] uvcvideo: Failed to query (GET_DEF) UVC control 2 on unit 2: -110 (exp. 2).

Den Wert des quirks habe ich aus der Quirk-Liste von hier: http://www.ideasonboard.org/uvc/faq/

Was mache ich falsch?

Taomon Team-Icon

Supporter
Avatar von Taomon

Anmeldungsdatum:
30. Januar 2011

Beiträge: 8458

Wohnort: Digiworld

Eigentlich hatte ich einen quirk für usb-storage im Sinn. Die Umschaltung erfolgt nicht über einen Schalter am Gerät? Ist es möglich das Teil als MTP-Gerät umzustellen?

Gruß Taomon

SandUhrGucker

(Themenstarter)

Anmeldungsdatum:
3. Juni 2015

Beiträge: 22

Eigentlich hatte ich einen quirk für usb-storage im Sinn. Die Umschaltung erfolgt nicht über einen Schalter am Gerät? Ist es möglich das Teil als MTP-Gerät umzustellen?

An der cam kann ich nichts dergleichen einstellen, am pc wüsste ich nicht was ich dazu tun soll. Sieht aber ja auch aus, als würde er MTP proben, und dabei fehlschlagen.

Fallen dir Gründe ein, warum die quirks vom System ignoriert werden?

Antworten |