HID: input: Fix Apple Magic Trackpad 1 Bluetooth disconnect
authorNimish Gåtam <nimishg@gmail.com>
Sun, 25 Jun 2023 10:44:24 +0000 (12:44 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 14 Aug 2023 09:24:46 +0000 (11:24 +0200)
commit9c34660ee6d5f7a79c1519d7a865ffba9bf70e0c
treebd039697e3ffe3ce772653f18bf73f9fbfeb3202
parent87854366176403438d01f368b09de3ec2234e0f5
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 <nimishg@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c