Re: [PATCH] Add Intel ACPI IGD OpRegion support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthew Garrett
Date: Tuesday, August 5, 2008 - 11:34 pm

On Tue, Aug 05, 2008 at 11:32:48PM -0300, Henrique de Moraes Holschuh wrote:

It doesn't seem to, no. I should have been clearer - the delay is in the 
DSDT (not thinkpad-acpi itself), but there's a Thinkpad-specific ACPI 
call that seems to be needed in order to delay it. Here's the patch 
again.

diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c
index b596929..bbc45c8 100644
--- a/drivers/misc/thinkpad_acpi.c
+++ b/drivers/misc/thinkpad_acpi.c
@@ -899,6 +899,9 @@ static int __init tpacpi_check_std_acpi_brightness_support(void)
 
 	if (ACPI_SUCCESS(status) && bcl_levels > 2) {
 		tp_features.bright_acpimode = 1;
+		/* Set ACPI mode */
+		if (!acpi_evalf(hkey_handle, NULL, "PWMS", "vd", 0))
+			printk(TPACPI_INFO "Failed to claim backlight\n");
 		return (bcl_levels - 2);
 	}

-- 
Matthew Garrett | mjg59@srcf.ucam.org
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Add Intel ACPI IGD OpRegion support, Matthew Garrett, (Tue Aug 5, 11:37 am)
Re: [PATCH] Add Intel ACPI IGD OpRegion support, Yves-Alexis Perez, (Tue Aug 5, 12:44 pm)
Re: [PATCH] Add Intel ACPI IGD OpRegion support, Yves-Alexis Perez, (Tue Aug 5, 2:47 pm)
Re: [PATCH] Add Intel ACPI IGD OpRegion support, Matthew Garrett, (Tue Aug 5, 5:13 pm)
Re: [PATCH] Add Intel ACPI IGD OpRegion support, Henrique de Moraes H ..., (Tue Aug 5, 7:32 pm)
Re: [PATCH] Add Intel ACPI IGD OpRegion support, Yves-Alexis Perez, (Tue Aug 5, 10:44 pm)
Re: [PATCH] Add Intel ACPI IGD OpRegion support, Matthew Garrett, (Tue Aug 5, 11:34 pm)
Re: [PATCH] Add Intel ACPI IGD OpRegion support, Yves-Alexis Perez, (Tue Aug 5, 11:50 pm)
Re: [PATCH] Add Intel ACPI IGD OpRegion support, Henrique de Moraes H ..., (Wed Aug 6, 5:29 am)