* [PATCH] ACPI: disable _OSI(Windows 2009) on Asus K50IJ
@ 2009-12-21 8:13 Zhang Rui
2009-12-22 7:39 ` Len Brown
0 siblings, 1 reply; 2+ messages in thread
From: Zhang Rui @ 2009-12-21 8:13 UTC (permalink / raw)
To: Len Brown; +Cc: linux-acpi@vger.kernel.org, Zhang, Rui, Alex.Haeussler
Fix a win7 compability issue on Asus K50IJ.
Here is the _BCM method of this laptop:
Method (_BCM, 1, NotSerialized)
{
If (LGreaterEqual (OSFG, OSVT))
{
If (LNotEqual (OSFG, OSW7))
{
Store (One, BCMD)
Store (GCBL (Arg0), Local0)
Subtract (0x0F, Local0, LBTN)
^^^SBRG.EC0.STBR ()
...
}
Else
{
DBGR (0x0B, Zero, Zero, Arg0)
Store (Arg0, LBTN)
^^^SBRG.EC0.STBR ()
...
}
}
}
LBTN is used to store the index of the brightness level in the _BCL.
GCBL is a method that convert the percentage value to the index value.
If _OSI(Windows 2009) is not disabled, LBTN is stored a percentage
value which is surely beyond the end of _BCL package.
http://bugzilla.kernel.org/show_bug.cgi?id=14753
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
---
drivers/acpi/blacklist.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
Index: linux-2.6/drivers/acpi/blacklist.c
===================================================================
--- linux-2.6.orig/drivers/acpi/blacklist.c
+++ linux-2.6/drivers/acpi/blacklist.c
@@ -185,6 +185,12 @@ static int __init dmi_disable_osi_vista(
acpi_osi_setup("!Windows 2006");
return 0;
}
+static int __init dmi_disable_osi_win7(const struct dmi_system_id *d)
+{
+ printk(KERN_NOTICE PREFIX "DMI detected: %s\n", d->ident);
+ acpi_osi_setup("!Windows 2009");
+ return 0;
+}
static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
{
@@ -211,6 +217,14 @@ static struct dmi_system_id acpi_osi_dmi
DMI_MATCH(DMI_PRODUCT_NAME, "Sony VGN-SR290J"),
},
},
+ {
+ .callback = dmi_disable_osi_win7,
+ .ident = "ASUS K50IJ",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK Computer Inc."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "K50IJ"),
+ },
+ },
/*
* BIOS invocation of _OSI(Linux) is almost always a BIOS bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ACPI: disable _OSI(Windows 2009) on Asus K50IJ
2009-12-21 8:13 [PATCH] ACPI: disable _OSI(Windows 2009) on Asus K50IJ Zhang Rui
@ 2009-12-22 7:39 ` Len Brown
0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2009-12-22 7:39 UTC (permalink / raw)
To: Zhang Rui; +Cc: linux-acpi@vger.kernel.org, Alex.Haeussler
applied
thanks,
Len Brown, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-22 7:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-21 8:13 [PATCH] ACPI: disable _OSI(Windows 2009) on Asus K50IJ Zhang Rui
2009-12-22 7:39 ` Len Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox