linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Aaron Lu <aaron.lu@intel.com>, Zhang Rui <rui.zhang@intel.com>,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Len Brown <lenb@kernel.org>, Dave Airlie <airlied@redhat.com>,
	Ben Skeggs <bskeggs@redhat.com>
Cc: linux-acpi@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] acpi-video: Add use native backlight quirk for the ThinkPad W530
Date: Wed, 14 May 2014 13:09:33 +0200	[thread overview]
Message-ID: <53734EED.5070807@redhat.com> (raw)
In-Reply-To: <5370AA2C.1080506@redhat.com>

Hi,

On 05/12/2014 01:02 PM, Hans de Goede wrote:
> Hi,
> 
> On 05/12/2014 10:16 AM, Aaron Lu wrote:
>> On 05/12/2014 03:57 PM, Hans de Goede wrote:
>>> Like all of the other *30 ThinkPad models, the W530 has a broken acpi-video
>>> backlight control. Note in order for this to actually fix things on the
>>> ThinkPad W530 the commit titled:
>>> "nouveau: Don't check acpi_video_backlight_support() before registering backlight"
>>> is also needed.
>>
>> Note that the backlight_device_registered(raw) may return false as when
>> acpi_video_verify_backlight_support is called, the nouveau driver may
>> not run yet.
>>
>> Previously, we don't know anything about how laptops with nvidia graphics
>> card alone control backlight in Win8, so the existing solution doesn't
>> consider this case. If nvidia graphics system also should favour native
>> backlight control interface in Win8, the current solution needs
>> modifications.
> 
> Hmm, how is this dealt with in the case of the intel gfx driver ?

Ok, I've figured out now how this is dealt with in the case of the intel gfx
drivers. That looks like something which will likely be hard to do for
nouveau, since it relies on some intel gfx specific ACPI calls being there,
which nouveau does not have. So this would require doing something like
duplicating the nouveau pci-ids or some such, which would be far from ideal.

Still this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1093171

Shows that we need *working* video.use_native_brightness=1 support for
non intel too. Which the current loading order issues caused by the
backlight_device_registered(raw) breaks.

So maybe we should simply drop the backlight_device_registered(raw) check?
I don't think we really need it any win8 supporting laptop will have
intel, nv or ati gfx, and all 3 of them have native backlight support,
which if our experiences so far is any indication we will likely want
to use instead of acpi_video.

Regards,

Hans






> 
> Regards,
> 
> Hans
> 
> 
> 
>>
>> Thanks,
>> Aaron
>>
>>>
>>> https://bugzilla.redhat.com/show_bug.cgi?id=1093171
>>>
>>> Cc: stable@vger.kernel.org
>>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>>> ---
>>>  drivers/acpi/video.c | 8 ++++++++
>>>  1 file changed, 8 insertions(+)
>>>
>>> diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
>>> index 34198b2..6a2099d 100644
>>> --- a/drivers/acpi/video.c
>>> +++ b/drivers/acpi/video.c
>>> @@ -520,6 +520,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>>>  		},
>>>  	},
>>>  	{
>>> +	 .callback = video_set_use_native_backlight,
>>> +	 .ident = "ThinkPad W530",
>>> +	 .matches = {
>>> +		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>>> +		DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad W530"),
>>> +		},
>>> +	},
>>> +	{
>>>  	.callback = video_set_use_native_backlight,
>>>  	.ident = "ThinkPad X1 Carbon",
>>>  	.matches = {
>>>
>>

  reply	other threads:[~2014-05-14 11:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-12  7:57 [PATCH] acpi-video: Add use native backlight quirk for the ThinkPad W530 Hans de Goede
2014-05-12  8:16 ` Aaron Lu
2014-05-12 11:02   ` Hans de Goede
2014-05-14 11:09     ` Hans de Goede [this message]
2014-05-14 12:07       ` Rafael J. Wysocki
2014-05-14 13:03         ` Hans de Goede
2014-05-15  1:45       ` Aaron Lu
2014-05-15  8:56         ` Hans de Goede
2014-05-15  9:34           ` Hans de Goede

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=53734EED.5070807@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=aaron.lu@intel.com \
    --cc=airlied@redhat.com \
    --cc=bskeggs@redhat.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=rui.zhang@intel.com \
    --cc=stable@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;
as well as URLs for NNTP newsgroup(s).