-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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] m256wh (Mode Envoy hotswap PCB) KC_CALC and KC_SLEEP stop working after PC wakeup from sleep #22391
Comments
Can confirm a hot reboot won't fix the issue, only re-connect works. |
It seems the issue was not fixed in qmk 0.23.1, but quite random. |
It seems there is also some problems with |
I can also confirm that I have an issue with layer tap functionality with this board, also triggered by sleep. I have a layer tap (LT) binding on spacebar and it stops working after sleep wake. Here's a demo: https://streamable.com/0ak987 As @ForsakenRei mentions, the symptom is basically that the initial tap is not registered, but A second successive tap will trigger the key one time. The board console correctly shows that the key is pressed two times. Tap and then hold works with no issues. Some extra details about my setup:
QMK doctor output:
|
@Gondolindrim - Any chance this kind of issue is something you've seen before? Sorry to ping you, but you're listed as this board's maintainer. |
Finally someone with the same issue lol. Have you tried if I thought Envoy has a relative large user base but surprised not a lot of people are having issue, probably the majority of users is not compling firmware. |
Yeah, I was surprised to only see this issue - you're probably right about being a small subset of normal users bothering to self-compile and use the affected keys.
I don't use them but I just gave them a try, and I kept trying random things and it led to some potential new discoveries. However, to my discovery - I use a thunderbolt 4 hub (caldigit element 4), and I only have this issue when the keyboard is attached through the hub. I have run 6+ other QMK keyboards with complex keymaps on this hub and never encountered an issue before, but after 5 or 6 sleep/wake cycles I can't get the issue to trigger when plugged directly into a USB 3 port on my Mac Mini. Now that's certainly not a solution as plenty of machines (read: laptops) have a much bigger need for hubs like this, but surely this would help narrow things down if you also happen to be using a USB hub of some sort. This would also go a long way to explaining why the problem is less common than expected. |
Hmm, the USB hub discovery is interesing. My keyboards will always connect to my PC directly without hub. Currently Envoy occupied one USB port on the back of my motherboard, I tried my laptop as well(direct connection and hub) but it seems it doesn't really matter, it still happens randomly sometimes it works sometimes not, about half half. I'm not sure if it has anything to do with USB power, since modern PCs and laptop might still provide power to the USB port even after entering sleep state? Sometimes my PC went to sleep but RGB will still be on for the timeout period I setup then off. I should probably keep some records and see if they are related. All my other QMK keyboards(heck, we all have too many keebs lol) didn't have this issue on the same machine so I'm guessing it's a board specific problem. I still remeber VIA need to be disabled to control RGB from keymap for Envoy. |
Ok, consider me back at square one - I just had it happen again and I am not plugged into the hub. Seems like the hub makes it far more likely to occur, though. |
I am the keyboard maintainer and PCB designer. I will take a look into all of this. I will say that this issue is altogether new to me. The prototypes never showed that issue. |
So I was not able to replicate issue. Not on Linux nor Windows. What I would try would be the suggestions in the documentation, and here too. About the USB HUB issue, this might be of help Second I would try to erase EEPROM and recomplie from scractch using the most modern master commit and play with the sleep options. |
I will give it a try on the latest master this weekend. I'm using it on a USB 2.0 port since I knew there were some issue about USB 3.0 and keyboards so just wantto be safe, as @taylorthurlow 's video showed, in configurator https://config.qmk.fm/#/test it simply didn't register any key when those keys stop working. BTW does anything changed about VIA need to be disabled if we want to control RGB in keymap? |
Thanks for making an attempt at replication. Still having the issue after some things I've tried:
I have no USB 2.0 ports so that's not an option for me. All of this testing was done without connecting through my USB hub, and the issue happens consistently for me. I'm not sure what the deal was when I was having more luck, I suppose it's possible I wasn't waiting long enough for true sleep. I'll have to dig into what you mean by "sleep options", I assume the docs will shed light there. Or perhaps you mean OS-level sleep options, in which case macOS doesn't provide any options for that, my understanding is that it provides USB power during sleep by default. I'll also test on my Windows machine at the earliest opportunity. I also have an Intel-based Mac I can try on as well. |
I ran into the exact issue that @taylorthurlow was having. I noticed that there is a pr updating ChibiOS' behaviour for This pr landed in |
Thank you for this, I will give it a try and hopefully it will fix all the issues. Being in develop and missed last breaking change means we probably won't see it in master till May or June, but dev branch is pretty usable based on my own experience. |
Awesome - just flashed it, will report back. If this works then maybe we can keep this open until the fix is in master. |
Yeah I'm no longer having any issues with this, super happy to confirm. |
This is nice. Maybe we can wait for QMK to merge the new Chibi changes into |
Thanks guys for testing the async endpoint PR and that it apparently solves the issues it was meant to solve. If you happen to run into any regressions in functionality please ping me. |
Thank you for the great work. I didn't really have time to test it recently but will close this issue once I tried the develop branch since it's already merged. |
I can confirm the PR fixed it for me, might still be a while till it is merged to master but we can close this issue. |
Describe the Bug
After PC wake up from sleep, KC_CALC and KC_SLEEP will stop working, unless reconnect the keyborad. Tested on a desktop PC and a laptop and both have the same issue so I assume it's not an issue from the host side.
There were probably one or two times it still works after PC wake up from sleep but most of the times it won't work. I only noticed those two key codes but there might be others. If there are more data points it will be great.
My keymap and config https://github.com/ForsakenRei/qmk-mode-envoy
Keyboard Used
mode/m256wh
Link to product page (if applicable)
No response
Operating System
Win10 22H2, Win11 22H2
qmk doctor Output
Is AutoHotKey / Karabiner installed
Other keyboard-related software installed
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: