1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/linux/96-usb-hid-apple-kbd-mapping.patch
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 The Apple USB keyboards carry symbols differing from the on-wire values sent.
15 So we swap the events here simillar as in the 95-adb-mapping patch.
16 Likewise, default to the normal F* keys for usability on the Linux desktop.
18 - Rene Rebe <rene@exactcode.de>
20 --- linux-2.6.30/drivers/hid/hid-apple.c.orig 2009-09-19 22:34:35.000000000 +0200
21 +++ linux-2.6.30/drivers/hid/hid-apple.c 2009-09-19 22:34:44.000000000 +0200
24 #define APPLE_FLAG_FKEY 0x01
26 -static unsigned int fnmode = 1;
27 +static unsigned int fnmode = 2;
28 module_param(fnmode, uint, 0644);
29 MODULE_PARM_DESC(fnmode, "Mode of fn key on Apple keyboards (0 = disabled, "
30 "[1] = fkeyslast, 2 = fkeysfirst)");
32 MODULE_PARM_DESC(iso_layout, "Swap the backtick/tilde and greater-than/less-than keys. "
33 "([-1] = auto, 0 = disabled, 1 = enabled)");
35 -static unsigned int swap_opt_cmd;
36 +static unsigned int swap_opt_cmd = 1;
37 module_param(swap_opt_cmd, uint, 0644);
38 MODULE_PARM_DESC(swap_opt_cmd, "Swap the Option (\"Alt\") and Command (\"Flag\") keys. "
39 "(For people who want to keep Windows PC keyboard muscle memory. "