Skip to contentSkip to conversation

acpi video: force native for some T2 macbooks

PATCH Applied Aditya Garg 3 participants 3 messages Jul 5, 2024 – Jul 9, 2024 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acpi video: force native for some T2 macbooks

From: Orlando Chamberlain <[email protected]>

The intel backlight is needed for these, previously users had nothing in /sys/class/backlight.

---
 drivers/acpi/video_detect.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
drivers/acpi/video_detect.c +16 -0
index 442396f6ed1f..baf7264d7b94 100644
@@ -513,6 +513,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
 		DMI_MATCH(DMI_PRODUCT_NAME, "iMac12,2"),
 		},
 	},
+	{
+	 .callback = video_detect_force_native,
+	 /* Apple MacBook Air 9,1 */
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "MacBookAir9,1"),
+		},
+	},
 	{
 	 /* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */
 	 .callback = video_detect_force_native,
@@ -522,6 +530,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
 		DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro12,1"),
 		},
 	},
+	{
+	 .callback = video_detect_force_native,
+	 /* Apple MacBook Pro 16,2 */
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro16,2"),
+		},
+	},
 	{
 	 .callback = video_detect_force_native,
 	 /* Dell Inspiron N4010 */
Signature · 1 line
2.42.1
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 7 lines · Aditya Garg

From: Orlando Chamberlain <[email protected]>

The intel backlight is needed for these, previously users had nothing in /sys/class/backlight.

Thanks, patch looks good to me:

Regards,

Hans

Quoted 38 lines
---
 drivers/acpi/video_detect.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
drivers/acpi/video_detect.c +16 -0
index 442396f6ed1f..baf7264d7b94 100644
@@ -513,6 +513,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
 		DMI_MATCH(DMI_PRODUCT_NAME, "iMac12,2"),
 		},
 	},
+	{
+	 .callback = video_detect_force_native,
+	 /* Apple MacBook Air 9,1 */
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "MacBookAir9,1"),
+		},
+	},
 	{
 	 /* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */
 	 .callback = video_detect_force_native,
@@ -522,6 +530,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
 		DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro12,1"),
 		},
 	},
+	{
+	 .callback = video_detect_force_native,
+	 /* Apple MacBook Pro 16,2 */
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro16,2"),
+		},
+	},
 	{
 	 .callback = video_detect_force_native,
 	 /* Dell Inspiron N4010 */
maintainer Applied
#2 lore raw
Quoted 9 lines · Hans de Goede

Hi,

Quoted 5 lines · Aditya Garg

From: Orlando Chamberlain <[email protected]>

The intel backlight is needed for these, previously users had nothing in /sys/class/backlight.

Quoted 6 lines
Quoted 2 lines

Thanks, patch looks good to me:

Applied as 6.11 material, thanks!

Quoted 39 lines
Quoted 38 lines
---
 drivers/acpi/video_detect.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
drivers/acpi/video_detect.c +16 -0
index 442396f6ed1f..baf7264d7b94 100644
@@ -513,6 +513,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
              DMI_MATCH(DMI_PRODUCT_NAME, "iMac12,2"),
              },
      },
+     {
+      .callback = video_detect_force_native,
+      /* Apple MacBook Air 9,1 */
+      .matches = {
+             DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+             DMI_MATCH(DMI_PRODUCT_NAME, "MacBookAir9,1"),
+             },
+     },
      {
       /* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */
       .callback = video_detect_force_native,
@@ -522,6 +530,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
              DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro12,1"),
              },
      },
+     {
+      .callback = video_detect_force_native,
+      /* Apple MacBook Pro 16,2 */
+      .matches = {
+             DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+             DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro16,2"),
+             },
+     },
      {
       .callback = video_detect_force_native,
       /* Dell Inspiron N4010 */