I can't hold a tutorial on that but there is Wake On Keyboard, Wake On Interrupt and so on. Not all machines implement these but worth a look.
Bob