11

I want to be able to turn my PC on and off using an IR-remote sensor that is connected via USB to the PC. The sensor is a custom PCB implemented with an AVR microprocessor and V-USB software USB-implementation.

Now, turning off the PC is no problem with software, but is there any way to turn ON the PC using USB?

(Please note, I'm not talking about booting from USB-stick or USB-power supply ...)

Jonatan
  • 3,164
  • 2
  • 30
  • 47
  • This is not stackoverflow issue. – Cesar Nov 24 '09 at 10:44
  • 2
    Why do you think so? Basically this is an API question. – Jonatan Nov 24 '09 at 10:50
  • Did you work the turning on out? You can wake up a computer by USB mouse or keyboard, you should be able to do that with your custom USB-device too. – Qwerty Mar 16 '13 at 00:01
  • Since the IR-sensor was on a homemade PCB I could put a relay on it that toggles the power input on the motherboard instead. So I did not have to go for a USB solution, which would probably be more error prone anyways. But if this was not a device that was made to be placed inside the PC you would still have to use some other solution. – Jonatan Mar 19 '13 at 11:32

4 Answers4

5

There seem to be two problems:

  1. keeping the USB powered on while the PC is off. It seems that most mainboard have a jumper for this functionality.

  2. bringing the PC back to life. There seems to be no standard functionality for this. The solution is to "press" the PCs power button through the AVR on the USB board. I know, this means extra cable from the USB to the PC, but it seems to be the easiest solution.

Another workaround could be to send the power-on signal to the PC over ethernet. But I guess this will be more complicated than the power button solution and it involves extra cables too.

Der Hochstapler
  • 19,560
  • 15
  • 87
  • 126
rdmueller
  • 9,867
  • 9
  • 62
  • 117
  • Keeping the USB device powered is no problem (a BIOS setting on my mainboard). I will go for a solution like yours, adding a transistor in parallell with the start button. – Jonatan Nov 24 '09 at 12:37
  • A relay might be cheaper than a transistor rated at the power you need... unless all you need is a control line that attaches to relays or power switching within the power supply. – Paul Feb 24 '10 at 04:34
  • it's only the start button, not the power switch. so a transistor should work. – rdmueller Feb 24 '10 at 10:13
5

This Microsoft knowledgebase article describes how to enable "wake on USB" for a USB mouse. I just checked, and my keyboard device entry (on Windows Vista) has the same choice, already checked.

So, if your AVR is emulating a USB keyboard or mouse, it should be possible to wake the computer by sending the proper data.

unwind
  • 364,555
  • 61
  • 449
  • 578
1

there must be a way to do this with USB, since some PCs can be switched on with the keyboard. I think this will be some looking whether your mainboard/BIOS support it (it may be you need to turn it on in BIOS, this will probably also ensure your device gets power from USB although the PC is switched off), and whether that V-USB (unknown to me) can send the "wakeup"-signal.

good luck !

lImbus
  • 1,527
  • 3
  • 14
  • 25
0

How "off" does the PC need to be? Is waking from sleep/suspend enough? The USB standard describes "remote wake-up".

Aside from enabling remote-wakeup, like unwind mentions, software on the PC is not involved in making this work.

Ben Voigt
  • 260,885
  • 36
  • 380
  • 671