Skip to contentSkip to conversation

ACPI: video: Add backlight=native quirk for Lenovo Slim 7 16ARH7

PATCH Applied Takashi Iwai 2 participants 2 messages May 6, 2024 – May 7, 2024 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: video: Add backlight=native quirk for Lenovo Slim 7 16ARH7

Lenovo Slim 7 16ARH7 is a machine with switchable graphics between AMD and Nvidia, and the backlight can't be adjusted properly unless acpi_backlight=native is passed. Although nvidia-wmi-backlight is present and loaded, this doesn't work as expected at all.

For making it working as default, add the corresponding quirk entry with a DMI matching "LENOVO" "82UX".

---
 drivers/acpi/video_detect.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/acpi/video_detect.c +8 -0
index 9fdcc620c652..2cc3821b2b16 100644
@@ -497,6 +497,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
 		DMI_MATCH(DMI_PRODUCT_NAME, "82BK"),
 		},
 	},
+	{
+	 .callback = video_detect_force_native,
+	 /* Lenovo Slim 7 16ARH7 */
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		DMI_MATCH(DMI_PRODUCT_NAME, "82UX"),
+		},
+	},
 	{
 	 .callback = video_detect_force_native,
 	 /* Lenovo ThinkPad X131e (3371 AMD version) */
Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 25 lines · Takashi Iwai

Lenovo Slim 7 16ARH7 is a machine with switchable graphics between AMD and Nvidia, and the backlight can't be adjusted properly unless acpi_backlight=native is passed. Although nvidia-wmi-backlight is present and loaded, this doesn't work as expected at all.

For making it working as default, add the corresponding quirk entry with a DMI matching "LENOVO" "82UX".

---
 drivers/acpi/video_detect.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/acpi/video_detect.c +2 -0
index 9fdcc620c652..2cc3821b2b16 100644
@@ -497,6 +497,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
                DMI_MATCH(DMI_PRODUCT_NAME, "82BK"),
                },
        },
+       {
+        .callback = video_detect_force_native,

drivers/acpi/video_detect.c static const struct dmi_system_id video_detect_dmi_table[] = {

Quoted 10 lines
drivers/acpi/video_detect.c +6 -1
+        /* Lenovo Slim 7 16ARH7 */
+        .matches = {
+               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+               DMI_MATCH(DMI_PRODUCT_NAME, "82UX"),
+               },
+       },
        {
         .callback = video_detect_force_native,
         /* Lenovo ThinkPad X131e (3371 AMD version) */
--

Applied as 6.10 material, thanks!