F5F Stay Refreshed Software Operating Systems Yes, it is often feasible to turn off a USB port using software settings on your device or operating system.

Yes, it is often feasible to turn off a USB port using software settings on your device or operating system.

Yes, it is often feasible to turn off a USB port using software settings on your device or operating system.

E
endergirl08
Member
112
06-02-2016, 02:44 AM
#1
I checked online resources for options, but most guidance focuses on turning off USB devices or disabling thumb drives entirely. My situation involves a few USB devices on my front panel that stay bright even when powered, including a speaker that only uses USB power without any data connection. I want to disable them automatically at night from my desktop using commands like CMD or PowerShell. While I tried the Windows DevKit and USB Device Viewer, I wasn’t able to locate a method to disable specific devices programmatically. It seems this level of control isn’t readily available in standard tools.
E
endergirl08
06-02-2016, 02:44 AM #1

I checked online resources for options, but most guidance focuses on turning off USB devices or disabling thumb drives entirely. My situation involves a few USB devices on my front panel that stay bright even when powered, including a speaker that only uses USB power without any data connection. I want to disable them automatically at night from my desktop using commands like CMD or PowerShell. While I tried the Windows DevKit and USB Device Viewer, I wasn’t able to locate a method to disable specific devices programmatically. It seems this level of control isn’t readily available in standard tools.

J
JEFF_JEFFERSON
Senior Member
627
06-02-2016, 03:54 AM
#2
Yes, certain USB chipsets can handle this. However, it's unclear if your specific model supports it.
J
JEFF_JEFFERSON
06-02-2016, 03:54 AM #2

Yes, certain USB chipsets can handle this. However, it's unclear if your specific model supports it.

K
kampper
Junior Member
3
06-03-2016, 05:58 PM
#3
You might turn off the USB controller in Device Manager, but unless you’re certain which ports belong to which controller (there could be more than one), you risk also disabling your mouse or keyboard. I’m not sure if there’s a better approach... a hub for the back of your PC is often available for a low cost.
K
kampper
06-03-2016, 05:58 PM #3

You might turn off the USB controller in Device Manager, but unless you’re certain which ports belong to which controller (there could be more than one), you risk also disabling your mouse or keyboard. I’m not sure if there’s a better approach... a hub for the back of your PC is often available for a low cost.

S
snoffy
Member
119
06-05-2016, 10:53 AM
#4
I’m not sure about this setup. I think it might be possible with a high-end motherboard, but it’s unlikely. Disabling it through the device manager only affects the connected device, not the port. My speaker works via USB for power but doesn’t transfer data, so Windows doesn’t detect it as plugged in.
S
snoffy
06-05-2016, 10:53 AM #4

I’m not sure about this setup. I think it might be possible with a high-end motherboard, but it’s unlikely. Disabling it through the device manager only affects the connected device, not the port. My speaker works via USB for power but doesn’t transfer data, so Windows doesn’t detect it as plugged in.

A
appies
Member
160
06-10-2016, 06:25 PM
#5
The focus is on the controller, not the device. Regardless, you won't be able to disable power to a USB port through software.
A
appies
06-10-2016, 06:25 PM #5

The focus is on the controller, not the device. Regardless, you won't be able to disable power to a USB port through software.

W
WouterDeJong
Member
119
06-10-2016, 07:30 PM
#6
I've observed switching USB ports via the BIOS, but I haven't noticed a software setting for USB ports...
W
WouterDeJong
06-10-2016, 07:30 PM #6

I've observed switching USB ports via the BIOS, but I haven't noticed a software setting for USB ports...

D
dgbotts
Junior Member
14
06-12-2016, 04:14 AM
#7
I’m not aware of any method to cut power to a USB port via software, particularly for devices that only consume energy when active.
D
dgbotts
06-12-2016, 04:14 AM #7

I’m not aware of any method to cut power to a USB port via software, particularly for devices that only consume energy when active.

J
joshwars
Junior Member
44
06-24-2016, 10:54 AM
#8
You start with Linux and run a command to check USB ports. You search for any mention of power switching in the output. It seems your motherboard likely doesn’t have this capability. I only know about chipset support in certain USB hubs, and none that use this feature. If it did work, you might find examples on GitHub like https://github.com/mvp/uhubctl and adapt them for Windows.
J
joshwars
06-24-2016, 10:54 AM #8

You start with Linux and run a command to check USB ports. You search for any mention of power switching in the output. It seems your motherboard likely doesn’t have this capability. I only know about chipset support in certain USB hubs, and none that use this feature. If it did work, you might find examples on GitHub like https://github.com/mvp/uhubctl and adapt them for Windows.