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 > 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? 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