ACPI: video: Add force_vendor quirk for Panasonic Toughbook CF-18
authorHans de Goede <hdegoede@redhat.com>
Sat, 7 Sep 2024 12:44:19 +0000 (14:44 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 10 Sep 2024 18:15:01 +0000 (20:15 +0200)
The Panasonic Toughbook CF-18 advertises both native and vendor backlight
control interfaces. But only the vendor one actually works.

acpi_video_get_backlight_type() will pick the non working native backlight
by default, add a quirk to select the working vendor backlight instead.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patch.msgid.link/20240907124419.21195-1-hdegoede@redhat.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/video_detect.c

index be24af9..b70e84e 100644 (file)
@@ -254,6 +254,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
                DMI_MATCH(DMI_PRODUCT_NAME, "PCG-FRV35"),
                },
        },
+       {
+        .callback = video_detect_force_vendor,
+        /* Panasonic Toughbook CF-18 */
+        .matches = {
+               DMI_MATCH(DMI_SYS_VENDOR, "Matsushita Electric Industrial"),
+               DMI_MATCH(DMI_PRODUCT_NAME, "CF-18"),
+               },
+       },
 
        /*
         * Toshiba models with Transflective display, these need to use