Perhaps the issue will not be solved, but I got during examination something like a "spring clean" of my system (Bios update, DKMS driver for r8152 installed, replaced thunderbird snap by apt).
Ubuntu MATE comes with a pre-installed tlp
package for laptop battery power management.
Check your /etc/tlp.conf
config file and follow the troubleshooting guide:
2 Likes
Common information did not help ! Only the SW developer who did, turn Off USB, can help !
No, this is not just 'common information'. This is a detailed instruction, nicely written. Your hardware may not work properly with the default tlp
settings. You can edit your /etc/tlp.conf
config file and change some settings.
Gloster10:
information did not help
Have you tried anything? Settings like USB_AUTOSUSPEND
look promising. Without actions on your part, nothing will happen, because you are the one with the hardware.
The development repository is here:
TLP - Optimize Linux Laptop Battery Life
3 Likes
An important hint by the system :
Kernel log after power cable unplugged /var/log/kernel.log:
2025-05-28T05:09:40.865649+02:00 Laptop2 kernel: xhci_hcd 0000:03:00.3: WARNING: Host System Error
2025-05-28T05:10:05.566406+02:00 Laptop2 kernel: ata1: SATA link down (SStatus 0 SControl 300)
Search for "Host System Error" with the result :
add new issue here :
opened 05:15AM - 16 Jun 25 UTC
[x] I've read and accepted the [Bug Reporting Howto](https://github.com/linrunne… r/TLP/blob/master/.github/Bug_Reporting_Howto.md)
[x] I've provided all required `tlp-stat` outputs via [Gist](https://gist.github.com/) (see below)
All USB ports will be switched of.
Kernel log after power cable unplugged /var/log/kernel.log:
2025-05-28T05:09:40.865649+02:00 Laptop2 kernel: xhci_hcd 0000:03:00.3: WARNING: Host System Error
2025-05-28T05:10:05.566406+02:00 Laptop2 kernel: ata1: SATA link down (SStatus 0 SControl 300)
During unplugged power cable :
To mount an USB-Stick is not possible
The script does not help, see below, all USB-Ports still off.
Power cable plugged :
All USB ports still off.
The script helps to get the USB-Ports :
`#!/bin/sh
for port in $(lspci | grep USB | cut -d' ' -f1); do
echo -n "0000:${port}"| sudo tee /sys/bus/pci/drivers/xhci_hcd/unbind;
sleep 5;
echo -n "0000:${port}" | sudo tee /sys/bus/pci/drivers/xhci_hcd/bind;
sleep 5;
done
USB port as example, HW, driver :
`id:
usb:0
Beschreibung: USB controller
Produkt: Raven USB 3.1
Hersteller: Advanced Micro Devices, Inc. [AMD]
Physische ID:
0.3
Bus-Informationen:
pci@0000:03:00.3
Version: 00
Breite: 64 bits
Takt: 33MHz
Fähigkeiten: pm pciexpress msi msix xhci bus_master cap_list
Konfiguration:
driver = xhci_hcd
latency = 0
Ressourcen:
irq : 31
memory : fca00000-fcafffff`
tlp status before and after power cable unplugged :
`tlp-stat -u
--- TLP 1.6.1 --------------------------------------------
+++ USB
Autosuspend = disabled
Device allowlist = (not configured)
Device denylist = (not configured)
Exclude audio = enabled
Exclude bluetooth = disabled
Exclude phones = disabled
Exclude printers = enabled
Exclude WWAN = disabled
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 001 Device 002 ID 0bda:5411 control = auto, autosuspend_delay_ms = 0 -- Realtek Semiconductor Corp. RTS5411 Hub (hub)
Bus 001 Device 003 ID 05e3:0610 control = auto, autosuspend_delay_ms = 0 -- Genesys Logic, Inc. Hub (hub)
Bus 001 Device 004 ID 2109:0711 control = on, autosuspend_delay_ms = 2000 -- VIA Labs, Inc. VL711 SATA 6Gb/s bridge (usb-storage)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
Bus 002 Device 002 ID 0bda:0411 control = auto, autosuspend_delay_ms = 0 -- Realtek Semiconductor Corp. Hub (hub)
Bus 002 Device 003 ID 05e3:0616 control = auto, autosuspend_delay_ms = 0 -- Genesys Logic, Inc. hub (hub)
Bus 002 Device 004 ID 0bda:8153 control = on, autosuspend_delay_ms = 2000 -- Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter (r8152)
Bus 002 Device 005 ID 1058:25a3 control = on, autosuspend_delay_ms = 2000 -- Western Digital Technologies, Inc. Elements Desktop (WDBWLG) (usb-storage)
Bus 002 Device 006 ID 152d:0578 control = on, autosuspend_delay_ms = 2000 -- JMicron Technology Corp. / JMicron USA Technology Corp. JMS578 SATA 6Gb/s (uas)
Bus 002 Device 007 ID 1058:25a3 control = on, autosuspend_delay_ms = 2000 -- Western Digital Technologies, Inc. Elements Desktop (WDBWLG) (usb-storage)
Bus 002 Device 008 ID 1058:25ee control = on, autosuspend_delay_ms = 2000 -- Western Digital Technologies, Inc. My Book 25EE (usb-storage)
Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 2.0 root hub (hub)
Bus 003 Device 002 ID 0bda:0129 control = auto, autosuspend_delay_ms = 2000 -- Realtek Semiconductor Corp. RTS5129 Card Reader Controller (rtsx_usb)
Bus 003 Device 003 ID 05e3:0608 control = auto, autosuspend_delay_ms = 0 -- Genesys Logic, Inc. Hub (hub)
Bus 003 Device 004 ID 13d3:3529 control = auto, autosuspend_delay_ms = 2000 -- IMC Networks Bluetooth Radio (btusb)
Bus 003 Device 005 ID 0408:3046 control = auto, autosuspend_delay_ms = 2000 -- Quanta Computer, Inc. USB2.0 VGA UVC WebCam (uvcvideo)
Bus 004 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms = 0 -- Linux Foundation 3.0 root hub (hub)
`
My system Ubuntu-Mate 24.04.02
What I expect :
Power cable unplugged, All USB ports are available, To mount an USB-stick is possible.
No Host System Error anymore after unplugged
Steps to reproduce the unexpected behavior:
1. Does the problem occur on battery or AC or both?
Both if power cable unplugged, see description above
3. Actions to reproduce the behaviour
power cable unplugged, plugged again, no USB ports available
5. Shell commands entered and their output *including error message(s)*
See above var log
7. **Full output of `tlp-stat` via https://gist.github.com/ for *all* matching cases of 1** (not as file attachment, no screenshots)**Additional context**
see above
Add any other context about the problem here.
Removed all USB devices (e.g.: external HDD (own power supply), ...), no USB-ports available anymore.
Battery status = 60%
If there is any description missing, please tell me what output do you want to see.