mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ACPI: video: Use vendor backlight on Lenovo X1 Carbon.
@ 2024-05-13  3:38 dengxiang
  2024-05-13  8:39 ` Hans de Goede
  0 siblings, 1 reply; 4+ messages in thread
From: dengxiang @ 2024-05-13  3:38 UTC (permalink / raw)
  To: lenb, rafael, linux-acpi, linux-kernel, linux-edac,
	platform-driver-x86, wanghuiqiang, prime.zeng, tony.luck
  Cc: dengxiang

Lenovo X1 Carbon advertises both native and vendor backlight
control interfaces.But Linux defaults to picking the native ACPI
video backlight interface, which will make that the vendor
zx_backlight interface to not work.

Add a DMI quirk to force use of the vendor interface.

Signed-off-by: dengxiang <dengxiang@nfschina.com>
---
 drivers/acpi/video_detect.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
index 2cc3821b2b16..e647186b4e83 100644
--- a/drivers/acpi/video_detect.c
+++ b/drivers/acpi/video_detect.c
@@ -875,6 +875,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
 		DMI_MATCH(DMI_PRODUCT_NAME, "Mipad2"),
 		},
 	},
+	{
+	 .callback = video_detect_force_vendor,
+	 /* Lenovo X1 Carbon */
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "KaiTian"),
+		DMI_MATCH(DMI_PRODUCT_NAME, "KaiTian X1 G1d"),
+		},
+	},
 	{ },
 };
 
-- 
2.30.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-15 17:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-13  3:38 [PATCH] ACPI: video: Use vendor backlight on Lenovo X1 Carbon dengxiang
2024-05-13  8:39 ` Hans de Goede
2024-05-15  3:45   ` dengxiang
2024-05-15 17:29     ` Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®