You are not logged in.

#1 2010-09-18 04:08:06

briff
Member
From: Chicago
Registered: 2010-08-26
Posts: 18

How to turn off USB Auto Suspend

I used powertop which suggested turning on the usb suspend feature. I told powertop to turn it on. Now I can't turn it off! it's really annoying because I use a usb mouse, and it take a few seconds before it will work now every time I stop using it. How can I disable this feature?

Last edited by briff (2010-09-18 04:09:00)

Offline

#2 2010-09-18 04:27:50

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: How to turn off USB Auto Suspend

Look for these files:

/etc/modprobe.conf
/etc/modprobe.d/modprobe.conf
/etc/modprobe.d/options

And check if they have "options usbcore autosuspend=1" inside.

Offline

#3 2011-06-29 20:43:39

Zucca
Member
From: KUUSANKOSKI, Finland
Registered: 2009-02-26
Posts: 135

Re: How to turn off USB Auto Suspend

*BUMP*
Not working for me. I'm unable to disable USB autosuspend. Any device I plug, while on battery power, does not work and after plugging kworker starts to eat my CPU.
Waiting for about ten minutes my laptop finally recognizes the device.

$ sudo lshw -sanitize -short
H/W path               Device     Class       Description
=========================================================
                                  system      Aspire 1810TZ (Montevina_Fab)
/0                                bus         JM11-MS
/0/0                              memory      1MiB BIOS
/0/16                             processor   Genuine Intel(R) CPU           U4100  @ 1.30GHz
/0/16/17                          memory      2MiB L2 cache
/0/16/19                          memory      32KiB L1 cache
/0/18                             memory      32KiB L1 cache
/0/1a                             memory      4GiB System Memory
/0/1a/0                           memory      2GiB SODIMM DDR2 Synchronous 667 MHz (1.5 ns)
/0/1a/1                           memory      2GiB SODIMM DDR2 Synchronous 667 MHz (1.5 ns)
/0/100                            bridge      Mobile 4 Series Chipset Memory Controller Hub
/0/100/2                          display     Mobile 4 Series Chipset Integrated Graphics Controller
/0/100/2.1                        display     Mobile 4 Series Chipset Integrated Graphics Controller
/0/100/1a                         bus         82801I (ICH9 Family) USB UHCI Controller #4
/0/100/1a.7                       bus         82801I (ICH9 Family) USB2 EHCI Controller #2
/0/100/1b                         multimedia  82801I (ICH9 Family) HD Audio Controller
/0/100/1c                         bridge      82801I (ICH9 Family) PCI Express Port 1
/0/100/1c/0            eth0       network     AR8131 Gigabit Ethernet
/0/100/1c.3                       bridge      82801I (ICH9 Family) PCI Express Port 4
/0/100/1c.3/0          wlan0      network     Centrino Wireless-N 1000
/0/100/1d                         bus         82801I (ICH9 Family) USB UHCI Controller #1
/0/100/1d.1                       bus         82801I (ICH9 Family) USB UHCI Controller #2
/0/100/1d.2                       bus         82801I (ICH9 Family) USB UHCI Controller #3
/0/100/1d.7                       bus         82801I (ICH9 Family) USB2 EHCI Controller #1
/0/100/1e                         bridge      82801 Mobile PCI Bridge
/0/100/1f                         bridge      ICH9M-E LPC Interface Controller
/0/100/1f.2            scsi0      storage     ICH9M/M-E SATA AHCI Controller
/0/100/1f.2/0.0.0      /dev/sda   disk        320GB Hitachi HTS54503
/0/100/1f.2/0.0.0/1    /dev/sda1  volume      125MiB Linux filesystem partition
/0/100/1f.2/0.0.0/2    /dev/sda2  volume      47GiB EXT4 volume
/0/100/1f.2/0.0.0/3    /dev/sda3  volume      1953MiB Linux swap volume
/0/100/1f.2/0.0.0/4    /dev/sda4  volume      248GiB Extended partition
/0/100/1f.2/0.0.0/4/5  /dev/sda5  volume      9766MiB Linux filesystem partition
/0/100/1f.2/0.0.0/4/6  /dev/sda6  volume      210GiB Linux filesystem partition
/0/100/1f.2/0.0.0/4/7  /dev/sda7  volume      28GiB Linux filesystem partition
/0/100/1f.3                       bus         82801I (ICH9 Family) SMBus Controller
/1                                power       OEM_Define4

I'm on 2.6.39-ARCH x86_64

EDIT: Sometimes waiting for devices to be recognized doesn't work. kworker just keeps on running. I wonder if this is a kernel bug on some hardware?

Last edited by Zucca (2011-06-29 22:36:20)


K.i.s.s. <3

Offline

#4 2011-11-23 23:01:49

jrichter
Member
Registered: 2011-11-23
Posts: 4

Re: How to turn off USB Auto Suspend

Have you tried looking in /etc/laptop-mode/conf.d/usb-autosuspend.conf for config options?

Offline

#5 2011-11-24 05:22:38

mjv196
Member
Registered: 2011-11-22
Posts: 11

Re: How to turn off USB Auto Suspend

Try putting this line:

CONTROL_USB_AUTOSUSPEND=0

in /etc/laptop-mode/conf.d/usb-autosuspend.conf

Offline

#6 2011-11-24 05:58:52

Zucca
Member
From: KUUSANKOSKI, Finland
Registered: 2009-02-26
Posts: 135

Re: How to turn off USB Auto Suspend

I disabling it on modprobe and laptop-mode might work.
I got this solved a long time ago. I also added some new parameters to kernel.

Now I don't have auto-suspend on no more. kworker problem also vanished.
Thanks.


K.i.s.s. <3

Offline

#7 2012-12-23 10:59:57

hongster
Member
Registered: 2009-02-27
Posts: 37
Website

Re: How to turn off USB Auto Suspend

Zucca wrote:

I disabling it on modprobe and laptop-mode might work.
I got this solved a long time ago. I also added some new parameters to kernel.

Now I don't have auto-suspend on no more. kworker problem also vanished.
Thanks.

How did you disable autosuspend in modprobe? By setting usbcore.autosuspend to "0"? What other parameters were configure to solve this problem?

I am experiencing same issue. In battery mode, the USB device is not usable if it is not attached on boot. Disabling USB autosuspend in laotop-mode conf does not help.

Offline

#8 2012-12-23 11:09:47

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: How to turn off USB Auto Suspend

briff wrote:

usb suspend

See thread.

Offline

Board footer

Powered by FluxBB