[UBUNTU:usb-hid] enable Fn key on Macbook keyboard (Intel)

Ryan Lortie desrt at desrt.ca
Sun Jun 4 20:00:15 UTC 2006


This patch does two things:

1) Unconditionally enables support for powerbook Fn keys (they're not
enabled on x86 by default).

2) Adds the Macbook keyboard (by USB device number) as a known powerbook
type keyboard.

diff -ur orig/hid/hid-core.c new/hid/hid-core.c
--- linux/drivers/usb/input/hid-core.c	2006-06-03 02:02:21.000000000 -0400
+++ linux/drivers/usb/input/hid-core.c	2006-06-03 02:07:15.000000000 -0400
@@ -1601,6 +1601,7 @@
 	{ USB_VENDOR_ID_APPLE, 0x0214, HID_QUIRK_POWERBOOK_HAS_FN },
 	{ USB_VENDOR_ID_APPLE, 0x0215, HID_QUIRK_POWERBOOK_HAS_FN },
 	{ USB_VENDOR_ID_APPLE, 0x0216, HID_QUIRK_POWERBOOK_HAS_FN },
+	{ USB_VENDOR_ID_APPLE, 0x0217, HID_QUIRK_POWERBOOK_HAS_FN },
 	{ USB_VENDOR_ID_APPLE, 0x030A, HID_QUIRK_POWERBOOK_HAS_FN },
 	{ USB_VENDOR_ID_APPLE, 0x030B, HID_QUIRK_POWERBOOK_HAS_FN },
 
diff -ur orig/hid/hid-input.c new/hid/hid-input.c
--- linux/drivers/usb/input/hid-input.c	2006-06-03 02:02:21.000000000 -0400
+++ linux/drivers/usb/input/hid-input.c	2006-06-03 02:07:33.000000000 -0400
@@ -69,6 +69,10 @@
 	u8 flags;
 };

+#ifndef CONFIG_USB_HIDINPUT_POWERBOOK
+#define CONFIG_USB_HIDINPUT_POWERBOOK
+#endif
+
 #ifdef CONFIG_USB_HIDINPUT_POWERBOOK
 
 #define POWERBOOK_FLAG_FKEY 0x01



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 703 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20060604/5101a20a/attachment.pgp>


More information about the kernel-team mailing list