1 .\" Copyright (c) 2009 Michael Gmelin
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd "ACPI extras driver for HP laptops"
34 To compile this driver into the kernel,
35 place the following line in your
36 kernel configuration file:
37 .Bd -ragged -offset indent
41 Alternatively, to load the driver as a
42 module at boot time, place the following line in
44 .Bd -literal -offset indent
50 driver provides support for ACPI-controlled features found on HP laptops
51 that use a WMI enabled BIOS (e.g., HP Compaq 8510p and 6510p).
53 The main purpose of this driver is to provide an interface,
58 through which applications can determine and change the status of
59 various laptop components and BIOS settings.
61 Devd events received by
63 provide the following information:
65 .Bl -tag -width "subsystem" -offset indent -compact
71 The source of the event in the ACPI namespace.
72 The value depends on the model.
74 Event code (see below).
79 .Bl -tag -width "0xc0" -offset indent -compact
81 WLAN on air status changed to 0 (not on air)
83 WLAN on air status changed to 1 (on air)
85 Bluetooth on air status changed to 0 (not on air)
87 Bluetooth on air status changed to 1 (on air)
89 WWAN on air status changed to 0 (not on air)
91 WWAN on air status changed to 1 (on air)
94 You can read /dev/hpcmi to see your current BIOS settings.
95 The detail level can be adjusted by setting the sysctl
99 The following sysctls are currently implemented:
101 .Bl -tag -width indent
102 .It Va dev.acpi_hp.0.wlan_enabled
103 Toggle WLAN chip activity.
104 .It Va dev.acpi_hp.0.wlan_radio
106 WLAN radio status (controlled by hardware switch)
107 .It Va dev.acpi_hp.0.wlan_on_air
109 WLAN on air (chip enabled, hardware switch enabled + enabled in BIOS)
110 .It Va dev.acpi_hp.0.wlan_enabled_if_radio_on
111 If set to 1, the WLAN chip will be enabled if the radio is turned on
112 .It Va dev.acpi_hp.0.wlan_disable_if_radio_off
113 If set to 1, the WLAN chip will be disabled if the radio is turned off
116 .Bl -tag -width indent
117 .It Va dev.acpi_hp.0.bt_enabled
118 Toggle Bluetooth chip activity.
119 .It Va dev.acpi_hp.0.bt_radio
121 Bluetooth radio status (controlled by hardware switch)
122 .It Va dev.acpi_hp.0.bt_on_air
124 Bluetooth on air (chip enabled, hardware switch enabled + enabled in BIOS)
125 .It Va dev.acpi_hp.0.bt_enabled_if_radio_on
126 If set to 1, the Bluetooth chip will be enabled if the radio is turned on
127 .It Va dev.acpi_hp.0.bt_disable_if_radio_off
128 If set to 1, the Bluetooth chip will be disabled if the radio is turned off
131 .Bl -tag -width indent
132 .It Va dev.acpi_hp.0.wwan_enabled
133 Toggle WWAN chip activity.
134 .It Va dev.acpi_hp.0.wwan_radio
136 WWAN radio status (controlled by hardware switch)
137 .It Va dev.acpi_hp.0.wwan_on_air
139 WWAN on air (chip enabled, hardware switch enabled + enabled in BIOS)
140 .It Va dev.acpi_hp.0.wwan_enabled_if_radio_on
141 If set to 1, the WWAN chip will be enabled if the radio is turned on
142 .It Va dev.acpi_hp.0.wwan_disable_if_radio_off
143 If set to 1, the WWAN chip will be disabled if the radio is turned off
146 .Bl -tag -width indent
147 .It Va dev.acpi_hp.0.als_enabled
148 Toggle ambient light sensor (ALS)
149 .It Va dev.acpi_hp.0.display
151 Display status (bitmask)
152 .It Va dev.acpi_hp.0.hdd_temperature
155 .It Va dev.acpi_hp.0.is_docked
157 Docking station status (1 if docked)
158 .It Va dev.acpi_hp.0.cmi_detail
159 Bitmask to control detail level in /dev/hpcmi output (values can be ORed).
160 .Bl -tag -width "0x01" -offset indent -compact
162 Show path component of BIOS setting
164 Show a list of valid options for the BIOS setting
166 Show additional flags of BIOS setting (ReadOnly etc.)
168 Query highest BIOS entry instance.
169 This is broken on many HP models and therefore disabled by default.
171 .It Va dev.acpi_hp.0.verbose
176 Defaults for these sysctls can be set in
181 driver has been reported to support the following hardware:
190 It should work on most HP laptops that feature a WMI enabled BIOS.
192 .Bl -tag -width ".Pa /dev/hpcmi"
194 Interface to read BIOS settings
197 The following can be added to
199 in order disable the LAN interface when WLAN on air and reenable if it is not:
200 .Bd -literal -offset indent
202 match "system" "ACPI";
203 match "subsystem" "HP";
204 match "notify" "0xc0";
205 action "ifconfig em0 up";
209 match "system" "ACPI";
210 match "subsystem" "HP";
211 match "notify" "0xc1";
212 action "ifconfig em0 down";
216 Enable the ambient light sensor:
217 .Bd -literal -offset indent
218 sysctl dev.acpi_hp.0.als_enabled=1
222 .Bd -literal -offset indent
223 sysctl dev.acpi_hp.0.bt_enabled=1
227 .Bd -literal -offset indent
232 Parallel Port Disable
233 Flash Media Reader Disable
234 USB Ports including Express Card slot Enable
237 Express Card Slot Disable
241 Set maximum detail level for /dev/hpcmi output:
242 .Bd -literal -offset indent
243 sysctl dev.acpi_hp.0.cmi_detail=7
255 device driver first appeared in
261 driver was written by
262 .An Michael Gmelin Aq Mt freebsd@grem.de .
264 It has been inspired by hp-wmi driver, which implements a subset of these
265 features (hotkeys) on Linux.
266 .Bl -tag -width indent
267 .It HP CMI whitepaper:
268 https://h20331.www2.hp.com/Hpsub/downloads/cmi_whitepaper.pdf
269 .It wmi-hp for Linux:
270 https://www.kernel.org
272 http://www.microsoft.com/whdc/system/pnppwr/wmi/wmi-acpi.mspx
275 This manual page was written by
276 .An Michael Gmelin Aq Mt freebsd@grem.de .
278 This driver is experimental and has only been tested on i386 on an
279 HP Compaq 8510p which featured all supported wireless devices (WWAN/BT/WLAN).
280 Expect undefined results when operating on different hardware.
282 Loading the driver is slow.
287 Additional features like HP specific sensor readings or writing BIOS
288 settings are not supported.