Open ThomasLeister opened 2 years ago
Wakeup is working fine for me. I'm on Win 10. Loaded the example on Pico without any changes, put the PC to sleep, the led blinked slower. Pressing the button on Pico woke up the PC.
ping @hathach
Works well enough on Windows 11 too. Though if you just send HID reports is does not wake the machine. You need to send an explicit tud_remote_wakeup();
apparently which is what the example does when suspended and pushing the board button.
Hi!,
I'm trying to use a Raspberry Pi Pico to wake up a PC (Fedora Linux) via the USB port. To check whether the remote wakeup feature is supported, I started the "dev_hid_composite" example on my Raspberry Pi Pico and attached it to my PC. To make sure the device remains powered on suspend, the pico is also powered via an external power supply (not only USB bus power).
The dev_hid_composite example is working when the PC is in running state: It is detected as a HID device and I see key presses ("A") and mouse movements when I push the Pico's button.
When the PC changes to "suspend" mode, the Pico continues flashing, but the frequency is lower (as expected), which means that USB suspend was detected correctly.
Now, when I push the button, again, the Pico should wake up the host, according to https://github.com/raspberrypi/pico-examples/blob/master/usb/device/dev_hid_composite/main.c#L215
... but nothing happens. I've checked the settings on my PC:
TinyUSB device is
1-1
.The output shows that USB remote wakeup is available and enabled. Still, my computer is not reacting to any button presses and remains in suspend mode. I've tried different ports and a modified USB cable, which does not transport power, just USB data + GND). Does anybody have a working USB remote wakeup setup or could verify that the feature works?
I'm a bit lost here ... but would be very happy to get this working :)