Warning: THE VOID WIKI IS DEPRECATED. It is no longer being maintained, contains outdated and incorrect information, and will eventually be shut down. Please refer to the Void Handbook, https://docs.voidlinux.org/, for the official documentation. If you can't find the information you're seeking, please raise an issue at https://github.com/void-linux/void-docs/issues

Difference between revisions of "Apple Keyboard -"

From Void Linux Wiki
Jump to navigation Jump to search
(Created page with "This is a guide on how to make Apple Keyboards behave exactly like normal keyboards.")
 
(Created.)
Line 1: Line 1:
This is a guide on how to make Apple Keyboards behave exactly like normal keyboards.
+
''This is a guide on how to make Apple Keyboards behave exactly like normal keyboards.''
 +
 
 +
{{note|This is not a pretty solution. It just changes the layout, i.e. normal Function keys, alt and cmd keys switched back, etc.}}
 +
 
 +
'''Prerequisites'''
 +
 
 +
You need to download/clone:
 +
 
 +
* [http://0pointer.de/lennart/projects/keyfuzz/keyfuzz-0.2.tar.gz keyfuzz]
 +
* [https://github.com/wget/un-apple-keyboard un-apple-keyboard]
 +
 
 +
You must have <code>udev</code> set up.
 +
 
 +
 
 +
'''Doing'''
 +
 
 +
First, untar the keyfuzz tarball whereever you like, cd into the directory, build and install it:
 +
 
 +
<pre># tar xvzf keyfuzz-0.2.tar.gz
 +
# cd keyfuzz-0.2
 +
# ./configure --with-init-dir=. --disable-lynx
 +
# make
 +
# sudo make install
 +
</pre>
 +
 
 +
Next, cd to the <code>un-apple-keyboard</code> repo. If you have an English International layout keyboard (the English International has the L-shaped Enter key), you may want to change
 +
 
 +
<pre>options hid_apple fnmode=2 iso_layout=0 swap_opt_cmd=1</pre>
 +
 
 +
to
 +
 
 +
<pre>options hid_apple fnmode=2 swap_opt_cmd=1</pre>
 +
 
 +
in the file <code>hid_apple.conf</code>.
 +
 
 +
Next, we install <code>un-apple-keyboard</code> manually (it's originally and AUR package):
 +
 
 +
<pre># sudo mkdir /etc/udev/rules.d
 +
# sudo cp 10-apple-keyboard-rules /etc/udev/rules.d/
 +
# sudo cp fix-apple-keyboard /usr/bin/
 +
# sudo mkdir /etc/keyfuzz
 +
# sudo cp apple_keyboard.keyfuzz /etc/keyfuzz/
 +
# sudo hid_apple.conf /etc/modprobe.d/
 +
# sudo mkdir -p /usr/share/licenses/un-apple-keyboard && sudo cp LICENSE /usr/share/licenses/un-apple-keyboard  -- Non functional step, default on Arch
 +
</pre>
 +
 
 +
Now for the last coup (if you're doing this from your Apple keyboard, do both in one step as shown here):
 +
 
 +
<pre># sudo rmmod hid_apple && sudo modprobe hid_apple</pre>
 +
 
 +
You may need to replug your keyboard.
 +
 
 +
 
 +
[[Category:Guides]]

Revision as of 21:39, 25 November 2017

This is a guide on how to make Apple Keyboards behave exactly like normal keyboards.

Note: This is not a pretty solution. It just changes the layout, i.e. normal Function keys, alt and cmd keys switched back, etc.

Prerequisites

You need to download/clone:

You must have udev set up.


Doing

First, untar the keyfuzz tarball whereever you like, cd into the directory, build and install it:

# tar xvzf keyfuzz-0.2.tar.gz
# cd keyfuzz-0.2
# ./configure --with-init-dir=. --disable-lynx
# make
# sudo make install

Next, cd to the un-apple-keyboard repo. If you have an English International layout keyboard (the English International has the L-shaped Enter key), you may want to change

options hid_apple fnmode=2 iso_layout=0 swap_opt_cmd=1

to

options hid_apple fnmode=2 swap_opt_cmd=1

in the file hid_apple.conf.

Next, we install un-apple-keyboard manually (it's originally and AUR package):

# sudo mkdir /etc/udev/rules.d
# sudo cp 10-apple-keyboard-rules /etc/udev/rules.d/
# sudo cp fix-apple-keyboard /usr/bin/
# sudo mkdir /etc/keyfuzz
# sudo cp apple_keyboard.keyfuzz /etc/keyfuzz/
# sudo hid_apple.conf /etc/modprobe.d/
# sudo mkdir -p /usr/share/licenses/un-apple-keyboard && sudo cp LICENSE /usr/share/licenses/un-apple-keyboard  -- Non functional step, default on Arch

Now for the last coup (if you're doing this from your Apple keyboard, do both in one step as shown here):

# sudo rmmod hid_apple && sudo modprobe hid_apple

You may need to replug your keyboard.