Skip to content

Instantly share code, notes, and snippets.

@jiphex
Last active February 14, 2023 13:58
Show Gist options
  • Save jiphex/8349124 to your computer and use it in GitHub Desktop.
Save jiphex/8349124 to your computer and use it in GitHub Desktop.
Pairing an Apple Bluetooth keyboard with Fedora 20

For some reason, this didn't work with the standard GUI bluetooth tools, so I did the following

  1. Run the command-line bluetoothctl tool
  2. type "agent on"
  3. type "scan on"
  4. press the button on your keyboard, the light should flash if it's not paired with anything else
  5. type "devices" (this shows the list of devices)
  6. type "trust xxxx" where xxxx is the keyboard MAC
  7. type "connect xxxx" where xxxx is the keyboard MAC
  8. type "pair xxxx" where xxxx is the keyboard MAC
  9. it should give you a code, type the code on the bluetooth keyboard's numbers, then press enter (on the bluetooth keyboard)
  10. hopefully you should be paired now

Note: I wrote this from memory, and I'm not sure if the trust/connect steps are necessary.

See also: https://wiki.archlinux.org/index.php/Bluetooth_Keyboard#Pairing_process

@ulfbert-inc
Copy link

thank you!

@ekuester
Copy link

Thanks a lot! It works still under Fedora 25, but before succeeding I have to remove the batteries, wait 10 seconds or so and put them in again.

@stewartshea
Copy link

Thanks! Works on Fedora 26 Gnome3 as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment