How to disable usb ports falling asleep. Prevent USB devices from being disconnected while Windows is idle. Checking universal serial bus controllers "USB"

Read how to diagnose and fix a broken USB port on a computer or laptop. Ways to solve the problem at home. Recently, the amount of information surrounding us has increased enormously. We receive information from everywhere: personal computers, Cell phones, Internet, television, radio, etc. The main types of professional activities have been completely, or for the most part, transferred to the use of computer devices. Documentation, archives, correspondence, databases, etc. - This is only a small part of where personal computers are used. The main requirements for computer devices are their speed, reliability and the ability to store large amounts of information.

One of the main roles in modern world The mobility of information and the ability to access it at any time plays a role. There is often a need to use certain documents in the most different places, and it is necessary that access to information be constant.

Recently, cloud data storage has become very popular, allowing you to store a large amount of personal information and provide access to it at any time. However, if the user, for any reason, does not want to store information in cloud storage, for example, to protect it from possible access third parties or possible hacking, then, in this case, he uses external "USB drives" and disks connected to the computer via « USB port» .

This is quite convenient, since manufacturers of computer devices supply their products with a sufficient amount "USB ports". And the user can always get or download necessary information to your device via this "USB connection".

However, not in all cases the process of exchanging information through "USB port" may end successfully. It often happens that the day before you connected "USB drive" to the computer, but today it is not detected. However, this disk works on others "USB ports" your computer. Then, probably, the problem may be directly in a certain "USB port".

This is one of those computer problems that happens so rarely that users tend to blame it on themselves. "USB drive". Therefore, they simply switch it to another place and continue working. Without assuming that "USB port" may be faulty and not given proper attention.

However "USB devices" are still at the peak of their popularity and show no signs of slowing down. "USB flash drives", "USB chargers" for your phone, "USB" to connect "iPod", "USB coffee warmers", "USB" for connecting additional devices (for example, lamp, camera, microphone, etc.) - as you can see, "USB connection" used everywhere! Therefore, it is imperative that all your ports are in working order.

Below we will present certain steps that will help you check your "USB port" for a problem of definition "USB devices", and offer some tips to fix it. After each action you perform, check to see if the problem is resolved. If the action does not help, then move on to the next one.

A prerequisite for testing and troubleshooting "USB port" is a requirement to login "Windows" With account administrator. If the computer is your own personal computer, then you are most likely already logged in with that account. For a work (office) computer, you will have to ask your system administrator for help.

Physical examination

The first thing you need to do is check "USB port" for physical damage.

A simple test is to connect your "USB drive" into the port and see how easily the drive moves in the port connector. But be careful not to cause an additional hardware problem if you don't already have one. If you don't know how durable it should be "USB port", perform the same action on the control port that you know works and compare them both.

If the amplitude of the swings is large enough and the connector is loose, then go to the end of this article, where we will talk about problems with the equipment "USB port". Otherwise, continue with the following steps.

Restart your computer

Before taking any steps, try old way fix technical problems: turn off your computer and turn it on again. Sometimes this helps by forcing the operating system to scan Hardware, For example "USB port", and restore its functionality.

If this method didn't work, then it's time to use the app.

Use the application

The application contains information about all devices connected or installed on your personal computer, and provides the ability to configure, configure and monitor each of them.

The application window can be opened different ways. As an example, we will show several of these methods, and you can use the one that is most convenient for you.

Method one: Open an application window, for example, right-click on the file explorer shortcut on the desktop "This computer", and select a section from the pop-up menu "Control".


This application allows you to fully manage your computer and related utilities. In the left pane of the application window, select the partition located in the folder in the directory “Computer management (local)”.


Method two: On "Taskbars" In the lower left corner of the desktop, find the button "Start" and right-click on it, or press the keyboard shortcut together "Windows + X". In the pop-up menu that opens, select from the list available applications chapter .

Method three: Press the keyboard shortcut together "Windows + R" and open the dialog box "Run". Enter in the field "Open" team "devmgmt.msc", and then press the key "Enter" on the keyboard or button "OK" to execute the command.


The application will open and you will see the following window:


Verifying Universal Serial Bus Controllers "USB"

The application shows all categories of devices installed on your computer. On this moment you need to view the controller records of the universal serial bus. Click the arrow next to the section to expand the subdevices. You will see a list of available controllers similar to our example:


This list will not have much meaning for you. However, it is important to pay attention to the following entry: "Intel(R) 7 Series/C216 Chipset Family USB Enhanced Host Controller". This is a special type "USB controller" directly for our computer, it will be different for you. But keywords here are "USB Host Controller". Find them in your "Device Manager". If you can't find them, then this may be your problem.

Checking the hardware configuration

Click the button "Update hardware configuration" on the application toolbar under the main menu ribbon shown in the figure below. This will force your computer to recheck all your hardware and update it. This action can help and you will see "USB Host Controller" on your list. If the controller does not appear in the list, it means that the problem has not been resolved.

Removal "USB Host Controllers"

At this point things get a little more complicated. You will have to remove all controllers in the application. Please note that if you are working on a personal computer and your keyboard and mouse are connected to it "USB ports", then after removing the controllers, they will stop working.

In the section, right-click on the first host controller. In the pop-up menu that opens, select a section from the list of available actions "Remove device".


Repeat this process for each remaining "USB Host Controller". Now restart your computer. This will force the computer to reinstall and configure those controllers again, and may be able to fix the controller that is not responding.

Clear

There is a possibility that in "Device Manager" You may see previously installed devices that are no longer connected to your computer. Sometimes device drivers remain installed on your computer long after the device has been disabled. It's time to check and clean the application by removing old and unused drivers.

If this method did not help you, then proceed to the next steps.

Disable

"USB Port Temporary Disable Option" is a power saving option in the operating system "Windows", which suspends the power supplied to "USB device" to increase time battery life computer. This is a good feature that allows you to save power, but in rare cases, this setting may block the connected "USB device".

You can disable "USB Port Temporary Disable Option" two different methods: using the power settings settings and through "Registry Editor".

Method one: Using power settings settings

Open the application in any of the following ways: We have not described everything possible ways, but settled on the most common and most convenient of them.

Method one: Press the button "Start" in the lower left corner of the desktop and open Home custom menu "Windows". In the menu sidebar, click the gear icon. Or use the scroll bar to move the slider down and select from the list installed applications and programs section.


Method two: Right click on the button "Start" or press the keyboard shortcut together "Windows + X" and open the pop-up menu. From the list of available applications, select the section.


Method three: Click in the lower right corner of the desktop on "Taskbars" button "Windows Action Center". A sidebar will appear from the right edge of the screen. At the bottom of the Action Center panel is a preset row of quick action buttons. In your case, select the button.


Method four: Press the keyboard shortcut "Windows + I" together and open the app directly.


In the main application window, select a section "System" shown in the figure above. Then in the window that opens, select section in the left panel. In the right pane, move the scroll bar down to the section "Related Options" and click the text link "Advanced power options".


In the window that opens "Power supply" select text link.



Using the scroll bar, find the section in the main settings window "USB Settings". Expand a section using the control (icon "plus" in a square cell) and then the next section "USB Port Temporary Disable Option". Set parameter settings in cells "On battery" And "Offline" by selecting the value in the pop-up menu opposite each parameter "Forbidden".

Click the buttons "Apply" And "OK" to save parameter settings. Now the system will not temporarily shut down "USB ports" to save energy.

Method two: using the app "Registry Editor"

Note: It is important to remember that any actions with the registry must be performed with great care, as this can lead to irreversible consequences. If changes to the registry are made incorrectly, the operating system may crash, problems may arise with the operation of certain computer services, it may stop loading, or the system may completely fail. Take care of creating it first backup copy registry using built-in application capabilities "Registry Editor". In the window main menu ribbon "Registry Editor" click tab "File", and in the menu that opens, select the section "Export…". Give the copy of the registry a name and save it anywhere you want. Now, if necessary, you can always use your saved copy.

Open dialog box "Run"(for example, by pressing the keyboard shortcut together "Windows + R"), then into the field "Open" enter the command "regedit" and press the button "OK" or key "Enter".


Click the button "Yes" in a User Account Control message "Windows": “Do you want to allow this app to make changes to your device?”, and the application window "Registry Editor" will be open.

In the left pane of the window, navigate to the following key:

You can manually search and open each item along the path to the specified key, or copy the key (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USB\DisableSelectiveSuspend) and paste into address bar windows under the main menu ribbon. This way you can avoid possible errors, since there are many similar directories in the window and it is quite easy to get lost and select the wrong section.

If "USB key" does not exist in your registry, you will have to create it.

To do this, go to the last available key section "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services", then click the tab in the main menu ribbon "Edit". In the pop-up menu that opens, open the submenu "Create" and select "Chapter".


Give the new partition a name "USB". Then in this section in the right pane of the window you need to create a new parameter "DisableSelectiveSuspend". To do this, right-click on an empty space in the window, open the submenu "Create" and select a section "DWORD value (32 bits)".


Now click on your newly created parameter "DisableSelectiveSuspend" right-click and select partition from the pop-up menu "Change…".


In the parameter change window "DWORD" enter in the field "Meaning" figure "1". Then click the button "OK" to save the changes made to the parameter.

Now "USB Port Temporary Disable Option" is disabled on your computer. For the changes you made to take effect, you will need to restart your computer.

Check if your faulty one is working now "USB port"? If not, then probable cause is physical damage to your "USB port".

Fix damaged hardware

If the port still does not work, then it is quite possible that the problem is related to the hardware. "USB ports" quite fragile and "USB flash drives" can act as leverage on them, destroying the electrical connectors inside the ports. This is observed quite often in laptops, when the user puts the laptop in a bag and forgets to take it out "USB drive". Usually such a malfunction can be corrected. You'll likely need to call a computer repair professional to fix the problem, or try to do it yourself by searching for repair methods online. However, the second method is suitable for those people who have enough great experience repair of computer devices.

Conclusion

There are several ways to restore your non-working "USB port". The cheapest and easiest solution is to fix it "USB port" in case of a driver problem or operating system. Even if the problem is identified at the hardware level, it can still be fixed quite simply and inexpensively.

If you have other troubleshooting tips for "USB ports", or have you ever had to repair "USB port", or you know about possible software tools that would help troubleshoot problems "USB port", then let us know about it in your comments.

In fact, this function has been available since Windows 7 and, by and large, the procedure has not changed since then. Let's look at it with an example current version Windows 10: As a rule, by default, the function of temporarily disabling the USB port is activated at least for the power saving mode. Actually, in order to save battery, the system pauses the operation of USB ports during idle moments, so the corresponding settings can be found in the “Power Options” section of the system Control Panel.

We have already discussed how to open the Control Panel in Windows 10 Creators Update. The most convenient way is to use the search bar on the taskbar, where you just need to type “Control Panel”, in which go to the “Power Options” section (if the category display mode is turned on, then first You must click on “Hardware and Sound”). In the window that opens, go to the settings of the desired power supply scheme.

On the next screen, you need to click on the “Change” item Extra options nutrition."

A new window will open with full list additional parameters, in which you need to find the item USB Options > Temporarily Disable USB Port Option and set the value "Forbidden", then click OK to save the changes. The function is turned back on in the same way.

It is worth noting that the above example is not a panacea for all possible problems related to the operation of USB devices, the reasons can be very different, but nevertheless it can help in situations where the problem is related to the operation of this function.

Answer from GENNADY GURIN[guru]
Option 1. Changing BIOS settings: 1) During boot time, go to BIOS (to do this, click Delete key after the computer starts booting) 2) In the BIOS, go to the Power tab 3) Try changing the value of the Suspend Mode parameter (Auto, S1 (POS) Only, S3 Only) the names may differ, look for similar ones with the values ​​S1, S3. 4) Also try enabling/disabling ACPI 2.0 Support → EnabledDisabled Option 2. Prohibiting wake-up from sleep mode using a USB mouse or USB keyboard. Some USB devices do not support sleep correctly Windows mode. The two main devices with which you can wake up from sleep mode are the keyboard and mouse. One of them may be blocking your exit, in which case it should simply be prohibited from doing so. Attention: Do not disable the keyboard and mouse at the same time, otherwise you will not be able to exit it. 1) Launch Device Manager. To do this, go to Start → Run (or Win + R) → devmgmt.msc → OK 2) In Device Manager, expand Mice and other pointing devices or Keyboards 3) Right-click on the USB mouse or USB keyboard and select Properties . 4) Open the Power Management tab. 5) Uncheck Allow this device to wake the computer from sleep mode and click OK. Option 3: Disable sleep/standby mode. 1) Go to Start → Run (Win + R) → powercfg.cpl → OK 2) Select on the left the item Setting sleep mode 3) Set both parameters: Turn off the display and Put the computer into sleep mode, the value is Never. You can also disable the sleep function. Select "Change advanced power settings." Find the Sleep mode in the window, expand Sleep After and set the value of the parameters there to Never If, despite what has been done above, the computer still continues to turn off, then you need to perform some more steps: 4) Download the reg file PowerSettings.reg and apply it. 5) Open the Sleep tab 6) Set the following values ​​for the parameters by opening their tabs: 6.1) Sleep after - value equal to 0, it is identical to the Never value 6.2) Allow the policy required by the system - value Yes (this will prevent automatic transition to standby mode) 6.3) Allow wake timers - Enable (allows you to automatically wake the computer from sleep mode using specified events) 7) If you have one of USB devices for example a mouse, and the second a PS/2 keyboard, then you can disconnect the USB port while the sleep mode is running. Open the USB Settings tab, and in it the tab Option to temporarily disable the USB port and set the value to Allowed. 8) Click OK

Sometimes it becomes necessary to disable USB ports on a computer or laptop in order to limit access by connecting flash drives, hard drives and other USB devices. Disabling USB ports will help prevent the connection of any drives that could be used for theft important information or cause your computer to become infected with a virus and spread harmful software By local network.

Restricting access to USB ports

Let's consider 7 ways, with which you can block USB ports:

  1. Disabling USB through BIOS settings
  2. Changing registry settings for USB devices
  3. Disabling USB ports in Device Manager
  4. Uninstalling USB controller drivers
  5. Using Microsoft Fix It 50061
  6. Usage additional programs
  7. Physically disconnecting USB ports

1. Disabling USB ports through BIOS settings

  1. Sign in BIOS settings.
  2. Disable all items related to the USB controller (for example, USB Controller or Legacy USB Support).
  3. After you have made these changes, you need to save the settings and exit the BIOS. This is usually done using the key F10.
  4. Restart your computer and make sure the USB ports are disabled.

2. Enable and Disable USB Drives Using Registry Editor

If disabling via BIOS does not suit you, you can block access directly in Windows itself using the registry.

The instructions below allow you to block access to various USB drives (for example flash drives), but other devices such as keyboards, mice, printers, scanners will still work.

  1. Open the Start menu -> Run, enter the command " regedit" and click OK to open the Registry Editor.
  2. Continue to next section

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR

  3. On the right side of the window, find the item “ Start” and double-click on it to edit. Enter value " 4 » to block access to USB storage devices. Accordingly, if you enter the value again “ 3 ", access will be reopened.

Click OK, close Registry Editor, and restart your computer.

The above method only works when installed driver USB controller. If for security reasons the driver has not been installed, the "Start" parameter value may be automatically reset to "3" when the user connects USB drive and Windows will install the driver.

3. Disable USB ports in Device Manager

  1. Right-click on the " Computer» and select in context menu"Properties" item. A window will open on the left side of which you need to click on the link “ device Manager».
  2. In the device manager tree, find the item " USB controllers" and open it.
  3. Disable controllers by right-clicking and selecting the "Disable" menu item.

This method doesn't always work. In the example shown in the figure above, disabling the controllers (the first 2 points) did not lead to the desired result. Disabling the 3rd option (USB Mass Storage Device) worked, but it only allows you to disable a single instance of the USB storage device.

4. Removing USB controller drivers

Alternatively, to disable ports, you can simply uninstall USB driver controller. But the disadvantage of this method is that when the user connects a USB drive, Windows will check for drivers and, if they are missing, will offer to install the driver. This in turn will allow access to the USB device.

5. Prevent users from connecting USB storage devices using a Microsoft application

Another way to deny access to USB drives is to use Microsoft Fix It 50061(http://support.microsoft.com/kb/823732/ru - the link may open near the mituta). The essence of this method is that 2 conditions for solving the problem are considered:

  • The USB drive has not yet been installed on the computer
  • The USB device is already connected to the computer

Within the framework of this article, we will not consider this method in detail, especially since you can study it in detail on the Microsoft website using the link given above.

It should also be noted that this method is not suitable for all versions of Windows OS.

6. Using programs to disable/enable access to USB storage devices

There are many programs for setting access restrictions USB ports. Let's consider one of them - the program USB Drive Disabler.

The program has a simple set of settings that allow you to deny/allow access to certain drives. USB Drive Disabler also allows you to configure alerts and access levels.

7. Disconnecting USB from the motherboard

Although physically disconnecting USB ports on motherboard is an almost impossible task, you can disable the ports located on the front or top of the computer case by disconnecting the cable going to the motherboard. This method will not completely block access to USB ports, but will reduce the likelihood of using drives by inexperienced users and those who are simply too lazy to connect devices to the back of the system unit.

! Addition

Denying access to removable media through the Group Policy Editor

In modern Windows versions it is possible to restrict access to removable storage devices (including USB drives) using the local editor group policy.

  1. Run gpedit.msc through the Run window (Win + R).
  2. Go to the next branch " Computer Configuration -> Administrative Templates -> System -> Access to Removable Storage Devices»
  3. On the right side of the screen, find the “Removable drives: Deny read” option.
  4. Activate this option ("Enable" position).

This section of local group policy allows you to configure read, write, and execute access for different classes removable media.

Exploitation