On Tue, 22 May 2007, Steev Klimaszewski wrote:

> I have a Motorola KRZR phone, which by default when you plug it in to
> the usb slot charges the phones battery.  When I enable usb suspend,
> after about 3 seconds, instead of continuing charging the phone, the usb
> port goes into suspend.
> 
> While this isn't a showstopper, I was more wondering if this was a bug,
> or working as intended.  I am at work currently, and forgot my usb
> cable, so I can't plug the phone in to get "fresh" output of what
> happens, unfortunately.  But I am more than willing to provide any more
> info that anyone requests.

This is working as intended.  You can prevent the device from being 
automatically suspended in a couple of ways:

If you set the "autosuspend" module parameter for usbcore to 0, then by
default no subsequently plugged-in devices will be suspended.  Or if
you do

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

(fill in the device's address) then that device will not be suspended 
automatically.  If the device has already been suspended and you want 
to wake it up, just run lsusb.

Note that in the 2.6.22 kernel, you need to use -1 instead of 0 for
these values.  Or you can use a simpler approach:

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

If the device has already been suspended, this will wake it up.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to