linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] HID: apple: Add support for Matias wireless keyboard
@ 2020-07-20 20:53 BALATON Zoltan
  2020-08-17 10:15 ` Jiri Kosina
  0 siblings, 1 reply; 5+ messages in thread
From: BALATON Zoltan @ 2020-07-20 20:53 UTC (permalink / raw)
  To: linux-input; +Cc: Jiri Kosina, Benjamin Tissoires

The Matias Wireless keyboard has an Apple like layout and identifies
as ISO RevB Alu keyboard. Use hid-apple for it so Fn key and media
control functions work as expected.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
 drivers/hid/hid-apple.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c
index e82f604d33e9..6b8f0d004d34 100644
--- a/drivers/hid/hid-apple.c
+++ b/drivers/hid/hid-apple.c
@@ -503,6 +503,8 @@ static const struct hid_device_id apple_devices[] = {
 		.driver_data = APPLE_HAS_FN },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ISO),
 		.driver_data = APPLE_HAS_FN },
+	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ISO),
+		.driver_data = APPLE_HAS_FN },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_JIS),
 		.driver_data = APPLE_HAS_FN },
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI),
-- 
2.21.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] HID: apple: Add support for Matias wireless keyboard
  2020-07-20 20:53 [PATCH] HID: apple: Add support for Matias wireless keyboard BALATON Zoltan
@ 2020-08-17 10:15 ` Jiri Kosina
  2020-08-17 10:17   ` Jiri Kosina
  2020-08-17 13:16   ` BALATON Zoltan
  0 siblings, 2 replies; 5+ messages in thread
From: Jiri Kosina @ 2020-08-17 10:15 UTC (permalink / raw)
  To: BALATON Zoltan; +Cc: linux-input, Benjamin Tissoires, Dan Bastone

On Mon, 20 Jul 2020, BALATON Zoltan wrote:

> The Matias Wireless keyboard has an Apple like layout and identifies
> as ISO RevB Alu keyboard. Use hid-apple for it so Fn key and media
> control functions work as expected.
> 
> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>

So If I understand correctly, this keyboard identifies itself with Apple 
VID, but in fact it is not.

I'd like to make sure that we don't break the real 
USB_DEVICE_ID_APPLE_ALU_REVB_ISO device produced by Apple; CCing Dan 
Bastone, who added this device ID back in 2011 (4a4c879904aa). Dan, any 
ideas please?

Thanks,

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] HID: apple: Add support for Matias wireless keyboard
  2020-08-17 10:15 ` Jiri Kosina
@ 2020-08-17 10:17   ` Jiri Kosina
  2020-08-17 13:16   ` BALATON Zoltan
  1 sibling, 0 replies; 5+ messages in thread
From: Jiri Kosina @ 2020-08-17 10:17 UTC (permalink / raw)
  To: BALATON Zoltan; +Cc: linux-input, Benjamin Tissoires, Dan Bastone

On Mon, 17 Aug 2020, Jiri Kosina wrote:

> > The Matias Wireless keyboard has an Apple like layout and identifies
> > as ISO RevB Alu keyboard. Use hid-apple for it so Fn key and media
> > control functions work as expected.
> > 
> > Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
> 
> So If I understand correctly, this keyboard identifies itself with Apple 
> VID, but in fact it is not.
> 
> I'd like to make sure that we don't break the real 
> USB_DEVICE_ID_APPLE_ALU_REVB_ISO device produced by Apple; CCing Dan 
> Bastone, who added this device ID back in 2011 (4a4c879904aa). Dan, any 
> ideas please?

OK, Dan's e-mail address doesn't work any more. Let's conservatively queue 
this for 5.10, and in case there are any regression reports against stock 
Apple keyboards, we'll have to look for ways to work it around.

Yay for VID sharing :/

Thanks,

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] HID: apple: Add support for Matias wireless keyboard
  2020-08-17 10:15 ` Jiri Kosina
  2020-08-17 10:17   ` Jiri Kosina
@ 2020-08-17 13:16   ` BALATON Zoltan
  2020-08-17 14:44     ` Jiri Kosina
  1 sibling, 1 reply; 5+ messages in thread
From: BALATON Zoltan @ 2020-08-17 13:16 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-input, Benjamin Tissoires, Dan Bastone

On Mon, 17 Aug 2020, Jiri Kosina wrote:
> On Mon, 20 Jul 2020, BALATON Zoltan wrote:
>> The Matias Wireless keyboard has an Apple like layout and identifies
>> as ISO RevB Alu keyboard. Use hid-apple for it so Fn key and media
>> control functions work as expected.
>>
>> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
>
> So If I understand correctly, this keyboard identifies itself with Apple
> VID, but in fact it is not.
>
> I'd like to make sure that we don't break the real
> USB_DEVICE_ID_APPLE_ALU_REVB_ISO device produced by Apple; CCing Dan

AFAIK the Apple keyboard with the same pid is a USB one and is already 
handled by hid-apple. This one is a bluetooth keyboard so probably does 
not really clash and even if there's an Apple wireless keyboard with the 
same pid it's more likely we want hid-apple for that too so it's unlikely 
to break anything. (This Matias keyboard looks and acts like an Apple 
keyboard so probably uses this vid/pid to have macOS work better with it 
out of the box without needing additional setup.)

Regards,
BALATON Zoltan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] HID: apple: Add support for Matias wireless keyboard
  2020-08-17 13:16   ` BALATON Zoltan
@ 2020-08-17 14:44     ` Jiri Kosina
  0 siblings, 0 replies; 5+ messages in thread
From: Jiri Kosina @ 2020-08-17 14:44 UTC (permalink / raw)
  To: BALATON Zoltan; +Cc: linux-input, Benjamin Tissoires, Dan Bastone

On Mon, 17 Aug 2020, BALATON Zoltan wrote:

> AFAIK the Apple keyboard with the same pid is a USB one and is already 
> handled by hid-apple. This one is a bluetooth keyboard so probably does 
> not really clash and even if there's an Apple wireless keyboard with the 
> same pid it's more likely we want hid-apple for that too so it's 
> unlikely to break anything. (This Matias keyboard looks and acts like an 
> Apple keyboard so probably uses this vid/pid to have macOS work better 
> with it out of the box without needing additional setup.)

Thanks for the bakcground. The patch is now in hid.git#for-5.10/apple

-- 
Jiri Kosina
SUSE Labs


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-08-17 14:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-20 20:53 [PATCH] HID: apple: Add support for Matias wireless keyboard BALATON Zoltan
2020-08-17 10:15 ` Jiri Kosina
2020-08-17 10:17   ` Jiri Kosina
2020-08-17 13:16   ` BALATON Zoltan
2020-08-17 14:44     ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).