Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn on PC with USB-device

Tags:

avr

usb

htpc

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 ...)

like image 805
Jonatan Avatar asked Nov 24 '09 10:11

Jonatan


People also ask

Can a USB device turn on a computer?

You can wake up a computer by USB mouse or keyboard, you should be able to do that with your custom USB-device too. 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.

How do I turn my laptop on with a USB keyboard?

How to Turn on a Laptop With a Keyboard. Many laptops can actually be turned on by pressing a key on the keyboard. This won't be toggled on by default, but if your laptop supports it, you'll be able to toggle it on the BIOS. Turn your computer off, and then boot it back up and enter the BIOS.


3 Answers

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.

like image 54
rdmueller Avatar answered Sep 27 '22 01:09

rdmueller


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.

like image 30
unwind Avatar answered Sep 25 '22 01:09

unwind


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 !

like image 32
lImbus Avatar answered Sep 25 '22 01:09

lImbus