asus-laptop.rst 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. ==================
  2. Asus Laptop Extras
  3. ==================
  4. Version 0.1
  5. August 6, 2009
  6. Corentin Chary <corentincj@iksaif.net>
  7. http://acpi4asus.sf.net/
  8. This driver provides support for extra features of ACPI-compatible ASUS laptops.
  9. It may also support some MEDION, JVC or VICTOR laptops (such as MEDION 9675 or
  10. VICTOR XP7210 for example). It makes all the extra buttons generate input
  11. events (like keyboards).
  12. On some models adds support for changing the display brightness and output,
  13. switching the LCD backlight on and off, and most importantly, allows you to
  14. blink those fancy LEDs intended for reporting mail and wireless status.
  15. This driver supersedes the old asus_acpi driver.
  16. Requirements
  17. ------------
  18. Kernel 2.6.X sources, configured for your computer, with ACPI support.
  19. You also need CONFIG_INPUT and CONFIG_ACPI.
  20. Status
  21. ------
  22. The features currently supported are the following (see below for
  23. detailed description):
  24. - Fn key combinations
  25. - Bluetooth enable and disable
  26. - Wlan enable and disable
  27. - GPS enable and disable
  28. - Video output switching
  29. - Ambient Light Sensor on and off
  30. - LED control
  31. - LED Display control
  32. - LCD brightness control
  33. - LCD on and off
  34. A compatibility table by model and feature is maintained on the web
  35. site, http://acpi4asus.sf.net/.
  36. Usage
  37. -----
  38. Try "modprobe asus-laptop". Check your dmesg (simply type dmesg). You should
  39. see some lines like this :
  40. Asus Laptop Extras version 0.42
  41. - L2D model detected.
  42. If it is not the output you have on your laptop, send it (and the laptop's
  43. DSDT) to me.
  44. That's all, now, all the events generated by the hotkeys of your laptop
  45. should be reported via netlink events. You can check with
  46. "acpi_genl monitor" (part of the acpica project).
  47. Hotkeys are also reported as input keys (like keyboards) you can check
  48. which key are supported using "xev" under X11.
  49. You can get information on the version of your DSDT table by reading the
  50. /sys/devices/platform/asus-laptop/infos entry. If you have a question or a
  51. bug report to do, please include the output of this entry.
  52. LEDs
  53. ----
  54. You can modify LEDs be echoing values to `/sys/class/leds/asus/*/brightness`::
  55. echo 1 > /sys/class/leds/asus::mail/brightness
  56. will switch the mail LED on.
  57. You can also know if they are on/off by reading their content and use
  58. kernel triggers like disk-activity or heartbeat.
  59. Backlight
  60. ---------
  61. You can control lcd backlight power and brightness with
  62. /sys/class/backlight/asus-laptop/. Brightness Values are between 0 and 15.
  63. Wireless devices
  64. ----------------
  65. You can turn the internal Bluetooth adapter on/off with the bluetooth entry
  66. (only on models with Bluetooth). This usually controls the associated LED.
  67. Same for Wlan adapter.
  68. Display switching
  69. -----------------
  70. Note: the display switching code is currently considered EXPERIMENTAL.
  71. Switching works for the following models:
  72. - L3800C
  73. - A2500H
  74. - L5800C
  75. - M5200N
  76. - W1000N (albeit with some glitches)
  77. - M6700R
  78. - A6JC
  79. - F3J
  80. Switching doesn't work for the following:
  81. - M3700N
  82. - L2X00D (locks the laptop under certain conditions)
  83. To switch the displays, echo values from 0 to 15 to
  84. /sys/devices/platform/asus-laptop/display. The significance of those values
  85. is as follows:
  86. +-------+-----+-----+-----+-----+-----+
  87. | Bin | Val | DVI | TV | CRT | LCD |
  88. +-------+-----+-----+-----+-----+-----+
  89. | 0000 | 0 | | | | |
  90. +-------+-----+-----+-----+-----+-----+
  91. | 0001 | 1 | | | | X |
  92. +-------+-----+-----+-----+-----+-----+
  93. | 0010 | 2 | | | X | |
  94. +-------+-----+-----+-----+-----+-----+
  95. | 0011 | 3 | | | X | X |
  96. +-------+-----+-----+-----+-----+-----+
  97. | 0100 | 4 | | X | | |
  98. +-------+-----+-----+-----+-----+-----+
  99. | 0101 | 5 | | X | | X |
  100. +-------+-----+-----+-----+-----+-----+
  101. | 0110 | 6 | | X | X | |
  102. +-------+-----+-----+-----+-----+-----+
  103. | 0111 | 7 | | X | X | X |
  104. +-------+-----+-----+-----+-----+-----+
  105. | 1000 | 8 | X | | | |
  106. +-------+-----+-----+-----+-----+-----+
  107. | 1001 | 9 | X | | | X |
  108. +-------+-----+-----+-----+-----+-----+
  109. | 1010 | 10 | X | | X | |
  110. +-------+-----+-----+-----+-----+-----+
  111. | 1011 | 11 | X | | X | X |
  112. +-------+-----+-----+-----+-----+-----+
  113. | 1100 | 12 | X | X | | |
  114. +-------+-----+-----+-----+-----+-----+
  115. | 1101 | 13 | X | X | | X |
  116. +-------+-----+-----+-----+-----+-----+
  117. | 1110 | 14 | X | X | X | |
  118. +-------+-----+-----+-----+-----+-----+
  119. | 1111 | 15 | X | X | X | X |
  120. +-------+-----+-----+-----+-----+-----+
  121. In most cases, the appropriate displays must be plugged in for the above
  122. combinations to work. TV-Out may need to be initialized at boot time.
  123. Debugging:
  124. 1) Check whether the Fn+F8 key:
  125. a) does not lock the laptop (try a boot with noapic / nolapic if it does)
  126. b) generates events (0x6n, where n is the value corresponding to the
  127. configuration above)
  128. c) actually works
  129. Record the disp value at every configuration.
  130. 2) Echo values from 0 to 15 to /sys/devices/platform/asus-laptop/display.
  131. Record its value, note any change. If nothing changes, try a broader range,
  132. up to 65535.
  133. 3) Send ANY output (both positive and negative reports are needed, unless your
  134. machine is already listed above) to the acpi4asus-user mailing list.
  135. Note: on some machines (e.g. L3C), after the module has been loaded, only 0x6n
  136. events are generated and no actual switching occurs. In such a case, a line
  137. like::
  138. echo $((10#$arg-60)) > /sys/devices/platform/asus-laptop/display
  139. will usually do the trick ($arg is the 0000006n-like event passed to acpid).
  140. Note: there is currently no reliable way to read display status on xxN
  141. (Centrino) models.
  142. LED display
  143. -----------
  144. Some models like the W1N have a LED display that can be used to display
  145. several items of information.
  146. LED display works for the following models:
  147. - W1000N
  148. - W1J
  149. To control the LED display, use the following::
  150. echo 0x0T000DDD > /sys/devices/platform/asus-laptop/
  151. where T control the 3 letters display, and DDD the 3 digits display,
  152. according to the tables below::
  153. DDD (digits)
  154. 000 to 999 = display digits
  155. AAA = ---
  156. BBB to FFF = turn-off
  157. T (type)
  158. 0 = off
  159. 1 = dvd
  160. 2 = vcd
  161. 3 = mp3
  162. 4 = cd
  163. 5 = tv
  164. 6 = cpu
  165. 7 = vol
  166. For example "echo 0x01000001 >/sys/devices/platform/asus-laptop/ledd"
  167. would display "DVD001".
  168. Driver options
  169. --------------
  170. Options can be passed to the asus-laptop driver using the standard
  171. module argument syntax (<param>=<value> when passing the option to the
  172. module or asus-laptop.<param>=<value> on the kernel boot line when
  173. asus-laptop is statically linked into the kernel).
  174. wapf: WAPF defines the behavior of the Fn+Fx wlan key
  175. The significance of values is yet to be found, but
  176. most of the time:
  177. - 0x0 should do nothing
  178. - 0x1 should allow to control the device with Fn+Fx key.
  179. - 0x4 should send an ACPI event (0x88) while pressing the Fn+Fx key
  180. - 0x5 like 0x1 or 0x4
  181. The default value is 0x1.
  182. Unsupported models
  183. ------------------
  184. These models will never be supported by this module, as they use a completely
  185. different mechanism to handle LEDs and extra stuff (meaning we have no clue
  186. how it works):
  187. - ASUS A1300 (A1B), A1370D
  188. - ASUS L7300G
  189. - ASUS L8400
  190. Patches, Errors, Questions
  191. --------------------------
  192. I appreciate any success or failure
  193. reports, especially if they add to or correct the compatibility table.
  194. Please include the following information in your report:
  195. - Asus model name
  196. - a copy of your ACPI tables, using the "acpidump" utility
  197. - a copy of /sys/devices/platform/asus-laptop/infos
  198. - which driver features work and which don't
  199. - the observed behavior of non-working features
  200. Any other comments or patches are also more than welcome.
  201. acpi4asus-user@lists.sourceforge.net
  202. http://sourceforge.net/projects/acpi4asus