On Mon, 11 Apr 2005, Alvaro Lopez Ortega wrote:

> Hi,
> 
>   I have been trying to turn off a USB device without any kind of
> success.  Actually, I'm wondering if I made some mistake because it
> seems to be implemented and working [1].
> 
>   I have tried to move to D3 state an USB stick and a USB photo camera.

There is no such thing as D3 for USB devices.  The only power states they 
have are "active" and "suspended".

> In any of both cases it didn't work:
> 
>   echo 3 > /sys/bus/usb/devices/x-y/power/state
> 
>   Some suggestions? Am I doing something wrong?
>   Ah! The kernel was compiled with CONFIG_USB_SUSPEND=y

Looks okay to me.  Are you sure it's not working?  How can you tell?  
Remember, the command will suspend your device but won't turn it off.

Try turning on USB verbose debugging in the kernel configuration and then
look at the output from dmesg after you suspend the device.  That should 
tell you exactly what's going on.

Oh, yes -- what version of the kernel are you using?

Alan Stern



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to