Fri Aug 6 18:54:50 2010 UTC ()
As the devices are listed in the body of the text,
remove the .Xref spam in SEE ALSO.


(jruoho)
diff -r1.54 -r1.55 src/share/man/man4/acpi.4

cvs diff -r1.54 -r1.55 src/share/man/man4/acpi.4 (switch to unified diff)

--- src/share/man/man4/acpi.4 2010/08/06 16:44:06 1.54
+++ src/share/man/man4/acpi.4 2010/08/06 18:54:50 1.55
@@ -1,588 +1,557 @@ @@ -1,588 +1,557 @@
1.\" $NetBSD: acpi.4,v 1.54 2010/08/06 16:44:06 jruoho Exp $ 1.\" $NetBSD: acpi.4,v 1.55 2010/08/06 18:54:50 jruoho Exp $
2.\" 2.\"
3.\" Copyright (c) 2002, 2004, 2010 The NetBSD Foundation, Inc. 3.\" Copyright (c) 2002, 2004, 2010 The NetBSD Foundation, Inc.
4.\" All rights reserved. 4.\" All rights reserved.
5.\" 5.\"
6.\" Redistribution and use in source and binary forms, with or without 6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions 7.\" modification, are permitted provided that the following conditions
8.\" are met: 8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright 9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer. 10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in the 12.\" notice, this list of conditions and the following disclaimer in the
13.\" documentation and/or other materials provided with the distribution. 13.\" documentation and/or other materials provided with the distribution.
14.\" 14.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 15.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
16.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 16.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 17.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 18.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 19.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 20.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25.\" POSSIBILITY OF SUCH DAMAGE. 25.\" POSSIBILITY OF SUCH DAMAGE.
26.\" 26.\"
27.Dd June 30, 2010 27.Dd August 6, 2010
28.Dt ACPI 4 28.Dt ACPI 4
29.Os 29.Os
30.Sh NAME 30.Sh NAME
31.Nm acpi 31.Nm acpi
32.Nd Advanced Configuration and Power Interface 32.Nd Advanced Configuration and Power Interface
33.Sh SYNOPSIS 33.Sh SYNOPSIS
34.Cd "acpi0 at mainbus0" 34.Cd "acpi0 at mainbus0"
35.Pp 35.Pp
36.Cd "options ACPI_DEBUG" 36.Cd "options ACPI_DEBUG"
37.Cd "options ACPIVERBOSE" 37.Cd "options ACPIVERBOSE"
38.Cd "options ACPI_ACTIVATE_DEV" 38.Cd "options ACPI_ACTIVATE_DEV"
39.Cd "options ACPI_DSDT_OVERRIDE" 39.Cd "options ACPI_DSDT_OVERRIDE"
40.Cd "options ACPI_DSDT_FILE=\*[q]\*[q]" 40.Cd "options ACPI_DSDT_FILE=\*[q]\*[q]"
41.Sh DESCRIPTION 41.Sh DESCRIPTION
42.Nx 42.Nx
43provides machine-independent bus support for 43provides machine-independent bus support for
44Advanced Configuration and Power Interface 44Advanced Configuration and Power Interface
45.Pq Tn ACPI 45.Pq Tn ACPI
46devices and includes several 46devices and includes several
47.Tn ACPI 47.Tn ACPI
48device drivers. 48device drivers.
49.Pp 49.Pp
50The 50The
51.Nx 51.Nx
52implementation of 52implementation of
53.Tn ACPI 53.Tn ACPI
54integrates Intel's ACPI Component Architecture 54integrates Intel's ACPI Component Architecture
55.Pq Tn ACPI-CA 55.Pq Tn ACPI-CA
56for the OS-independent part. 56for the OS-independent part.
57The 57The
58.Tn ACPI-CA 58.Tn ACPI-CA
59provides OS-neutral 59provides OS-neutral
60.Tn ACPI 60.Tn ACPI
61functionalities such as 61functionalities such as
62.Tn ACPI 62.Tn ACPI
63.Tn BIOS 63.Tn BIOS
64table support, 64table support,
65an 65an
66.Tn ACPI 66.Tn ACPI
67event framework and an ACPI Machine Language 67event framework and an ACPI Machine Language
68.Pq Tn AML 68.Pq Tn AML
69interpreter. 69interpreter.
70.Pp 70.Pp
71Options: 71Options:
72.Bl -tag -width ACPI_DSDT_FILE__filename_XX -offset 3n 72.Bl -tag -width ACPI_DSDT_FILE__filename_XX -offset 3n
73.It Dv ACPI_DEBUG 73.It Dv ACPI_DEBUG
74Enable various debug facilities. 74Enable various debug facilities.
75.It Dv ACPIVERBOSE 75.It Dv ACPIVERBOSE
76Enable verbose debug messages. 76Enable verbose debug messages.
77.It Dv ACPI_ACTIVATE_DEV 77.It Dv ACPI_ACTIVATE_DEV
78Determine if the 78Determine if the
79.Tn ACPI 79.Tn ACPI
80driver should attempt to activate inactive devices. 80driver should attempt to activate inactive devices.
81The default is off. 81The default is off.
82.It Dv ACPI_DSDT_OVERRIDE 82.It Dv ACPI_DSDT_OVERRIDE
83Force a given Differentiated System Description Table 83Force a given Differentiated System Description Table
84.Pq Tn DSDT 84.Pq Tn DSDT
85instead of the version supplied by the 85instead of the version supplied by the
86.Tn BIOS . 86.Tn BIOS .
87Use 87Use
88.Dv ACPI_DSDT_FILE 88.Dv ACPI_DSDT_FILE
89to specify a 89to specify a
90.Tn DSDT . 90.Tn DSDT .
91.It Dv ACPI_DSDT_FILE="filename" 91.It Dv ACPI_DSDT_FILE="filename"
92If 92If
93.Dv ACPI_DSDT_FILE 93.Dv ACPI_DSDT_FILE
94is not specified, default to 94is not specified, default to
95.Dq dsdt.hex 95.Dq dsdt.hex
96in the build directory. 96in the build directory.
97.El 97.El
98.Sh SYSCTL SUPPORT 98.Sh SYSCTL SUPPORT
99Few 99Few
100.Xr sysctl 8 100.Xr sysctl 8
101variables are directly relevant for 101variables are directly relevant for
102.Tn ACPI . 102.Tn ACPI .
103.Bl -tag -width "123456" -offset indent 103.Bl -tag -width "123456" -offset indent
104.It Ic hw.acpi.root 104.It Ic hw.acpi.root
105The 105The
106.Tn ACPI 106.Tn ACPI
107root pointer. 107root pointer.
108.It Ic hw.acpi.supported_states 108.It Ic hw.acpi.supported_states
109A list of the 109A list of the
110.Tn ACPI 110.Tn ACPI
111sleep states that the machine supports. 111sleep states that the machine supports.
112The possible values are: 112The possible values are:
113.Pp 113.Pp
114.Bl -tag -width XS1X -offset indent -compact 114.Bl -tag -width XS1X -offset indent -compact
115.It S0 115.It S0
116fully running 116fully running
117.It S1 117.It S1
118power on suspend (CPU and hard disks are off) 118power on suspend (CPU and hard disks are off)
119.It S2 119.It S2
120similar to S3, usually not implemented 120similar to S3, usually not implemented
121.It S3 121.It S3
122suspend-to-RAM 122suspend-to-RAM
123.It S4 123.It S4
124suspend-to-disk (not supported on 124suspend-to-disk (not supported on
125.Nx ) 125.Nx )
126.It S5 126.It S5
127power off 127power off
128.El 128.El
129.It Ic hw.acpi.stat.gpe 129.It Ic hw.acpi.stat.gpe
130The number of dispatched General Purpose Events 130The number of dispatched General Purpose Events
131.Pq Tn GPEs . 131.Pq Tn GPEs .
132.It Ic hw.acpi.stat.sci 132.It Ic hw.acpi.stat.sci
133The number of System Control Interrupts 133The number of System Control Interrupts
134.Pq Tn SCIs . 134.Pq Tn SCIs .
135See 135See
136.Xr acpiec 4 136.Xr acpiec 4
137for a brief description of both 137for a brief description of both
138.Tn GPEs 138.Tn GPEs
139and 139and
140.Tn SCIs . 140.Tn SCIs .
141.It Ic hw.acpi.stat.fixed 141.It Ic hw.acpi.stat.fixed
142The number of 142The number of
143.Dq fixed events . 143.Dq fixed events .
144.It Ic hw.acpi.stat.method 144.It Ic hw.acpi.stat.method
145The number of 145The number of
146.Tn ACPI 146.Tn ACPI
147methods executed by the interpreter. 147methods executed by the interpreter.
148.It Ic machdep.acpi_beep_on_reset 148.It Ic machdep.acpi_beep_on_reset
149A boolean variable that controls whether the 149A boolean variable that controls whether the
150.Tn PC 150.Tn PC
151speaker beeps upon resume. 151speaker beeps upon resume.
152.It Ic machdep.acpi_vbios_reset 152.It Ic machdep.acpi_vbios_reset
153Defines the handling of the graphics card. 153Defines the handling of the graphics card.
154The supported values are: 154The supported values are:
155.Bl -tag -width '2' -offset indent 155.Bl -tag -width '2' -offset indent
156.It 0 156.It 0
157No attempt to reset the 157No attempt to reset the
158.Tn VGA 158.Tn VGA
159controller will be made. 159controller will be made.
160.It 1 160.It 1
161Call the 161Call the
162.Tn VGA 162.Tn VGA
163.Tn BIOS 163.Tn BIOS
164when still in real mode. 164when still in real mode.
165This can result in direct reboots. 165This can result in direct reboots.
166In that case, use 166In that case, use
167.Sq 2 167.Sq 2
168or 168or
169.Ic vbetool post 169.Ic vbetool post
170from the 170from the
171.Pa pkgsrc/sysutils/vbetool 171.Pa pkgsrc/sysutils/vbetool
172package. 172package.
173.It 2 173.It 2
174Call the 174Call the
175.Tn VGA 175.Tn VGA
176.Tn BIOS 176.Tn BIOS
177using the in-kernel x86 emulator. 177using the in-kernel x86 emulator.
178.El 178.El
179.El 179.El
180.Sh SUPPORTED DEVICES 180.Sh SUPPORTED DEVICES
181.Nx 181.Nx
182.Tn ACPI 182.Tn ACPI
183supports several machine-dependent and machine-independent devices: 183supports several machine-dependent and machine-independent devices:
184.Ss Machine-independent devices 184.Ss Machine-independent devices
185.Bl -tag -width "thinkpad(4) " -offset indent -compact 185.Bl -tag -width "thinkpad(4) " -offset indent -compact
186.It Xr acpiacad 4 186.It Xr acpiacad 4
187.Tn ACPI 187.Tn ACPI
188AC adapters. 188AC adapters.
189.It Xr acpibat 4 189.It Xr acpibat 4
190.Tn ACPI 190.Tn ACPI
191batteries. 191batteries.
192.It Xr acpibut 4 192.It Xr acpibut 4
193.Tn ACPI 193.Tn ACPI
194power and sleep buttons. 194power and sleep buttons.
195.It Xr acpicpu 4 195.It Xr acpicpu 4
196.Tn ACPI 196.Tn ACPI
197processors. 197processors.
198.It Xr acpidalb 4 198.It Xr acpidalb 4
199.Tn ACPI 199.Tn ACPI
200direction application launch buttons. 200direction application launch buttons.
201.It Xr acpiec 4 201.It Xr acpiec 4
202.Tn ACPI 202.Tn ACPI
203embedded controllers. 203embedded controllers.
204.It Xr acpiecdt 4 204.It Xr acpiecdt 4
205.Tn ACPI 205.Tn ACPI
206Embedded Controller Boot Resource Table 206Embedded Controller Boot Resource Table
207.Pq Tn ECDT . 207.Pq Tn ECDT .
208.It Xr acpilid 4 208.It Xr acpilid 4
209.Tn ACPI 209.Tn ACPI
210lid switches. 210lid switches.
211.It Xr acpismbus 4 211.It Xr acpismbus 4
212.Tn ACPI 212.Tn ACPI
213SMBus via Control Method Interface 213SMBus via Control Method Interface
214.Pq Tn CMI . 214.Pq Tn CMI .
215.It Xr acpitz 4 215.It Xr acpitz 4
216.Tn ACPI 216.Tn ACPI
217thermal zones. 217thermal zones.
218.It Xr acpiwmi 4 218.It Xr acpiwmi 4
219.Tn ACPI 219.Tn ACPI
220support for Windows Management Instrumentation. 220support for Windows Management Instrumentation.
221.It Xr aibs 4 221.It Xr aibs 4
222ASUSTeK voltage, temperature and fan sensors. 222ASUSTeK voltage, temperature and fan sensors.
223.It asus 223.It asus
224ASUS laptop hotkeys. 224ASUS laptop hotkeys.
225.It Xr attimer 4 225.It Xr attimer 4
226AT Timer. 226AT Timer.
227.It Xr com 4 227.It Xr com 4
228NS8250-, NS16450-, and NS16550-based serial ports. 228NS8250-, NS16450-, and NS16550-based serial ports.
229.It Xr fdc 4 229.It Xr fdc 4
230Floppy disk controllers. 230Floppy disk controllers.
231.It Xr hpet 4 231.It Xr hpet 4
232High Precision Event Timer 232High Precision Event Timer
233.Pq Tn HPET . 233.Pq Tn HPET .
234.It Xr hpqlb 4 234.It Xr hpqlb 4
235HP Quick Launch Buttons. 235HP Quick Launch Buttons.
236.It Xr joy 4 236.It Xr joy 4
237Joystick/Game port interface. 237Joystick/Game port interface.
238.It Xr lpt 4 238.It Xr lpt 4
239Standard ISA parallel port interface. 239Standard ISA parallel port interface.
240.It Xr mpu 4 240.It Xr mpu 4
241Roland MPU-401 (compatible) MIDI UART. 241Roland MPU-401 (compatible) MIDI UART.
242.It Xr pcppi 4 242.It Xr pcppi 4
243AT-style speaker sound. 243AT-style speaker sound.
244.It Xr thinkpad 4 244.It Xr thinkpad 4
245IBM/Lenovo ThinkPad laptop device driver. 245IBM/Lenovo ThinkPad laptop device driver.
246.It Xr ug 4 246.It Xr ug 4
247Abit uGuru Hardware monitor. 247Abit uGuru Hardware monitor.
248.It Xr vald 4 248.It Xr vald 4
249Toshiba Libretto device. 249Toshiba Libretto device.
250.It Xr wb 4 250.It Xr wb 4
251Winbond W83L518D Integrated Media Reader. 251Winbond W83L518D Integrated Media Reader.
252.It Xr wss 4 252.It Xr wss 4
253Windows Sound System-compatible sound cards 253Windows Sound System-compatible sound cards
254.It Xr ym 4 254.It Xr ym 4
255Yamaha OPL3-SA2 and OPL3-SA3 audio device driver. 255Yamaha OPL3-SA2 and OPL3-SA3 audio device driver.
256.El 256.El
257.Ss i386-dependent devices 257.Ss i386-dependent devices
258.Bl -tag -width "thinkpad(4) " -offset indent -compact 258.Bl -tag -width "thinkpad(4) " -offset indent -compact
259.It Xr npx 4 259.It Xr npx 4
260i386 numeric processing extension coprocessor. 260i386 numeric processing extension coprocessor.
261.It Xr pckbc 4 261.It Xr pckbc 4
262PC keyboard controllers. 262PC keyboard controllers.
263.It Xr sony 4 263.It Xr sony 4
264Sony Miscellaneous Controller 264Sony Miscellaneous Controller
265.It Xr spic 4 265.It Xr spic 4
266Sony programmable I/O controller. 266Sony programmable I/O controller.
267.El 267.El
268.Sh DEBUGGING 268.Sh DEBUGGING
269Although the situation has become better over the years, 269Although the situation has become better over the years,
270.Tn ACPI 270.Tn ACPI
271is typically prone to various errors, 271is typically prone to various errors,
272ranging from blatant flaws in the firmware to bugs in the implementation. 272ranging from blatant flaws in the firmware to bugs in the implementation.
273Before anything else, it is a good practice to upgrade the 273Before anything else, it is a good practice to upgrade the
274.Tn BIOS 274.Tn BIOS
275to the latest version available from the vendor. 275to the latest version available from the vendor.
276.Pp 276.Pp
277To ease the task of diagnosing and fixing different problems, the 277To ease the task of diagnosing and fixing different problems, the
278.Tn ACPICA 278.Tn ACPICA
279reference implementation provides a rich 279reference implementation provides a rich
280facility of different debugging methods. 280facility of different debugging methods.
281In 281In
282.Nx 282.Nx
283these are generally only available if the kernel has been compiled with the 283these are generally only available if the kernel has been compiled with the
284.Tn ACPI_DEBUG 284.Tn ACPI_DEBUG
285option. 285option.
286.Ss Custom DSDT 286.Ss Custom DSDT
287.Tn ACPI 287.Tn ACPI
288interprets bytecode known as 288interprets bytecode known as
289.Tn ACPI 289.Tn ACPI
290Machine Language 290Machine Language
291.Pq Tn AML , 291.Pq Tn AML ,
292provided by the 292provided by the
293.Tn BIOS 293.Tn BIOS
294as a memory image during the system bootstrap. 294as a memory image during the system bootstrap.
295Most of the 295Most of the
296.Tn AML 296.Tn AML
297relevant to 297relevant to
298.Nm 298.Nm
299is implemented in the so-called 299is implemented in the so-called
300Differentiated System Descriptor Table 300Differentiated System Descriptor Table
301.Pq Tn DSDT . 301.Pq Tn DSDT .
302.Nx 302.Nx
303provides support for overriding the default 303provides support for overriding the default
304.Tn DSDT 304.Tn DSDT
305supplied by the 305supplied by the
306.Tn BIOS . 306.Tn BIOS .
307.Pp 307.Pp
308The following steps can be used to override the 308The following steps can be used to override the
309.Tn DSDT : 309.Tn DSDT :
310.Bl -enum -offset indent 310.Bl -enum -offset indent
311.It 311.It
312Dump the raw 312Dump the raw
313.Tn DSDT 313.Tn DSDT
314with 314with
315.Xr acpidump 8 . 315.Xr acpidump 8 .
316.It 316.It
317Disassemble the table with 317Disassemble the table with
318.Xr iasl 8 . 318.Xr iasl 8 .
319.It 319.It
320Modify the disassembled table. 320Modify the disassembled table.
321.It 321.It
322Compile the table with 322Compile the table with
323.Xr iasl 8 323.Xr iasl 8
324using the option 324using the option
325.Ar \-tc . 325.Ar \-tc .
326.It 326.It
327Either copy the 327Either copy the
328.Pq Pa *.hex 328.Pq Pa *.hex
329file to 329file to
330.Bd -literal -offset indent 330.Bd -literal -offset indent
331src/sys/dev/acpi/acpica/Osd/custom_dsdt.hex 331src/sys/dev/acpi/acpica/Osd/custom_dsdt.hex
332.Ed 332.Ed
333.Pp 333.Pp
334or use the option 334or use the option
335.Bd -literal -offset indent 335.Bd -literal -offset indent
336ACPI_DSDT_FILE="/some/directory/custom_dsdt.hex" 336ACPI_DSDT_FILE="/some/directory/custom_dsdt.hex"
337.Ed 337.Ed
338.Pp 338.Pp
339in the kernel configuration file. 339in the kernel configuration file.
340.It 340.It
341Define 341Define
342.Tn ACPI_DSDT_OVERRIDE 342.Tn ACPI_DSDT_OVERRIDE
343in the kernel configuration file and rebuild. 343in the kernel configuration file and rebuild.
344.El 344.El
345.Ss Debugger 345.Ss Debugger
346The 346The
347.Tn ACPICA 347.Tn ACPICA
348interpreter provides its own debugger for low-level debugging. 348interpreter provides its own debugger for low-level debugging.
349It can be used to display internal data structures and namespace objects, 349It can be used to display internal data structures and namespace objects,
350and to debug the execution of control methods. 350and to debug the execution of control methods.
351Single step and breakpoint functionality are available. 351Single step and breakpoint functionality are available.
352In 352In
353.Nx 353.Nx
354this is integrated to the in-kernel 354this is integrated to the in-kernel
355.Xr ddb 4 . 355.Xr ddb 4 .
356In order to enter the 356In order to enter the
357.Tn ACPICA 357.Tn ACPICA
358debugger from 358debugger from
359.Xr ddb 4 , 359.Xr ddb 4 ,
360use the command 360use the command
361.Ic call 361.Ic call
362with the argument 362with the argument
363.Ic acpi_osd_debugger . 363.Ic acpi_osd_debugger .
364.Ss Debug Output 364.Ss Debug Output
365.Nx 365.Nx
366provides three 366provides three
367.Xr sysctl 8 367.Xr sysctl 8
368variables that control the debug output at runtime. 368variables that control the debug output at runtime.
369The 369The
370.Ic hw.acpi.debug.layer 370.Ic hw.acpi.debug.layer
371variable limits the output to a specific 371variable limits the output to a specific
372.Tn ACPI 372.Tn ACPI
373layer and the 373layer and the
374.Ic hw.acpi.debug.level 374.Ic hw.acpi.debug.level
375variable controls the debug level. 375variable controls the debug level.
376Both 376Both
377.Xr sysctl 8 377.Xr sysctl 8
378variables are string literals. 378variables are string literals.
379The third variable is 379The third variable is
380.Ic hw.acpi.debug.object . 380.Ic hw.acpi.debug.object .
381This is a boolean that controls whether debug messages internal to the 381This is a boolean that controls whether debug messages internal to the
382.Tn AML 382.Tn AML
383are enabled. 383are enabled.
384.Pp 384.Pp
385For the first two variables, the possible values are: 385For the first two variables, the possible values are:
386.Bl -column -offset indent \ 386.Bl -column -offset indent \
387"ACPI_RESOURCE_COMPONENT " "ACPI_RESOURCE_COMPONENT " 387"ACPI_RESOURCE_COMPONENT " "ACPI_RESOURCE_COMPONENT "
388.It Sy LAYER Ta Sy LEVEL 388.It Sy LAYER Ta Sy LEVEL
389.It Li ACPI_DEBUG_NONE Ta ACPI_DEBUG_NONE 389.It Li ACPI_DEBUG_NONE Ta ACPI_DEBUG_NONE
390.It Ta 390.It Ta
391.It Li ACPI_UTILITIES Ta ACPI_LV_INIT 391.It Li ACPI_UTILITIES Ta ACPI_LV_INIT
392.It Li ACPI_HARDWARE Ta ACPI_LV_DEBUG_OBJECT 392.It Li ACPI_HARDWARE Ta ACPI_LV_DEBUG_OBJECT
393.It Li ACPI_EVENTS Ta ACPI_LV_INFO 393.It Li ACPI_EVENTS Ta ACPI_LV_INFO
394.It Li ACPI_TABLES Ta ACPI_LV_ALL_EXCEPTIONS * 394.It Li ACPI_TABLES Ta ACPI_LV_ALL_EXCEPTIONS *
395.It Li ACPI_NAMESPACE Ta 395.It Li ACPI_NAMESPACE Ta
396.It Li ACPI_PARSER Ta ACPI_LV_INIT_NAMES 396.It Li ACPI_PARSER Ta ACPI_LV_INIT_NAMES
397.It Li ACPI_DISPATCHER Ta ACPI_LV_PARSE 397.It Li ACPI_DISPATCHER Ta ACPI_LV_PARSE
398.It Li ACPI_EXECUTER Ta ACPI_LV_LOAD 398.It Li ACPI_EXECUTER Ta ACPI_LV_LOAD
399.It Li ACPI_RESOURCES Ta ACPI_LV_DISPATCH 399.It Li ACPI_RESOURCES Ta ACPI_LV_DISPATCH
400.It Li ACPI_CA_DEBUGGER Ta ACPI_LV_EXEC 400.It Li ACPI_CA_DEBUGGER Ta ACPI_LV_EXEC
401.It Li ACPI_OS_SERVICES Ta ACPI_LV_NAMES 401.It Li ACPI_OS_SERVICES Ta ACPI_LV_NAMES
402.It Li ACPI_CA_DISASSEMBLER Ta ACPI_LV_OPREGION 402.It Li ACPI_CA_DISASSEMBLER Ta ACPI_LV_OPREGION
403.It Li ACPI_COMPILER Ta ACPI_LV_BFIELD 403.It Li ACPI_COMPILER Ta ACPI_LV_BFIELD
404.It Li ACPI_TOOLS Ta ACPI_LV_TABLES 404.It Li ACPI_TOOLS Ta ACPI_LV_TABLES
405.It Li ACPI_EXAMPLE Ta ACPI_LV_VALUES 405.It Li ACPI_EXAMPLE Ta ACPI_LV_VALUES
406.It Li ACPI_DRIVER Ta ACPI_LV_OBJECTS 406.It Li ACPI_DRIVER Ta ACPI_LV_OBJECTS
407.It Li ACPI_ALL_COMPONENTS * Ta ACPI_LV_RESOURCES 407.It Li ACPI_ALL_COMPONENTS * Ta ACPI_LV_RESOURCES
408.It Ta ACPI_LV_USER_REQUESTS 408.It Ta ACPI_LV_USER_REQUESTS
409.It Li ACPI_BUS_COMPONENT Ta ACPI_LV_PACKAGE 409.It Li ACPI_BUS_COMPONENT Ta ACPI_LV_PACKAGE
410.It Li ACPI_ACAD_COMPONENT Ta ACPI_LV_VERBOSITY1 * 410.It Li ACPI_ACAD_COMPONENT Ta ACPI_LV_VERBOSITY1 *
411.It Li ACPI_BAT_COMPONENT Ta 411.It Li ACPI_BAT_COMPONENT Ta
412.It Li ACPI_BUTTON_COMPONENT Ta ACPI_LV_ALLOCATIONS 412.It Li ACPI_BUTTON_COMPONENT Ta ACPI_LV_ALLOCATIONS
413.It Li APCI_EC_COMPONENT Ta ACPI_LV_FUNCTIONS 413.It Li APCI_EC_COMPONENT Ta ACPI_LV_FUNCTIONS
414.It Li ACPI_LID_COMPONENT Ta ACPI_LV_OPTIMIZATIONS 414.It Li ACPI_LID_COMPONENT Ta ACPI_LV_OPTIMIZATIONS
415.It Li ACPI_RESOURCE_COMPONENT Ta ACPI_LV_VERBOSITY2 * 415.It Li ACPI_RESOURCE_COMPONENT Ta ACPI_LV_VERBOSITY2 *
416.It Li ACPI_TZ_COMPONENT Ta 416.It Li ACPI_TZ_COMPONENT Ta
417.It Li ACPI_ALL_DRIVERS * Ta ACPI_LV_MUTEX 417.It Li ACPI_ALL_DRIVERS * Ta ACPI_LV_MUTEX
418.It Ta ACPI_LV_THREADS 418.It Ta ACPI_LV_THREADS
419.It Ta ACPI_LV_IO 419.It Ta ACPI_LV_IO
420.It Ta ACPI_LV_AML_INTERRUPTS 420.It Ta ACPI_LV_AML_INTERRUPTS
421.It Li "* This is a compound" Ta ACPI_LV_VERBOSITY3 * 421.It Li "* This is a compound" Ta ACPI_LV_VERBOSITY3 *
422.It Li " constant, including" Ta 422.It Li " constant, including" Ta
423.It Li " all previous elements." Ta ACPI_LV_AML_DISASSEMBLE 423.It Li " all previous elements." Ta ACPI_LV_AML_DISASSEMBLE
424.It Ta ACPI_LV_VERBOSE_INFO 424.It Ta ACPI_LV_VERBOSE_INFO
425.It Ta ACPI_LV_FULL_TABLES 425.It Ta ACPI_LV_FULL_TABLES
426.It Ta ACPI_LV_EVENTS 426.It Ta ACPI_LV_EVENTS
427.It Ta ACPI_LV_VERBOSE * 427.It Ta ACPI_LV_VERBOSE *
428.El 428.El
429.Pp 429.Pp
430In addition, there is 430In addition, there is
431.Dv ACPI_DEBUG_DEFAULT 431.Dv ACPI_DEBUG_DEFAULT
432that is used by 432that is used by
433.Tn ACPICA 433.Tn ACPICA
434as the default debug level. 434as the default debug level.
435It includes 435It includes
436.Dv ACPI_LV_INIT 436.Dv ACPI_LV_INIT
437and 437and
438.Dv ACPI_LV_DEBUG_OBJECT . 438.Dv ACPI_LV_DEBUG_OBJECT .
439.Pp 439.Pp
440The debug layer can be divided into two groups: 440The debug layer can be divided into two groups:
441the first one is specific to the 441the first one is specific to the
442.Tn ACPICA 442.Tn ACPICA
443interpreter and the second one contains the internal 443interpreter and the second one contains the internal
444.Tn ACPI 444.Tn ACPI
445components of 445components of
446.Nx . 446.Nx .
447The constant 447The constant
448.Dv ACPI_ALL_DRIVERS 448.Dv ACPI_ALL_DRIVERS
449includes all 449includes all
450.Nx 450.Nx
451specific parts. 451specific parts.
452.Pp 452.Pp
453The 453The
454.Tn ACPICA 454.Tn ACPICA
455interpreter uses several debug levels internally, 455interpreter uses several debug levels internally,
456but the 456but the
457.Nx 457.Nx
458specific parts are typically limited to 458specific parts are typically limited to
459.Dv ACPI_LV_DEBUG_OBJECT 459.Dv ACPI_LV_DEBUG_OBJECT
460and 460and
461.Dv ACPI_LV_DEBUG_INFO . 461.Dv ACPI_LV_DEBUG_INFO .
462The debug output can be stopped by setting 462The debug output can be stopped by setting
463.Ic hw.acpi.debug.level 463.Ic hw.acpi.debug.level
464to 464to
465.Dv ACPI_DEBUG_NONE . 465.Dv ACPI_DEBUG_NONE .
466.Ss Example 466.Ss Example
467As an example, a driver may have defined the component it belongs to and 467As an example, a driver may have defined the component it belongs to and
468the name of the module: 468the name of the module:
469.Bd -literal -offset indent 469.Bd -literal -offset indent
470#define _COMPONENT ACPI_BUS_COMPONENT 470#define _COMPONENT ACPI_BUS_COMPONENT
471ACPI_MODULE_NAME ("acpi_example") 471ACPI_MODULE_NAME ("acpi_example")
472.Ed 472.Ed
473.Pp 473.Pp
474The driver may also utilize the debug facility: 474The driver may also utilize the debug facility:
475.Bd -literal -offset indent 475.Bd -literal -offset indent
476ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Failed to evaluate _STA\\n")); 476ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Failed to evaluate _STA\\n"));
477.Ed 477.Ed
478.Pp 478.Pp
479With these options the debug message from the 479With these options the debug message from the
480.Dv ACPI_DEBUG_PRINT 480.Dv ACPI_DEBUG_PRINT
481macro is only visible when 481macro is only visible when
482.Ic hw.acpi.debug.layer 482.Ic hw.acpi.debug.layer
483is either 483is either
484.Dv ACPI_BUS_COMPONENT 484.Dv ACPI_BUS_COMPONENT
485or a compound constant including it, and 485or a compound constant including it, and
486.Ic hw.acpi.debug.level 486.Ic hw.acpi.debug.level
487is 487is
488.Dv ACPI_LV_INFO 488.Dv ACPI_LV_INFO
489or some constant that includes it. 489or some constant that includes it.
490Finally, it can be noted that the 490Finally, it can be noted that the
491.Tn ACPI 491.Tn ACPI
492implementation uses the prefix 492implementation uses the prefix
493.Dv ACPI_DB , 493.Dv ACPI_DB ,
494whereas the debug level 494whereas the debug level
495.Xr sysctl 8 495.Xr sysctl 8
496variable is always specified with the prefix 496variable is always specified with the prefix
497.Dv ACPI_LV . 497.Dv ACPI_LV .
498.Pp 498.Pp
499Another example can be mentioned for the use of 499Another example can be mentioned for the use of
500.Ic hw.acpi.debug.object . 500.Ic hw.acpi.debug.object .
501The following could appear in an 501The following could appear in an
502.Tn ASL 502.Tn ASL
503code: 503code:
504.Bd -literal -offset indent 504.Bd -literal -offset indent
505Method(_Q19, 0, NotSerialized) 505Method(_Q19, 0, NotSerialized)
506{ 506{
507 Store("_Q19 invoked", Debug) 507 Store("_Q19 invoked", Debug)
508 Notify(ACAD, 0x80) 508 Notify(ACAD, 0x80)
509} 509}
510.Ed 510.Ed
511.Pp 511.Pp
512When 512When
513.Ic hw.acpi.debug.object 513.Ic hw.acpi.debug.object
514is set to 1, the message stored to the debug object 514is set to 1, the message stored to the debug object
515is printed every time the method is called by the interpreter. 515is printed every time the method is called by the interpreter.
516.Sh SEE ALSO 516.Sh SEE ALSO
517.Xr acpiacad 4 , 
518.Xr acpibat 4 , 
519.Xr acpibut 4 , 
520.Xr acpicpu 4 , 
521.Xr acpidalb 4 , 
522.Xr acpiec 4 , 
523.Xr acpilid 4 , 
524.Xr acpismbus 4 , 
525.Xr acpitz 4 , 
526.Xr acpiwmi 4 , 
527.Xr aibs 4 , 
528.Xr apm 4 , 
529.Xr attimer 4 , 
530.Xr com 4 , 
531.Xr fdc 4 , 
532.Xr hpqlb 4 , 
533.Xr joy 4 , 
534.Xr lpt 4 , 
535.Xr mpu 4 , 
536.Xr npx 4 , 
537.Xr pci 4 , 
538.Xr pckbc 4 , 
539.Xr pcppi 4 , 
540.Xr sony 4 , 
541.Xr spic 4 , 
542.Xr thinkpad 4 , 
543.Xr ug 4 , 
544.Xr vald 4 , 
545.Xr wb 4 , 
546.Xr wss 4 , 
547.Xr ym 4 , 
548.Xr acpidump 8 , 517.Xr acpidump 8 ,
549.Xr amldb 8 , 518.Xr amldb 8 ,
550.Xr iasl 8 519.Xr iasl 8
551.Rs 520.Rs
552.%A Hewlett-Packard Corporation 521.%A Hewlett-Packard Corporation
553.%A Intel Corporation 522.%A Intel Corporation
554.%A Microsoft Corporation 523.%A Microsoft Corporation
555.%A Phoenix Technologies Ltd. 524.%A Phoenix Technologies Ltd.
556.%A Toshiba Corporation 525.%A Toshiba Corporation
557.%T Advanced Configuration and Power Interface Specification 526.%T Advanced Configuration and Power Interface Specification
558.%N Revision 4.0 527.%N Revision 4.0
559.%D June 16, 2009 528.%D June 16, 2009
560.%U http://www.acpi.info/spec.htm 529.%U http://www.acpi.info/spec.htm
561.Re 530.Re
562.Rs 531.Rs
563.%A Intel Corporation 532.%A Intel Corporation
564.%T ACPI Component Architecture, 533.%T ACPI Component Architecture,
565.%T Programmer Reference, 534.%T Programmer Reference,
566.%T OS-Independent Subsystem, Debugger, and Utilities 535.%T OS-Independent Subsystem, Debugger, and Utilities
567.%N Revision 1.27 536.%N Revision 1.27
568.%D January 20, 2010 537.%D January 20, 2010
569.%U http://www.acpica.org/download/acpica-reference.pdf 538.%U http://www.acpica.org/download/acpica-reference.pdf
570.Re 539.Re
571.Rs 540.Rs
572.%A Joerg Sonnenberger 541.%A Joerg Sonnenberger
573.%A Jared D. McNeill 542.%A Jared D. McNeill
574.%T Sleeping Beauty - NetBSD on Modern Laptops 543.%T Sleeping Beauty - NetBSD on Modern Laptops
575.%D February 3, 2008 544.%D February 3, 2008
576.%O Proceedings of AsiaBSDCon 2008 545.%O Proceedings of AsiaBSDCon 2008
577.%P pp. 127-134 546.%P pp. 127-134
578.Re 547.Re
579.Sh HISTORY 548.Sh HISTORY
580The 549The
581.Nm 550.Nm
582driver 551driver
583appeared in 552appeared in
584.Nx 1.6 . 553.Nx 1.6 .
585.Sh BUGS 554.Sh BUGS
586Most of the 555Most of the
587.Tn ACPI 556.Tn ACPI
588power management functionalities are not implemented. 557power management functionalities are not implemented.