My keyboard has discnnected from iMac when I used it on linux system and iPad. I cannot find a way to connect it because there is no Bluetooth option on login screen and I cannot login because I cannot enter the password. Mac doesnt have on screen keyboard.

Is it possible that Ill need a separate hardware (keyboard) to fix this issue??


2 Answers 2


See if this works:

Unplug ALL USB devices, have your wireless keyboard and mouse turned on, and restart. The system sees that there are no input devices and searches for them. Then asks you to type a passcode and hit return.

If you have the Apple Keyboard 2 which has the Lightning port on the back of the keyboard, all you need to do is connect the USB -> Lightning cord to the computer and it will just like a normal wired keyboard.

  • Sorry, I do not have v2 keyboard. Must be pretty easy with that one. :D Mar 12, 2018 at 8:20

Found the solution by pure luck.

When you are unable to login he lets you restart into a limited recovery mode where you can use forgot password or reset password. I've also had disk encryption and he didn't let me use terminal or anything fancy.

When you get into that mode without anything connected to the mac he asks you to turn on the keyboard and mouse before continuing. I disconnected everything as the entire internet suggests but he wouldn't connect to keyboard.

I use a non-apple mouse and when I give up and connect the mouse it lets me "next" wireless mouse has been detected which closed the dialog.

The catch: Use Apple mouse instead of your regular mouse!

If you use Apple mouse the "next" button no longer close the menu but move you into keyboard pairing where he offers you to enter the 6-digit code and connect the keyboard!

If you do not have Apple mouse - good luck.

Edit: A moderator tried to change my response to imply that the solution does work without Apple mouse if you wait longer. It does not. I waited for almost an hour. If you disagree, write a comment. Don't try to put words in my mouth.

  • For what it’s worth, the edit was made by an anonymous editor and the moderator just edited the grammar of that anonymous edit. I agree that the edit changes the intention of this answer and it should have been separate from your answer instead of an edit.
    – grg
    Oct 5, 2020 at 21:58
  • That is incorrect. The other user added more info which I also do not agree with. The moderator then came and re-edited which changed the entire narrative of the message and literally put words in my mouth Oct 5, 2020 at 22:01

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