public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nico Schottelius <nico-linux-20111017@schottelius.org>
To: Nico Schottelius <nico-linux-20111017@schottelius.org>,
	Jiri Kosina <jkosina@suse.cz>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: Keyboard and mouse issues on MacBook Air (4,2)
Date: Sat, 22 Oct 2011 04:02:05 +0200	[thread overview]
Message-ID: <20111022020205.GA26724@schottelius.org> (raw)
In-Reply-To: <20111019210742.GA2432@schottelius.org>

Hey Jiri,

I've found the problematic block in drivers/hid/hid-apple.c:180:

180    if (fnmode) {
181       int do_translate;
182 
183       if (hid->product >= USB_DEVICE_ID_APPLE_WELLSPRING4_ANSI &&
184             hid->product <= USB_DEVICE_ID_APPLE_WELLSPRING4A_JIS)
185          table = macbookair_fn_keys;
186       else if (hid->product >= USB_DEVICE_ID_APPLE_WELLSPRING6_ANSI &&
187             hid->product <= USB_DEVICE_ID_APPLE_WELLSPRING6_JIS)
188          table = macbookair_fn_keys;
189       else if (hid->product < 0x21d || hid->product >= 0x300)
190          table = powerbook_fn_keys;
191       else
192          table = apple_fn_keys;

The second range (186-188) specified matches my MacBookAir, which needs the new table I defined
in my previous commit: My device matches USB_DEVICE_ID_APPLE_WELLSPRING6_ISO (024D):

[    2.639063] apple 0003:05AC:024D.0001: input,hidraw0: USB HID v1.11 Keyboard [Apple Inc. Apple Internal Keyboard / Trackpad] on usb-0000:00:1a.7-1.2/input0
[    2.694742] usb 2-1.1: new high speed USB device number 3 using ehci_hcd
[    2.736895] apple 0003:05AC:024D.0002: hidraw1: USB HID v1.11 Device [Apple Inc. Apple Internal Keyboard / Trackpad] on usb-0000:00:1a.7-1.2/input1

The question for me is know, which range matches to the table I am using
and which range maps to the original table.

I know that the MacBook Air 3,1 must use the old table, so I IMAGINE this is
the first block (183-185).

So my next guess is that MBA 3,1 - 3,2 need to use the first table, while MBA 4,1 - 4,2 need
the second one.

Can you verify my assumption or do you have any hints on how the MacBook Airs and
the Keyboard layouts match? 

Cheers,

Nico

-- 
PGP key: 7ED9 F7D3 6B10 81D7 0EC5  5C09 D7DC C8E4 3187 7DF0

  parent reply	other threads:[~2011-10-22  2:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-17 17:59 Keyboard and mouse issues on MacBook Air (4,2) Nico Schottelius
2011-10-17 18:16 ` Jiri Kosina
2011-10-17 21:40   ` Nico Schottelius
2011-10-17 21:49     ` Nico Schottelius
2011-10-19 15:01     ` Nico Schottelius
2011-10-19 15:04       ` Jiri Kosina
2011-10-19 21:07         ` Nico Schottelius
2011-10-19 21:25           ` Nico Schottelius
2011-10-21 18:22           ` Nico Schottelius
2011-10-22  2:02           ` Nico Schottelius [this message]
2011-10-22 10:24             ` Nico Schottelius
2011-10-28 15:46               ` Jiri Kosina
2011-10-31 22:37                 ` Nico Schottelius

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=20111022020205.GA26724@schottelius.org \
    --to=nico-linux-20111017@schottelius.org \
    --cc=jkosina@suse.cz \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox