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

Chatter detection message question #1081

Open
1 task done
hudson4351 opened this issue Feb 16, 2022 · 6 comments
Open
1 task done

Chatter detection message question #1081

hudson4351 opened this issue Feb 16, 2022 · 6 comments

Comments

@hudson4351
Copy link

Information

  • None of the other issue templates apply

Description

I suspect the '6' key on one of my keyboards is chattering. I used the test page here:

https://config.qmk.fm/#/test

And obtained the following output when pressing the '6' key once followed by the '1' key once:

key chatter 2

Is the above output indicative of chattering? Is there supposed to be something on the page that alerts me when chattering occurs other than manual review of the console?

When I look at this post, I see the text "CHATTER HAS BEEN DETECTED!" displayed next to the chatter threshold window:

#466 (comment)

Is that text always supposed to be displayed whenever chattering occurs?

@yanfali
Copy link
Collaborator

yanfali commented Feb 17, 2022

Hi, I don't see any evidence of chatter. The UI defines chatter as a repeat key event within 8ms. I'm not seeing that on your trace.

@hudson4351
Copy link
Author

The UI doesn't show the amount of time that has elapsed from each KEY-UP event to the next KEY-DOWN event, but that is the number that is being compared against the chatter threshold, correct? The UI only shows the amount of time that has elapsed from each KEY-DOWN event to the next KEY-UP event.

Where does the default value of "8 ms" come from? I definitely only pressed the '6' key once but it looks like two presses were recorded. I now see why that didn't display the "CHATTER HAS BEEN DETECTED!" alert, but another thing I noticed is that if I run the same test using Elite Keyboard's Switch Hitter tool with the same chatter threshold of 8 ms, I am able to fairly consistently trigger its "CHATTER DETECTED" alert:

EK Switch Hitter key chatter

yet I am not able to trigger the "CHATTER HAS BEEN DETECTED!" alert on the QMK webpage no matter how many times I press the same '6' key. Could there be a latency issue with trying to measure keyboard switch delays through a website instead of a local app?

@yanfali
Copy link
Collaborator

yanfali commented Feb 17, 2022

Yep, it's a web page, so it's going to be affected by any plugins and other software running your page. One thing to try is to run in incognito or privacy mode. This will disable any keyloggers or whatever other plugins that are intercepting keyboard input from the page which may be affecting the measurement.
this is definitely a best effort kind of tool and not meant to be as definitive as switch hitter which is a native program. It could be swapping out to disk or your machine might be slow, or you could be bit coin mining. All these things will affect latency on a windows PC.

@hudson4351
Copy link
Author

Is there any particular reason "8 ms" is the default value?

this is definitely a best effort kind of tool and not meant to be as definitive as switch hitter which is a native program. It could be swapping out to disk or your machine might be slow, or you could be bit coin mining. All these things will affect latency on a windows PC.

Does my latency to the website affect the delay measurements even if no plugins are running?

@yanfali
Copy link
Collaborator

yanfali commented Feb 18, 2022 via email

@zekth
Copy link
Contributor

zekth commented Feb 18, 2022

Is there any particular reason "8 ms" is the default value?

this is definitely a best effort kind of tool and not meant to be as definitive as switch hitter which is a native program. It could be swapping out to disk or your machine might be slow, or you could be bit coin mining. All these things will affect latency on a windows PC.

Does my latency to the website affect the delay measurements even if no plugins are running?

It does not, the code is executed in the page. This feature has been tested with a chattery keyboard but yeah it cannot be as reliable as switch hitter because of the toolchain involved.

Regarding the 8ms it's the default of switch hitter.

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

3 participants