linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] acpi: blacklist win8 OSI for ASUS Zenbok Prime UX31A
@ 2013-05-20  8:16 Felipe Contreras
  2013-06-26 10:41 ` Felipe Contreras
  0 siblings, 1 reply; 13+ messages in thread
From: Felipe Contreras @ 2013-05-20  8:16 UTC (permalink / raw)
  To: linux-acpi; +Cc: Len Brown, Rafael J. Wysocki, Felipe Contreras

Otherwise the backlight can't be changed, presumably because the DSDT
contains stub code when in conjunction with Windows 8.

https://wiki.archlinux.org/index.php/ASUS_Zenbook_Prime_UX31A

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 drivers/acpi/blacklist.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
index cb96296..a404127 100644
--- a/drivers/acpi/blacklist.c
+++ b/drivers/acpi/blacklist.c
@@ -192,6 +192,12 @@ 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 = {
 	{
@@ -267,6 +273,14 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
 		     DMI_MATCH(DMI_PRODUCT_NAME, "Satellite P305D"),
 		},
 	},
+	{
+	.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"),
+		},
+	},
 
 	/*
 	 * BIOS invocation of _OSI(Linux) is almost always a BIOS bug.
-- 
1.8.3.rc3.286.g3d43083


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

end of thread, other threads:[~2013-07-18 21:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-20  8:16 [PATCH] acpi: blacklist win8 OSI for ASUS Zenbok Prime UX31A Felipe Contreras
2013-06-26 10:41 ` Felipe Contreras
2013-06-26 12:42   ` Rafael J. Wysocki
2013-06-27  2:37     ` Aaron Lu
2013-07-17 15:42       ` Felipe Contreras
2013-07-17 22:04         ` Rafael J. Wysocki
2013-07-18  0:20           ` Felipe Contreras
2013-07-18  0:31             ` Rafael J. Wysocki
2013-07-18  0:53               ` Felipe Contreras
2013-07-18 19:19                 ` Rafael J. Wysocki
2013-07-18 21:36                   ` Felipe Contreras
2013-07-18  1:04         ` Aaron Lu
2013-07-17 15:42     ` Felipe Contreras

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).