Thread (1 message) 1 message, 1 author, 2016-09-19

Re: [PATCH] HID: apple: Fix the '`'/'~' key issue for MacBook Air 6,2.

From: Jiri Kosina <jikos@kernel.org>
Date: 2016-09-19 13:04:49

On Wed, 31 Aug 2016, Yuan Chao wrote:
The '`'/'~' key delivers '<'/'>' on MacBook Air 6,2. [1] By forcing
the module parameter iso_layout = 0, this issue can be fixed. [2][3]
This patch checks the DMI information and sets the parameter.

[1] https://bugzilla.kernel.org/show_bug.cgi?id=60181#c43
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1025041
[3] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1245081

(Sorry Jiri for duplicated message)
Hi,

thanks for the patch.
quoted hunk
+       /*
+        * This is to solve the 'tilt' key problem on
+        * macbook air 6,2 problem by setting iso_layout = 0
+        */
+       if ((quirks & APPLE_ISO_KEYBOARD) &&
+           dmi_name_in_vendors("Apple Inc.") &&
+           dmi_match(DMI_PRODUCT_NAME, "MacBookAir6,2")) {
+         hid_info(hdev, "Parameter iso_layout is set to 0 for MacBook Air 6,2.\n");
+         iso_layout = 0;
+       }
+
Can't we really rather introduce device-ID based quirk? Odds are that 
there will be more devices (rebranded stuff etc) appearing that'd need the 
same quirk, and scaling up DMI matching is just horrible.

Thanks,

-- 
Jiri Kosina
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help