Skip to contentSkip to conversation

Fn key and 2.6.12-rc4

DISCUSSION Stelian Pop 1 participant 1 message Aug 2, 2005 11 messages not in the archive USB

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#11 lore raw
Quoted 7 lines · Elimar Riesebieter
Quoted 7 lines

[ fnkey not working on Apple Powerbooks in -mm tree ]

Hmm, there seem to be a lot of divergence between -mm and linus tree here, and this may be the cause of the malfunction.

Let me do some tests tomorrow with an -mm kernel and see if I find something.

Ok, the -mm tree contains some other input patches which conflict with my Fn key patch (input-quirk-for-the-fn-key-on-powerbooks-with-an-usb.patch). The attached patch makes it work again.

Andrew, please apply.

Stelian.

Newer input patches added a HID_UP_LOGIVENDOR switch case which disrupts the Apple Powerbooks Fn key patch. Moving a few lines of code from the 'default' switch case to the new location makes it work again.

drivers/usb/input/hid-input.c +6 -4
Index: linux-2.6.12-rc4-mm1/drivers/usb/input/hid-input.c
===================================================================
@@ -323,6 +323,11 @@
 
 		case HID_UP_MSVENDOR:
 		case HID_UP_LOGIVENDOR:
+
+			if ((device->quirks & HID_QUIRK_POWERBOOK_FN_BUTTON) && (usage->hid == 0x00ff0003)) {
+				map_key_clear(KEY_RIGHTCTRL);
+				break;
+			}
 			goto ignore;
 
 		case HID_UP_LOGIVENDOR2: /* Reported on Logitech Ultra X Media Remote */
@@ -376,10 +381,7 @@
 
 		default:
 		unknown:
-			if ((device->quirks & HID_QUIRK_POWERBOOK_FN_BUTTON) && (usage->hid == 0x00ff0003)) {
-				map_key_clear(KEY_RIGHTCTRL);
-				break;
-			}
+
 			if (field->report_size == 1) {
 				if (field->report->type == HID_OUTPUT_REPORT) {
 					map_led(LED_MISC);
Signature · 1 line
Stelian Pop <[email protected]>