I've been trying to set up a raspberry pi zero as a keyboard gadget, hoping i could wake a laptop (No ethernet) with it. I would also be able to encrypt it and send the password, which is an added bonus.
I've gotten the keyboard gadget to work, and I've set echo 0xa0 > configs/c.1/bmAttributes to enable remote wakeup on the keyboard gadget.
Previously when the laptop was in hibernation i would get no response when sending keystrokes. Now i get:
-bash: echo: write error: Resource temporarily unavailable
I had hoped just any key would suffice for waking the laptop, but it seems i need to specifically send a wake up event, only i have no idea how :)
Any help would be much appreciated!
If anyone else wants to give it a go, here are the sites I've used to get to this point: https://www.isticktoit.net/?p=1383 https://usb.org/sites/default/files/documents/hut1_12v2.pdf https://www.rmedgar.com/blog/using-rpi-zero-as-keyboard-setup-and-device-definition