Re: [PATCH] platform/x86: thinkpad-acpi: Add X1 Fold keyboard attachment detection
From: Pit Henrich
Date: Sun Apr 19 2026 - 06:37:09 EST
Hi Mark,
On Fri, 27 Mar 2026 at 18:32, Mark Pearson <mpearson-lenovo@xxxxxxxxx> wrote:
> I got some internal details on the implementation and whilst there isn't a spec I can share, we did determine that Windows driver is using some ACPI methods instead: GDST (get device state), GDSZ (get device display occlusion) and NSMC (Notify BIOS of screen mode change).
>
> I don't have any details on how those ACPI methods break down I'm afraid - but just wanted you to be aware that Windows is doing things differently.
Sorry for the late reply, I have been busy.
Thanks for this information! I managed to get things working using the
ACPI methods and I have submitted a v2 patch.
I found GDST to provide the keyboard state, but I am somewhat confused
what the other ACPI methods are for.
I didn't find that setting NSMC does anything obvious? Or I am using
it wrongly.. and GDSZ feels a bit redundant?
Greetings
Pit