Jump to content



Photo

USB 2.0 power on/off


  • Please log in to reply
6 replies to this topic

#1 YoseMite

YoseMite

    Prodigy

  • Active Members
  • PipPipPip
  • 168 posts

Posted 08 October 2005 - 07:49 AM

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





#2 realkiller

realkiller

    Universalist

  • Banned (NOT IN USE)
  • 380 posts

Posted 08 October 2005 - 11:52 AM

i think not it is olmost inpossible in c++

#3 /dev/null

/dev/null

    Universalist

  • MVPs
  • 2,946 posts

Posted 08 October 2005 - 12:41 PM

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 *

#4 this-is-me

this-is-me

    Pursuer of obscure functionality

  • Active Members
  • PipPipPipPipPipPip
  • 2,372 posts

Posted 08 October 2005 - 08:49 PM

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?

#5 /dev/null

/dev/null

    Universalist

  • MVPs
  • 2,946 posts

Posted 09 October 2005 - 02:06 PM

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 *

#6 YoseMite

YoseMite

    Prodigy

  • Active Members
  • PipPipPip
  • 168 posts

Posted 09 October 2005 - 03:27 PM

Thanks for the comment.
I'm searching...

#7 Westi

Westi

    Adventurer

  • Active Members
  • PipPip
  • 108 posts

Posted 09 October 2005 - 04:05 PM

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]





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users