Skip to contentSkip to conversation

ACPI: video: Add force_vendor quirk for Panasonic Toughbook CF-18

PATCH Applied Hans de Goede 2 participants 2 messages Sep 7, 2024 – Sep 10, 2024 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: video: Add force_vendor quirk for Panasonic Toughbook CF-18

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.

---
 drivers/acpi/video_detect.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/acpi/video_detect.c +8 -0
index e33ab5a2f489..68afdab5d3ab 100644
@@ -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
Signature · 1 line
2.46.0
maintainer Applied
#1 lore raw
Quoted 22 lines · Hans de Goede

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.

---
 drivers/acpi/video_detect.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/acpi/video_detect.c +2 -0
index e33ab5a2f489..68afdab5d3ab 100644
@@ -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,

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
+        /* 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
--

Applied as 6.12 material, thanks!