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

Fix USB remote wakeup #48

Open
wants to merge 2 commits into
base: sn32_master
Choose a base branch
from

Conversation

Plombo
Copy link

@Plombo Plombo commented Jun 7, 2022

Changing this 2 ms sleep to a busywait fixes USB remote wakeup on my Keychron C1 (white backlight version, 260). The old implementation of remote wakeup (from the now-removed usbhw.c) also busywaited instead of sleeping, so this is probably the correct solution and unlikely to cause problems.

@susch19
Copy link

susch19 commented Aug 20, 2022

I tested this with my keychron k4 v2 and at least I can wake up my pc now with the keyboard. But if the wakeup happens with a mouse click, the keyboard still doesn't turn on, without a key press. An improvement nonetheless, thank you

Copy link

@dexter93 dexter93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably the root cause of the AMD issues too. Testing is required on all platforms

os/hal/ports/SN32/LLD/SN32F2xx/USB/hal_usb_lld.h Outdated Show resolved Hide resolved
@dexter93 dexter93 changed the base branch from sn32_master to sn32_develop November 25, 2022 11:50
@dexter93 dexter93 changed the base branch from sn32_develop to sn32_master November 25, 2022 11:50
@Plombo Plombo requested a review from dexter93 March 3, 2023 18:03
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.

3 participants