All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Kaminsky <me@akaminsky.net>
To: linux-input@vger.kernel.org
Cc: Jiri Kosina <jkosina@suse.cz>
Subject: Apple Wireless Keyboard 2011 (ANSI) Fn key Bug
Date: Sat, 21 Apr 2012 02:19:18 +0300	[thread overview]
Message-ID: <4F91EEF6.6010902@akaminsky.net> (raw)

Hello.

I paired my Apple Wireless Keyboard 2011(ANSI, device id 05AC:0255) with 
my pc.
Almost everything works well, except for the Fn key.I found that  my 
kernel  was  compiled  without support for  hid-apple.
I included this module in my kernel, but Fn-button still not working.

I looked at the source code and saw the missing definition of
USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ANSI in apple_devices structure
(hid-apple.c file).

Now everything works fine.

Patch to solve the problem is attached below
Thanks, Alexey Kaminsky.
PS. Link to the bugzilla thread: 
https://bugzilla.kernel.org/show_bug.cgi?id=43135


apple-wireless-ansi-2011.patch

Signed-off-by: Alexey Kaminsky<me@akaminsky.net>
diff -ur linux-3.3-orig/drivers/hid/hid-apple.c 
linux-3.3/drivers/hid/hid-apple.c
--- linux-3.3-orig/drivers/hid/hid-apple.c	2012-04-20 14:17:34.256877478 
+0300
+++ linux-3.3/drivers/hid/hid-apple.c	2012-04-20 17:34:00.915875131 +0300
@@ -458,6 +458,9 @@
   	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, 
USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ISO),
   		.driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN |
   			APPLE_ISO_KEYBOARD },
+	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE,
+				USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ANSI),
+		.driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
   	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, 
USB_DEVICE_ID_APPLE_ALU_WIRELESS_JIS),
   		.driver_data = APPLE_NUMLOCK_EMULATION | APPLE_HAS_FN },
   	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, 
USB_DEVICE_ID_APPLE_WELLSPRING_ANSI),



                 reply	other threads:[~2012-04-20 23:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F91EEF6.6010902@akaminsky.net \
    --to=me@akaminsky.net \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.