Re: [PATCH v2] HID: apple: Report Magic Keyboard 2021 battery over USB

From: Jiri Kosina
Date: Wed Feb 16 2022 - 10:50:54 EST


On Tue, 8 Feb 2022, José Expósito wrote:

> Like the Apple Magic Keyboard 2015, when connected over USB, the 2021
> version registers 2 different interfaces. One of them is used to report
> the battery level.
>
> However, unlike when connected over Bluetooth, the battery level is not
> reported automatically and it is required to fetch it manually.
>
> Add the APPLE_RDESC_BATTERY quirk to fix the battery report descriptor
> and manually fetch the battery level.
>
> Tested with the ANSI, ISO and JIS variants of the keyboard.
>
> Signed-off-by: José Expósito <jose.exposito89@xxxxxxxxx>

Applied.

--
Jiri Kosina
SUSE Labs