Re: USB autosuspend and turning of usb pendrive leds
Hans de Goede <[email protected]>
| Newsgroups | gmane.linux.usb.devel,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
Alan Stern wrote: > 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 > I'm afraid that that doesn't work for usb mass-storage devices. Here is what I did: 1) kill hal 2) insert usb stick -> led lights 3): echo -n 1 > /sys/bus/usb/devices/.../power/autosuspend echo -n auto > /sys/bus/usb/devices/.../power/level 4) wait Nothing happens, where as sending "suspend" to power/level does turn the led off. Now call me naive, but I would expect a mass-storage devices with no partitions mounted to autosuspend when autosuspend is enabled for that device. And yes I'm pretty sure nothing else is talking to the device. As usual keep please me CC-ed as I'm not on the list. Regards, Hans ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel