public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Yves-Alexis Perez <corsac@debian.org>,
	airlied@linux.ie, linux-kernel@vger.kernel.org,
	linux-acpi@vger.kernel.org
Subject: Re: [PATCH] Add Intel ACPI IGD OpRegion support
Date: Wed, 6 Aug 2008 07:34:41 +0100	[thread overview]
Message-ID: <20080806063441.GA14455@srcf.ucam.org> (raw)
In-Reply-To: <20080806023247.GA4665@khazad-dum.debian.net>

On Tue, Aug 05, 2008 at 11:32:48PM -0300, Henrique de Moraes Holschuh wrote:
> On Wed, 06 Aug 2008, Matthew Garrett wrote:
> > The 750ms delay is from thinkpad-acpi. I sent a patch to Henrique which 
> > makes it go away, but I'm not entirely sure what the ACPI method 
> > concerned is supposed to be doing. The opregion code won't currently run 
> > until X is started because the drm layer requires X to be the foreground 
> > vt before handling IRQs.
> 
> Well, for what is it worth, thinkpad-acpi has a knob (brightness_mode) which
> can be used.  Set it to CMOS mode (see docs).  From what I recall, it should
> do what your patch does.

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

  parent reply	other threads:[~2008-08-06  6:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-05 18:37 [PATCH] Add Intel ACPI IGD OpRegion support Matthew Garrett
2008-08-05 19:44 ` Yves-Alexis Perez
2008-08-05 21:47   ` Yves-Alexis Perez
2008-08-06  0:13     ` Matthew Garrett
2008-08-06  2:32       ` Henrique de Moraes Holschuh
2008-08-06  5:44         ` Yves-Alexis Perez
2008-08-06  6:34         ` Matthew Garrett [this message]
2008-08-06  6:50           ` Yves-Alexis Perez
2008-08-06 12:29           ` Henrique de Moraes Holschuh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080806063441.GA14455@srcf.ucam.org \
    --to=mjg59@srcf.ucam.org \
    --cc=airlied@linux.ie \
    --cc=corsac@debian.org \
    --cc=hmh@hmh.eng.br \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox