Re: 2.6.23-rc1: USB hard disk broken

From: Alan Stern
Date: Fri Aug 10 2007 - 16:43:36 EST


On Fri, 10 Aug 2007, Dan Zwell wrote:

> Alan,
>
> Yes, that patch worked, and dmesg now shows the device auto-suspending
> and resuming every few seconds. Thanks a lot. I hope you do merge this
> patch or a workaround like it.

I will submit it; we'll see whether anyone objects.

By the way, you can change the constant autosuspend and autoresume
behavior easily enough. All you have to do is:

echo N >/sys/bus/usb/devices/.../power/autosuspend

where "..." is the path for the disk's USB device and N is the number
of seconds the disk should be idle before it gets autosuspended. If
you use -1 for N then the disk will never autosuspend.

Alan Stern

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/