View Single Post
Old 05-29-2012, 07:24 AM   #12
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by Rod Whiteley View Post
... I notice that when my computer goes to stand-by while connected, my Kindle appears to do the same, and when my computer wakes up Kindle goes back to USB drive mode...
Your host PC is probably powering down the USB port, as part of its "Green" energy-saving features. You should be able to disable that in your BIOS and/or in your Windows control panel. Your kindle cannot charge from a USB port that is NOT supplying power.

How to reset the USB device(s) from (host PC) software to force redetect:
http://stackoverflow.com/questions/9...he-windows-api
Quote:
You can do this by ejecting the device through the CfgMgr API. For example, to go over all USB hubs and eject all devices:

Find all devices having device interface GUID_DEVINTERFACE_USB_HUB with SetupDiGetClassDevs(... DIGCF_DEVICEINTERFACE).
Enumerate over the returned device information set (SetupDiEnumDeviceInfo).
For each device, get the DevInst member:
Invoke CM_Get_Child(DevInst) and then CM_Get_Sibling repeatedly to go over all child nodes of the hub (i.e. the USB devices).
For each child node, call CM_Request_Device_Eject.

Last edited by geekmaster; 05-29-2012 at 08:41 AM.
geekmaster is offline   Reply With Quote