Asus-laptop WAPF

Version 5 (Corentin Chary, 01/24/2010 11:13 am)

1 1 Corentin Chary
h1. Asus-laptop WAPF
2 1 Corentin Chary
3 1 Corentin Chary
h2. Bits
4 1 Corentin Chary
5 4 Fabien Crespel
In the table below:
6 4 Fabien Crespel
* *Hardware control* means pressing the Fn+F2 key will effectively toggle the device state in hardware.
7 4 Fabien Crespel
* *Software control* means an ACPI event is generated instead, and must be handled by a device driver or relayed to an application.
8 3 Fabien Crespel
9 4 Fabien Crespel
|_.WAPF|_.WLAN control|_.BT control|_.?|
10 3 Fabien Crespel
|0x0|Hardware|Hardware|No application|
11 1 Corentin Chary
|0x1|Software|Hardware|?|
12 1 Corentin Chary
|0x4|Software|Software|Wireless console|
13 1 Corentin Chary
14 4 Fabien Crespel
Note that not all laptop models support all WAPF values; in particular, some laptops are only made for WAPF 0x4 and won't do anything in hardware.
15 1 Corentin Chary
16 4 Fabien Crespel
h2. Event Notifications
17 1 Corentin Chary
18 4 Fabien Crespel
Pressing the Fn+F2 generates different ACPI notifications depending on the kind of device control mode (see the table above):
19 4 Fabien Crespel
* in *hardware*, notifications *inform* the device driver of a state change that has already occurred.
20 4 Fabien Crespel
* in *software*, notifications *ask* the device driver to change the device state, but nothing is done in hardware.
21 4 Fabien Crespel
22 4 Fabien Crespel
|_.WAPF|_.WLAN ON|_.WLAN OFF|_.BT ON|_.BT OFF|
23 4 Fabien Crespel
|0x0|0x5E|0x5F|0x7D|0x7E|
24 4 Fabien Crespel
|0x1|0x5D|0x5D|0x7D|0x7D|
25 4 Fabien Crespel
|0x4|0x88|0x88|0x88|0x88|
26 4 Fabien Crespel
27 4 Fabien Crespel
h2. In the real world
28 4 Fabien Crespel
29 5 Corentin Chary
|_.WAPF|_.M51|_.F3JC|_.A6JC|
30 5 Corentin Chary
|0x0|wb bb|wl bb|wn bd|
31 5 Corentin Chary
|0x1|wl bl|wl bb|wn bd|
32 5 Corentin Chary
|0x2|wb bb|wl bb|wn bd|
33 5 Corentin Chary
|0x3|wl bl|wl bb|wn bd|
34 5 Corentin Chary
|0x4|wl bl|wl bb|wn bd|
35 5 Corentin Chary
|0x5|wl bl|wl bb|wn bd|
36 3 Fabien Crespel
37 5 Corentin Chary
bn: BLED control nothing
38 1 Corentin Chary
bl: BLED control the led
39 1 Corentin Chary
bd: BLED control the device
40 1 Corentin Chary
bb: BLED control both
41 1 Corentin Chary
42 5 Corentin Chary
wn: WLED control nothing
43 1 Corentin Chary
wl: WLED control the led
44 1 Corentin Chary
wd: WLED control the device
45 1 Corentin Chary
wb: WLED control both
46 2 Corentin Chary
47 2 Corentin Chary
BLED in controled by /sys/devices/platform/asus-laptop/bluetooth
48 2 Corentin Chary
WLED in controled by /sys/devices/platform/asus-laptop/wlan
49 2 Corentin Chary
You can change the wapf value like that: modprobe -r asus-laptop; modprobe asus-laptop wapf=1 (or 2, 3, 4, 5 ..)