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 wakeup is triggered instantly on sleep #21

Open
fd0 opened this issue May 27, 2016 · 1 comment
Open

USB wakeup is triggered instantly on sleep #21

fd0 opened this issue May 27, 2016 · 1 comment

Comments

@fd0
Copy link
Contributor

fd0 commented May 27, 2016

I'm running tmk core with on my ErgoDox keyboard using the code from https://github.com/cub-uanic/tmk_keyboard, the repository with my code (and tmk_core cloned to tmk/core) can be found here: https://github.com/fd0/ergodox-tmk

I've tried to get USB wakeup working by pressing a button on the keyboard. So I enabled USB wakeup in the BIOS and OS (Linux), but now I'm unable to suspend: Wakeup is instantly triggered on suspend, as long as the keyboard is plugged in.

Any idea on what's going on here or how to debug this? Did I configure something wrong?

@tmk
Copy link
Owner

tmk commented May 27, 2016

You can 'printf debug' using UART(or software UART) instead of USB. Use print_set_senchar() to change debug print destination, see https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hhkb/rn42/main.c#L41 and https://github.com/tmk/tmk_keyboard/blob/master/keyboard/hhkb/rn42/suart.S .

Or buy cheap USB protocol analyzer if you are serious for this problem, it would be useful particularly in this situation.

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

No branches or pull requests

2 participants