-
-
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] Key behave as if it was stuck and repeats the last typed letter #19254
Comments
Just to clarify, the keyboard is connected to the computer wirelessly over Bluetooth, is that right? I wonder if the stuck keys are the result of Bluetooth communication occasionally getting interrupted, just after a key press event and the computer missing the corresponding key release event. |
Yes, it's connected wirelessly to the computer. This is the module I have that is used as a receiver. Based on what I found on the internet it's a Bluetooth module. Though, I'm not 100% sure how it works, because I'm not that much into hardware and I'm confused why an additional Bluetooth module had to be added, instead of using the one from laptop. The connection scheme looks as follows:
|
This board does not use Bluetooth, all three modules communicate over the Gazell protocol, and the receiver module transmits the key state to the actual MCU via UART. https://github.com/mattdibi/redox-w-firmware |
I managed to gather a bit more useful information about the problem. When my keyboard got into "increased likelihood of bug state", I tried to restart the keyboard but it didn't help. Then I plugged it into another computer and it worked there without any problem. I could still observe the problematic behaviour when I plugged it back into the initial PC. Based on that, I assume that the problem might be on the PC side of communication. |
I also ran into this issue on a kbd67rev2 board but could not figure out what was causing it. the frequency of this bug seemed to correlate with my machine's CPU load |
I am seeing the exact same symptoms (keyboard events lost when CPU load is high -- input pausing, then acting like a key is being held down, then dropping a couple keystrokes, then resuming normal function). Like @jakubgros I can't reproduce it on my other computer. I have ruled out QMK as the cause in my environment, because I connected a non-QMK keyboard and the problem persisted. |
I'm having a similar issue when my keyboard is connected through a KVM switch. I have set TAP_CODE_DELAY to 10ms which greatly reduced the frequency of this happening. I wonder if the same workaround would apply here as well. |
I was able to completely resolve my issue by setting a higher |
That didn't do anything. Due to how USB works fundamentally, the value of |
It did work in my case. I guess the KVM allows a higher polling interval to be negotiated than it can support. |
Had the same issue. SplitKB Kyria rev3 on QMK attached to KVM. Putting the line below in config.h worked. |
Same bug here with a KBD fans KBD8X MKII behind a KVM with VIA Firmware - I upgraded from an old version from 2021 and now I have this bug. Same with most recent QMK. |
I thought I had the same issue but I simply forgot to call unregister_code() after register_code() in my custom macro. |
Describe the Bug
When typing, the keyboard sometimes behaves as if a key was pressed and held. It sends a signal to the PC until I click any key or disconnect a receiver. I think it's not a hardware problem because I've tried turning off the keyboard once the bug appeared and it was still sending the signal to PC until I disconnected a receiver.
The bug is hard to reproduce and I'm not sure what causes it. I think that it might be related to pressing multiple keys at the same time. What's interesting, is that my keyboard sometimes works perfectly and then it gets into a state where it's more likely to enter the bug. Restarting the keyboard/receiver doesn't help to get out of the "increased likelihood of bug state". After some time it gets fixed by itself.
Right before the bug is triggered, when I'm typing, it hangs for ~1s(nothing is typed into PC even though I'm pressing keys) and it starts repeating the last pressed key. It looks similar to the behaviour on the video attached to the #18805 issue, but the difference in my case is that I can see constantly the typed characters until the freeze, after which the last key starts to repeat.
I'm not sure whether it's a problem with qmk_firmware of any of qmk tooling or with my setup. I'm not sure how to debug it. Any advice?
Keyboard Used
redox_w
Link to product page (if applicable)
redox wireless
Operating System
Edition Windows 10 Enterprise
Version 21H2
Installed on 3/10/2022
OS build 19044.2251
Experience Windows Feature Experience Pack 120.2212.4180.0
qmk doctor Output
Is AutoHotKey / Karabiner installed
Other keyboard-related software installed
None
Additional Context
qmk --version = 1.1.0
qmk_firmware: commit 2709b6e
My keyboard config: https://github.com/jakubgros/redox_wireless
I'm putting a symbolic link into the qmk_firmware/keyboards/redox_w directory, build it using compile.sh script from the repository and flash the keyboard using the qmk_toolbox.exe.
The text was updated successfully, but these errors were encountered: