USB auto-suspend

Here is where you can post tips and tricks to share with other users of MX. Do not ask for help in this Forum.
Post Reply
Message
Author
User avatar
chrispop99
Global Moderator
Posts: 3179
Joined: Tue Jan 27, 2009 3:07 pm

USB auto-suspend

#1 Post by chrispop99 »

Some users on Facebook found they were unable to charge their Android phones. Charging would start, but stop after a few seconds. I was able to replicate the problem with two different Android phones, yet could charge other USB devices.
The problem is related to the auto-suspend feature active in the kernels we use. There is a Wiki article describing how to disable auto-suspend on a device-by-device basis, intended for users of certain scanners, that I would imagine would work for other devices. However for a desktop machine, or a laptop where convenience is more important than battery life, it is possible to disable auto-suspend for all devices by entering the following in a root terminal:

Code: Select all

USB_AUTOSUSPEND=0
Chris
MX Facebook Group Administrator.
Home-built desktop - Core i5 9400, 970 EVO Plus, 8GB
DELL XPS 15
Lots of test machines

User avatar
Jerry3904
Administrator
Posts: 21943
Joined: Wed Jul 19, 2006 6:13 am

Re: USB auto-suspend

#2 Post by Jerry3904 »

Thanks--I wondered what was going on there. Good work tracking it down!
:clap:
It would be best if the user never ran into the problem at all...
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
fehlix
Developer
Posts: 10375
Joined: Wed Apr 11, 2018 5:09 pm

Re: USB auto-suspend

#3 Post by fehlix »

chrispop99 wrote: Tue Jan 08, 2019 12:15 pm

Code: Select all

USB_AUTOSUSPEND=0
There are seem to be some other additional nice parameters related to USB and power auto-suspend
within tlp's default's conf file /etc/default/tlp :

Code: Select all

$ grep -i USB /etc/default/tlp 
# Set to 0 to disable, 1 to enable USB autosuspend feature.
USB_AUTOSUSPEND=1
# Exclude listed devices from USB autosuspend (separate with spaces).
# Use lsusb to get the ids.
# Note: input devices (usbhid) are excluded automatically
#USB_BLACKLIST="1111:2222 3333:4444"
# Bluetooth devices are excluded from USB autosuspend:
USB_BLACKLIST_BTUSB=1
# Phone devices are excluded from USB autosuspend:
USB_BLACKLIST_PHONE=0
# Printers are excluded from USB autosuspend:
USB_BLACKLIST_PRINTER=1
# WWAN devices are excluded from USB autosuspend:
USB_BLACKLIST_WWAN=1
# Include listed devices into USB autosuspend even if already excluded
# Use lsusb to get the ids.
#USB_WHITELIST="1111:2222 3333:4444"
# (workaround for USB devices that cause shutdown problems).
#USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=1
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Richard
Posts: 1577
Joined: Fri Dec 12, 2008 10:31 am

Re: USB auto-suspend

#4 Post by Richard »

Really nice to know about this.
I like having it enabled so it turns off idle, external USB drives when
connected to the laptop, but have noticed phone and/or WhatsApp
get disconnected when idle.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.

Post Reply

Return to “Tips & Tricks by users”