Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Stop Windows from ever turning off a USB port.

Featured Replies

Windows Device Manager can be used to turn off the allowances of turn offs, but it takes a long long time because there are very many devices listed in Device Manager under HUD (human input devices) and USB (dozens of them). It takes me over 20 minutes and in a few weeks I have to do it again because your choices will reset during windows updates. Another way to do it is in a Power Management setting that is supposed to turn them all off. But in my experience, it doesn't work.

This should work and is permanent. You should google around the internet to verify this code. Because using code is dangerous.

1 Right-click the Windows Start Menu button and select Terminal (Admin) or PowerShell (Admin)

2. Copy the following long command:

Set-CimInstance -Query 'SELECT InstanceName FROM MSPower_DeviceEnable WHERE (Enable = True)' -Namespace 'root\WMI' -Property @{Enable = $false}

  1. Paste it into the blue/black PowerShell window and press Enter

    The execution completes instantly. When it finishes, it will simply move to a new blank line. No success message will pop up, but the setting will be changed for all your devices instantly. Something went wrong if it does not move to a new blank line. Try again.

    If you reopen Device Manager, you will see that the "Allow the computer to turn off this device" checkboxes have all been unchecked across all of your devices.

5800X3D, RTX4070, 600 Watt, one or two 1440p 32" screens, 64 GB RAM, 4 TB  PCle 3 NVMe, Warthog throttle, VKB NXT EVO stick, Honeycomb Alpha yoke, CH quad, 3 Logitech panels, 2 StreamDecks, Desktop Aviator Trim Panel. Crystal Light VR.

 

This is what I use and is tailored for our hobby for flight sim peripherals, HOTAS/yokes, racing wheels, VR headsets USB disconnects, stuttering, disappearing devices, controller sensitivity changes, intermittent freezes

Open PowerShell as admin, just paste the script:

Get-CimInstance -Namespace root/wmi -ClassName MSPower_DeviceEnable |

Where-Object {

    $_.InstanceName -match 'USB'

} |

ForEach-Object {

    Set-CimInstance $_ -Property @{Enable = $false}

}

And this if you prefer

powercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_USB USBSELECTIVE SUSPEND 0

powercfg /SETDCVALUEINDEX SCHEME_CURRENT SUB_USB USBSELECTIVE SUSPEND 0

powercfg /SETACTIVE SCHEME_CURRENT

Edited by LRBS

747 Captain for the last 39 years, and still learning. 

Never had this happen. Are you doing sonneting wrong in your windows settings?

Bill McIntyre

Asus StrixB650E-F Gamer, AMD Ryzen 9 7900X3D, Corsair Titanium DDR5 64GB, Samsung 990 PRO-4TB M.2, (4) 2TB SSD's, Corsair H1150i liquid cooler, RTX 2080TI Founders Edition, (2) LG 34" HD Curved Monitor, Sound Blaster Audigy X, 1Kw PC Power & Cooling Power Supply, Corsair Obsidian Full tower Case. MSFS 2024, WIN11 Pro x64                                                                                                                                             

25 minutes ago, Bigmack said:

Never had this happen. Are you doing sonneting wrong in your windows settings?

It’s not the user causing it. It’s Microsoft’s long-standing “power saving” philosophy, pushed heavily since the Gates era, where the system decides on its own which peripherals should be put to sleep by default — and then often resets those settings again after major updates.

Some connected peripherals have well-written drivers, so the problem may go unnoticed. Others don’t, which leads to random disconnects, unstable behavior, changing sensitivities, or devices failing to wake up properly.

For flight simulation and similar hardware-intensive hobbies, this approach is far from ideal.

747 Captain for the last 39 years, and still learning. 

2 hours ago, LRBS said:

It’s not the user causing it. It’s Microsoft’s long-standing “power saving” philosophy, pushed heavily since the Gates era, where the system decides on its own which peripherals should be put to sleep by default — and then often resets those settings again after major updates.

Some connected peripherals have well-written drivers, so the problem may go unnoticed. Others don’t, which leads to random disconnects, unstable behavior, changing sensitivities, or devices failing to wake up properly.

For flight simulation and similar hardware-intensive hobbies, this approach is far from ideal.

I've never lost any of my usb devices connections so far. And believe me I have dozens of them. I leave my system running 24/7.

Edited by Bigmack

Bill McIntyre

Asus StrixB650E-F Gamer, AMD Ryzen 9 7900X3D, Corsair Titanium DDR5 64GB, Samsung 990 PRO-4TB M.2, (4) 2TB SSD's, Corsair H1150i liquid cooler, RTX 2080TI Founders Edition, (2) LG 34" HD Curved Monitor, Sound Blaster Audigy X, 1Kw PC Power & Cooling Power Supply, Corsair Obsidian Full tower Case. MSFS 2024, WIN11 Pro x64                                                                                                                                             

2 hours ago, Bigmack said:

I've never lost any of my usb devices connections so far. And believe me I have dozens of them. I leave my system running 24/7.

Bill, I believe you—no question. However, each system varies: some work flawlessly, while others are so frustrating you'd want to shoot them. 

747 Captain for the last 39 years, and still learning. 

Thanks OP, saves me having to uncheck all the boxes after a windows update

word not allowed, didnt work

PS C:\Users\miker> Set-CimInstance -Query 'SELECT InstanceName FROM MSPower_DeviceEnable WHERE (Enable = True)' -Namespace 'root\WMI' -Property @{Enable = $false}

Set-CimInstance : Not supported

At line:1 char:1

+ Set-CimInstance -Query 'SELECT InstanceName FROM MSPower_DeviceEnable ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotImplemented: (MSPower_DeviceE...OT\NET\0001_0"):CimInstance) [Set-CimInstance], CimEx

ception

+ FullyQualifiedErrorId : HRESULT 0x8004100c,Microsoft.Management.Infrastructure.CimCmdlets.SetCimInstanceCommand

Edited by miker916

There's no way I'm copying some text from a post into Windows Powershell..... asking for trouble if you make a mistake. Even a rogue space could cause issues.

I just go into Device Manager and set the option off for each device. It takes around 2-3 minutes.

....and personally, it doesn't change this setting when my Windows updates.

Edited by JYW

Bill 😎
FS2024 • Currently in 'GA mode' : A2A Comanche 2024 & Aerostar • Black Square C208, Bonanzas, Barons, TBM850, Dukes • COWS DA40 & DA42 • FSW Legacy, C24R Sierra & C414 • Echo Falco F8L • FFX HJET, Visionjet and P180 2024 • Got Friends A32 Vixxen • FSReborn Sirius TL3000, Sting S4 and Piper M500 • Flyboy Rans S6S • Skyward DA50RG • SWS Zenith CH701, RV-8, RV-10, RV-14, PC12 • Milviz C310R • Air Foil Labs Bristell B23 
TrackIR • BeyondATC • PMS GTN Payware • RealTurb • Axis & Ohs • FS Realistic Pro
9800X3D • RTX 3080 • 64GB DDR5-6000
NPPL licence holder in the UK

Spad next will do it basically automatically also. Realize not everybody has that program or needs it.

1 hour ago, JYW said:

There's no way I'm copying some text from a post into Windows Powershell..... asking for trouble if you make a mistake. Even a rogue space could cause issues.

5800X3D, 4090FE, 64GB DDR4 3600C16, Gigabyte X570S MB, EVO 970 M.2's, Alienware 3821DW  and 2  22" monitors, Corsair RM1000x PSU,  360MM MSI MEG, MFG Crosswind, T16000M Stick, Boeing TCA Yoke/Throttle, Skalarki MCDU and FCU, Logitech Radio Panel/Switch Panel, Spad.Next

18 hours ago, LRBS said:

pushed heavily since the Gates era, where the system decides on its own

FS2020 decided to reset many of my settings yesterday. Hmmppphh...

59 minutes ago, The_Flying_Potato said:

FS2020 decided to reset many of my settings yesterday. Hmmppphh...

Yeah, I’m not looking to debate it, but MSFS 2020/2024 has become notorious for these kinds of problems. I don’t experience any of them with Lockheed Martin Prepar3D or X-Plane 12. Unfortunately, a large number of users continue to report persistent issues involving keyboards, flight controls, settings randomly changing, peripherals disconnecting, and other input-related problems. Whatever the root cause may be, this is clearly not an isolated case — it’s an ongoing and well-known issue affecting many customers. Unfortunately, this ASOBO MSFS 2020/2024 is still unfinished software with very fragile, continuous cloud connectivity and synchronization for core functionality such as scenery streaming, authentication, profile syncing, controller profiles, marketplace entitlements, rolling cache, live weather, traffic, etc. 

Edited by LRBS

747 Captain for the last 39 years, and still learning. 

Gemini made me two .bat files. One to enable all on Windows startup and one to check it after. Works like a charm as i also has these problems especially when pluggin and plugout for A320 and B737 setup.

Michael Moe

Michael Moe

 

fs2crew_747_banner1.png

Banner_FS2Crew_Emergency.png

I haven't had this problem in about 6-7 years. I think an older driver for my Saitek pedals would fail to wake up after sleep. That was in P3D days. So far knock on wood it's never happened with the modern driver.

Rhett

7800X3D 96 GB G.Skill Flare  Gigabyte 4090  Crucial P5 Plus 2TB

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.