I have a media center (Pi), where I can control the powering from an Attiny. This is done through a simple powerswitch. What I want to add now is "wake on USB".
I've though of two things that could be neat. One is wake on a simple keyboard press and the other is wake on bluetooth. I have a small BLE dongle that I want to connect to one of the USB ports of the hub and when my phone gets close, it should start the Pi.
This is a conceptual drawing of what I want.
The USB Hub IC (USB2514B) is currently powered from the Pi, meaning that it will be off when the Pi is off. This can be changed. The USB port will have power on all the time.
My idea was to connect one of the downstream data lines from the USB port to one of the ports of the Attiny and simply have the Attiny detect a change in the data lines when the keyboard is pressed.
I think my question is more a matter of the idea being feasible? Is it the right direction i'm going in.
Thanks