

#Windows 10 keep drive spinning windows#
Or there is also available the new set of functions PowerCreateRequest, PowerSetRequest and PowerClearRequest designed for Windows 7, but the documentation is confusing and I haven't found any example of their usage at this time. If SetThreadExecutionState(ES_CONTINUOUS or ES_SYSTEM_REQUIRED or Procedure TForm1.Button1Click(Sender: TObject) Stdcall external 'kernel32.dll' name 'SetThreadExecutionState' The usage can be like this, but I'm not sure if this affects also the disk power down timer: typeįunction SetThreadExecutionState(esFlags: EXECUTION_STATE): EXECUTION_STATE This function informs the system that the application is in use and allows you to specify the thread's execution requirements.
#Windows 10 keep drive spinning driver#
Just as a sanity check, I just tried it in the Mac's USB port again, and although the driver is different now (AppleT8103USBXHCI) I see the same behavior with my looping on pmset -g script, where the ports go from USEABLE to None briefly, then back to USEABLE, exactly when the drive spins down and back up.To prevent the system from entering idle mode you may try to use the SetThreadExecutionState function. I had been running this with the drive plugged into a Thunderbolt dock, but I saw the same behavior with it plugged directly into a USB-C port on the MacBook. Do this later, then when windows is finished installing and you have an internet connection it will reactivate automatically, youll see this in settings>update and security>activation.

Hence me constantly hearing the drive spin down then back up almost immediately. An internal or external hard drive not spinning issue occurs due to electrical failure on PCB (Printed Circuit Board) or the read/write head of the drive getting stuck on a platter. You will be aske 3 times to give the key code, just: 1. Within seconds though, they return to normal. So for whatever reason, those USB ports go from "USEABLE" to "None" state, causing the drive to spin down.
