Joshua-Riek / ubuntu-rockchip

Ubuntu for Rockchip RK35XX Devices
https://joshua-riek.github.io/ubuntu-rockchip-download/
GNU General Public License v3.0
2.12k stars 230 forks source link

USB 5.8GHz Arkmicro Technologies S-Video Capture Device not always detected on Orange Pi 5B #594

Closed redradist closed 7 months ago

redradist commented 7 months ago

Hi @Joshua-Riek,

After latest sudo apt update && sudo apt upgrade command, I've started noticed that my USB 5.8GHz receiver is not always detected by Ubuntu ubuntu-22.04.3-preinstalled-desktop-arm64-orangepi-5b.img.xz

Here what I have seen after bunch of reconnection to USB port, after some number of attempts is start recognizing the USB device:

orangepi@orangepi-desktop:~$ lsusb 
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 24ae:2013 Shenzhen Rapoo Technology Co., Ltd. Rapoo 2.4G Wireless Device
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
orangepi@orangepi-desktop:~$ lsusb 
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 24ae:2013 Shenzhen Rapoo Technology Co., Ltd. Rapoo 2.4G Wireless Device
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
orangepi@orangepi-desktop:~$ lsusb 
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 010: ID 18ec:5850 Arkmicro Technologies Inc. CVBS / S-Video Capture Device [UVC]
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 24ae:2013 Shenzhen Rapoo Technology Co., Ltd. Rapoo 2.4G Wireless Device
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

First I thought that maybe it is issue with USB cable. I changed different cables, but nothing was working. Also I've connected USB receiver to my Mac and it was working from the first time (verified number of times)

Looks like it started happens after latest sudo apt update && sudo apt upgrade command. Here is my results of dmesg | grep -i USB command, maybe it will give some clue what happens ...

orangepi@orangepi-desktop:~$ dmesg | grep -i USB
[    8.375267] reg-fixed-voltage vcc5v0-usbdcin: Looking up vin-supply from device tree
[    8.375270] vcc5v0_usbdcin: supplied by vcc12v_dcin
[    8.375288] vcc5v0_usbdcin: 5000 mV, enabled
[    8.375341] reg-fixed-voltage vcc5v0-usbdcin: vcc5v0_usbdcin supplying 5000000uV
[    8.375381] reg-fixed-voltage vcc5v0-usb: Looking up vin-supply from device tree
[    8.375384] vcc5v0_usb: supplied by vcc5v0_usbdcin
[    8.375387] vcc5v0_usbdcin: could not add device link regulator.4: -ENOENT
[    8.375401] vcc5v0_usb: 5000 mV, enabled
[    8.375457] reg-fixed-voltage vcc5v0-usb: vcc5v0_usb supplying 5000000uV
[    8.375622] vbus5v0_typec: supplied by vcc5v0_usb
[    8.436576] usbcore: registered new interface driver usbfs
[    8.436590] usbcore: registered new interface driver hub
[    8.436602] usbcore: registered new device driver usb
[    9.229985] phy phy-fd5d0000.syscon:usb2-phy@0.0: Looking up phy-supply from device tree
[    9.229992] phy phy-fd5d0000.syscon:usb2-phy@0.0: Looking up phy-supply property in node /syscon@fd5d0000/usb2-phy@0/otg-port failed
[    9.230032] phy phy-fd5d0000.syscon:usb2-phy@0.0: Looking up vbus-supply from device tree
[    9.230038] phy phy-fd5d0000.syscon:usb2-phy@0.0: Looking up vbus-supply property in node /syscon@fd5d0000/usb2-phy@0/otg-port failed
[    9.231267] phy phy-fd5d8000.syscon:usb2-phy@8000.1: Looking up phy-supply from device tree
[    9.231274] phy phy-fd5d8000.syscon:usb2-phy@8000.1: Looking up phy-supply property in node /syscon@fd5d8000/usb2-phy@8000/host-port failed
[    9.232331] phy phy-fd5dc000.syscon:usb2-phy@c000.2: Looking up phy-supply from device tree
[    9.232338] phy phy-fd5dc000.syscon:usb2-phy@c000.2: Looking up phy-supply property in node /syscon@fd5dc000/usb2-phy@c000/host-port failed
[    9.680563] usbcore: registered new interface driver rndis_wlan
[    9.680729] usbcore: registered new interface driver asix
[    9.680773] usbcore: registered new interface driver cdc_ether
[    9.680808] usbcore: registered new interface driver rndis_host
[    9.680867] usbcore: registered new interface driver cdc_ncm
[    9.688238] rockchip-pm-domain fd8d8000.power-management:power-controller: Looking up usb-supply from device tree
[    9.688291] rockchip-pm-domain fd8d8000.power-management:power-controller: Looking up usb-supply property in node /power-management@fd8d8000/power-controller failed
[    9.692758] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.695353] ehci-platform fc800000.usb: EHCI Host Controller
[    9.695378] ehci-platform fc800000.usb: new USB bus registered, assigned bus number 1
[    9.695503] ehci-platform fc800000.usb: irq 20, io mem 0xfc800000
[    9.706861] ehci-platform fc800000.usb: USB 2.0 started, EHCI 1.00
[    9.707123] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    9.707132] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.707139] usb usb1: Product: EHCI Host Controller
[    9.707146] usb usb1: Manufacturer: Linux 5.10.160-rockchip ehci_hcd
[    9.707153] usb usb1: SerialNumber: fc800000.usb
[    9.707676] hub 1-0:1.0: USB hub found
[    9.710187] ehci-platform fc880000.usb: EHCI Host Controller
[    9.710210] ehci-platform fc880000.usb: new USB bus registered, assigned bus number 2
[    9.710327] ehci-platform fc880000.usb: irq 22, io mem 0xfc880000
[    9.723525] ehci-platform fc880000.usb: USB 2.0 started, EHCI 1.00
[    9.723778] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    9.723788] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.723795] usb usb2: Product: EHCI Host Controller
[    9.723802] usb usb2: Manufacturer: Linux 5.10.160-rockchip ehci_hcd
[    9.723809] usb usb2: SerialNumber: fc880000.usb
[    9.724291] hub 2-0:1.0: USB hub found
[    9.725315] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    9.725673] ohci-platform fc840000.usb: Generic Platform OHCI controller
[    9.725693] ohci-platform fc840000.usb: new USB bus registered, assigned bus number 3
[    9.725791] ohci-platform fc840000.usb: irq 21, io mem 0xfc840000
[    9.784393] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.10
[    9.784402] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.784410] usb usb3: Product: Generic Platform OHCI controller
[    9.784417] usb usb3: Manufacturer: Linux 5.10.160-rockchip ohci_hcd
[    9.784423] usb usb3: SerialNumber: fc840000.usb
[    9.784913] hub 3-0:1.0: USB hub found
[    9.785613] ohci-platform fc8c0000.usb: Generic Platform OHCI controller
[    9.785632] ohci-platform fc8c0000.usb: new USB bus registered, assigned bus number 4
[    9.785724] ohci-platform fc8c0000.usb: irq 23, io mem 0xfc8c0000
[    9.844401] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.10
[    9.844411] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.844418] usb usb4: Product: Generic Platform OHCI controller
[    9.844425] usb usb4: Manufacturer: Linux 5.10.160-rockchip ohci_hcd
[    9.844432] usb usb4: SerialNumber: fc8c0000.usb
[    9.844903] hub 4-0:1.0: USB hub found
[    9.846344] xhci-hcd xhci-hcd.8.auto: new USB bus registered, assigned bus number 5
[    9.846909] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    9.846918] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.846926] usb usb5: Product: xHCI Host Controller
[    9.846933] usb usb5: Manufacturer: Linux 5.10.160-rockchip xhci-hcd
[    9.846939] usb usb5: SerialNumber: xhci-hcd.8.auto
[    9.847432] hub 5-0:1.0: USB hub found
[    9.847857] xhci-hcd xhci-hcd.8.auto: new USB bus registered, assigned bus number 6
[    9.847872] xhci-hcd xhci-hcd.8.auto: Host supports USB 3.0 SuperSpeed
[    9.847968] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.848128] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[    9.848137] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.848144] usb usb6: Product: xHCI Host Controller
[    9.848151] usb usb6: Manufacturer: Linux 5.10.160-rockchip xhci-hcd
[    9.848158] usb usb6: SerialNumber: xhci-hcd.8.auto
[    9.848653] hub 6-0:1.0: USB hub found
[    9.849192] usbcore: registered new interface driver cdc_acm
[    9.849198] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    9.849405] usbcore: registered new interface driver uas
[    9.849542] usbcore: registered new interface driver usb-storage
[    9.851179] usbcore: registered new interface driver usbtouchscreen
[   10.031855] typec_fusb302 6-0022: Looking up vbus-supply from device tree
[   10.222855] usbcore: registered new interface driver uvcvideo
[   10.222858] USB Video Class driver (1.1.1)
[   10.276851] usb 4-1: new full-speed USB device number 2 using ohci-platform
[   10.287204] usbcore: registered new interface driver usbhid
[   10.287210] usbhid: USB HID core driver
[   10.294057] usbcore: registered new interface driver snd-usb-audio
[   10.517244] usb 4-1: New USB device found, idVendor=24ae, idProduct=2013, bcdDevice= 1.10
[   10.517251] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   10.517275] usb 4-1: Product: Rapoo 2.4G Wireless Device
[   10.517280] usb 4-1: Manufacturer: RAPOO
[   10.524188] input: RAPOO Rapoo 2.4G Wireless Device as /devices/platform/fc8c0000.usb/usb4/4-1/4-1:1.0/0003:24AE:2013.0001/input/input6
[   10.524556] hid-generic 0003:24AE:2013.0001: input,hidraw0: USB HID v1.10 Mouse [RAPOO Rapoo 2.4G Wireless Device] on usb-fc8c0000.usb-1/input0
[   10.529687] input: RAPOO Rapoo 2.4G Wireless Device System Control as /devices/platform/fc8c0000.usb/usb4/4-1/4-1:1.1/0003:24AE:2013.0002/input/input8
[   10.587197] input: RAPOO Rapoo 2.4G Wireless Device Consumer Control as /devices/platform/fc8c0000.usb/usb4/4-1/4-1:1.1/0003:24AE:2013.0002/input/input9
[   10.587554] hid-generic 0003:24AE:2013.0002: input,hiddev96,hidraw1: USB HID v1.10 Device [RAPOO Rapoo 2.4G Wireless Device] on usb-fc8c0000.usb-1/input1
[   10.590997] input: RAPOO Rapoo 2.4G Wireless Device as /devices/platform/fc8c0000.usb/usb4/4-1/4-1:1.2/0003:24AE:2013.0003/input/input10
[   10.647577] hid-generic 0003:24AE:2013.0003: input,hidraw2: USB HID v1.10 Keyboard [RAPOO Rapoo 2.4G Wireless Device] on usb-fc8c0000.usb-1/input2
[   10.910491] xhci-hcd xhci-hcd.11.auto: new USB bus registered, assigned bus number 7
[   10.910775] usb usb7: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[   10.910779] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.910782] usb usb7: Product: xHCI Host Controller
[   10.910784] usb usb7: Manufacturer: Linux 5.10.160-rockchip xhci-hcd
[   10.910786] usb usb7: SerialNumber: xhci-hcd.11.auto
[   10.911128] hub 7-0:1.0: USB hub found
[   10.911294] xhci-hcd xhci-hcd.11.auto: new USB bus registered, assigned bus number 8
[   10.911300] xhci-hcd xhci-hcd.11.auto: Host supports USB 3.0 SuperSpeed
[   10.911461] usb usb8: We don't know the algorithms for LPM for this host, disabling LPM.
[   10.911518] usb usb8: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[   10.911521] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.911524] usb usb8: Product: xHCI Host Controller
[   10.911526] usb usb8: Manufacturer: Linux 5.10.160-rockchip xhci-hcd
[   10.911528] usb usb8: SerialNumber: xhci-hcd.11.auto
[   10.911713] hub 8-0:1.0: USB hub found
[   14.113521] usb 7-1: new high-speed USB device number 2 using xhci-hcd
[   14.240234] usb 7-1: device descriptor read/64, error -71
[   14.476877] usb 7-1: device descriptor read/64, error -71
[   14.713654] usb 7-1: new high-speed USB device number 3 using xhci-hcd
[   14.840236] usb 7-1: device descriptor read/64, error -71
[   15.073562] usb 7-1: device descriptor read/64, error -71
[   15.180668] usb usb7-port1: attempt power cycle
[   15.586854] usb 7-1: new high-speed USB device number 4 using xhci-hcd
[   15.586913] usb 7-1: Device not responding to setup address.
[   15.793558] usb 7-1: Device not responding to setup address.
[   16.000177] usb 7-1: device not accepting address 4, error -71
[   16.123510] usb 7-1: new high-speed USB device number 5 using xhci-hcd
[   16.123568] usb 7-1: Device not responding to setup address.
[   16.333554] usb 7-1: Device not responding to setup address.
[   16.540177] usb 7-1: device not accepting address 5, error -71
[   16.540415] usb usb7-port1: unable to enumerate USB device
[  596.700268] usb 7-1: new full-speed USB device number 6 using xhci-hcd
[  596.823647] usb 7-1: device descriptor read/64, error -71
[  597.053669] usb 7-1: device descriptor read/64, error -71
[  597.283605] usb 7-1: new full-speed USB device number 7 using xhci-hcd
[  597.406970] usb 7-1: device descriptor read/64, error -71
[  597.636978] usb 7-1: device descriptor read/64, error -71
[  597.743766] usb usb7-port1: attempt power cycle
[  598.146988] usb 7-1: new full-speed USB device number 8 using xhci-hcd
[  598.147129] usb 7-1: Device not responding to setup address.
[  598.353694] usb 7-1: Device not responding to setup address.
[  598.560263] usb 7-1: device not accepting address 8, error -71
[  598.683620] usb 7-1: new full-speed USB device number 9 using xhci-hcd
[  598.683708] usb 7-1: Device not responding to setup address.
[  598.890421] usb 7-1: Device not responding to setup address.
[  599.096963] usb 7-1: device not accepting address 9, error -71
[  599.097223] usb usb7-port1: unable to enumerate USB device
[  637.237502] usb 7-1: new high-speed USB device number 10 using xhci-hcd
[  637.559655] usb 7-1: New USB device found, idVendor=18ec, idProduct=5850, bcdDevice= 1.00
[  637.559664] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  637.559669] usb 7-1: Product: USB2.0 PC CAMERA
[  637.559673] usb 7-1: Manufacturer: ARKMICRO
[  637.614019] uvcvideo: Found UVC 1.00 device USB2.0 PC CAMERA (18ec:5850)
[  637.623883] input: USB2.0 PC CAMERA as /devices/platform/usbdrd3_0/fc000000.usb/xhci-hcd.11.auto/usb7/7-1/7-1:1.0/input/input11
[  637.645935] usb 7-1: 3:1: cannot get freq at ep 0x82
[  637.681415] usb 7-1: Warning! Unlikely big volume range (=11903), cval->res is probably wrong.
[  637.681424] usb 7-1: [2] FU [Mic Capture Volume] ch = 2, val = 384/12287/1
[  637.838283] usb 7-1: 3:1: cannot get freq at ep 0x82
[  637.902107] usb 7-1: 3:1: cannot get freq at ep 0x82

I have installed the following kernels:

orangepi@orangepi-desktop:~$ apt list --installed | grep linux-image

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

linux-image-5.10.160-rockchip/jammy,now 5.10.160-30 arm64 [installed,automatic]
linux-image-rockchip-5.10/jammy,now 5.10.160-30 arm64 [installed,automatic]
Joshua-Riek commented 7 months ago

This is a camera or a WiFi dongle?

redradist commented 7 months ago

This is a camera or a WiFi dongle?

@Joshua-Riek It is the following receiver Skydroid Mini 5.8G FPV Receiver UVC Video Downlink OTG. It is detected as Video Camera by Ubuntu in normal case

It worked after fresh installation for long time, then I did few sudo apt update && sudo apt upgrade and after that start noticing this problem

Joshua-Riek commented 7 months ago

There is likely nothing I can do here. Looks like a low level USB quirk / bug,

redradist commented 7 months ago

There is likely nothing I can do here. Looks like a low level USB quirk / bug,

@Joshua-Riek Maybe I could switch to previous linux-kernel ?

Joshua-Riek commented 7 months ago

You can dig through my kernel builds below.

https://launchpad.net/~jjriek/+archive/ubuntu/rockchip

redradist commented 7 months ago

@Joshua-Riek Looks like I have figured out the issue, take a look at the photo:

photo_2024-01-31_12-10-57

When I inserted any USB cable in vertical USB port along side with USB 5.8GHz Receiver, USB Hub probably due to these broken 2 USB contacts start detecting USB device which do not respond and after reboot did not any more detected receiver with properly functioning ...