I have one of those 8 in 1 USB-C adapter(in my case it is a Aukey CB-C55) you usually buy to get some extra ports on your laptop.
I’m facing a singular issue: every time I connect this adapter, my laptop completely freezes.
The only way to get the laptop working is forcing a reboot using the power button.
Now you will think that the adapter is broken or not compatible, however I believe this is actually not true because when I turn on my laptop and the USB-C adapter is already connected, everything works just fine.
The issue arises only when I connect the adapter while the laptop is already turned on.
It’s quite annoying I have to remember to connect the adapter before turning on the PC.
I don’t have a valid explanation for this issue, perhaps I should simply get a different adapter.
Is that possible this is a kernel bug?
I’ve noticed some messages on dmesg just before the laptop crashes, one in particular captured my attention:
Posting images means others with similar problems may not find your post with web searches. Please post excerpts from text logs as pre-formatted text (use the </> button from the top line of the text entry panel).
If the device is connected before booting, the device should be enabled before the kernel is loaded. Connecting devices to a running kernel is more complex. Your adapter may trigger loading kernel modules that were not designed to support hot-plugging.
Please show use the output from running inxi -Fzxxin a terminal after booting with the adapter connected (as pre-formatted text).
Have you installed current firmware updates from aukey? Which ports on the adapter are you using? It may be possible to block loading of modules you won’t use.
Also check to make sure your laptop’s firmware is also up to date. Search around with others that have similar messages when using USB or Thunderbolt hubs seems to show that disabling “XHCI HAND-OFF” in your BIOS could be a workaround.
Maybe the device does something a little janky trying to bring up the USB controller or the Ethernet controller and inserting it when the laptop is booted into Fedora is causing to not be happy.
Should the above recommendations not solve the issue, you could consider it a kernel bug indeed, as such messages have been reported (and accepted) against the kernel.
As far as I can see, there is no firmware update for this adapter available on Aukey website. It’s a “dumb” device, I’m not surprised at all
I normally use just the two USB-A ports
Regarding the laptop’s firmware, it is already up to date.
You can try removing the r8152 module after hot-plugging the adapter with sudo modprobe --remove r8152, or a method that doesn’t involve extra steps in the future – block the ethernet module from loading, using RHEL’s How do I prevent a kernel module from loading automatically?.
If you find you need ethernet at some future time, there are “unofficial” drivers such as sbwml r8152 that provide udev rules which may make hot plugging more robust.
Unfortunately, removing the r8152 module with sudo modprobe --remove r8152does not help. The issue still occurs
I didn’t notice any relevant difference in dmesg output.