Jay Taylor's notes
back to listing indexHow to increase keyboard key repeat rate on OS X? - Ask Different
[web search]Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this community-
Home
-
- Public
- Questions
-
Tags
-
Users
-
Companies
-
Unanswered
-
-
TeamsStack Overflow for Teams – Start collaborating and sharing organizational knowledge.
Create a free Team Why Teams?
-
I know how to set the key repeat rate using System Preferences > Keyboard
but it looks that the fastest settings is not enough.
Is there any way to speed up even more?
I do not know if others encountered the same issue, but I'm using a MacBook Pro, model 2010.
-
Good question! I found that keyboard repeat rate seemed to be the factor that was causing me to experience bad vim scrolling & rendering performance in macOS; see my comment on GitHub Sep 7, 2018 at 0:57
-
You can now update these settings directly in System Preferences > Keyboard > {Key Repeat, Delay Until Repeat}. More info: karabiner-elements.pqrs.org/docs/help/how-to/key-repeat– jlhassonJul 15, 2021 at 17:23
4 Answers
You can also change the preference keys by running the following in Terminal:
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
The changes aren't applied until you log out and back in. KeyRepeat can't be set between 2 (30 ms) and 1 (15 ms) though.
I also use KeyRemap4MacBook. I've set the repeat rates to 40 ms and the initial repeat rates to 150 ms.
-
30
-
4
-
5How do you determine how many milliseconds a value is? Are they just 15ms multiplied by the defaults value? How did you determine that, or is it documented somewhere?– bratscheJan 23, 2017 at 19:53
-
5one note you might miss in the answer - log out/in or restart your machine to have changes take effect– ryantuckApr 4, 2017 at 19:22
-
34Make sure you don't set
InitialKeyRepeat
to a rate that is too fast. I experienced an issue where suddenly every key press caused every key to double the input. For example, pressing the "a" key once would input "aa". This effectively made it impossible to login as I was unable to input my password correctly. I believe I was able to get around the issue by booting in safe-boot mode, I revisited this page by going through my browser's history, selecting and pasting the commanddefaults write -g InitialKeyRepeat -int 10
into iTerm and restarting the Mac.– ONMNZOct 4, 2017 at 17:36
I just discovered that I had KeyRemap4MacBook installed and inside this application you have lots of low level settings for key repeat.
Now I'm happy with 400ms initial repeat time and 20ms repeat wait.
-
10This app has been renamed
Karabiner
and the options for Key Repeat are currently in the top row of tabs under "Key Repeat" between "Change Key" and "Status Message". Works great, was able to reduce it too far and bump it back up to sanity.– hereSep 15, 2014 at 17:53 -
2Does Karabiner still have this function? I can't find it anywhere. There's no "Key Repeat" tab. Mar 8, 2018 at 1:55
-
1OIC it existed in Karabiner, but not in Karabiner Elements. But Karabiner doesn't seem to have any effect on Sierra. Mar 8, 2018 at 1:59
-
5Came here to confirm that Karabiner "Elements" (the latest version) does not support setting the key repeat rate, as it used to. See this. Dec 13, 2019 at 18:36
-
2
KeyRemap4MacBook
(or the renamed Karabiner) no longer supports it. The accepted solution is the best way. Remember to log off Apr 8, 2020 at 23:41
Old post, but this may help someone: If you are using the "Karabiner app" (https://pqrs.org/osx/karabiner/) which is a third party app commonly used to remap keys (or make OS X keyboard mimic some of Windows keyboards behaviors) it will bypass your OS X configurations.
If you are using it, to increase your keyboard rate you should go to the app and on the second tab ("Key Repeat") you'll find the option Repeat Rate. Changing that will render immediate effect and, as far as I can tell, it's the only way to get the repeat rate changed when using this app.
-
4
-
1I cannot find the "Key Repeat" option in version 11.1.0. Where is it? github.com/tekezo/Karabiner-Elements/issues/1046 Nov 8, 2017 at 14:41
-
2
@user495470's answer is great for native apps, but for whatever reason, it appears to have messed up key repeat for me in XQuartz windows. To work around the issue, I initially ran this in the terminal:
xset r rate <initial wait> <number of repeated strokes per second>
Leaving off the last 2 arguments will reset the system defaults.
I read that you have to run this command every time you run XQuartz anew, but when I put it in my login script, it caused the system to hang on shutdown (until I killed the hung xset commands) and on startup, so I discovered that a better way to change the key repeat setting is to first disable the little bubble menu that appears above a typed character upon press & hold, e.g. hold down the a key and you are presented with a bubble containing alternate 'a' characters with various umlauts, accents, etc..:
defaults write -g ApplePressAndHoldEnabled -bool false
Then run the key repeat commands:
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
If you do it this way, key repeats will work in XQuartz windows without needing to run xset r # #
.
You must log in to answer this question.
Not the answer you're looking for? Browse other questions tagged .
- The Overflow Blog
-
-
- Featured on Meta
-
-
Linked
Related
Hot Network Questions
-
Could minor-third be used to judge major or minor key?
-
Forward bias voltage of diode
-
Is it possible to talk with "a staff"?
-
Underreporting expenses to get social security credits
-
Why did only 31 engines ignite during Starship's static fire?
-
Racism at Schengen ports of entry
-
Quitting instead of accepting Performance Improvement Plan?
-
Do I need insulation under electric floor heating in appartment bathroom?
-
How to generate uniform distributed samples with given auto-correlation function
-
Can I delete blk*.dat files?
-
Can a Magus not recharge spellstrike while in arcane cascade?
-
When did God started speaking to us through His son according to Hebrews 1:2?
-
Is the larger package better for SMD capacitors?
-
A Question about Berkshire Hathaway Shares
-
Understanding of HTTP GET request
-
Foci of ellipse
-
Alpine Linux and package versioning: can the license change in a release patch?
-
Who decides when you roll or take a passive perception check (especially for traps)?
-
Can non-agents be moral or immoral?
-
If I remove the Luks-encrypted drive to another motherboard, will I be able to run my system there?
-
What is the origin of "in the zone" or what "zone" is this about?
-
Why don't superconductors, which have zero electrical resistance, violate the second law of thermodynamics?
-
What's the solution to Sorites paradox?
-
Computing powers of diagonal + rank-1 matrix?