Skip to content

Jitter#1564

Merged
kareltucek merged 4 commits into
masterfrom
jitter
Jun 2, 2026
Merged

Jitter#1564
kareltucek merged 4 commits into
masterfrom
jitter

Conversation

@kareltucek
Copy link
Copy Markdown
Collaborator

@kareltucek kareltucek commented May 29, 2026

Todo:

  • cleanup
  • changelog

Closes #1114 .

Changelog:

  • fix: decrease the dongle interval to actual 7.5ms, instead of scheduling-forced 11ms
  • fix: increase advertising interval when not actively connecting, to reduce dongle mouse jitter

@kareltucek
Copy link
Copy Markdown
Collaborator Author

@mondalaci I am increasing the advertising interval to 1 second when uhk is not trying to actively switch the host. Are we ok with this?

@mondalaci
Copy link
Copy Markdown
Member

What's the rationale for this change, and what was the previous behavior?

@kareltucek
Copy link
Copy Markdown
Collaborator Author

Advertisement occupies outgoing ble transports, making the right<->dongle connection miss every ~5th transport window (with fast advertising). This makes cursor movement over dongle jittery - as Phil reports in #1114 .

@mondalaci
Copy link
Copy Markdown
Member

Sounds reasonable.

Just for the record, what was the previous advertising interval?

@kareltucek
Copy link
Copy Markdown
Collaborator Author

/** Recommended minimum advertising interval for fast advertising (mode 1). 30 ms. */
#define BT_GAP_ADV_FAST_INT_MIN_1               0x0030
/** Recommended maximum advertising interval for fast advertising (mode 1). 60 ms. */
#define BT_GAP_ADV_FAST_INT_MAX_1               0x0060

Effectively 35ms according to logs.

@kareltucek kareltucek merged commit ffd2436 into master Jun 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Jittery mouse keys movement when using dongle

2 participants