Every key I type in the login screen is repeated, so I can't type my correct password! (unfortunately my password is not comprised of pairs of characters)

I recently tried to speed up my key repeat rate via this post but after reverting that change the problem is still happening. It only happens on the main login screen after boot; if I go to switch users the keyboard works normally. Fortunately I've found a workaround through the guest account, but I would really like to know how to get my main login keyboard back to normal!

Any ideas?

  • I've never seen this before, but something in this article might help: macissues.com/2015/04/16/… as with anything, make sure important data is backed-up before trying anything.
    – jcm
    Commented Sep 13, 2015 at 2:51
  • Thanks for the link @jcm. Unfortunately the first tip didn't work. (Doesn't seem like the rest is related but I may try it later anyway.)
    – rmp251
    Commented Sep 13, 2015 at 15:58
  • Did you ever figure this out? I'm suffering from the same thing.
    – Alex
    Commented Jun 2, 2016 at 12:52
  • Unfortunately no @Alex. But I've been working around it by enabling automatic login on boot, and the keyboard works properly on screen lock. Pretty strange bug! If you ever find a real solution please post an answer.
    – rmp251
    Commented Jun 5, 2016 at 21:58
  • @Alex the answer below worked for me
    – rmp251
    Commented Jan 3, 2017 at 20:50

1 Answer 1


Try looking at the InitialKeyRepeat default for the sudo account. I had the same problem, and noticed this that for my user account defaults read -g InitialKeyRepeat returned a value of 25. But sudo defaults read -g InitialKeyRepeat returned a value of 5, which is much faster. I changed the value for sudo using this command:

sudo defaults write -g InitialKeyRepeat -int 25

and I no longer have a problem typing my password at the logon screen. This page is helpful for more details.

  • THANK YOU. My sudo value was at 0 somehow! I've waited 16 months for this solution :)
    – rmp251
    Commented Jan 3, 2017 at 4:24
  • You're welcome! It was nearly the same amount of time for me, so I was very happy to stumble upon this. Commented Jan 3, 2017 at 11:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .