Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usb-device: Allow signaling capability of remote_wakeup. #894

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

felixdoerre
Copy link
Contributor

To use this feature you need to create a usb device signaling remote wakeup and then enable remote wakeup on the host (on linux write enabled to /sys/bus/usb/devices/<device>/power/wakeup, or let udev do that). Then you can wake up the host when it is on standby using USBDevice.remote_wakeup.

See also micropython#15262.

@dpgeorge
Copy link
Member

Thank you, this looks good.

To use this feature you need to create a usb device signaling remote wakeup
and then enable remote wakeup on the host (on linux write enabled to
/sys/bus/usb/devices/<device>/power/wakeup). Then you can wake up the host
when is on standby using USBDevice.remote_wakeup.

Signed-off-by: Felix Dörre <[email protected]>
@dpgeorge
Copy link
Member

I updated the version to 0.2.0, because (as per semver) this adds something to the public API.

@dpgeorge dpgeorge merged commit a7cd740 into micropython:master Oct 18, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants