[PATCH 3/5] Fix mute key for X300 series Thinkpads

Jerone Young jerone.young at canonical.com
Sat Aug 29 16:28:48 UTC 2009


commit 3d1e2f75ea1ad053a2b211f6d1342bd525070cb5
Author: Jerone Young <jerone.young at canonical.com>
Date:   Thu Aug 27 00:59:24 2009 -0500

    ACPI: Add Thinkpad X300 & Thinkpad X301 to OSI(Linux) white-list
    
    acpi_osi=Linux helps the mute button work properly by sending Linux
    a mute key press. This is the same behavior as seen with the Thinkpad
    T61 already on the white list.
    
    The other issue fixed is that with the X300 & X301 the mute button
    only controls the speakers and not the headphone jack.
    
    One side effect of this is that the mute button will no longer glow
    orange when speakers are muted. If this new behavior is not desired
    then user can place acpi_osi=!Linux on kernel command line.
    
    Signed-off-by: Jerone Young <jerone.young at canonical.com>

diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
index 9f281bd..43c3619 100644
--- a/drivers/acpi/blacklist.c
+++ b/drivers/acpi/blacklist.c
@@ -291,6 +291,22 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
 		     DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X200t"),
 		},
 	},
+	{
+	.callback = dmi_enable_osi_linux,
+	.ident = "Lenovo ThinkPad X300",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		     DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X300"),
+		},
+	},
+	{
+	.callback = dmi_enable_osi_linux,
+	.ident = "Lenovo ThinkPad X301",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		     DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X301"),
+		},
+	},
 	{}
 };
 






More information about the kernel-team mailing list