diff mbox series

ACPI: button: Add DMI quirk for Samsung Galaxy Book2 to fix lid detection on boot

Message ID 20241018114946.4670-1-shubiisp8@gmail.com
State New
Headers show
Series ACPI: button: Add DMI quirk for Samsung Galaxy Book2 to fix lid detection on boot | expand

Commit Message

Shubham Panwar Oct. 18, 2024, 11:49 a.m. UTC
Signed-off-by: Shubham Panwar <shubiisp8@gmail.com>
---
 drivers/acpi/button.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
diff mbox series

Patch

diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
index 51470208e..7e84662cf 100644
--- a/drivers/acpi/button.c
+++ b/drivers/acpi/button.c
@@ -130,6 +130,20 @@  static const struct dmi_system_id dmi_lid_quirks[] = {
 		},
 		.driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN,
 	},
+	
+		/*
+		 * Samsung Galaxybook 2, initial LID device
+		 * is detected as closed , thus causing suspend loop after boot.
+		 */
+	
+	{
+        	.matches = {
+            		DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
+            		DMI_MATCH(DMI_PRODUCT_NAME, "750XED"),
+        	},
+        	.driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN,
+    	},
+	
 	{}
 };