Re: How to Suspend/Resume a usb device

"Felipe Balbi" <[email protected]>
Newsgroups gmane.linux.usb.devel,gmane.comp.lib.libusb.devel.general
Message-ID <[email protected]>
On 7/9/07, Alan Stern <[email protected]> wrote:
> On Mon, 9 Jul 2007, Felipe Balbi wrote:
>
> > Hello all,
> >
> > How could I suspend/resume a usb device using libusb? I saw there's a
> > function for reseting the device but what about suspending/resuming
> > it?
>
> There's no way to do it using libusb or usbfs.  However you can suspend
> or resume a usb device using sysfs.  Starting with 2.6.22, you can do
>
>         echo suspend >/sys/bus/usb/devices/.../power/level
>
> (fill in the device ID) to suspend the device.  Replace the word
> "suspend" with "on" to force the device on permanently (autosuspend
> disabled), and use "auto" to return to normal operation.
>
> If you don't know the device ID but you do know its bus and device
> numbers -- which would be the case if you're starting from libusb --
> I believe you can get the same result using the path:
>
>         /sys/class/usb_device/usbdevB.D/device/power/level

Thanks Alan, I'll try this one ;-)

>
> > And also, does EHCI (on recent linux-linus' git tree) support
> > SINGLE_STEP_GET_DESCRIPTOR and SINGLE_STEP_SET_FEATURE ???
>
> I don't recognize those terms.  What do they refer to?

You can check them at OTG Compliance Program, it's part of the
necessary certification tests for usb hosts. I don't think those are
otg specific but it could be.

>
> Alan Stern
>
>


-- 
Best Regards,

Felipe Balbi
[email protected]

-------------------------------------------------------------------------
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/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.