When your Apple Bluetooth Keyboard disconnects immediately after connection

  • Gentoo Linux

Try bluetoothctl -a, instead of just bluetoothctl.

$ bluetoothctl
scan on
scan off (once you find your device)
pair {the id}
{input the pin from the keyboard}

If it still doesn’t work

modprobe applesmc