Re: [PATCH 1/2] HID: apple: preserve keyboard backlight across T2 resume
Jiri Kosina <[email protected]> Mon, 3 Aug 2026 21:59:58 +0200 (CEST)
| Newsgroups | org.kernel.vger.linux-input,org.kernel.vger.stable |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 18 Jul 2026, Andre Eikmeyer wrote:
> The T2 virtual USB host controller re-enumerates the internal keyboard
> after system resume. The butterfly keyboard backlight currently uses
> LED_CORE_SUSPENDRESUME, so the LED core sends a blocking request to the
> old HID device while it is disappearing. That request fails with -ENODEV
> and the newly probed device starts with its backlight off.
>
> To fix this, we cache the requested brightness when the old HID device is
> removed and restore it when the replacement is probed. We let
> re-enumeration handle restoration instead of issuing a request through the
> stale device.
>
> Fixes: 1f95a6cd5ad7 ("HID: apple: ensure the keyboard backlight is off if suspending")
> Cc: [email protected]
> Signed-off-by: Andre Eikmeyer <[email protected]>
The series is now queued in hid.git#for-7.3/apple. Thanks,
--
Jiri Kosina
SUSE Labs