Power Delivery failures on Arch Linux typically stem from recent kernel updates altering USB controller behavior or missing firmware for specific hardware. Resolving this requires verifying the current kernel version, checking dmesg logs for xhci_hci errors, and ensuring that no conflicting udev rules are blocking power negotiation. Updating the system packages often restores compatibility with newer host controllers.
Understanding Power Delivery in Linux
USB Power Delivery (PD) allows devices to negotiate higher voltages and currents over a standard USB connection. In Linux, this functionality is managed by the kernel's xhci_hcd driver, which handles the Extended Host Controller Interface for USB 3.0 and later ports. When users report that PD is not working after an update, it usually means the kernel has changed how it initializes these controllers or dropped support for a specific hardware quirk without immediate fallback.
The issue is rarely a complete failure of the USB subsystem but rather a specific breakdown in the communication protocol between the host and the device. This can manifest as the port refusing to provide more than 500mA, failing to enumerate the device entirely, or showing up as a generic low-power device in the system manager. Identifying whether the problem is software-driven or hardware-specific is the first step toward resolution.
Verifying Kernel Version and Updates
Since the problem arose after an update, the most likely culprit is a regression in the mainline kernel or a missing microcode update. You should verify your current kernel version using the following command:
uname -r
If you are running a stable kernel that recently had a point release, check the Arch Linux news page for any known issues related to USB controllers. Sometimes, a simple full system update can resolve transient bugs introduced in minor patches.
sudo pacman -Syu
Ensure that your linux-firmware package is up to date. Many modern laptops and docking stations require specific firmware blobs to enable Power Delivery features. If linux-firmware was not updated alongside the kernel, the necessary microcode may be absent. You can check for pending updates by reviewing the output of pacman -Qu. If linux-firmware is listed, install it immediately.
Checking System Logs for Errors
Detailed error messages are stored in the kernel ring buffer. Use dmesg to filter for USB-related errors that occurred during boot or when plugging in the device. Look for messages containing xhci, usb, or power delivery.
dmesg | grep -i usb
If you see errors such as failed to enable xHCI controller or device descriptor read/64, error -71, it indicates a hardware initialization failure. These errors often point to a mismatch between the kernel driver and the physical hardware state. In some cases, a cold reboot clears the residual charge on the USB bus, allowing the controller to re-initialize correctly.
Additionally, check if the udev rules are functioning correctly. Misconfigured rules can inadvertently block power management features. You can list active USB devices with their attributes using:
lsusb -v
This command provides detailed information about each USB device, including its power capabilities. Compare the reported max power against what your device expects. If the OS reports significantly lower limits than the hardware specification, the issue lies within the kernel's power management policies.
Managing Udev Rules and Kernel Parameters
Sometimes, custom udev rules created for other purposes interfere with standard Power Delivery negotiations. Review your /etc/udev/rules.d/ directory for any files that modify USB permissions or power settings. A common mistake is creating a rule that forces all USB ports into low-power mode to save battery life, which breaks PD compatibility.
If you suspect a kernel parameter is causing the issue, you can try disabling specific USB autosuspend features. Add the following to your bootloader configuration (GRUB or systemd-boot):
usbcore.autosuspend=-1
This disables automatic suspending of USB devices, which can sometimes stabilize Power Delivery connections on unstable hardware. After modifying the bootloader config, regenerate the initramfs and reboot.
When to Consider Hardware Failures
If software troubleshooting fails, the issue may be physical. Check if the USB-C cable supports data and power delivery simultaneously. Many cheap cables only support charging. Furthermore, inspect the port for debris or damage. While less common, firmware bugs in the laptop's EC (Embedded Controller) can also prevent PD activation until a BIOS update is applied.
Frequently Asked Questions
Why did my USB ports stop working after a kernel update?
Kernel updates often change default behaviors for USB controllers to improve stability or security. Newer kernels may disable legacy compatibility modes that older devices relied upon. Always check the Arch Linux news feed for post-update warnings regarding USB subsystem changes.
How do I check if my USB cable supports Power Delivery?
Look for certification marks on the cable packaging, such as "USB-IF Certified" or specifications listing 5A current or 100W power handling. Most standard USB-C to USB-C cables included with phones only support 3A and 60W, which may limit PD negotiation speeds.
Can resetting the BIOS fix Power Delivery issues?
Yes, clearing CMOS or resetting BIOS settings can resolve conflicts where the Embedded Controller retains incorrect power states. This forces the system to re-detect all USB hardware during the next boot sequence, potentially restoring proper negotiation protocols.
Is it safe to use rmmod to unload USB drivers?
No, unloading the xhci_pci module via rmmod will disable all USB 3.0 ports, including your keyboard and mouse, potentially locking you out of the system. Instead, use systemctl restart udev or reboot to reload drivers safely.
What is the difference between USB PD and fast charging?
USB Power Delivery is a protocol that negotiates voltage and current levels dynamically between source and sink. Fast charging is a broader term that may include proprietary protocols like Qualcomm Quick Charge. Linux primarily supports standard USB PD, so proprietary chargers may fall back to slower charging speeds.