Skip to contentSkip to conversation

2015 Apple bluetooth keybord and magic mouse support

Bug 99881 [email protected] 1 participant 9 messages Oct 17, 2018 – Mar 22, 2020 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=99881

--- Comment #52 from [email protected] ---
This is partially fixed with
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/hid?id=ee345492437043a79db058a3d4f029ebcb52089a

However, the Fn key still does not work. Apparently it still picks hid-generic driver:

[107893.090949] hid-generic 0005:004C:0267.0007: unknown main item tag 0x0
[107893.091122] input: Magic Keyboard as
/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/bluetooth/hci0/hci0:256/0005:004C:0267.0007/input/input24
[107893.091794] hid-generic 0005:004C:0267.0007: input,hidraw3: BLUETOOTH HID

v0.67 Keyboard [Magic Keyboard] on a4:34:d9:5a:c7:14

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#2 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=99881

--- Comment #53 from Fabio Falci ([email protected]) --- It's working for me:

[   22.260447] apple 0005:004C:0267.0007: unknown main item tag 0x0
[   22.260626] input: FabsKeyboard as
/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.2/bluetooth/hci0/hci0:12/0005:004C:0267.0007/input/input18
[   22.261181] apple 0005:004C:0267.0007: input,hidraw6: BLUETOOTH HID v0.67

Keyboard [FabsKeyboard] on a0:99:9b:19:24:18

Fn key is working, using bluetooth.

Now I'm able to use:

$ cat /etc/modprobe.d/hid_apple.conf
options hid_apple swap_opt_cmd=1
options hid_apple fnmode=2
options hid_apple iso_layout=0

Which before only worked when cabled.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#3 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=99881

--- Comment #54 from [email protected] ---
It did not work on 4.14.76 for me.
(In reply to Fabio Falci from comment #53)

Quoted 11 lines

It's working for me:

[   22.260447] apple 0005:004C:0267.0007: unknown main item tag 0x0
[   22.260626] input: FabsKeyboard as
/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.2/bluetooth/hci0/hci0:12/
0005:004C:0267.0007/input/input18
[   22.261181] apple 0005:004C:0267.0007: input,hidraw6: BLUETOOTH HID v0.67

Keyboard [FabsKeyboard] on a0:99:9b:19:24:18

Fn key is working, using bluetooth.

What kernel is it? It did not work for me on 4.14.76.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#6 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=99881

Josh Goebel ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #63 from Josh Goebel ([email protected]) ---
I have a version 1.0 identifying Apple Magic Keyboard 2. From what I can tell (at a quick glance) it's descriptor does NOT match what the kernel is expecting.

The kernel is expecting either 0xFF000003 or 0x00FF0003 for Usage HID. From my reading of the description it seems like it would be: 0xFF010003.

Seems we need at add another Usage HID variant?

Relevant descriptor dump:

```
     Report Count (1),
        Report Size (1),
        Logical Minimum (0),
        Logical Maximum (1),
        Usage Page (Consumer),                      ; Consumer (0Ch)
        Usage (Eject),                              ; Eject (B8h, one-shot
control)
        Input (Variable),
        Report Count (1),
        Report Size (1),
        Usage Page (FF01h),                         ; FF01h, vendor-defined
        Usage (03h),
        Input (Variable),
```

Sorry if this is formatted terribly. Not matter what I do the Preview looks terrible and this is my first time posting here.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#7 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=99881

--- Comment #66 from Mansour Behabadi ([email protected]) --- Submitted a patch to the kernel: https://lkml.org/lkml/2020/1/29/61 potentially fixing https://bugzilla.kernel.org/show_bug.cgi?id=99881#c62 ,
https://bugzilla.kernel.org/show_bug.cgi?id=99881#c63 and
https://bugzilla.kernel.org/show_bug.cgi?id=99881#c64 .

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#8 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=99881

Dancon ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #67 from Dancon ([email protected]) --- (In reply to Mansour Behabadi from comment #66)

Quoted 4 lines

Submitted a patch to the kernel: https://lkml.org/lkml/2020/1/29/61
potentially fixing https://bugzilla.kernel.org/show_bug.cgi?id=99881#c62 ,
https://bugzilla.kernel.org/show_bug.cgi?id=99881#c63 and
https://bugzilla.kernel.org/show_bug.cgi?id=99881#c64 .

Thank u so much. It's save my day.

Linux 5.2.1-050201-generic, this patch fix fn key for MLA22

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.