[PATCH] drm/client: Detect when ACPI lid is closed during initialization

Chris Bainbridge chris.bainbridge at gmail.com
Mon May 27 16:30:34 UTC 2024


On Mon, 27 May 2024 at 15:23, Mario Limonciello
<mario.limonciello at amd.com> wrote:
>
> If the lid on a laptop is closed when eDP connectors are populated
> then it remains enabled when the initial framebuffer configuration
> is built.
>
> When creating the initial framebuffer configuration detect the ACPI
> lid status and if it's closed disable any eDP connectors.
>
> Suggested-by: Alex Deucher <alexander.deucher at amd.com>
> Reported-by: Chris Bainbridge <chris.bainbridge at gmail.com>
> Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3349
> Signed-off-by: Mario Limonciello <mario.limonciello at amd.com>
> ---
>  drivers/gpu/drm/drm_client_modeset.c | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)

Thanks. Works for me.
Note that I tested against mainline commit f0cd69b8cca6 due to
regression https://lore.kernel.org/all/CABXGCsN1z2gj99zSdhQWynpTXBymrqHejDfF8axxxoiZ_0g_-g@mail.gmail.com/


More information about the dri-devel mailing list