By default, Windows enables the power saving feature all USB ports known as USB Selective Suspend. This feature is supposed to save power by shutting down USB ports that are only used intermittently.
However, sometimes the USB port does not get turned back on when it is needed or is inadvertently turned off. You can prevent this situation from happening by disabling the USB Selective Suspend feature globally on your PC using the procedure below.
Click the Start button and type "edit power plan" (Swedish: redigera energischema) in the Windows Search box.
Click Change advanced power settings then scroll down to USB settings and click the little plus next to USB selective suspend setting to expand the options.
Change the value to Disabled then click OK to apply changes.
The above steps should be enough for most cases, if USB connection issues persist continue with the following steps:
Open Device Manager by typing the Windows logo key on the keyboard and typing "Device Manager" (Swedish: enhetshanteraren) to bring up the App.
Expand the "Universal Serial Bus" controllers tree.
Double click each entry, then click the "Power Management" tab. Uncheck the option to "Allow the computer to turn off this device to save power". Click OK.
Repeat for all of the devices that have the power management tab available. * (Not all of the entries will have the option and can be ignored.)
Exit Device Manager.