Jump to content

So i k ow this is a weird question but i was wondering if their was an autohotkey script or something to enable and dissable usb ports very very quickly. I have a usb device (parrot flypad) that i use but it goes to sleep after about 1-2 minutes of being connected to my computer. Is there any way to make it so that i can disable and reenable a usb port very quickly so that it wont go to sleep? Thank you!

Link to comment
https://linustechtips.com/topic/1097180-how-to-disable-and-enable-usb-ports/
Share on other sites

Link to post
Share on other sites

that is only possible if its plugged into its own usb controller, then you could theoretically disable the entire controller and re enable it.

alternatively there are usb extension cords that have a switch which simply cuts the power lines and disables the device.

 

Link to post
Share on other sites

3 minutes ago, Pixel5 said:

that is only possible if its plugged into its own usb controller, then you could theoretically disable the entire controller and re enable it.

alternatively there are usb extension cords that have a switch which simply cuts the power lines and disables the device.

 

what about with the devcon windows scripts. They disable devices. Could i accomplish the same goal by just enabling and disabling the device?

Link to post
Share on other sites

I have not tried this so take it with a grain of salt but it may be possible to disable USB ports/controllers from within Windows via Device Manager.

 

They'd be listed under Universal Serial Bus controllers. It should be possible to create a batch job to enable/disable them and bind those to hotkeys. Downside is you'd have to be really careful not to disable the controller your keyboard/mouse are plugged into. That or be using PS/2 keyboard/mouse.

Link to post
Share on other sites

Yeah the only way I have seen people do that is by disabling the entire usb controller, I don't think you can disable just one port

Optical Drive Poll: https://linustechtips.com/main/topic/1006309-optical-drive-survey/

Main Rig (Pulsar)

CPU: Ryzen 7 5800X MOBO: MSI MEG X570 Unify RAM: Corsair Dominator Platinum RG(4x8gb) 3200Mhz 16-16-16-32 GPU: EVGA GTX 1080 FTW ACX 3.0 Cooler: Noctua NH-U12S Chromax (LTT Edition) Storage: Intel 6000p 128gb boot drive, Intel 665p 1tb (x2), Samsung 850 EVO 1tb, Case: Phanteks Enthoo Pro M Tempered Glass PSU: EVGA SupeNOVA G1+ 750W OS: Windows 10 Pro 64 bit  

FreeNAS Server (The Vault)

CPU: Xeon E5-2603 v3 MOBO: MSI X99 Tomahawk RAM: G.Skill Aegis (4x8gb) 3000Mhz 16-18-18-38 GPU: EVGA GT 710 Cooler: Cooler Master Hyper 212 LED Storage: Intel S3520 x2 for boot, x16 in RAIDZ for storage, Seagate Ironwolf 2tb (Striped will be a steam cache) Case: Phanteks Enthoo Pro Tempered Glass PSU: Corsair CX750 750W

Link to post
Share on other sites

On 8/23/2019 at 8:09 PM, Legolessed said:

tbh that would be fine for me

There is probably some way to do it automatically, all you need it to do is disable and re-enable the controller through the device manager

Optical Drive Poll: https://linustechtips.com/main/topic/1006309-optical-drive-survey/

Main Rig (Pulsar)

CPU: Ryzen 7 5800X MOBO: MSI MEG X570 Unify RAM: Corsair Dominator Platinum RG(4x8gb) 3200Mhz 16-16-16-32 GPU: EVGA GTX 1080 FTW ACX 3.0 Cooler: Noctua NH-U12S Chromax (LTT Edition) Storage: Intel 6000p 128gb boot drive, Intel 665p 1tb (x2), Samsung 850 EVO 1tb, Case: Phanteks Enthoo Pro M Tempered Glass PSU: EVGA SupeNOVA G1+ 750W OS: Windows 10 Pro 64 bit  

FreeNAS Server (The Vault)

CPU: Xeon E5-2603 v3 MOBO: MSI X99 Tomahawk RAM: G.Skill Aegis (4x8gb) 3000Mhz 16-18-18-38 GPU: EVGA GT 710 Cooler: Cooler Master Hyper 212 LED Storage: Intel S3520 x2 for boot, x16 in RAIDZ for storage, Seagate Ironwolf 2tb (Striped will be a steam cache) Case: Phanteks Enthoo Pro Tempered Glass PSU: Corsair CX750 750W

Link to post
Share on other sites

On 8/23/2019 at 12:16 PM, Windows7ge said:

I have not tried this so take it with a grain of salt but it may be possible to disable USB ports/controllers from within Windows via Device Manager.

 

They'd be listed under Universal Serial Bus controllers. It should be possible to create a batch job to enable/disable them and bind those to hotkeys. Downside is you'd have to be really careful not to disable the controller your keyboard/mouse are plugged into. That or be using PS/2 keyboard/mouse.

^this. I have a pc that keeps disableing a controller and that takes out 2-4 usb ports with it.

I live in misery USA. my timezone is central daylight time which is either UTC -5 or -4 because the government hates everyone.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×