1 From 8fa73ee44daefc884c53a25158c25a4107eb5a94 Mon Sep 17 00:00:00 2001
2 From: Shubham Panwar <shubiisp8@gmail.com>
3 Date: Sun, 20 Oct 2024 15:20:46 +0530
4 Subject: ACPI: button: Add DMI quirk for Samsung Galaxy Book2 to fix initial lid detection issue
6 From: Shubham Panwar <shubiisp8@gmail.com>
8 commit 8fa73ee44daefc884c53a25158c25a4107eb5a94 upstream.
10 Add a DMI quirk for Samsung Galaxy Book2 to fix an initial lid state
13 The _LID device incorrectly returns the lid status as "closed" during
14 boot, causing the system to enter a suspend loop right after booting.
16 The quirk ensures that the correct lid state is reported initially,
17 preventing the system from immediately suspending after startup. It
18 only addresses the initial lid state detection and ensures proper
19 system behavior upon boot.
21 Signed-off-by: Shubham Panwar <shubiisp8@gmail.com>
22 Link: https://patch.msgid.link/20241020095045.6036-2-shubiisp8@gmail.com
23 [ rjw: Changelog edits ]
24 Cc: All applicable <stable@vger.kernel.org>
25 Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
26 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
28 drivers/acpi/button.c | 11 +++++++++++
29 1 file changed, 11 insertions(+)
31 --- a/drivers/acpi/button.c
32 +++ b/drivers/acpi/button.c
33 @@ -130,6 +130,17 @@ static const struct dmi_system_id dmi_li
35 .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN,
39 + * Samsung galaxybook2 ,initial _LID device notification returns
43 + DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
44 + DMI_MATCH(DMI_PRODUCT_NAME, "750XED"),
46 + .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN,