Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: button: Add DMI quirk for Samsung Galaxy Book2 to fix initial lid detection issue

Add a DMI quirk for Samsung Galaxy Book2 to fix an initial lid state
detection issue.

The _LID device incorrectly returns the lid status as "closed" during
boot, causing the system to enter a suspend loop right after booting.

The quirk ensures that the correct lid state is reported initially,
preventing the system from immediately suspending after startup. It
only addresses the initial lid state detection and ensures proper
system behavior upon boot.

Signed-off-by: Shubham Panwar <shubiisp8@gmail.com>
Link: https://patch.msgid.link/20241020095045.6036-2-shubiisp8@gmail.com
[ rjw: Changelog edits ]
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Shubham Panwar and committed by
Rafael J. Wysocki
8fa73ee4 42f7652d

+11
+11
drivers/acpi/button.c
··· 130 130 }, 131 131 .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN, 132 132 }, 133 + { 134 + /* 135 + * Samsung galaxybook2 ,initial _LID device notification returns 136 + * lid closed. 137 + */ 138 + .matches = { 139 + DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."), 140 + DMI_MATCH(DMI_PRODUCT_NAME, "750XED"), 141 + }, 142 + .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN, 143 + }, 133 144 {} 134 145 }; 135 146