Skip to content

Commit 9c34660

Browse files
nimishgautamJiri Kosina
authored andcommitted
HID: input: Fix Apple Magic Trackpad 1 Bluetooth disconnect
When connecting the Trackpad 1 via any bluetooth adapter, the device disconnects whenever the battery level is queried. It reconnects again after a few seconds, but it's an incredibly jarring experience since it will just cut out in the middle of mouse operations. This patch ignores querying the battery and avoids disconnects. This bug is reported here: - https://bugzilla.kernel.org/show_bug.cgi?id=204589 - https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1834085 It looks like a similar approach (disabling battery checking) was also suggested for the Apple Magic Mouse before a custom driver was created: https://bugzilla.kernel.org/show_bug.cgi?id=103631 Signed-off-by: Nimish Gåtam <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 8785436 commit 9c34660

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/hid/hid-input.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,9 @@ static const struct hid_device_id hid_battery_quirks[] = {
358358
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE,
359359
USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI),
360360
HID_BATTERY_QUIRK_PERCENT | HID_BATTERY_QUIRK_FEATURE },
361+
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE,
362+
USB_DEVICE_ID_APPLE_MAGICTRACKPAD),
363+
HID_BATTERY_QUIRK_IGNORE },
361364
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_ELECOM,
362365
USB_DEVICE_ID_ELECOM_BM084),
363366
HID_BATTERY_QUIRK_IGNORE },

0 commit comments

Comments
 (0)