Sign in to follow this  
Followers 0
YoseMite

USB 2.0 power on/off

7 posts in this topic

Hi,

I have this fan for my laptop.

This use the 5volt of the USB2.0 port.

Now I want make a application with a button start and button stop.

If I press stop, the fan must stop, and if I press start the fan must start! :P

But is this possible to make this with AutoITscript? ;)

Greetz,

YoseMite

Share this post


Link to post
Share on other sites



Now I want make a application with a button start and button stop.

If I press stop, the fan must stop, and if I press start the fan must start! :P

But is this possible to make this with AutoITscript? ;)

well, you can disable a usb host controller with windows device manager. This will also shut down the power supply for that port. If that works, you'll "just" have to figure out how to do it with AutoIT :mad2:

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

If disabling the host controller will cut power, then you can use the command line "devcon.exe disable [device parameters]" to disable from batch or autoit.


Who else would I be?

Share this post


Link to post
Share on other sites

If disabling the host controller will cut power, then you can use the command line "devcon.exe disable [device parameters]" to disable from batch or autoit.

Very nice! A real "must have" tool.

I tested it, and it disables the USB port where my mouse is plugged in. HOWEVER, it does not shut down the power supply! So, unfortunately it is no help for the fan problem and I'm not even sure if it would be possible to shut down the power supply. @YoseMite: Try to google for that...

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Thanks for the comment.

I'm searching...

Share this post


Link to post
Share on other sites

If it is listed you can use

RUNDLL32 SHELL32.DLL,Control_RunDLL hotplug.dll
and disable it with a script.

Maybe try deveject.exe from german c't magazine

Usage: deveject.exe -EjectDrive:<Drive>|-EjectName:<Name>|-EjectId:<DeviceId> [-v] [-Debug]

Share this post


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
Sign in to follow this  
Followers 0