public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] acpi: mv models with win8 brightness problems from win8 blacklist to use_native_backlight
@ 2014-06-16  9:55 Hans de Goede
  2014-07-08 20:47 ` Rafael J. Wysocki
  2014-07-10 13:40 ` Yidi Lin
  0 siblings, 2 replies; 5+ messages in thread
From: Hans de Goede @ 2014-06-16  9:55 UTC (permalink / raw)
  To: Rafael J. Wysocki, Aaron Lu
  Cc: Zhang Rui, Len Brown, linux-acpi, Hans de Goede

When the windows8 related backlight problems became evident, 2 approaches
were follow in parallel, one was to stop claiming to be windows 8 / 2012,
the other was to tell acpi_video to stop registering a backlight driver.

I've read all the threads and it seems that which approach ended up being
applied to which model laptop was never really a concious decision (AFAIK):

https://bugzilla.kernel.org/show_bug.cgi?id=51231
https://bugzilla.kernel.org/show_bug.cgi?id=60682

So lets move all the models which are only on the win8 blacklist because of
brightness issues to the use_native_backlight list, which is the smaller
hammer to use to solve the backlight issues.

Making this change is esp. attractive now that 3.16 has
video.use_native_brightness=1 by default. If that new default does not get
reverted because of regressions, then we can drop all the models
with a use_native_backlight quirk, greatly reducing the number of models we've
a quirk for.

Note: this is not tested on any of the affected models, this just seems like
the sensible thing to do.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>

--

Changes in v2: Rebased on top of v3.16-rc1
---
 drivers/acpi/blacklist.c | 83 ------------------------------------------------
 drivers/acpi/video.c     | 76 ++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 74 insertions(+), 85 deletions(-)

diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
index 3d8413d..b08e65a 100644
--- a/drivers/acpi/blacklist.c
+++ b/drivers/acpi/blacklist.c
@@ -156,12 +156,6 @@ static int __init dmi_disable_osi_win7(const struct dmi_system_id *d)
 	acpi_osi_setup("!Windows 2009");
 	return 0;
 }
-static int __init dmi_disable_osi_win8(const struct dmi_system_id *d)
-{
-	printk(KERN_NOTICE PREFIX "DMI detected: %s\n", d->ident);
-	acpi_osi_setup("!Windows 2012");
-	return 0;
-}
 
 static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
 	{
@@ -247,83 +241,6 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
 	},
 
 	/*
-	 * The following machines have broken backlight support when reporting
-	 * the Windows 2012 OSI, so disable it until their support is fixed.
-	 */
-	{
-	.callback = dmi_disable_osi_win8,
-	.ident = "ASUS Zenbook Prime UX31A",
-	.matches = {
-		     DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
-		     DMI_MATCH(DMI_PRODUCT_NAME, "UX31A"),
-		},
-	},
-	{
-	.callback = dmi_disable_osi_win8,
-	.ident = "ThinkPad Edge E530",
-	.matches = {
-		     DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-		     DMI_MATCH(DMI_PRODUCT_VERSION, "3259A2G"),
-		},
-	},
-	{
-	.callback = dmi_disable_osi_win8,
-	.ident = "ThinkPad Edge E530",
-	.matches = {
-		     DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-		     DMI_MATCH(DMI_PRODUCT_VERSION, "3259CTO"),
-		},
-	},
-	{
-	.callback = dmi_disable_osi_win8,
-	.ident = "ThinkPad Edge E530",
-	.matches = {
-		     DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-		     DMI_MATCH(DMI_PRODUCT_VERSION, "3259HJG"),
-		},
-	},
-	{
-	.callback = dmi_disable_osi_win8,
-	.ident = "Acer Aspire V5-573G",
-	.matches = {
-		     DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
-		     DMI_MATCH(DMI_PRODUCT_VERSION, "V5-573G/Dazzle_HW"),
-		},
-	},
-	{
-	.callback = dmi_disable_osi_win8,
-	.ident = "Acer Aspire V5-572G",
-	.matches = {
-		     DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
-		     DMI_MATCH(DMI_PRODUCT_VERSION, "V5-572G/Dazzle_CX"),
-		},
-	},
-	{
-	.callback = dmi_disable_osi_win8,
-	.ident = "ThinkPad T431s",
-	.matches = {
-		     DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-		     DMI_MATCH(DMI_PRODUCT_VERSION, "20AACTO1WW"),
-		},
-	},
-	{
-	.callback = dmi_disable_osi_win8,
-	.ident = "ThinkPad T430",
-	.matches = {
-		     DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-		     DMI_MATCH(DMI_PRODUCT_VERSION, "2349D15"),
-		},
-	},
-	{
-	.callback = dmi_disable_osi_win8,
-	.ident = "Dell Inspiron 7737",
-	.matches = {
-		    DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
-		    DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 7737"),
-		},
-	},
-
-	/*
 	 * BIOS invocation of _OSI(Linux) is almost always a BIOS bug.
 	 * Linux ignores it, except for the machines enumerated below.
 	 */
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index fb9ffe9..deb1b1f 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -460,6 +460,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
 	},
 	{
 	 .callback = video_set_use_native_backlight,
+	 .ident = "ThinkPad X230",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X230"),
+		},
+	},
+	{
+	 .callback = video_set_use_native_backlight,
 	 .ident = "ThinkPad T430 and T430s",
 	 .matches = {
 		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
@@ -468,10 +476,42 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
 	},
 	{
 	 .callback = video_set_use_native_backlight,
-	 .ident = "ThinkPad X230",
+	 .ident = "ThinkPad T430",
 	 .matches = {
 		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-		DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X230"),
+		DMI_MATCH(DMI_PRODUCT_VERSION, "2349D15"),
+		},
+	},
+	{
+	 .callback = video_set_use_native_backlight,
+	 .ident = "ThinkPad T431s",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		DMI_MATCH(DMI_PRODUCT_VERSION, "20AACTO1WW"),
+		},
+	},
+	{
+	 .callback = video_set_use_native_backlight,
+	 .ident = "ThinkPad Edge E530",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		DMI_MATCH(DMI_PRODUCT_VERSION, "3259A2G"),
+		},
+	},
+	{
+	 .callback = video_set_use_native_backlight,
+	 .ident = "ThinkPad Edge E530",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		DMI_MATCH(DMI_PRODUCT_VERSION, "3259CTO"),
+		},
+	},
+	{
+	 .callback = video_set_use_native_backlight,
+	 .ident = "ThinkPad Edge E530",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		DMI_MATCH(DMI_PRODUCT_VERSION, "3259HJG"),
 		},
 	},
 	{
@@ -524,6 +564,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
 	},
 	{
 	 .callback = video_set_use_native_backlight,
+	 .ident = "Dell Inspiron 7737",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 7737"),
+		},
+	},
+	{
+	 .callback = video_set_use_native_backlight,
 	 .ident = "Acer Aspire 5733Z",
 	 .matches = {
 		DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
@@ -563,6 +611,30 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
 		},
 	},
 	{
+	 .callback = video_set_use_native_backlight,
+	 .ident = "Acer Aspire V5-572G",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
+		DMI_MATCH(DMI_PRODUCT_VERSION, "V5-572G/Dazzle_CX"),
+		},
+	},
+	{
+	 .callback = video_set_use_native_backlight,
+	 .ident = "Acer Aspire V5-573G",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
+		DMI_MATCH(DMI_PRODUCT_VERSION, "V5-573G/Dazzle_HW"),
+		},
+	},
+	{
+	 .callback = video_set_use_native_backlight,
+	 .ident = "ASUS Zenbook Prime UX31A",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "UX31A"),
+		},
+	},
+	{
 	.callback = video_set_use_native_backlight,
 	.ident = "HP ProBook 4340s",
 	.matches = {
-- 
2.0.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] acpi: mv models with win8 brightness problems from win8 blacklist to use_native_backlight
  2014-06-16  9:55 [PATCH v2] acpi: mv models with win8 brightness problems from win8 blacklist to use_native_backlight Hans de Goede
@ 2014-07-08 20:47 ` Rafael J. Wysocki
  2014-07-10 13:40 ` Yidi Lin
  1 sibling, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2014-07-08 20:47 UTC (permalink / raw)
  To: Hans de Goede; +Cc: Aaron Lu, Zhang Rui, Len Brown, linux-acpi

On Monday, June 16, 2014 11:55:25 AM Hans de Goede wrote:
> When the windows8 related backlight problems became evident, 2 approaches
> were follow in parallel, one was to stop claiming to be windows 8 / 2012,
> the other was to tell acpi_video to stop registering a backlight driver.
> 
> I've read all the threads and it seems that which approach ended up being
> applied to which model laptop was never really a concious decision (AFAIK):
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=51231
> https://bugzilla.kernel.org/show_bug.cgi?id=60682
> 
> So lets move all the models which are only on the win8 blacklist because of
> brightness issues to the use_native_backlight list, which is the smaller
> hammer to use to solve the backlight issues.
> 
> Making this change is esp. attractive now that 3.16 has
> video.use_native_brightness=1 by default. If that new default does not get
> reverted because of regressions, then we can drop all the models
> with a use_native_backlight quirk, greatly reducing the number of models we've
> a quirk for.
> 
> Note: this is not tested on any of the affected models, this just seems like
> the sensible thing to do.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Queued up for 3.17, thanks!

> --
> 
> Changes in v2: Rebased on top of v3.16-rc1
> ---
>  drivers/acpi/blacklist.c | 83 ------------------------------------------------
>  drivers/acpi/video.c     | 76 ++++++++++++++++++++++++++++++++++++++++++--
>  2 files changed, 74 insertions(+), 85 deletions(-)
> 
> diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
> index 3d8413d..b08e65a 100644
> --- a/drivers/acpi/blacklist.c
> +++ b/drivers/acpi/blacklist.c
> @@ -156,12 +156,6 @@ static int __init dmi_disable_osi_win7(const struct dmi_system_id *d)
>  	acpi_osi_setup("!Windows 2009");
>  	return 0;
>  }
> -static int __init dmi_disable_osi_win8(const struct dmi_system_id *d)
> -{
> -	printk(KERN_NOTICE PREFIX "DMI detected: %s\n", d->ident);
> -	acpi_osi_setup("!Windows 2012");
> -	return 0;
> -}
>  
>  static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
>  	{
> @@ -247,83 +241,6 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
>  	},
>  
>  	/*
> -	 * The following machines have broken backlight support when reporting
> -	 * the Windows 2012 OSI, so disable it until their support is fixed.
> -	 */
> -	{
> -	.callback = dmi_disable_osi_win8,
> -	.ident = "ASUS Zenbook Prime UX31A",
> -	.matches = {
> -		     DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
> -		     DMI_MATCH(DMI_PRODUCT_NAME, "UX31A"),
> -		},
> -	},
> -	{
> -	.callback = dmi_disable_osi_win8,
> -	.ident = "ThinkPad Edge E530",
> -	.matches = {
> -		     DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -		     DMI_MATCH(DMI_PRODUCT_VERSION, "3259A2G"),
> -		},
> -	},
> -	{
> -	.callback = dmi_disable_osi_win8,
> -	.ident = "ThinkPad Edge E530",
> -	.matches = {
> -		     DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -		     DMI_MATCH(DMI_PRODUCT_VERSION, "3259CTO"),
> -		},
> -	},
> -	{
> -	.callback = dmi_disable_osi_win8,
> -	.ident = "ThinkPad Edge E530",
> -	.matches = {
> -		     DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -		     DMI_MATCH(DMI_PRODUCT_VERSION, "3259HJG"),
> -		},
> -	},
> -	{
> -	.callback = dmi_disable_osi_win8,
> -	.ident = "Acer Aspire V5-573G",
> -	.matches = {
> -		     DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
> -		     DMI_MATCH(DMI_PRODUCT_VERSION, "V5-573G/Dazzle_HW"),
> -		},
> -	},
> -	{
> -	.callback = dmi_disable_osi_win8,
> -	.ident = "Acer Aspire V5-572G",
> -	.matches = {
> -		     DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
> -		     DMI_MATCH(DMI_PRODUCT_VERSION, "V5-572G/Dazzle_CX"),
> -		},
> -	},
> -	{
> -	.callback = dmi_disable_osi_win8,
> -	.ident = "ThinkPad T431s",
> -	.matches = {
> -		     DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -		     DMI_MATCH(DMI_PRODUCT_VERSION, "20AACTO1WW"),
> -		},
> -	},
> -	{
> -	.callback = dmi_disable_osi_win8,
> -	.ident = "ThinkPad T430",
> -	.matches = {
> -		     DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -		     DMI_MATCH(DMI_PRODUCT_VERSION, "2349D15"),
> -		},
> -	},
> -	{
> -	.callback = dmi_disable_osi_win8,
> -	.ident = "Dell Inspiron 7737",
> -	.matches = {
> -		    DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> -		    DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 7737"),
> -		},
> -	},
> -
> -	/*
>  	 * BIOS invocation of _OSI(Linux) is almost always a BIOS bug.
>  	 * Linux ignores it, except for the machines enumerated below.
>  	 */
> diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
> index fb9ffe9..deb1b1f 100644
> --- a/drivers/acpi/video.c
> +++ b/drivers/acpi/video.c
> @@ -460,6 +460,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>  	},
>  	{
>  	 .callback = video_set_use_native_backlight,
> +	 .ident = "ThinkPad X230",
> +	 .matches = {
> +		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +		DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X230"),
> +		},
> +	},
> +	{
> +	 .callback = video_set_use_native_backlight,
>  	 .ident = "ThinkPad T430 and T430s",
>  	 .matches = {
>  		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> @@ -468,10 +476,42 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>  	},
>  	{
>  	 .callback = video_set_use_native_backlight,
> -	 .ident = "ThinkPad X230",
> +	 .ident = "ThinkPad T430",
>  	 .matches = {
>  		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -		DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X230"),
> +		DMI_MATCH(DMI_PRODUCT_VERSION, "2349D15"),
> +		},
> +	},
> +	{
> +	 .callback = video_set_use_native_backlight,
> +	 .ident = "ThinkPad T431s",
> +	 .matches = {
> +		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +		DMI_MATCH(DMI_PRODUCT_VERSION, "20AACTO1WW"),
> +		},
> +	},
> +	{
> +	 .callback = video_set_use_native_backlight,
> +	 .ident = "ThinkPad Edge E530",
> +	 .matches = {
> +		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +		DMI_MATCH(DMI_PRODUCT_VERSION, "3259A2G"),
> +		},
> +	},
> +	{
> +	 .callback = video_set_use_native_backlight,
> +	 .ident = "ThinkPad Edge E530",
> +	 .matches = {
> +		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +		DMI_MATCH(DMI_PRODUCT_VERSION, "3259CTO"),
> +		},
> +	},
> +	{
> +	 .callback = video_set_use_native_backlight,
> +	 .ident = "ThinkPad Edge E530",
> +	 .matches = {
> +		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +		DMI_MATCH(DMI_PRODUCT_VERSION, "3259HJG"),
>  		},
>  	},
>  	{
> @@ -524,6 +564,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>  	},
>  	{
>  	 .callback = video_set_use_native_backlight,
> +	 .ident = "Dell Inspiron 7737",
> +	 .matches = {
> +		DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> +		DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 7737"),
> +		},
> +	},
> +	{
> +	 .callback = video_set_use_native_backlight,
>  	 .ident = "Acer Aspire 5733Z",
>  	 .matches = {
>  		DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
> @@ -563,6 +611,30 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>  		},
>  	},
>  	{
> +	 .callback = video_set_use_native_backlight,
> +	 .ident = "Acer Aspire V5-572G",
> +	 .matches = {
> +		DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
> +		DMI_MATCH(DMI_PRODUCT_VERSION, "V5-572G/Dazzle_CX"),
> +		},
> +	},
> +	{
> +	 .callback = video_set_use_native_backlight,
> +	 .ident = "Acer Aspire V5-573G",
> +	 .matches = {
> +		DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
> +		DMI_MATCH(DMI_PRODUCT_VERSION, "V5-573G/Dazzle_HW"),
> +		},
> +	},
> +	{
> +	 .callback = video_set_use_native_backlight,
> +	 .ident = "ASUS Zenbook Prime UX31A",
> +	 .matches = {
> +		DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
> +		DMI_MATCH(DMI_PRODUCT_NAME, "UX31A"),
> +		},
> +	},
> +	{
>  	.callback = video_set_use_native_backlight,
>  	.ident = "HP ProBook 4340s",
>  	.matches = {
> 

-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] acpi: mv models with win8 brightness problems from win8 blacklist to use_native_backlight
  2014-06-16  9:55 [PATCH v2] acpi: mv models with win8 brightness problems from win8 blacklist to use_native_backlight Hans de Goede
  2014-07-08 20:47 ` Rafael J. Wysocki
@ 2014-07-10 13:40 ` Yidi Lin
  2014-07-10 15:12   ` Hans de Goede
  1 sibling, 1 reply; 5+ messages in thread
From: Yidi Lin @ 2014-07-10 13:40 UTC (permalink / raw)
  To: Hans de Goede
  Cc: Rafael J. Wysocki, Aaron Lu, Zhang Rui, Len Brown, linux-acpi

Hi,

The quirk of Dell Inspiron 7737 is not for win8 backlight issue.

Dell Inspiron 7737 will power on immediately after shutdown with win8
capability.
Disable win8 capability to workaround the issue.

It seems that I add the quirk to the improper segment.
Sorry for misleading you.

On Mon, Jun 16, 2014 at 5:55 PM, Hans de Goede <hdegoede@redhat.com> wrote:
> When the windows8 related backlight problems became evident, 2 approaches
> were follow in parallel, one was to stop claiming to be windows 8 / 2012,
> the other was to tell acpi_video to stop registering a backlight driver.
>
> I've read all the threads and it seems that which approach ended up being
> applied to which model laptop was never really a concious decision (AFAIK):
>
> https://bugzilla.kernel.org/show_bug.cgi?id=51231
> https://bugzilla.kernel.org/show_bug.cgi?id=60682
>
> So lets move all the models which are only on the win8 blacklist because of
> brightness issues to the use_native_backlight list, which is the smaller
> hammer to use to solve the backlight issues.
>
> Making this change is esp. attractive now that 3.16 has
> video.use_native_brightness=1 by default. If that new default does not get
> reverted because of regressions, then we can drop all the models
> with a use_native_backlight quirk, greatly reducing the number of models we've
> a quirk for.
>
> Note: this is not tested on any of the affected models, this just seems like
> the sensible thing to do.
>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>
> --
>
> Changes in v2: Rebased on top of v3.16-rc1
> ---
>  drivers/acpi/blacklist.c | 83 ------------------------------------------------
>  drivers/acpi/video.c     | 76 ++++++++++++++++++++++++++++++++++++++++++--
>  2 files changed, 74 insertions(+), 85 deletions(-)
>
> diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
> index 3d8413d..b08e65a 100644
> --- a/drivers/acpi/blacklist.c
> +++ b/drivers/acpi/blacklist.c
> @@ -156,12 +156,6 @@ static int __init dmi_disable_osi_win7(const struct dmi_system_id *d)
>         acpi_osi_setup("!Windows 2009");
>         return 0;
>  }
> -static int __init dmi_disable_osi_win8(const struct dmi_system_id *d)
> -{
> -       printk(KERN_NOTICE PREFIX "DMI detected: %s\n", d->ident);
> -       acpi_osi_setup("!Windows 2012");
> -       return 0;
> -}
>
>  static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
>         {
> @@ -247,83 +241,6 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
>         },
>
>         /*
> -        * The following machines have broken backlight support when reporting
> -        * the Windows 2012 OSI, so disable it until their support is fixed.
> -        */
> -       {
> -       .callback = dmi_disable_osi_win8,
> -       .ident = "ASUS Zenbook Prime UX31A",
> -       .matches = {
> -                    DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
> -                    DMI_MATCH(DMI_PRODUCT_NAME, "UX31A"),
> -               },
> -       },
> -       {
> -       .callback = dmi_disable_osi_win8,
> -       .ident = "ThinkPad Edge E530",
> -       .matches = {
> -                    DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -                    DMI_MATCH(DMI_PRODUCT_VERSION, "3259A2G"),
> -               },
> -       },
> -       {
> -       .callback = dmi_disable_osi_win8,
> -       .ident = "ThinkPad Edge E530",
> -       .matches = {
> -                    DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -                    DMI_MATCH(DMI_PRODUCT_VERSION, "3259CTO"),
> -               },
> -       },
> -       {
> -       .callback = dmi_disable_osi_win8,
> -       .ident = "ThinkPad Edge E530",
> -       .matches = {
> -                    DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -                    DMI_MATCH(DMI_PRODUCT_VERSION, "3259HJG"),
> -               },
> -       },
> -       {
> -       .callback = dmi_disable_osi_win8,
> -       .ident = "Acer Aspire V5-573G",
> -       .matches = {
> -                    DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
> -                    DMI_MATCH(DMI_PRODUCT_VERSION, "V5-573G/Dazzle_HW"),
> -               },
> -       },
> -       {
> -       .callback = dmi_disable_osi_win8,
> -       .ident = "Acer Aspire V5-572G",
> -       .matches = {
> -                    DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
> -                    DMI_MATCH(DMI_PRODUCT_VERSION, "V5-572G/Dazzle_CX"),
> -               },
> -       },
> -       {
> -       .callback = dmi_disable_osi_win8,
> -       .ident = "ThinkPad T431s",
> -       .matches = {
> -                    DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -                    DMI_MATCH(DMI_PRODUCT_VERSION, "20AACTO1WW"),
> -               },
> -       },
> -       {
> -       .callback = dmi_disable_osi_win8,
> -       .ident = "ThinkPad T430",
> -       .matches = {
> -                    DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -                    DMI_MATCH(DMI_PRODUCT_VERSION, "2349D15"),
> -               },
> -       },
> -       {
> -       .callback = dmi_disable_osi_win8,
> -       .ident = "Dell Inspiron 7737",
> -       .matches = {
> -                   DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> -                   DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 7737"),
> -               },
> -       },
> -
> -       /*
>          * BIOS invocation of _OSI(Linux) is almost always a BIOS bug.
>          * Linux ignores it, except for the machines enumerated below.
>          */
> diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
> index fb9ffe9..deb1b1f 100644
> --- a/drivers/acpi/video.c
> +++ b/drivers/acpi/video.c
> @@ -460,6 +460,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>         },
>         {
>          .callback = video_set_use_native_backlight,
> +        .ident = "ThinkPad X230",
> +        .matches = {
> +               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +               DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X230"),
> +               },
> +       },
> +       {
> +        .callback = video_set_use_native_backlight,
>          .ident = "ThinkPad T430 and T430s",
>          .matches = {
>                 DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> @@ -468,10 +476,42 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>         },
>         {
>          .callback = video_set_use_native_backlight,
> -        .ident = "ThinkPad X230",
> +        .ident = "ThinkPad T430",
>          .matches = {
>                 DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> -               DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X230"),
> +               DMI_MATCH(DMI_PRODUCT_VERSION, "2349D15"),
> +               },
> +       },
> +       {
> +        .callback = video_set_use_native_backlight,
> +        .ident = "ThinkPad T431s",
> +        .matches = {
> +               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +               DMI_MATCH(DMI_PRODUCT_VERSION, "20AACTO1WW"),
> +               },
> +       },
> +       {
> +        .callback = video_set_use_native_backlight,
> +        .ident = "ThinkPad Edge E530",
> +        .matches = {
> +               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +               DMI_MATCH(DMI_PRODUCT_VERSION, "3259A2G"),
> +               },
> +       },
> +       {
> +        .callback = video_set_use_native_backlight,
> +        .ident = "ThinkPad Edge E530",
> +        .matches = {
> +               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +               DMI_MATCH(DMI_PRODUCT_VERSION, "3259CTO"),
> +               },
> +       },
> +       {
> +        .callback = video_set_use_native_backlight,
> +        .ident = "ThinkPad Edge E530",
> +        .matches = {
> +               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +               DMI_MATCH(DMI_PRODUCT_VERSION, "3259HJG"),
>                 },
>         },
>         {
> @@ -524,6 +564,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>         },
>         {
>          .callback = video_set_use_native_backlight,
> +        .ident = "Dell Inspiron 7737",
> +        .matches = {
> +               DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> +               DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 7737"),
> +               },
> +       },
> +       {
> +        .callback = video_set_use_native_backlight,
>          .ident = "Acer Aspire 5733Z",
>          .matches = {
>                 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
> @@ -563,6 +611,30 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>                 },
>         },
>         {
> +        .callback = video_set_use_native_backlight,
> +        .ident = "Acer Aspire V5-572G",
> +        .matches = {
> +               DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
> +               DMI_MATCH(DMI_PRODUCT_VERSION, "V5-572G/Dazzle_CX"),
> +               },
> +       },
> +       {
> +        .callback = video_set_use_native_backlight,
> +        .ident = "Acer Aspire V5-573G",
> +        .matches = {
> +               DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
> +               DMI_MATCH(DMI_PRODUCT_VERSION, "V5-573G/Dazzle_HW"),
> +               },
> +       },
> +       {
> +        .callback = video_set_use_native_backlight,
> +        .ident = "ASUS Zenbook Prime UX31A",
> +        .matches = {
> +               DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
> +               DMI_MATCH(DMI_PRODUCT_NAME, "UX31A"),
> +               },
> +       },
> +       {
>         .callback = video_set_use_native_backlight,
>         .ident = "HP ProBook 4340s",
>         .matches = {
> --
> 2.0.0
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] acpi: mv models with win8 brightness problems from win8 blacklist to use_native_backlight
  2014-07-10 13:40 ` Yidi Lin
@ 2014-07-10 15:12   ` Hans de Goede
  2014-07-10 20:21     ` Rafael J. Wysocki
  0 siblings, 1 reply; 5+ messages in thread
From: Hans de Goede @ 2014-07-10 15:12 UTC (permalink / raw)
  To: Yidi Lin; +Cc: Rafael J. Wysocki, Aaron Lu, Zhang Rui, Len Brown, linux-acpi

Hi,

On 07/10/2014 03:40 PM, Yidi Lin wrote:
> Hi,
> 
> The quirk of Dell Inspiron 7737 is not for win8 backlight issue.
> 
> Dell Inspiron 7737 will power on immediately after shutdown with win8
> capability.
> Disable win8 capability to workaround the issue.
> 
> It seems that I add the quirk to the improper segment.

Yeah a comment that this one was not for a backlight issue would
have been nice. Still, you managed to catch it in time, which is
good, thanks for the heads up.

> Sorry for misleading you.

NP.

Rafael, do you want me to do a follow up patch to move the
Dell Inspiron 7737 entry back, or do you want me to do a V3
of the patch ?

Regards,

Hans




> 
> On Mon, Jun 16, 2014 at 5:55 PM, Hans de Goede <hdegoede@redhat.com> wrote:
>> When the windows8 related backlight problems became evident, 2 approaches
>> were follow in parallel, one was to stop claiming to be windows 8 / 2012,
>> the other was to tell acpi_video to stop registering a backlight driver.
>>
>> I've read all the threads and it seems that which approach ended up being
>> applied to which model laptop was never really a concious decision (AFAIK):
>>
>> https://bugzilla.kernel.org/show_bug.cgi?id=51231
>> https://bugzilla.kernel.org/show_bug.cgi?id=60682
>>
>> So lets move all the models which are only on the win8 blacklist because of
>> brightness issues to the use_native_backlight list, which is the smaller
>> hammer to use to solve the backlight issues.
>>
>> Making this change is esp. attractive now that 3.16 has
>> video.use_native_brightness=1 by default. If that new default does not get
>> reverted because of regressions, then we can drop all the models
>> with a use_native_backlight quirk, greatly reducing the number of models we've
>> a quirk for.
>>
>> Note: this is not tested on any of the affected models, this just seems like
>> the sensible thing to do.
>>
>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>>
>> --
>>
>> Changes in v2: Rebased on top of v3.16-rc1
>> ---
>>  drivers/acpi/blacklist.c | 83 ------------------------------------------------
>>  drivers/acpi/video.c     | 76 ++++++++++++++++++++++++++++++++++++++++++--
>>  2 files changed, 74 insertions(+), 85 deletions(-)
>>
>> diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
>> index 3d8413d..b08e65a 100644
>> --- a/drivers/acpi/blacklist.c
>> +++ b/drivers/acpi/blacklist.c
>> @@ -156,12 +156,6 @@ static int __init dmi_disable_osi_win7(const struct dmi_system_id *d)
>>         acpi_osi_setup("!Windows 2009");
>>         return 0;
>>  }
>> -static int __init dmi_disable_osi_win8(const struct dmi_system_id *d)
>> -{
>> -       printk(KERN_NOTICE PREFIX "DMI detected: %s\n", d->ident);
>> -       acpi_osi_setup("!Windows 2012");
>> -       return 0;
>> -}
>>
>>  static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
>>         {
>> @@ -247,83 +241,6 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
>>         },
>>
>>         /*
>> -        * The following machines have broken backlight support when reporting
>> -        * the Windows 2012 OSI, so disable it until their support is fixed.
>> -        */
>> -       {
>> -       .callback = dmi_disable_osi_win8,
>> -       .ident = "ASUS Zenbook Prime UX31A",
>> -       .matches = {
>> -                    DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
>> -                    DMI_MATCH(DMI_PRODUCT_NAME, "UX31A"),
>> -               },
>> -       },
>> -       {
>> -       .callback = dmi_disable_osi_win8,
>> -       .ident = "ThinkPad Edge E530",
>> -       .matches = {
>> -                    DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>> -                    DMI_MATCH(DMI_PRODUCT_VERSION, "3259A2G"),
>> -               },
>> -       },
>> -       {
>> -       .callback = dmi_disable_osi_win8,
>> -       .ident = "ThinkPad Edge E530",
>> -       .matches = {
>> -                    DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>> -                    DMI_MATCH(DMI_PRODUCT_VERSION, "3259CTO"),
>> -               },
>> -       },
>> -       {
>> -       .callback = dmi_disable_osi_win8,
>> -       .ident = "ThinkPad Edge E530",
>> -       .matches = {
>> -                    DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>> -                    DMI_MATCH(DMI_PRODUCT_VERSION, "3259HJG"),
>> -               },
>> -       },
>> -       {
>> -       .callback = dmi_disable_osi_win8,
>> -       .ident = "Acer Aspire V5-573G",
>> -       .matches = {
>> -                    DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
>> -                    DMI_MATCH(DMI_PRODUCT_VERSION, "V5-573G/Dazzle_HW"),
>> -               },
>> -       },
>> -       {
>> -       .callback = dmi_disable_osi_win8,
>> -       .ident = "Acer Aspire V5-572G",
>> -       .matches = {
>> -                    DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
>> -                    DMI_MATCH(DMI_PRODUCT_VERSION, "V5-572G/Dazzle_CX"),
>> -               },
>> -       },
>> -       {
>> -       .callback = dmi_disable_osi_win8,
>> -       .ident = "ThinkPad T431s",
>> -       .matches = {
>> -                    DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>> -                    DMI_MATCH(DMI_PRODUCT_VERSION, "20AACTO1WW"),
>> -               },
>> -       },
>> -       {
>> -       .callback = dmi_disable_osi_win8,
>> -       .ident = "ThinkPad T430",
>> -       .matches = {
>> -                    DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>> -                    DMI_MATCH(DMI_PRODUCT_VERSION, "2349D15"),
>> -               },
>> -       },
>> -       {
>> -       .callback = dmi_disable_osi_win8,
>> -       .ident = "Dell Inspiron 7737",
>> -       .matches = {
>> -                   DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
>> -                   DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 7737"),
>> -               },
>> -       },
>> -
>> -       /*
>>          * BIOS invocation of _OSI(Linux) is almost always a BIOS bug.
>>          * Linux ignores it, except for the machines enumerated below.
>>          */
>> diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
>> index fb9ffe9..deb1b1f 100644
>> --- a/drivers/acpi/video.c
>> +++ b/drivers/acpi/video.c
>> @@ -460,6 +460,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>>         },
>>         {
>>          .callback = video_set_use_native_backlight,
>> +        .ident = "ThinkPad X230",
>> +        .matches = {
>> +               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>> +               DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X230"),
>> +               },
>> +       },
>> +       {
>> +        .callback = video_set_use_native_backlight,
>>          .ident = "ThinkPad T430 and T430s",
>>          .matches = {
>>                 DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>> @@ -468,10 +476,42 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>>         },
>>         {
>>          .callback = video_set_use_native_backlight,
>> -        .ident = "ThinkPad X230",
>> +        .ident = "ThinkPad T430",
>>          .matches = {
>>                 DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>> -               DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X230"),
>> +               DMI_MATCH(DMI_PRODUCT_VERSION, "2349D15"),
>> +               },
>> +       },
>> +       {
>> +        .callback = video_set_use_native_backlight,
>> +        .ident = "ThinkPad T431s",
>> +        .matches = {
>> +               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>> +               DMI_MATCH(DMI_PRODUCT_VERSION, "20AACTO1WW"),
>> +               },
>> +       },
>> +       {
>> +        .callback = video_set_use_native_backlight,
>> +        .ident = "ThinkPad Edge E530",
>> +        .matches = {
>> +               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>> +               DMI_MATCH(DMI_PRODUCT_VERSION, "3259A2G"),
>> +               },
>> +       },
>> +       {
>> +        .callback = video_set_use_native_backlight,
>> +        .ident = "ThinkPad Edge E530",
>> +        .matches = {
>> +               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>> +               DMI_MATCH(DMI_PRODUCT_VERSION, "3259CTO"),
>> +               },
>> +       },
>> +       {
>> +        .callback = video_set_use_native_backlight,
>> +        .ident = "ThinkPad Edge E530",
>> +        .matches = {
>> +               DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
>> +               DMI_MATCH(DMI_PRODUCT_VERSION, "3259HJG"),
>>                 },
>>         },
>>         {
>> @@ -524,6 +564,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>>         },
>>         {
>>          .callback = video_set_use_native_backlight,
>> +        .ident = "Dell Inspiron 7737",
>> +        .matches = {
>> +               DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
>> +               DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 7737"),
>> +               },
>> +       },
>> +       {
>> +        .callback = video_set_use_native_backlight,
>>          .ident = "Acer Aspire 5733Z",
>>          .matches = {
>>                 DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
>> @@ -563,6 +611,30 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>>                 },
>>         },
>>         {
>> +        .callback = video_set_use_native_backlight,
>> +        .ident = "Acer Aspire V5-572G",
>> +        .matches = {
>> +               DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
>> +               DMI_MATCH(DMI_PRODUCT_VERSION, "V5-572G/Dazzle_CX"),
>> +               },
>> +       },
>> +       {
>> +        .callback = video_set_use_native_backlight,
>> +        .ident = "Acer Aspire V5-573G",
>> +        .matches = {
>> +               DMI_MATCH(DMI_SYS_VENDOR, "Acer Aspire"),
>> +               DMI_MATCH(DMI_PRODUCT_VERSION, "V5-573G/Dazzle_HW"),
>> +               },
>> +       },
>> +       {
>> +        .callback = video_set_use_native_backlight,
>> +        .ident = "ASUS Zenbook Prime UX31A",
>> +        .matches = {
>> +               DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
>> +               DMI_MATCH(DMI_PRODUCT_NAME, "UX31A"),
>> +               },
>> +       },
>> +       {
>>         .callback = video_set_use_native_backlight,
>>         .ident = "HP ProBook 4340s",
>>         .matches = {
>> --
>> 2.0.0
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] acpi: mv models with win8 brightness problems from win8 blacklist to use_native_backlight
  2014-07-10 15:12   ` Hans de Goede
@ 2014-07-10 20:21     ` Rafael J. Wysocki
  0 siblings, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2014-07-10 20:21 UTC (permalink / raw)
  To: Hans de Goede; +Cc: Yidi Lin, Aaron Lu, Zhang Rui, Len Brown, linux-acpi

On Thursday, July 10, 2014 05:12:02 PM Hans de Goede wrote:
> Hi,
> 
> On 07/10/2014 03:40 PM, Yidi Lin wrote:
> > Hi,
> > 
> > The quirk of Dell Inspiron 7737 is not for win8 backlight issue.
> > 
> > Dell Inspiron 7737 will power on immediately after shutdown with win8
> > capability.
> > Disable win8 capability to workaround the issue.
> > 
> > It seems that I add the quirk to the improper segment.
> 
> Yeah a comment that this one was not for a backlight issue would
> have been nice. Still, you managed to catch it in time, which is
> good, thanks for the heads up.
> 
> > Sorry for misleading you.
> 
> NP.
> 
> Rafael, do you want me to do a follow up patch to move the
> Dell Inspiron 7737 entry back, or do you want me to do a V3
> of the patch ?

I'd prefer to get a v3.

Rafael


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-10 20:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-16  9:55 [PATCH v2] acpi: mv models with win8 brightness problems from win8 blacklist to use_native_backlight Hans de Goede
2014-07-08 20:47 ` Rafael J. Wysocki
2014-07-10 13:40 ` Yidi Lin
2014-07-10 15:12   ` Hans de Goede
2014-07-10 20:21     ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox