No hotplugging on front USB Asrock Rack X570D4U-2L2T?

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

Borromini

New Member
Aug 25, 2021
19
2
3
I have an X570D4U-2L2T running Debian 11 which does not seem to detect anything plugged into the front USB ports at runtime. I have checked the BIOS settings and the manual, about the only setting I can find is 'Legacy support' for the USB ports and that's been set to enabled (for HID) to be on the safe side. Dmesg doesn't print anything when I insert a USB disk e.g. when the server's running. Lsusb doesn't report anything either. When I boot the server with the USB disk plugged in, it gets detected. Lsusb seems to see all the ports - there's two USB 3.0 ports on the front and two on the back.

Anything I can check to find out what's going wrong here?

Code:
# lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 480M
    |__ Port 5: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
        |__ Port 3: Dev 3, If 0, Class=Communications, Driver=cdc_ether, 480M
        |__ Port 3: Dev 3, If 1, Class=CDC Data, Driver=cdc_ether, 480M
        |__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 4: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 480M

# 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 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
Bus 003 Device 003: ID 046b:ffb0 American Megatrends, Inc. Virtual Ethernet
Bus 003 Device 002: ID 046b:ff01 American Megatrends, Inc. Virtual Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 
Last edited:

deepred

New Member
Sep 22, 2019
6
4
3
I am on Proxmox 7.3 which is based on Debian 11 and using same mainboard. My BIOS settings are (mostly) default and front USB works fine for me with a Kingston DT thumb drive.
Code:
# uname -a
Linux hostname 5.19.17-1-pve #1 SMP PREEMPT_DYNAMIC PVE 5.19.17-1 (Mon, 14 Nov 2022 20:25:12  x86_64 GNU/Linux
# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
# lsusb -tv
/:  Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
/:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 5: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
        ID 046b:ff01 American Megatrends, Inc.
        |__ Port 3: Dev 3, If 0, Class=Communications, Driver=cdc_ether, 480M
            ID 046b:ffb0 American Megatrends, Inc.
        |__ Port 3: Dev 3, If 1, Class=CDC Data, Driver=cdc_ether, 480M
            ID 046b:ffb0 American Megatrends, Inc.
        |__ Port 4: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
        |__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
# lsusb -tv
/:  Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
/:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    |__ Port 4: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
        ID 0951:1666 Kingston Technology DataTraveler 100 G3/G4/SE9 G2/50
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 5: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
        ID 046b:ff01 American Megatrends, Inc.
        |__ Port 3: Dev 3, If 0, Class=Communications, Driver=cdc_ether, 480M
            ID 046b:ffb0 American Megatrends, Inc.
        |__ Port 3: Dev 3, If 1, Class=CDC Data, Driver=cdc_ether, 480M
            ID 046b:ffb0 American Megatrends, Inc.
        |__ Port 4: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
        |__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
Please check cables, front I/O, and device you're trying to connect. Make sure your firmware is up-to-date. ASRock Rack recently published an updated firmware on the X570D4U-L2T2 support page.

EDIT Also check your power management settings in Linux. If I remember correctly you can disable port via sysfs, e.g. here.
 

Borromini

New Member
Aug 25, 2021
19
2
3
Thanks guys I'll give a BIOS update a try first. This is the first of many Linux setups that's ever given me trouble like this (no USB hotplugging), got Debian 11 on plenty of other hardware and no USB hotplugging issues there.
 

Borromini

New Member
Aug 25, 2021
19
2
3
So updating the BIOS didn't change anything, then I started digging... Turned out I had enabled USB powersaving in Linux during the setup phase figuring we wouldn't need the USB. Silly me. All good now!