[linux-usb-devel] [PATCH] USB: Only enable autosuspend by default on certain device classes

[linux-usb-devel] [PATCH] USB: Only enable autosuspend by default on certain device classes

Post by Pete Zaitc » Sun, 05 Aug 2007 04:40:11



All of mine work. I'm wondering if this has something to do with
a hub or motherboard... How should we test it? Tried plugging elsewhere?

-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

1. [linux-usb-devel] USB autosuspend and turning of usb pendrive leds

2. [linux-usb-devel] USB autosuspend and turning of usb pendrive leds


The correct answer is that HAL should top polling while the device is
suspended.

In kernels starting with 2.6.23-rc6, the correct way to enable
autosuspend for a USB device is basically like this:

echo D >/sys/bus/usb/devices/.../power/autosuspend
echo auto >/sys/bus/usb/devices/.../power/level

where D is the time (in seconds) the device should remain idle before
it is autosuspended. An autosuspended device will be woken up to
respond to polls. (Note however that in this kernel, autosuspend
support for USB mass-storage devices was removed because it can
cause problems related to spinning down disk drives.)

If instead you do

echo suspend >/sys/bus/usb/devices/.../power/level

it will simply suspend the device immediately. The device will not be
woken up automatically and attempts to poll it (or do anything else)
will fail.

Alan Stern

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/

3. [linux-usb-devel] [PATCH 1/9] USB usbfs: take a reference to the usb device

4. [linux-usb-devel] [PATCH 1/9] USB usbfs: take a reference to the usb device

5. [linux-usb-devel] [PATCH 1/9] USB usbfs: take a reference to the usb device

6. [linux-usb-devel] usb-storage autosuspend bug?

7. [linux-usb-devel] spontaneous disconnect with "usb-storage: implement autosuspend"

8. [linux-usb-devel] spontaneous disconnect with "usb-storage: implement autosuspend"

9. [linux-usb-devel] spontaneous disconnect with "usb-storage: implement autosuspend"

10. [linux-usb-devel] converting appletouch to usb autosuspend...

11. [linux-usb-devel] spontaneous disconnect with "usb-storage: implement autosuspend"

12. [linux-usb-devel] spontaneous disconnect with "usb-storage: implement autosuspend"

13. [linux-usb-devel] [PATCH 2/2] usbatm: Detect usb device shutdown and ignore failed urbs.

14. [linux-usb-devel] [PATCH 2/2] usbatm: Detect usb device shutdown and ignore failed urbs.

15. [linux-usb-devel] [PATCH] add support for PANJIT TouchSet USB Touchscreen Device