]> git.baikalelectronics.ru Git - kernel.git/commit
HID: magicmouse: fix reconnection of Magic Mouse 2
authorJohn Chen <johnchen902@gmail.com>
Tue, 30 Mar 2021 11:33:18 +0000 (19:33 +0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 7 Apr 2021 11:15:15 +0000 (13:15 +0200)
commit31ad1d11f73c1bb50f23fca5468c3795bc47fe9a
tree6b7cf9e8d439db1770cdf66a0d54cc620fdcfb6d
parent7fc9ed7faec91839bc53bb434692f1c95d644eb1
HID: magicmouse: fix reconnection of Magic Mouse 2

It is observed that the Magic Mouse 2 would not enter multi-touch mode
unless the mouse is connected before loading the module. It seems to be
a quirk specific to Magic Mouse 2

Retrying after 500ms fixes the problem for me. The delay can't be
reduced much further --- 300ms didn't work for me. Retrying immediately
after receiving an event didn't work either.

Signed-off-by: John Chen <johnchen902@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-magicmouse.c