ACPI: video: Add backlight=native quirk for Lenovo Slim 7 16ARH7
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
@@ -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
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".
Signed-off-by Takashi Iwai <[email protected]>--- drivers/acpi/video_detect.c | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/acpi/video_detect.c +2
-0@@ -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!