* mark python sqlite DEP opt and update .cache
[t2sde.git] / package / kernel / linux / 96-usb-hid-apple-kbd-mapping.patch
blob8c2beb9f54ca0300f98cc721e1213e150373963c
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
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
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
22 @@ -45,7 +45,7 @@
23 MODULE_PARM_DESC(iso_layout, "Swap the backtick/tilde and greater-than/less-than keys. "
24 "([-1] = auto, 0 = disabled, 1 = enabled)");
26 -static unsigned int swap_opt_cmd;
27 +static unsigned int swap_opt_cmd = 1;
28 module_param(swap_opt_cmd, uint, 0644);
29 MODULE_PARM_DESC(swap_opt_cmd, "Swap the Option (\"Alt\") and Command (\"Flag\") keys. "
30 "(For people who want to keep Windows PC keyboard muscle memory. "