-
-
Notifications
You must be signed in to change notification settings - Fork 39.6k
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
[Bug] LT(layer, kc) do not work after waking up PC (Mac/Linux/Windows) on BlackPill #16406
Comments
Could you post a link to your config? I'm using blackpills on several boards without any issues on the LT keys. |
@drashna I'm using this keymap Maybe it's hardware issue? |
is there a reason to have these? #define PAL_USE_CALLBACKS TRUE
#define PAL_USE_WAIT TRUE |
I'm must say that i dont remember... |
@drashna I checked it out. It didn't help, but it also didn't break anything. I will create PR where this redundant code is removed. |
Logs from both failing and working case are the same... 😭 status
matrix and keys
Does it mean that USB stack is corrupted after reboot in driver? |
Any ideas how I can debug this problem? |
The matrix is reporting the correct activation but was not being sent? Also, if you add the reboot keycode, does that help when this happens? |
I didnt saw a reboot keycode anywhere. Could you provide any links? |
I'm having the same problem with cantor(blackpill microcontroller) on linux as well. |
@klesh I guess it's connected to bootloader. |
@DuMaM Aah, I tried lowering the cpu/usb freq last night, and it seems to be working so far, would you like to try these settings in your
|
Those don't do anything on ARM boards. |
Yes, you are correct. |
After windows upgrade to 2H22, this started to happen again for me. Today I flashed with the latest 10.2 bootloader and qmk 0.18.13. |
it didn't help. When I connect it directly to PC i still got the same behaviour. |
Could you guys (@klesh @fauxpark @khoanguyen8496 @wkf) share your keyboard settings?
I want to solve it, and i can even prepare fix myself but without clue it's hard to determine whats going on. |
#8259 (comment) |
I guess it was resolved and then ChibiOS got upgraded and something broke there again. |
Reset MCU after waking up. Workaround for qmk/qmk_firmware#16406
Sorry, I missed the message.
|
I have a cantor remix (36keys) flashed with miryoku layout from qmk master (flashed today). If macOS goes into sleep mode all the homerow mod keys and the thumb cluster keys stop working. I'll test if the double tap works as described in this issue |
Hi, all, did you try the fix from philong/vial-qmk@f98b88c ? |
Thanks for the suggestion. I'll cherry-pick it later today and test. For the double tap after sleep I'll say that it is more or less a s described, but I find it challenging to double tap quick enough to male it work. |
Hi, The fix mentioned above is an old version of my workaround. My current workaround is this in my // Workaround for https://github.com/qmk/qmk_firmware/issues/16406
void suspend_wakeup_init_user(void) {
NVIC_SystemReset();
} It basically just resets the keyboard after waking up from suspend. Although it works for me, it does not fix the real cause of the issue. |
With this commit applied the keyboard is completely dead after a sleep. I did some extra testing and I found that if I wake the computer using the keyboard, it will freeze completely, but if I utilise another device for waking up the computer it works. I'll try to utilise the |
See qmk#16406 Co-authored-by: Philong <philong@users.noreply.github.com>
This seems to be working for me as well 🎉 Thank you |
Thanks for the update. @drashna Does it help for a more general fix? |
Refactor of the orignal Philong's workaround. Instead of a user function in the keymap this commit applies the workarund at the keyboard level to make it available to every cantor user. Co-authored-by: Philong <philong@users.noreply.github.com>
I want to report that now that I'm no longer using the It seems to make it more unlikely to happen, but still possible. |
Describe the Bug
I tested this on many different ways, on different devices and behavior is the same.
When my computer goes into sleep mode/powers off, LT keys stop working as they supposed to, after next wake up/boot.
I need to click 2 times to trigger behavior assigned to
click
action.I also noticed that if I click continuously and 2-3 times faster then normal it works as it supposed to.
Layers also not working.
System Information
The text was updated successfully, but these errors were encountered: