Skip to content

Instantly share code, notes, and snippets.

@douglasrizzo
Last active May 6, 2022 13:47
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglasrizzo/404a4da88b252a4ae0a82b142b18a2ac to your computer and use it in GitHub Desktop.
Save douglasrizzo/404a4da88b252a4ae0a82b142b18a2ac to your computer and use it in GitHub Desktop.
Connect Apple Keyboard to Manjaro Linux

Blueman does not help when connecting the Apple Keyboard to Manjaro. In the future, follow these steps to fully configure it. This needs package bluez-utils.:

  1. Get the device's MAC Address:
$ bluetoothctl
[bluetooth]$ power on
Changing power on succeeded
[bluetooth]$ devices
Device 00:11:22:33:44:55 Apple Wireless Keyboard
  1. Connect the device to Bluetooth. While still logged to bluetoothctl:
[bluetooth]$ agent KeyboardOnly
Agent is already registered
[bluetooth]$ default-agent
Default agent request successful
[bluetooth]$ pairable on
Changing pairable on succeeded
[bluetooth]$ pair 00:11:22:33:44:55
Attempting to pair with 00:11:22:33:44:55
Failed to pair: org.bluez.Error.AlreadyExists
[bluetooth]$ trust 00:11:22:33:44:55
Changing 00:11:22:33:44:55 trust succeeded
[bluetooth]$ connect 00:11:22:33:44:55
Attempting to connect to 00:11:22:33:44:55
[CHG] Device 00:11:22:33:44:55 Connected: yes
[Apple Wireless Keyboard]$
  1. Disable Num Lock (in case it's on): Press Fn + F6 twice
  2. Disable Fn Key (in case it's on) :
echo 2 > /sys/module/hid_apple/parameters/fnmode
echo options hid_apple fnmode=2 > /etc/modprobe.d/hid_apple.conf
  1. Configure US International layout:
setxkbmap -model apple -layout us -variant intl
  1. cheat sheet for US International: https://www.starr.net/is/type/intlchart.html

Note: if you run into a "Permission denied" problem in step 4, try entering a sudo environment using su and then run the commands again.

@hems
Copy link

hems commented Oct 31, 2020

weirdly enough echo 2 > /sys/module/hid_apple/parameters/fnmode will tell me "permission denied" even if i'm running sudo
and echo options hid_apple fnmode=2 > /etc/modprobe.d/hid_apple.conf even after restarting.

Running Manjaro 20.1.2 kernel 5.8.16

i must be doing something wrong..

thanks for the information anyway, the setxkbmap did work for me

@douglasrizzo
Copy link
Author

@hems I just ran into this same problem. I solved it by going into a sudo terminal, using su, and then running the commands.

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