rpms/kernel/F-9 linux-2.6-input-atkbd-broaden-dell-signatures.patch, NONE, 1.1.2.1 linux-2.6-input-atkbd-samsung-nc10-key-repeat-fix.patch, NONE, 1.1.2.1 kernel.spec, 1.891.2.12, 1.891.2.13

Chuck Ebbert cebbert at fedoraproject.org
Thu Jan 29 07:48:31 UTC 2009


Author: cebbert

Update of /cvs/pkgs/rpms/kernel/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29571

Modified Files:
      Tag: private-fedora-9-2_6_27-branch
	kernel.spec 
Added Files:
      Tag: private-fedora-9-2_6_27-branch
	linux-2.6-input-atkbd-broaden-dell-signatures.patch 
	linux-2.6-input-atkbd-samsung-nc10-key-repeat-fix.patch 
Log Message:
Add keyboard quirks for more systems:
  Some Dell machines have a different vendor name in DMI.
  Samsung NC10 doesn't generate keyup for some keys.

linux-2.6-input-atkbd-broaden-dell-signatures.patch:

--- NEW FILE linux-2.6-input-atkbd-broaden-dell-signatures.patch ---
From: Matthew Garrett <mjg59 at srcf.ucam.org>
Date: Tue, 30 Dec 2008 08:43:11 +0000 (-0800)
Subject: Input: atkbd - broaden the Dell DMI signatures
X-Git-Tag: v2.6.29-rc1~221^2~1^2~2
X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=2a3ec3265741c3b2a7ebbd1b33f538e5a5583c48

Input: atkbd - broaden the Dell DMI signatures

Some Dells need the dell input quirk applied but have a different vendor
string in their DMI tables. Add an extra entry to cover these machines as
well.

Signed-off-by: Matthew Garrett <mjg at redhat.com>
Signed-off-by: Dmitry Torokhov <dtor at mail.ru>
---

diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index 97f709f..f6e9f39 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -1509,6 +1509,15 @@ static struct dmi_system_id atkbd_dmi_quirk_table[] __initdata = {
 		.driver_data = atkbd_dell_laptop_keymap_fixup,
 	},
 	{
+		.ident = "Dell Laptop",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Computer Corporation"),
+			DMI_MATCH(DMI_CHASSIS_TYPE, "8"), /* Portable */
+		},
+		.callback = atkbd_setup_fixup,
+		.driver_data = atkbd_dell_laptop_keymap_fixup,
+	},
+	{
 		.ident = "HP 2133",
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),

linux-2.6-input-atkbd-samsung-nc10-key-repeat-fix.patch:

--- NEW FILE linux-2.6-input-atkbd-samsung-nc10-key-repeat-fix.patch ---
From: Stuart Hopkins <stuart at dodgy-geeza.com>
Date: Sat, 20 Dec 2008 09:12:33 +0000 (-0500)
Subject: Input: atkbd - Samsung NC10 key repeat fix
X-Git-Tag: v2.6.29-rc1~221^2~1^2~13
X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=4200844bd9dc511088258437d564a187f0ffc94e

Input: atkbd - Samsung NC10 key repeat fix

This patch fixes the key repeat issue with the Fn+F? keys on the new
Samsung NC10 Netbook, so that the keys can be defined and used within
ACPID correctly, otherwise the keys repeat indefinately.

This solves part of http://bugzilla.kernel.org/show_bug.cgi?id=12021

Signed-off-by: Stuart Hopkins <stuart at dodgy-geeza.com>
Signed-off-by: Dmitry Torokhov <dtor at mail.ru>
---

diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index fa6ed33..97f709f 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -901,6 +901,22 @@ static void atkbd_hp_zv6100_keymap_fixup(struct atkbd *atkbd)
 }
 
 /*
+ * Samsung NC10 with Fn+F? key release not working
+ */
+static void atkbd_samsung_keymap_fixup(struct atkbd *atkbd)
+{
+	const unsigned int forced_release_keys[] = {
+		0x82, 0x83, 0x84, 0x86, 0x88, 0x89, 0xb3, 0xf7, 0xf9,
+	};
+	int i;
+
+	if (atkbd->set == 2)
+		for (i = 0; i < ARRAY_SIZE(forced_release_keys); i++)
+			__set_bit(forced_release_keys[i],
+				  atkbd->force_release_mask);
+}
+
+/*
  * atkbd_set_keycode_table() initializes keyboard's keycode table
  * according to the selected scancode set
  */
@@ -1519,6 +1535,15 @@ static struct dmi_system_id atkbd_dmi_quirk_table[] __initdata = {
 		.callback = atkbd_setup_fixup,
 		.driver_data = atkbd_inventec_keymap_fixup,
 	},
+	{
+		.ident = "Samsung NC10",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
+			DMI_MATCH(DMI_PRODUCT_NAME, "NC10"),
+		},
+		.callback = atkbd_setup_fixup,
+		.driver_data = atkbd_samsung_keymap_fixup,
+	},
 	{ }
 };
 


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-9/kernel.spec,v
retrieving revision 1.891.2.12
retrieving revision 1.891.2.13
diff -u -r1.891.2.12 -r1.891.2.13
--- kernel.spec	26 Jan 2009 21:28:13 -0000	1.891.2.12
+++ kernel.spec	29 Jan 2009 07:47:59 -0000	1.891.2.13
@@ -653,6 +653,8 @@
 Patch452: linux-2.6.27-hwmon-applesmc-2.6.28.patch
 # 448656
 Patch454: linux-2.6-input.git-i8042-add-xps-m1530-to-nomux.patch
+Patch455: linux-2.6-input-atkbd-broaden-dell-signatures.patch
+Patch456: linux-2.6-input-atkbd-samsung-nc10-key-repeat-fix.patch
 
 Patch460: linux-2.6-serial-460800.patch
 Patch510: linux-2.6-silence-noise.patch
@@ -1221,6 +1223,10 @@
 ApplyPatch linux-2.6.27-hwmon-applesmc-2.6.28.patch
 # 448656
 ApplyPatch linux-2.6-input.git-i8042-add-xps-m1530-to-nomux.patch
+# apply dell quirks to additional machines
+ApplyPatch linux-2.6-input-atkbd-broaden-dell-signatures.patch
+# fix key repeats on Samsung NC10
+ApplyPatch linux-2.6-input-atkbd-samsung-nc10-key-repeat-fix.patch
 
 # Allow to use 480600 baud on 16C950 UARTs
 ApplyPatch linux-2.6-serial-460800.patch
@@ -1910,6 +1916,11 @@
 %kernel_variant_files -a /%{image_install_path}/xen*-%{KVERREL}.xen -e /etc/ld.so.conf.d/kernelcap-%{KVERREL}.xen.conf %{with_xen} xen
 
 %changelog
+* Thu Jan 29 2009 Chuck Ebbert <cebbert at redhat.com> 2.6.27.13-78.2.13
+- Add keyboard quirks for more systems:
+  Some Dell machines have a different vendor name in DMI.
+  Samsung NC10 doesn't generate keyup for some keys.
+
 * Mon Jan 26 2009 Kyle McMartin <kyle at redhat.com> 2.6.27.13-78.2.12
 - 2.6.27.13 final
 




More information about the fedora-extras-commits mailing list