key-ripper icon indicating copy to clipboard operation
key-ripper copied to clipboard

Keyboard occasionally doesn't wake MacOS computer

Open bschwind opened this issue 3 years ago • 3 comments

Possibly related to #21

Occasionally when the computer has been sleeping for awhile, I try to wake it by pressing a key on the keyboard and it doesn't wake.

bschwind avatar Oct 09 '22 07:10 bschwind

Related issue: https://github.com/rp-rs/rp-hal/pull/406

Example usage: https://github.com/ithinuel/wilskeeb/blob/b5ec32751296f7bbcfca0da8c59499bfb91f8770/firmware/src/main.rs#L353-L359

bschwind avatar Oct 09 '22 11:10 bschwind

Oh, I probably just need to set this flag:

https://docs.rs/usb-device/0.2.9/usb_device/device/struct.UsbDeviceBuilder.html#method.supports_remote_wakeup

bschwind avatar Nov 12 '22 13:11 bschwind

Here's a reference on how to do it properly:

https://github.com/ithinuel/wilskeeb/blob/b5ec32751296f7bbcfca0da8c59499bfb91f8770/firmware/src/main.rs#L353-L359

bschwind avatar Nov 13 '22 13:11 bschwind