Bug 15900

Summary: Acer Aspire 5740 not recognized by acer-wmi
Product: Drivers Reporter: Jonathan (xtragb)
Component: PlatformAssignee: acpi_platform-drivers (acpi_platform-drivers)
Status: RESOLVED CODE_FIX    
Severity: low CC: alan, carlos, jlee, joydeep
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.33-ARCH #1 SMP PREEMPT Subsystem:
Regression: No Bisected commit-id:
Attachments: ACPI Dump

Description Jonathan 2010-05-02 20:14:33 UTC
Created attachment 26202 [details]
ACPI Dump

sudo modprobe acer-wmi

gives this result:

FATAL: Error inserting acer_wmi (/lib/modules/2.6.33-ARCH/kernel/drivers/platform/x86/acer-wmi.ko): No such device

output from dmesg includes:

..
Hardware name: Aspire 5740 
..
acer-wmi: Acer Laptop ACPI-WMI Extras
acer-wmi: Unable to detect available WMID devices

From what I have read, this may be at least part of the reason I am unable to control the LCD backlight brightness on this laptop from within the graphical desktop environment.  I am able to control the brightness from the console and set the brightness with xbacklight from within my .xinitrc.  I have not yet encountered any other problems resulting from this bug.
Comment 1 Jonathan 2010-05-08 23:48:03 UTC
After further testing, xbacklight seems not to work.  However, since I added acpi_osi="Linux" to my GRUB kernel parameters I can adjust backlight brightness with the function keys within Xorg. Unfortunately, I still get the above error when I try to load acer-wmi.
Comment 2 Joydeep 2010-06-03 16:39:27 UTC
Found the same with kernel 2.6.34 and acer 5740. No brightness control through function key.  

```````````````
#modprobe acer-wmi

FATAL: Error inserting acer_wmi (/lib/modules/2.6.34.2010/kernel/drivers/platform/x86/acer-wmi.ko): No such device
``````````````

`````````````````
#dmesg | grep acer

[    7.373730] acer-wmi: Acer Laptop ACPI-WMI Extras
[    7.542888] acer-wmi: Unable to detect available WMID devices
[ 8187.222037] acer-wmi: Acer Laptop ACPI-WMI Extras
[ 8187.286147] acer-wmi: Unable to detect available WMID devices
```````````````````````````
Comment 3 Lee, Chun-Yi 2011-03-28 10:44:20 UTC
This issue might already fixed by Pali Rohár's patch, but need Joydeep help to double check :


commit d64773d0c4f9f913c3c160795a64fcccd4d676c1
Author: Pali Rohár <pali.rohar@gmail.com>
Date:   Fri Mar 11 12:36:43 2011 -0500

    acer-wmi: Fix WMI ID
    
    This patch change WMI ID to upper characters. With this patch module
    acer-wmi is automatically loaded when WMI ID is detected.
    
    Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
    Tested-by: Pali Rohár <pali.rohar@gmail.com>
    Signed-off-by: Matthew Garrett <mjg@redhat.com>

diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index 0c0f764..5839fac 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -85,7 +85,7 @@ MODULE_LICENSE("GPL");
 #define AMW0_GUID1             "67C3371D-95A3-4C37-BB61-DD47B491DAAB"
 #define AMW0_GUID2             "431F16ED-0C2B-444C-B267-27DEB140CF9C"
 #define WMID_GUID1             "6AF4F258-B401-42FD-BE91-3D4AC2D7C0D3"
-#define WMID_GUID2             "95764E09-FB56-4e83-B31A-37761F60994A"
+#define WMID_GUID2             "95764E09-FB56-4E83-B31A-37761F60994A"
 #define WMID_GUID3             "61EF69EA-865C-4BC3-A502-A0DEBA0CB531"
 
 /*
@@ -94,7 +94,7 @@ MODULE_LICENSE("GPL");
 #define ACERWMID_EVENT_GUID "676AA15E-6A47-4D9F-A2CC-1E6D18D14026"
 
 MODULE_ALIAS("wmi:67C3371D-95A3-4C37-BB61-DD47B491DAAB");
-MODULE_ALIAS("wmi:6AF4F258-B401-42fd-BE91-3D4AC2D7C0D3");
+MODULE_ALIAS("wmi:6AF4F258-B401-42Fd-BE91-3D4AC2D7C0D3");
 MODULE_ALIAS("wmi:676AA15E-6A47-4D9F-A2CC-1E6D18D14026");
 
 enum acer_wmi_event_ids {