Welcome!
Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

USB auto-suspend

Just as the name says, here is where you can post tips and tricks to share with other users of MEPIS.
Post Reply
User avatar
chrispop99
Forum Guide
Forum Guide
Posts: 2799
Joined: Tue Jan 27, 2009 3:07 pm

USB auto-suspend

#1

Post by chrispop99 » Tue Jan 08, 2019 12:15 pm

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
Test machines:
32-bit non-PAE - Thinkpad T41, 1.6GHz Pentium M, 1GB RAM.
32-bit PAE - DELL Latitude D610, 1.73GHz Pentium M, 2GB RAM.
64-bit - Lenovo T61, 2GHz Core 2 Duo, 2GB RAM
64-bit - Gigabyte Z77P-D3, Intel i3-3220, GeForce 8400 GS, 4GB PC3-12800.

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 24632
Joined: Wed Jul 19, 2006 6:13 am

Re: USB auto-suspend

#2

Post by Jerry3904 » Tue Jan 08, 2019 12:37 pm

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: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, SSD 120 GB, Data 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB
Personal: XPS 13, 4.18.0-19.3-liquorix, 4 GB

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 3980
Joined: Wed Apr 11, 2018 5:09 pm

Re: USB auto-suspend

#3

Post by fehlix » Tue Jan 08, 2019 1:07 pm

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: 2711
Joined: Fri Dec 12, 2008 10:31 am

Re: USB auto-suspend

#4

Post by Richard » Tue Jan 08, 2019 2:06 pm

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.
LT: MX18.2: Thinkpad T430: DualCore, Intel i5-3320M, Ivy Bridge; 8GB RAM; 4.19.0-5-amd64; 119GB SSD 840PRO, Intel Graphics-Audio-Network
NB: MX18.1, antiX17.4: AsusTek EeePC 1005HA: Intel DualCore Atom N270, 1GB RAM, 4.19.0-1-686, 150GB HDD

Post Reply

Return to “Tips&Tricks”