acer-wmi.txt 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. Acer Laptop WMI Extras Driver
  2. http://code.google.com/p/aceracpi
  3. Version 0.1
  4. 9th February 2008
  5. Copyright 2007-2008 Carlos Corbacho <carlos@strangeworlds.co.uk>
  6. acer-wmi is a driver to allow you to control various parts of your Acer laptop
  7. hardware under Linux which are exposed via ACPI-WMI.
  8. This driver completely replaces the old out-of-tree acer_acpi, which I am
  9. currently maintaining for bug fixes only on pre-2.6.25 kernels. All development
  10. work is now focused solely on acer-wmi.
  11. Disclaimer
  12. **********
  13. Acer and Wistron have provided nothing towards the development acer_acpi or
  14. acer-wmi. All information we have has been through the efforts of the developers
  15. and the users to discover as much as possible about the hardware.
  16. As such, I do warn that this could break your hardware - this is extremely
  17. unlikely of course, but please bear this in mind.
  18. Background
  19. **********
  20. acer-wmi is derived from acer_acpi, originally developed by Mark
  21. Smith in 2005, then taken over by Carlos Corbacho in 2007, in order to activate
  22. the wireless LAN card under a 64-bit version of Linux, as acerhk[1] (the
  23. previous solution to the problem) relied on making 32 bit BIOS calls which are
  24. not possible in kernel space from a 64 bit OS.
  25. [1] acerhk: http://www.cakey.de/acerhk/
  26. Supported Hardware
  27. ******************
  28. Please see the website for the current list of known working hardare:
  29. http://code.google.com/p/aceracpi/wiki/SupportedHardware
  30. If your laptop is not listed, or listed as unknown, and works with acer-wmi,
  31. please contact me with a copy of the DSDT.
  32. If your Acer laptop doesn't work with acer-wmi, I would also like to see the
  33. DSDT.
  34. To send me the DSDT, as root/sudo:
  35. cat /sys/firmware/acpi/tables/DSDT > dsdt
  36. And send me the resulting 'dsdt' file.
  37. Usage
  38. *****
  39. On Acer laptops, acer-wmi should already be autoloaded based on DMI matching.
  40. For non-Acer laptops, until WMI based autoloading support is added, you will
  41. need to manually load acer-wmi.
  42. acer-wmi creates /sys/devices/platform/acer-wmi, and fills it with various
  43. files whose usage is detailed below, which enables you to control some of the
  44. following (varies between models):
  45. * the wireless LAN card radio
  46. * inbuilt Bluetooth adapter
  47. * inbuilt 3G card
  48. * mail LED of your laptop
  49. * brightness of the LCD panel
  50. Wireless
  51. ********
  52. With regards to wireless, all acer-wmi does is enable the radio on the card. It
  53. is not responsible for the wireless LED - once the radio is enabled, this is
  54. down to the wireless driver for your card. So the behaviour of the wireless LED,
  55. once you enable the radio, will depend on your hardware and driver combination.
  56. e.g. With the BCM4318 on the Acer Aspire 5020 series:
  57. ndiswrapper: Light blinks on when transmitting
  58. b43: Solid light, blinks off when transmitting
  59. Wireless radio control is unconditionally enabled - all Acer laptops that support
  60. acer-wmi come with built-in wireless. However, should you feel so inclined to
  61. ever wish to remove the card, or swap it out at some point, please get in touch
  62. with me, as we may well be able to gain some data on wireless card detection.
  63. To read the status of the wireless radio (0=off, 1=on):
  64. cat /sys/devices/platform/acer-wmi/wireless
  65. To enable the wireless radio:
  66. echo 1 > /sys/devices/platform/acer-wmi/wireless
  67. To disable the wireless radio:
  68. echo 0 > /sys/devices/platform/acer-wmi/wireless
  69. To set the state of the wireless radio when loading acer-wmi, pass:
  70. wireless=X (where X is 0 or 1)
  71. Bluetooth
  72. *********
  73. For bluetooth, this is an internal USB dongle, so once enabled, you will get
  74. a USB device connection event, and a new USB device appears. When you disable
  75. bluetooth, you get the reverse - a USB device disconnect event, followed by the
  76. device disappearing again.
  77. Bluetooth is autodetected by acer-wmi, so if you do not have a bluetooth module
  78. installed in your laptop, this file won't exist (please be aware that it is
  79. quite common for Acer not to fit bluetooth to their laptops - so just because
  80. you have a bluetooth button on the laptop, doesn't mean that bluetooth is
  81. installed).
  82. For the adventurously minded - if you want to buy an internal bluetooth
  83. module off the internet that is compatible with your laptop and fit it, then
  84. it will work just fine with acer-wmi.
  85. To read the status of the bluetooth module (0=off, 1=on):
  86. cat /sys/devices/platform/acer-wmi/wireless
  87. To enable the bluetooth module:
  88. echo 1 > /sys/devices/platform/acer-wmi/bluetooth
  89. To disable the bluetooth module:
  90. echo 0 > /sys/devices/platform/acer-wmi/bluetooth
  91. To set the state of the bluetooth module when loading acer-wmi, pass:
  92. bluetooth=X (where X is 0 or 1)
  93. 3G
  94. **
  95. 3G is currently not autodetected, so the 'threeg' file is always created under
  96. sysfs. So far, no-one in possession of an Acer laptop with 3G built-in appears to
  97. have tried Linux, or reported back, so we don't have any information on this.
  98. If you have an Acer laptop that does have a 3G card in, please contact me so we
  99. can properly detect these, and find out a bit more about them.
  100. To read the status of the 3G card (0=off, 1=on):
  101. cat /sys/devices/platform/acer-wmi/threeg
  102. To enable the 3G card:
  103. echo 1 > /sys/devices/platform/acer-wmi/threeg
  104. To disable the 3G card:
  105. echo 0 > /sys/devices/platform/acer-wmi/threeg
  106. To set the state of the 3G card when loading acer-wmi, pass:
  107. threeg=X (where X is 0 or 1)
  108. Mail LED
  109. ********
  110. This can be found in most older Acer laptops supported by acer-wmi, and many
  111. newer ones - it is built into the 'mail' button, and blinks when active.
  112. On newer (WMID) laptops though, we have no way of detecting the mail LED. If
  113. your laptop identifies itself in dmesg as a WMID model, then please try loading
  114. acer_acpi with:
  115. force_series=2490
  116. This will use a known alternative method of reading/ writing the mail LED. If
  117. it works, please report back to me with the DMI data from your laptop so this
  118. can be added to acer-wmi.
  119. The LED is exposed through the LED subsystem, and can be found in:
  120. /sys/devices/platform/acer-wmi/leds/acer-wmi::mail/
  121. The mail LED is autodetected, so if you don't have one, the LED device won't
  122. be registered.
  123. Backlight
  124. *********
  125. The backlight brightness control is available on all acer-wmi supported
  126. hardware. The maximum brightness level is usually 15, but on some newer laptops
  127. it's 10 (this is again autodetected).
  128. The backlight is exposed through the backlight subsystem, and can be found in:
  129. /sys/devices/platform/acer-wmi/backlight/acer-wmi/
  130. Credits
  131. *******
  132. Olaf Tauber, who did the real hard work when he developed acerhk
  133. http://www.informatik.hu-berlin.de/~tauber/acerhk
  134. All the authors of laptop ACPI modules in the kernel, whose work
  135. was an inspiration in the early days of acer_acpi
  136. Mathieu Segaud, who solved the problem with having to modprobe the driver
  137. twice in acer_acpi 0.2.
  138. Jim Ramsay, who added support for the WMID interface
  139. Mark Smith, who started the original acer_acpi
  140. And the many people who have used both acer_acpi and acer-wmi.