<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/hid/hid-apple.c, branch linux-6.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2023-12-12T13:50:47Z</updated>
<entry>
<title>HID: apple: Add "hfd.cn" and "WKB603" to the list of non-apple keyboards</title>
<updated>2023-12-12T13:50:47Z</updated>
<author>
<name>Yan Jun</name>
</author>
<published>2023-12-03T11:50:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=df83a0df820b9b705e51b9499691b0dafb2f4dcb'/>
<id>urn:sha1:df83a0df820b9b705e51b9499691b0dafb2f4dcb</id>
<content type='text'>
JingZao(京造) WKB603 keyboard is a rebranded product of Jamesdonkey RS2
keyboard, identified as "hfd.cn WKB603" in wired mode, "WKB603" in bluetooth
mode. Adding them to the list of non-apple keyboards fixes function key.

Signed-off-by: Yan Jun &lt;jerrysteve1101@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.com&gt;
</content>
</entry>
<entry>
<title>HID: apple: add Jamesdonkey and A3R to non-apple keyboards list</title>
<updated>2023-11-21T08:31:51Z</updated>
<author>
<name>Yihong Cao</name>
</author>
<published>2023-10-29T17:05:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=113f736655e4f20633e107d731dd5bd097d5938c'/>
<id>urn:sha1:113f736655e4f20633e107d731dd5bd097d5938c</id>
<content type='text'>
Jamesdonkey A3R keyboard is identified as "Jamesdonkey A3R" in wired
mode, "A3R-U" in wireless mode and "A3R" in bluetooth mode. Adding them
to non-apple keyboards fixes function key.

Signed-off-by: Yihong Cao &lt;caoyihong4@outlook.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: apple: Add "Hailuck" to the list of non-apple keyboards</title>
<updated>2023-08-16T13:20:59Z</updated>
<author>
<name>Nils Tonnaett</name>
</author>
<published>2023-08-15T20:19:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c4444d8749f696384947192b602718fa310c1caf'/>
<id>urn:sha1:c4444d8749f696384947192b602718fa310c1caf</id>
<content type='text'>
Powzan keyboards KB750 and KB770 identify as
"Hailuck Co.,Ltd USB Keyboard". Adding "Hailuck" to the list
of non-apple keyboards fixes function keys for these models.

Signed-off-by: Nils Tonnaett &lt;ntonnatt@ccrma.stanford.edu&gt;
Reviewed-by: Rahul Rameshbabu &lt;sergeantsagara@protonmail.com
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: apple: Option to swap only left side mod keys</title>
<updated>2023-06-09T15:40:43Z</updated>
<author>
<name>Lasse Brun</name>
</author>
<published>2023-05-22T18:40:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=72e49cadea390556ca60fad973740ddc5587e408'/>
<id>urn:sha1:72e49cadea390556ca60fad973740ddc5587e408</id>
<content type='text'>
On the Keychron K8 keyboard, and probably others, the right side keys
should not be swapped to maintain PC layout.

Swapping the right side keys moves 'Super' before 'Alt gr' which is not
intended by the default Keychron layout or the ISO layout.

Signed-off-by: Lasse Brun &lt;bruners@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: apple: Set the tilde quirk flag on the Geyser 3</title>
<updated>2023-04-13T15:02:10Z</updated>
<author>
<name>Alex Henrie</name>
</author>
<published>2023-04-04T02:48:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=29e1ecc197d410ee59c8877098d54cf417075f7d'/>
<id>urn:sha1:29e1ecc197d410ee59c8877098d54cf417075f7d</id>
<content type='text'>
I was finally able to obtain a MacBook1,1 to test and I've now confirmed
that it has the tilde key quirk as well:

Product    Model  Year  System      CPU    Shape  Labels     Country  Quirky
============================================================================
05ac:0218  A1181  2006  MacBook1,1  T2500  ISO    British    13       Yes

Signed-off-by: Alex Henrie &lt;alexhenrie24@gmail.com&gt;
Link: https://lore.kernel.org/r/20230404024829.13982-1-alexhenrie24@gmail.com
Signed-off-by: Benjamin Tissoires &lt;benjamin.tissoires@redhat.com&gt;
</content>
</entry>
<entry>
<title>HID: apple: explicitly include linux/leds.h</title>
<updated>2023-04-13T15:01:04Z</updated>
<author>
<name>Thomas Weißschuh</name>
</author>
<published>2023-02-15T01:03:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6c89c1160321725af1431bf6f365f3bfcb1f2350'/>
<id>urn:sha1:6c89c1160321725af1431bf6f365f3bfcb1f2350</id>
<content type='text'>
Instead of relying on an accidental, transitive inclusion of linux/leds.h
use it directly.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Link: https://lore.kernel.org/r/20230215-power_supply-leds-hid-v1-4-35b6f1dcee8a@weissschuh.net
Signed-off-by: Benjamin Tissoires &lt;benjamin.tissoires@redhat.com&gt;
</content>
</entry>
<entry>
<title>HID: apple: Set the tilde quirk flag on the Geyser 4 and later</title>
<updated>2023-03-10T14:49:43Z</updated>
<author>
<name>Alex Henrie</name>
</author>
<published>2023-02-27T03:06:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c3388ddc74a863466c7c3fa24d3a9cea9c9bca53'/>
<id>urn:sha1:c3388ddc74a863466c7c3fa24d3a9cea9c9bca53</id>
<content type='text'>
I recently tested several old MacBooks and as far as I can tell, all
MacBooks that have an ISO keyboard have the tilde key quirk:

Product    Model  Year  System      CPU    Shape  Labels     Country  Quirky
============================================================================
05ac:021b  A1181  2006  MacBook2,1  T5600  ISO    British    13       Yes
05ac:021b  A1181  2007  MacBook2,1  T7200  ISO    Québécois  13       Yes
05ac:0229  A1181  2007  MacBook4,1  T8300  ANSI   Usonian    33       No
05ac:022a  A1181  2007  MacBook4,1  T8100  ISO    English    13       Yes
05ac:022a  A1181  2007  MacBook5,2  P7350  ISO    Québécois  13       Yes
05ac:0237  A1278  2008  MacBook5,1  P7350  ISO    Dutch      13       Yes
05ac:0237  A1278  2009  MacBook5,5  P7550  ISO    British    13       Yes

The model number and year are from the laptop case. Since Apple printed
the same model and year on many different laptops, the system name (as
reported in the SMBIOS tables) and CPU form a more precise identifier.

Signed-off-by: Alex Henrie &lt;alexhenrie24@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: apple: Swap Control and Command keys on Apple keyboards</title>
<updated>2022-11-14T22:46:20Z</updated>
<author>
<name>Aditya Garg</name>
</author>
<published>2022-11-04T11:55:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fd7b68b763c4dfa65e3c145c624427d5fd11202f'/>
<id>urn:sha1:fd7b68b763c4dfa65e3c145c624427d5fd11202f</id>
<content type='text'>
This patch allows users to swap the control and command keys. This can be
useful for the Mac users who are used to using Command instead of Control
in macOS for various commonly used shortcuts.

Signed-off-by: Aditya Garg &lt;gargaditya08@live.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: apple: enable APPLE_ISO_TILDE_QUIRK for the keyboards of Macs with the T2 chip</title>
<updated>2022-11-02T13:02:39Z</updated>
<author>
<name>Kerem Karabay</name>
</author>
<published>2022-09-24T09:53:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=084bc074c231e716cbcb9e8f9db05b17fd3563cf'/>
<id>urn:sha1:084bc074c231e716cbcb9e8f9db05b17fd3563cf</id>
<content type='text'>
The iso_layout parameter must be manually set to get the driver to
swap KEY_102ND and KEY_GRAVE. This patch eliminates the need to do that.

This is safe to do, as Macs with keyboards that do not need the quirk
will keep working the same way as the value of hid-&gt;country will be
different than HID_COUNTRY_INTERNATIONAL_ISO. This was tested by one
person with a Mac with the WELLSPRINGT2_J152F keyboard with a layout
that does not require the quirk to be set.

Signed-off-by: Kerem Karabay &lt;kekrby@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: apple: fix key translations where multiple quirks attempt to translate the same key</title>
<updated>2022-11-02T13:02:36Z</updated>
<author>
<name>Kerem Karabay</name>
</author>
<published>2022-09-24T09:53:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5476fcf7f7b901db1cea92acb1abdd12609e30e1'/>
<id>urn:sha1:5476fcf7f7b901db1cea92acb1abdd12609e30e1</id>
<content type='text'>
The hid-apple driver does not support chaining translations or
dependencies on other translations. This creates two problems:

1 - In Non-English keyboards of Macs, KEY_102ND and KEY_GRAVE are
swapped and the APPLE_ISO_TILDE_QUIRK is used to work around this
problem. The quirk is not set for the Macs where these bugs happen yet
(see the 2nd patch for that), but this can be forced by setting the
iso_layout parameter. Unfortunately, this only partially works.
KEY_102ND gets translated to KEY_GRAVE, but KEY_GRAVE does not get
translated to KEY_102ND, so both of them end up functioning as
KEY_GRAVE. This is because the driver translates the keys as if Fn was
pressed and the original is sent if it is not pressed, without any
further translations happening on the key[#463]. KEY_GRAVE is present at
macbookpro_no_esc_fn_keys[#195], so this is what happens:

    - KEY_GRAVE -&gt; KEY_ESC (as if Fn is pressed)
    - KEY_GRAVE is returned (Fn isn't pressed, so translation is discarded)
    - KEY_GRAVE -&gt; KEY_102ND (this part is not reached!)
    ...

2 - In case the touchbar does not work, the driver supports sending
Escape when Fn+KEY_GRAVE is pressed. As mentioned previously, KEY_102ND
is actually KEY_GRAVE and needs to be translated before this happens.

Normally, these are the steps that should happen:

    - KEY_102ND -&gt; KEY_GRAVE
    - KEY_GRAVE -&gt; KEY_ESC (Fn is pressed)
    - KEY_ESC is returned

Though this is what happens instead, as dependencies on other
translations are not supported:

    - KEY_102ND -&gt; KEY_ESC (Fn is pressed)
    - KEY_ESC is returned

This patch fixes both bugs by ordering the translations correctly and by
making the translations continue and not return immediately after
translating a key so that chained translations work and translations can
depend on other ones.

This patch also simplifies the implementation of the swap_fn_leftctrl
option a little bit, as it makes it simply use a normal translation
instead adding extra code to translate a key to KEY_FN[#381]. This change
wasn't put in another patch as the code that translates the Fn key needs
to be changed because of the changes in the patch, and those changes
would be discarded with the next patch anyway (the part that originally
translates KEY_FN to KEY_LEFTCTRL needs to be made an else-if branch of
the part that transltes KEY_LEFTCTRL to KEY_FN).

Note: Line numbers (#XYZ) are for drivers/hid/hid-apple.c at commit
20afcc462579 ("HID: apple: Add "GANSS" to the non-Apple list").

Note: These bugs are only present on Macs with a keyboard with no
dedicated escape key and a non-English layout.

Signed-off-by: Kerem Karabay &lt;kekrby@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
</feed>
