Closed LostVector closed 7 months ago
Transferring to https://github.com/adafruit/circuitpython, as this is a core issue.
@hathach What would we need to do to make USB wake work? I assume we are not doing USB at all when we detect that the host has gone away (disconnect or suspend, I guess, I'm not sure which). Thanks.
Just a pointer to what perhaps does it... It's arduino code example on Tinyusb: https://github.com/adafruit/Adafruit_TinyUSB_Arduino/blob/master/examples/HID/hid_composite/hid_composite.ino#L87
@hathach to confirm if that's the API to implement for the wake up.
@dhalbert tud_remote_wakeup()
is API to do this, however there is a few requirements, all is implemented by hid example for your reference https://github.com/hathach/tinyusb/tree/master/examples/device/hid_composite
TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP
bit must be set in the configuration descriptor https://github.com/hathach/tinyusb/blob/master/examples/device/hid_composite/src/usb_descriptors.c#L111grep . /sys/bus/usb/devices/*/product
grep . /sys/bus/usb/devices/*/power/wakeup
Bumped priority to do https://forums.adafruit.com/viewtopic.php?f=60&t=187399 and perhaps some other requests I have forgotten.
Super interesting to discover the lower level USB stuff. I have a Fomu FPGA running CircuitPython. I was able to wake up my screen, but not yet wakeup my device from sleep and I guess it is just not yet implemented.
Is this task just about sending a wakeup message before sending a key press or is it more involved to implement this?
Is this task just about sending a wakeup message before sending a key press or is it more involved to implement this?
I think we just need to do what is described in https://github.com/adafruit/circuitpython/issues/5380#issuecomment-925044500
Hi,
I'm trying to figure out how to make an emulated USB keyboard (using a neokey 1x4) wake the computer it's attached to. I've verified the QT PY RP2040 is getting power and behaves normally when the computer is on, but it seems to go haywire when the pc is asleep and i press a key (windows 10).
Is this possible to support somehow with the current libraries?