[Solved] USB type-C hub driver error

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Funtast
Level 1
Level 1
Posts: 7
Joined: Mon May 17, 2021 5:46 am

[Solved] USB type-C hub driver error

Post by Funtast »

Hi!

I have bought a USB type-C hub which includes 4 USB 3 ports, HDMI and Ethernet. Here I found a review online - https://www.itpro.com/software/video-co ... -performer

The hub works fine in Windows with the exception that I get a warning that my type-C port (I am using Acer Aspire A515-52G https://www.acer.com/ac/en/US/content/s ... oduct/7778) does not support the HDMI adapter.

In Linux however I get the following dmesg:

Code: Select all

[ 8176.518782] usb 1-2: new high-speed USB device number 6 using xhci_hcd
[ 8176.666990] usb 1-2: New USB device found, idVendor=1a40, idProduct=0801, bcdDevice= 1.00
[ 8176.666993] usb 1-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 8176.666995] usb 1-2: Product: USB 2.0 Hub
[ 8176.667758] hub 1-2:1.0: USB hub found
[ 8176.667784] hub 1-2:1.0: 4 ports detected
[ 8176.794965] usb 2-3: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 8176.817956] usb 2-3: New USB device found, idVendor=272a, idProduct=0080, bcdDevice= 3.a3
[ 8176.817959] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 8176.817961] usb 2-3: Product: USB3.0 Hub             
[ 8176.817963] usb 2-3: Manufacturer: StarLeaf Ltd.          
[ 8176.820090] hub 2-3:1.0: USB hub found
[ 8176.820210] hub 2-3:1.0: 4 ports detected
[ 8176.954445] usb 1-2.1: new high-speed USB device number 7 using xhci_hcd
[ 8177.060046] usb 1-2.1: New USB device found, idVendor=0bda, idProduct=8152, bcdDevice=20.00
[ 8177.060049] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 8177.060051] usb 1-2.1: Product: USB 10/100 LAN
[ 8177.060052] usb 1-2.1: Manufacturer: Realtek
[ 8177.060054] usb 1-2.1: SerialNumber: 000000000000
[ 8177.138593] usb 1-2.2: new high-speed USB device number 8 using xhci_hcd
[ 8177.240991] usb 1-2.2: New USB device found, idVendor=272a, idProduct=0081, bcdDevice= 3.a3
[ 8177.240994] usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 8177.240996] usb 1-2.2: Product: USB2.0 Hub             
[ 8177.240997] usb 1-2.2: Manufacturer: StarLeaf Ltd.          
[ 8177.242032] hub 1-2.2:1.0: USB hub found
[ 8177.242193] hub 1-2.2:1.0: 5 ports detected
[ 8178.015001] usbcore: registered new interface driver r8152
[ 8178.094777] usb 1-2.1: reset high-speed USB device number 7 using xhci_hcd
[ 8178.224761] r8152 1-2.1:1.0 (unnamed net_device) (uninitialized): Invalid ether addr 00:00:00:00:00:00
[ 8178.224771] r8152 1-2.1:1.0 (unnamed net_device) (uninitialized): Random ether addr 6a:2d:cb:f9:47:bf
[ 8178.251609] r8152 1-2.1:1.0 eth0: v1.10.11
[ 8181.762765] usb 1-2.2.5: new high-speed USB device number 9 using xhci_hcd
[ 8181.868929] usb 1-2.2.5: New USB device found, idVendor=2109, idProduct=8888, bcdDevice= 0.01
[ 8181.868933] usb 1-2.2.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 8181.868935] usb 1-2.2.5: Product: USB Billboard Device   
[ 8181.868936] usb 1-2.2.5: Manufacturer: VIA Labs, Inc.         
[ 8181.868938] usb 1-2.2.5: SerialNumber: 0000000000000001
[ 8182.234470] usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
[ 8182.400313] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8182.400864] r8152 1-2.1:1.0 eth0: carrier on
[ 8186.702440] usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
[ 8191.122869] usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
[ 8195.586706] usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
and after a few minutes my whole system freezes

my kernel is : Linux Aspire 5.4.0-73-generic #82-Ubuntu SMP Wed Apr 14 17:39:42 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

I have also tried 5.8 and also 5.12-mainline but the problem persists.

I think that the issue is somewhere in the kernel and is connected to the lack of hardware support for the HDMI. However I don't know how to submit bug report and also where to submit it.

In the meantime can I just disable the part of the hub which causes the message "usb usb2-port2: Cannot enable. Maybe the USB cable is bad?" to pop again and again? And is there anything else I can do?

Thanks!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 4 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Funtast
Level 1
Level 1
Posts: 7
Joined: Mon May 17, 2021 5:46 am

Re: USB type-C hub driver error

Post by Funtast »

Update: now I tested it again with 5.4.0-73-generic and cinnamon entered fallback mode:

Code: Select all

[16107.953396] usb 1-2: new high-speed USB device number 23 using xhci_hcd
[16108.101400] usb 1-2: New USB device found, idVendor=1a40, idProduct=0801, bcdDevice= 1.00
[16108.101403] usb 1-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[16108.101405] usb 1-2: Product: USB 2.0 Hub
[16108.102481] hub 1-2:1.0: USB hub found
[16108.102507] hub 1-2:1.0: 4 ports detected
[16108.229243] usb 2-3: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[16108.251684] usb 2-3: New USB device found, idVendor=272a, idProduct=0080, bcdDevice= 3.a3
[16108.251687] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[16108.251689] usb 2-3: Product: USB3.0 Hub             
[16108.251691] usb 2-3: Manufacturer: StarLeaf Ltd.          
[16108.254053] hub 2-3:1.0: USB hub found
[16108.254234] hub 2-3:1.0: 4 ports detected
[16108.397033] usb 1-2.1: new high-speed USB device number 24 using xhci_hcd
[16108.501924] usb 1-2.1: New USB device found, idVendor=0bda, idProduct=8152, bcdDevice=20.00
[16108.501927] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[16108.501929] usb 1-2.1: Product: USB 10/100 LAN
[16108.501931] usb 1-2.1: Manufacturer: Realtek
[16108.501932] usb 1-2.1: SerialNumber: 000000000000
[16108.584976] usb 1-2.2: new high-speed USB device number 25 using xhci_hcd
[16108.687169] usb 1-2.2: New USB device found, idVendor=272a, idProduct=0081, bcdDevice= 3.a3
[16108.687173] usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[16108.687176] usb 1-2.2: Product: USB2.0 Hub             
[16108.687178] usb 1-2.2: Manufacturer: StarLeaf Ltd.          
[16108.688497] hub 1-2.2:1.0: USB hub found
[16108.688633] hub 1-2.2:1.0: 5 ports detected
[16109.474068] usbcore: registered new interface driver r8152
[16109.481637] usbcore: registered new interface driver cdc_ether
[16109.553436] usb 1-2.1: reset high-speed USB device number 24 using xhci_hcd
[16109.682879] r8152 1-2.1:1.0 (unnamed net_device) (uninitialized): Invalid ether addr 00:00:00:00:00:00
[16109.682889] r8152 1-2.1:1.0 (unnamed net_device) (uninitialized): Random ether addr 5e:fd:b7:b7:f9:bc
[16109.710117] r8152 1-2.1:1.0 eth0: v1.10.11
[16113.133032] usb 1-2.2.5: new high-speed USB device number 26 using xhci_hcd
[16113.234600] usb 1-2.2.5: New USB device found, idVendor=2109, idProduct=8888, bcdDevice= 0.01
[16113.234603] usb 1-2.2.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[16113.234605] usb 1-2.2.5: Product: USB Billboard Device   
[16113.234606] usb 1-2.2.5: Manufacturer: VIA Labs, Inc.         
[16113.234608] usb 1-2.2.5: SerialNumber: 0000000000000001
[16113.672987] usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
[16113.837366] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[16113.837780] r8152 1-2.1:1.0 eth0: carrier on
[16117.786459] traps: cinnamon[6360] trap int3 ip:7faf3e755295 sp:7fffe12612e0 error:0 in libglib-2.0.so.0.6400.6[7faf3e719000+84000]
[16118.100977] usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
[16122.529277] usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
[16126.988965] usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
[16131.448992] usb usb2-port2: Cannot enable. Maybe the USB cable is bad?
also if the dongle stays plugged in I believe after the kernel freeze I see message related to some kworker thread being blocked for too long. So there's smt like deadlock?

Unfortunately I don't have a clue of what can be done as a workaround for this problem :/
User avatar
hglee
Level 6
Level 6
Posts: 1422
Joined: Fri Jun 22, 2018 4:31 pm

Re: USB type-C hub driver error

Post by hglee »

Funtast wrote: Sun May 23, 2021 8:58 am Maybe the USB cable is bad?" to pop again and again? And is there anything else I can do?


For starters: Disable Secure Boot in your BIOS/EUFI. If you dual-boot Windows, disable Fast StartUp [1m53s @YouTube] in Windows power options. Then:


Open a new Terminal window (Ctrl-Alt-T) then copy-and-paste the following command-line...

Code: Select all

inxi -Fxxxrz && lsusb && lspci

Post the output of that command-line, using the usual bbcode code tags to format the text for this forum.


Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
Funtast
Level 1
Level 1
Posts: 7
Joined: Mon May 17, 2021 5:46 am

Re: USB type-C hub driver error

Post by Funtast »

I am not sure about secure boot - I think it's enabled. Also I do use dual boot for Windows and before at some point I tried to play around with clover and macOS. I know about the fast startup which is hybrid sleep as I understand it and I haven't disabled it but when I quit Windows I always restart, enter linux and then quit which resolves the problem. I would have noticed the problem because I have NTFS partition which is mounted readonly when I shutdown windows with fast startup.

here's the output from the command:

Code: Select all

System:    Kernel: 5.4.0-73-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 
           dm: GDM3 3.36.3, LightDM 1.30.0 Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: Acer product: Aspire A515-52G v: V1.16 serial: <filter> 
           Mobo: WL model: Raticate_WL v: V1.16 serial: <filter> UEFI: Insyde v: 1.16 date: 08/23/2019 
Battery:   ID-1: BAT1 charge: 41.6 Wh condition: 41.6/48.9 Wh (85%) volts: 16.8/15.2 model: LG PABAS0241231 type: Li-ion 
           serial: <filter> status: Full 
CPU:       Topology: Quad Core model: Intel Core i5-8265U bits: 64 type: MT MCP arch: Kaby Lake rev: B L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 28800 
           Speed: 3807 MHz min/max: 400/3900 MHz Core speeds (MHz): 1: 3807 2: 3744 3: 3769 4: 3784 5: 3664 6: 3719 7: 3561 
           8: 3632 
Graphics:  Device-1: Intel UHD Graphics 620 vendor: Acer Incorporated ALI driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:3ea0 
           Device-2: NVIDIA GP108M [GeForce MX150] vendor: Acer Incorporated ALI driver: nvidia v: 460.73.01 bus ID: 01:00.0 
           chip ID: 10de:1d10 
           Display: x11 server: X.Org 1.20.9 driver: modesetting,nvidia unloaded: fbdev,nouveau,vesa 
           resolution: 1920x1080~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 20.2.6 direct render: Yes 
Audio:     Device-1: Intel Cannon Point-LP High Definition Audio vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 chip ID: 8086:9dc8 
           Sound Server: ALSA v: k5.4.0-73-generic 
Network:   Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi v: kernel port: 5000 bus ID: 00:14.3 
           chip ID: 8086:9df0 
           IF: wlp0s20f3 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Acer Incorporated ALI driver: r8169 
           v: kernel port: 3000 bus ID: 02:00.1 chip ID: 10ec:8168 
           IF: enp2s0f1 state: down mac: <filter> 
           Device-3: Realtek RTL8152 Fast Ethernet Adapter type: USB driver: r8152 bus ID: 1-2.1:28 chip ID: 0bda:8152 
           serial: <filter> 
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter> 
           IF-ID-1: docker0 state: down mac: <filter> 
Drives:    Local Storage: total: 1.38 TiB used: 980.09 GiB (69.6%) 
           ID-1: /dev/nvme0n1 vendor: Seagate model: XPG GAMMIX S5 size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> 
           rev: V9001c19 scheme: GPT 
           ID-2: /dev/sda vendor: Toshiba model: MQ04ABF100 size: 931.51 GiB speed: 6.0 Gb/s rotation: 5400 rpm 
           serial: <filter> rev: 1J temp: 28 C scheme: GPT 
Partition: ID-1: / size: 221.63 GiB used: 167.90 GiB (75.8%) fs: ext4 dev: /dev/nvme0n1p4 
Sensors:   System Temperatures: cpu: 57.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     Active apt repos in: /etc/apt/sources.list 
           1: deb http://download.onlyoffice.com/repo/debian squeeze main
           Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
           1: deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
           Active apt repos in: /etc/apt/sources.list.d/alexlarsson-flatpak-focal.list 
           1: deb http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/gerardpuig-ppa-focal.list 
           1: deb http://ppa.launchpad.net/gerardpuig/ppa/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/hluk-copyq-focal.list 
           1: deb http://ppa.launchpad.net/hluk/copyq/ubuntu focal main
           No active apt repos in: /etc/apt/sources.list.d/home:ungoogled_chromium.list 
           Active apt repos in: /etc/apt/sources.list.d/kubuntu-ppa-backports-focal.list 
           1: deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/linrunner-tlp-focal.list 
           1: deb http://ppa.launchpad.net/linrunner/tlp/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/linuxuprising-apps-focal.list 
           1: deb http://ppa.launchpad.net/linuxuprising/apps/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/lutris-team-lutris-focal.list 
           1: deb http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/lyx-devel-release-focal.list 
           1: deb http://ppa.launchpad.net/lyx-devel/release/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/lyzardking-ubuntu-make-focal.list 
           1: deb http://ppa.launchpad.net/lyzardking/ubuntu-make/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/nrbrtx-python2-stuff-focal.list 
           1: deb http://ppa.launchpad.net/nrbrtx/python2-stuff/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://packages.linuxmint.com ulyssa main upstream import backport #id:linuxmint_main
           2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/rock-core-qt4-focal.list 
           1: deb http://ppa.launchpad.net/rock-core/qt4/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
           1: deb [arch=amd64] https://repo.skype.com/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/teams.list 
           1: deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main
           Active apt repos in: /etc/apt/sources.list.d/teamviewer.list 
           1: deb https://linux.teamviewer.com/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/webupd8team-y-ppa-manager-focal.list 
           1: deb http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu focal main
Info:      Processes: 415 Uptime: 5h 07m Memory: 15.49 GiB used: 5.39 GiB (34.8%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.3.0 alt: 8/9 clang: 10.0.0-4ubuntu1 Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
Bus 002 Device 003: ID 272a:0080 StarLeaf Ltd.           USB3.0 Hub             
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0408:a060 Quanta Computer, Inc. HD Webcam
Bus 001 Device 030: ID 2109:8888 VIA Labs, Inc. 
Bus 001 Device 029: ID 272a:0081  USB 2.0 Hub
Bus 001 Device 028: ID 0bda:8152 Realtek Semiconductor Corp. RTL8152 Fast Ethernet Adapter
Bus 001 Device 027: ID 1a40:0801 Terminus Technology Inc. USB 2.0 Hub
Bus 001 Device 005: ID 8087:0aaa Intel Corp. 
Bus 001 Device 022: ID 0fce:d1e6 Sony Ericsson Mobile Communications AB 
Bus 001 Device 021: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 020: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
Bus 001 Device 019: ID 1366:0105 SEGGER USB2.0 Hub
Bus 001 Device 017: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 004: ID 05e3:0752 Genesys Logic, Inc. USB2.0 Hub
Bus 001 Device 002: ID 05e3:0618 Genesys Logic, Inc. USB2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
00:00.0 Host bridge: Intel Corporation Coffee Lake HOST and DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (Whiskey Lake)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Point-LP Thermal Controller (rev 30)
00:14.0 USB controller: Intel Corporation Cannon Point-LP USB 3.1 xHCI Controller (rev 30)
00:14.2 RAM memory: Intel Corporation Cannon Point-LP Shared SRAM (rev 30)
00:14.3 Network controller: Intel Corporation Cannon Point-LP CNVi [Wireless-AC] (rev 30)
00:15.0 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP Serial IO I2C Controller #0 (rev 30)
00:15.1 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP Serial IO I2C Controller #1 (rev 30)
00:16.0 Communication controller: Intel Corporation Cannon Point-LP MEI Controller #1 (rev 30)
00:17.0 SATA controller: Intel Corporation Cannon Point-LP SATA Controller [AHCI Mode] (rev 30)
00:1c.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #5 (rev f0)
00:1d.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #9 (rev f0)
00:1d.4 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #13 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Cannon Point-LP LPC Controller (rev 30)
00:1f.3 Audio device: Intel Corporation Cannon Point-LP High Definition Audio Controller (rev 30)
00:1f.4 SMBus: Intel Corporation Cannon Point-LP SMBus Controller (rev 30)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP SPI Controller (rev 30)
01:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX150] (rev a1)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)
02:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
03:00.0 Non-Volatile memory controller: Realtek Semiconductor Co., Ltd. Device 5762 (rev 01)
I inserted the hub before I ran the commnad and also I have another hub with lots of devices attached as you can see :D

I will also make sure secure boot is disabled. I don't have any knowledge about secure boot - could someone explain(or share resource) what it's supposed to do?

Edit: I opened the secure boot link which didn't notice before - so it seems that secure boot just disables loading untrusted drivers?

Thanks :)
Reddog1
Level 7
Level 7
Posts: 1935
Joined: Wed Jun 01, 2011 2:12 pm

Re: USB type-C hub driver error

Post by Reddog1 »

Disable Windows Fast Startup. Fast Startup keeps Windows kernel drivers loaded into system memory and triggers during the system startup sequence. A portion of the Windows kernel is loading at the same time the Linux kernel is loading. That's a problem.....
Funtast
Level 1
Level 1
Posts: 7
Joined: Mon May 17, 2021 5:46 am

Re: USB type-C hub driver error

Post by Funtast »

It's not the fast startup unfortunatelly - I disabled it and the problem persists. I am pretty sure that when it was enabled, by restarting the machine instead of using shut down button, I avoided the fast startup.
User avatar
MartyMint
Level 7
Level 7
Posts: 1730
Joined: Thu Dec 27, 2012 10:50 pm

Re: USB type-C hub driver error

Post by MartyMint »

Does your laptop support "HDMI over USB-C"? Not all of them do.
Funtast
Level 1
Level 1
Posts: 7
Joined: Mon May 17, 2021 5:46 am

Re: USB type-C hub driver error

Post by Funtast »

MartyMint wrote: Tue Jun 22, 2021 5:20 pm Does your laptop support "HDMI over USB-C"? Not all of them do.
Yes indeed it does not support USB-C DisplayPort Alt Mode, but my dongle has usb hub and ethernet which I want to use.

I finally found a solution to my problem

Code: Select all

cd /sys/devices/pci0000:00/0000:00:14.0/usb2
cat busnum 
2
cat idProduct 
0003
cat idVendor 
1d6b

Code: Select all

usb-devices
#here I was expecting Port=02
T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=10000 MxCh= 0
D:  Ver= 3.10 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev=05.11
S:  Manufacturer=Linux 5.11.0-25-generic xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=0000:00:14.0
C:  #Ifs= 0 Cfg#= 0 Atr= MxPwr=
so I added a udev rule to disable this device and now the hub and ethernet adapter are working and I no longer get:
"usb usb2-port2: Cannot enable. Maybe the USB cable is bad?"

Code: Select all

echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="1d6b", ATTRS{idProduct}=="0003", ATTR{authorized}="0"' > sudo tee /etc/udev/rules.d/disable_usb_hdmi.rules
Hopefully someone may find this helpful - I know I had to search through everything to find what I need to disable. Also I still believe this is linux kernel bug and the usb driver should just skip initialization of this speciffic part of my dongle. If someone has more experience reporting bugs to the kernel developers, he should share where and how I can report it

Cheers!
Funtast
Level 1
Level 1
Posts: 7
Joined: Mon May 17, 2021 5:46 am

Nevermind the problem was the r8152 driver

Post by Funtast »

Actually the problem didn't stop after my last fix. So after more investigation I found this - https://bugzilla.kernel.org/show_bug.cgi?id=200977

Now it seems the r8152 kernel module causes the issue. I have recompilled this driver - https://github.com/wget/realtek-r8152-linux but the problem is still not resolved.

Any ideas what I can try next? I really want to use this hub - it's too convenient.

Thanks!
User avatar
Kris345
Level 5
Level 5
Posts: 536
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: USB type-C hub driver error

Post by Kris345 »

I just fixed a problem I had with printers not being recognized if plugged to a C hub. Solution was to use an adapter C to A and plug an A hub to it, OR get a different C hub. In this case I switched from an Inland to a Aluratek C hub. In any situation things worked perfectly in win10 but I had to get a different hub to make it work in Mint. No clue as to why.
-- ASUS Prime Z790-V WIFI, I9-12900k, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-- ThinkPad P15s-Gen1-20T4-002KUS, i7-10510U, UEFI/GPT, 16GB, Sammy 970 EVO Plus 500GB M.2.
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
Funtast
Level 1
Level 1
Posts: 7
Joined: Mon May 17, 2021 5:46 am

The problem seems to be resolved

Post by Funtast »

https://bugzilla.kernel.org/show_bug.cgi?id=200977#c42

It seems that the issue is gone in kernel 5.14

To install it on Mint 20.2 I added this ppa - https://launchpad.net/~tuxinvader/+arch ... s-mainline and installed linux-generic-5.14

Cheers
User avatar
Kris345
Level 5
Level 5
Posts: 536
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: [Solved] USB type-C hub driver error

Post by Kris345 »

That's good to hear. Thanks!
-- ASUS Prime Z790-V WIFI, I9-12900k, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-- ThinkPad P15s-Gen1-20T4-002KUS, i7-10510U, UEFI/GPT, 16GB, Sammy 970 EVO Plus 500GB M.2.
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
Locked

Return to “Hardware Support”