Public bug reported:

Title: Critical failure of USB peripherals (AMD xHCI controller) when
changing the power source (AC/Battery) on a laptop running Ubuntu.

Problem Description:
When the laptop charger is unplugged while Ubuntu is running, all connected USB 
peripherals are immediately disabled. When the charger is plugged back in, the 
peripherals remain disabled. Only a complete system reboot restores USB 
functionality. The peripherals work correctly if the system boots with AC power 
only or battery power only.
Relevant Hardware:

    CPU/Chipset: AMD Raven Ridge / Raven 2 (Confirmed by lspci and powertop 
output)
    USB Controller: AMD Raven USB 3.1 (xhci_hcd at 0000:05:00.3)

Key Symptoms (from journalctl -f):
When the failure occurs, the kernel reports the following critical error:
kernel: xhci_hcd 0000:05:00.3 warning host system error
This indicates a host system (hardware/firmware) failure in managing the 
PCI/USB bus power state change.
Unsuccessful Solutions Attempted:
The following software solutions have been attempted and verified, all without 
success:

1- Global USB Autosuspend Disablement:

    USB_AUTOSUSPEND=0 was set in TLP.
    usbcore.autosuspend=-1 was set in the GRUB command line.
    Verification: cat /sys/module/usbcore/parameters/autosuspend returns -1. 
The problem persists.

2- TLP and power-profiles-daemon configuration:

    Specific USB devices were configured in the TLP blacklist.
    The tlp.service service was successfully unmasked and enabled.
    Power-profiles-daemon was purged (apt purge) to avoid conflicts.
    Result: The issue persists.

3- Firmware/BIOS update:

    The laptop's firmware has been updated to the latest version available from 
the manufacturer.
    Result: The problem persists.

4- Automating USB Controller Restart (Udev/Systemd):

    It was manually verified that the commands echo ... | sudo tee .../unbind 
and bind temporarily restore USB functionality (only when the laptop is 
connected to AC power).
    An attempt was made to automate this using custom udev rules and a systemd 
service.
    Result: Automation fails; there appears to be an issue with the Udev 
runtime environment or event timing, or the command does not work on battery 
power.

5- Advanced Kernel Parameters (GRUB CMDLINE):

    The parameters pci=noacpi acpi_osi=Linux idle=nomwait were added to the 
GRUB command line.
    Result: pci=noacpi caused a fatal error during boot, confirming that the 
problem is deeply rooted in the hardware's PCI/ACPI interface.

Conclusion:
The problem appears to be a power management error at the firmware level or a 
bug in the Linux xhci_hcd driver for the specific AMD Raven Ridge chipset, 
which is not fixed by standard software configuration and requires attention 
from Linux kernel developers or a specific patch.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: linux-image-6.14.0-36-generic 6.14.0-36.36~24.04.1
ProcVersionSignature: Ubuntu 6.14.0-36.36~24.04.1-generic 6.14.11
Uname: Linux 6.14.0-36-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC1:  titoux     3859 F.... wireplumber
 /dev/snd/controlC0:  titoux     3859 F.... wireplumber
 /dev/snd/seq:        titoux     3852 F.... pipewire
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun Nov 23 01:45:06 2025
InstallationDate: Installed on 2025-11-22 (0 days ago)
InstallationMedia: Ubuntu 24.04.3 LTS "Noble Numbat" - Release amd64 
(20250805.1)
MachineType: HP HP Laptop 15-db0xxx
ProcEnviron:
 LANG=es_ES.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
ProcFB: 0 simpledrmdrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.14.0-36-generic 
root=UUID=185bfaf3-7867-4286-a757-1a4def8a1f44 ro recovery nomodeset 
dis_ucode_ldr
RelatedPackageVersions:
 linux-restricted-modules-6.14.0-36-generic N/A
 linux-backports-modules-6.14.0-36-generic  N/A
 linux-firmware                             20240318.git3b128b60-0ubuntu2.21
SourcePackage: linux-hwe-6.14
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/24/2024
dmi.bios.release: 15.43
dmi.bios.vendor: Insyde
dmi.bios.version: F.43
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: 84AE
dmi.board.vendor: HP
dmi.board.version: 86.32
dmi.chassis.asset.tag: Chassis Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: HP
dmi.chassis.version: Chassis Version
dmi.ec.firmware.release: 86.32
dmi.modalias: 
dmi:bvnInsyde:bvrF.43:bd04/24/2024:br15.43:efr86.32:svnHP:pnHPLaptop15-db0xxx:pvrType1ProductConfigId:rvnHP:rn84AE:rvr86.32:cvnHP:ct10:cvrChassisVersion:sku4UA32EA#ABE:
dmi.product.family: 103C_5335KV HP Notebook
dmi.product.name: HP Laptop 15-db0xxx
dmi.product.sku: 4UA32EA#ABE
dmi.product.version: Type1ProductConfigId
dmi.sys.vendor: HP

** Affects: linux-hwe-6.14 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2132236

Title:
  USB ports disabled by removing the power supply

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-hwe-6.14/+bug/2132236/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to