2001-07-03 07:45:04 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2001 Michael Smith
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2006-07-29 21:47:24 +00:00
|
|
|
.Dd July 29, 2006
|
2001-07-03 07:45:04 +00:00
|
|
|
.Dt ACPI 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm acpi
|
|
|
|
.Nd Advanced Configuration and Power Management support
|
|
|
|
.Sh SYNOPSIS
|
2003-06-02 15:02:06 +00:00
|
|
|
.Cd "device acpi"
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pp
|
2003-06-02 15:02:06 +00:00
|
|
|
.Cd "options ACPI_DEBUG"
|
2006-03-01 16:31:37 +00:00
|
|
|
.Cd "options DDB"
|
2001-07-03 07:45:04 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver provides support for the Intel/Microsoft/Compaq/Toshiba ACPI
|
|
|
|
standard.
|
|
|
|
This support includes platform hardware discovery (superseding the
|
|
|
|
PnP and PCI BIOS), as well as power management (superseding APM) and
|
|
|
|
other features.
|
|
|
|
ACPI core support is provided by the ACPI CA reference implementation
|
|
|
|
from Intel.
|
2001-08-26 22:51:52 +00:00
|
|
|
.Pp
|
|
|
|
Note that the
|
|
|
|
.Nm
|
2004-12-14 09:24:48 +00:00
|
|
|
driver is automatically loaded by the
|
|
|
|
.Xr loader 8 ,
|
|
|
|
and should only be
|
2004-12-14 01:07:44 +00:00
|
|
|
compiled into the kernel on platforms where ACPI is mandatory.
|
2005-07-15 17:35:26 +00:00
|
|
|
.Sh SYSCTL VARIABLES
|
2004-12-14 01:07:44 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver is intended to provide power management without user intervention.
|
2006-07-29 21:47:24 +00:00
|
|
|
If the default settings are not optimal, the following sysctls can be
|
|
|
|
used to modify or monitor
|
|
|
|
.Nm
|
|
|
|
behavior.
|
2004-12-14 01:07:44 +00:00
|
|
|
.Bl -tag -width indent
|
2006-07-29 21:47:24 +00:00
|
|
|
.It Va hw.acpi.acline
|
|
|
|
AC line state (1 means online, 0 means on battery power).
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Va hw.acpi.cpu.cx_usage
|
|
|
|
Debugging information listing the percent of total usage for each sleep state.
|
|
|
|
The values are reset when
|
|
|
|
.Va hw.acpi.cpu.cx_lowest
|
|
|
|
is modified.
|
|
|
|
.It Va hw.acpi.cpu.cx_lowest
|
|
|
|
Lowest Cx state to use for idling the CPU.
|
2006-08-07 07:28:47 +00:00
|
|
|
A scheduling algorithm will select states between
|
|
|
|
.Li C1
|
|
|
|
and this setting
|
2004-12-14 01:07:44 +00:00
|
|
|
as system load dictates.
|
|
|
|
To enable ACPI CPU idling control,
|
|
|
|
.Va machdep.cpu_idle_hlt
|
|
|
|
must be set to 1.
|
|
|
|
.It Va hw.acpi.cpu.cx_supported
|
|
|
|
List of supported CPU idle states and their transition latency
|
|
|
|
in microseconds.
|
2006-08-07 07:28:47 +00:00
|
|
|
Each state has a type (e.g.,
|
|
|
|
.Li C2 ) .
|
|
|
|
.Li C1
|
|
|
|
is equivalent to the ia32
|
|
|
|
.Li HLT
|
|
|
|
instruction,
|
|
|
|
.Li C2
|
|
|
|
provides a deeper
|
|
|
|
sleep with the same semantics, and
|
|
|
|
.Li C3
|
|
|
|
provides the deepest sleep
|
2004-12-14 01:07:44 +00:00
|
|
|
but additionally requires bus mastering to be disabled.
|
2006-08-07 07:28:47 +00:00
|
|
|
States greater than
|
|
|
|
.Li C3
|
|
|
|
provide even more power savings with the same
|
|
|
|
semantics as the
|
|
|
|
.Li C3
|
|
|
|
state.
|
2004-12-14 01:07:44 +00:00
|
|
|
Deeper sleeps provide more power savings but increased transition
|
|
|
|
latency when an interrupt occurs.
|
2006-07-29 21:47:24 +00:00
|
|
|
.It Va hw.acpi.disable_on_reboot
|
|
|
|
Disable ACPI during the reboot process.
|
|
|
|
Most systems reboot fine with ACPI still enabled, but some require
|
|
|
|
exiting to legacy mode first.
|
|
|
|
Default is 0, leave ACPI enabled.
|
|
|
|
.It Va hw.acpi.handle_reboot
|
|
|
|
Use the ACPI Reset Register capability to reboot the system.
|
|
|
|
Default is 0, use legacy reboot support.
|
|
|
|
Some newer systems require use of this register, while some only work
|
|
|
|
with legacy rebooting support.
|
|
|
|
.It Va hw.acpi.lid_switch_state
|
2006-08-04 07:19:01 +00:00
|
|
|
Suspend state
|
2006-08-07 07:28:47 +00:00
|
|
|
.Pq Li S1 Ns \[en] Ns Li S5
|
2006-08-04 07:19:01 +00:00
|
|
|
to enter when the lid switch (i.e., a notebook screen) is closed.
|
2006-08-07 07:28:47 +00:00
|
|
|
Default is
|
|
|
|
.Dq Li NONE
|
|
|
|
(do nothing).
|
2006-07-29 21:47:24 +00:00
|
|
|
.It Va hw.acpi.power_button_state
|
2006-08-04 07:19:01 +00:00
|
|
|
Suspend state
|
2006-08-07 07:28:47 +00:00
|
|
|
.Pq Li S1 Ns \[en] Ns Li S5
|
2006-08-04 07:19:01 +00:00
|
|
|
to enter when the power button is pressed.
|
|
|
|
Default is
|
2006-08-07 07:28:47 +00:00
|
|
|
.Li S5
|
2006-08-04 07:19:01 +00:00
|
|
|
(power-off nicely).
|
2006-07-29 21:47:24 +00:00
|
|
|
.It Va hw.acpi.reset_video
|
|
|
|
Reset the video adapter from real mode during the resume path.
|
|
|
|
Some systems need this help, others have display problems if it is enabled.
|
|
|
|
Default is 0 (disabled).
|
|
|
|
.It Va hw.acpi.s4bios
|
2006-08-04 07:19:01 +00:00
|
|
|
Indicate whether the system supports
|
2006-08-07 07:28:47 +00:00
|
|
|
.Li S4BIOS .
|
2006-07-29 21:47:24 +00:00
|
|
|
This means that the BIOS can handle all the functions of suspending the
|
|
|
|
system to disk.
|
2006-08-04 07:19:01 +00:00
|
|
|
Otherwise, the OS is responsible for suspending to disk
|
2006-08-07 07:28:47 +00:00
|
|
|
.Pq Li S4OS .
|
2006-08-04 07:19:01 +00:00
|
|
|
Most current systems do not support
|
2006-08-07 07:28:47 +00:00
|
|
|
.Li S4BIOS .
|
2006-07-29 21:47:24 +00:00
|
|
|
.It Va hw.acpi.sleep_button_state
|
2006-08-04 07:19:01 +00:00
|
|
|
Suspend state
|
2006-08-07 07:28:47 +00:00
|
|
|
.Pq Li S1 Ns \[en] Ns Li S5
|
2006-08-04 07:19:01 +00:00
|
|
|
to enter when the sleep button is pressed.
|
2006-07-29 21:47:24 +00:00
|
|
|
This is usually a special function button on the keyboard.
|
2006-08-04 07:19:01 +00:00
|
|
|
Default is
|
2006-08-07 07:28:47 +00:00
|
|
|
.Li S3
|
2006-08-04 07:19:01 +00:00
|
|
|
(suspend-to-RAM).
|
2006-07-29 21:47:24 +00:00
|
|
|
.It Va hw.acpi.sleep_delay
|
|
|
|
Wait this number of seconds between preparing the system to suspend and
|
|
|
|
actually entering the suspend state.
|
|
|
|
Default is 1 second.
|
|
|
|
.It Va hw.acpi.supported_sleep_state
|
2006-08-04 07:19:01 +00:00
|
|
|
Suspend states
|
2006-08-07 07:28:47 +00:00
|
|
|
.Pq Li S1 Ns \[en] Ns Li S5
|
2006-08-04 07:19:01 +00:00
|
|
|
supported by the BIOS.
|
2006-07-29 21:47:24 +00:00
|
|
|
.Bl -tag -width indent
|
2006-08-07 07:28:47 +00:00
|
|
|
.It Li S1
|
2006-07-29 21:47:24 +00:00
|
|
|
Quick suspend to RAM.
|
2006-08-07 07:28:47 +00:00
|
|
|
The CPU enters a lower power state, but most peripherals are left running.
|
|
|
|
.It Li S2
|
2006-08-04 07:19:01 +00:00
|
|
|
Lower power state than
|
2006-08-07 07:28:47 +00:00
|
|
|
.Li S1 ,
|
2006-08-04 07:19:01 +00:00
|
|
|
but with the same basic characteristics.
|
2006-07-29 21:47:24 +00:00
|
|
|
Not supported by many systems.
|
2006-08-07 07:28:47 +00:00
|
|
|
.It Li S3
|
2006-07-29 21:47:24 +00:00
|
|
|
Suspend to RAM.
|
2006-08-07 07:28:47 +00:00
|
|
|
Most devices are powered off, and the system stops running except for
|
2006-07-29 21:47:24 +00:00
|
|
|
memory refresh.
|
2006-08-07 07:28:47 +00:00
|
|
|
.It Li S4
|
2006-07-29 21:47:24 +00:00
|
|
|
Suspend to disk.
|
2006-08-07 07:28:47 +00:00
|
|
|
All devices are powered off, and the system stops running.
|
2006-07-29 21:47:24 +00:00
|
|
|
When resuming, the system starts as if from a cold power on.
|
|
|
|
Not yet supported by
|
|
|
|
.Fx
|
2006-08-04 07:19:01 +00:00
|
|
|
unless
|
2006-08-07 07:28:47 +00:00
|
|
|
.Li S4BIOS
|
2006-08-04 07:19:01 +00:00
|
|
|
is available.
|
2006-08-07 07:28:47 +00:00
|
|
|
.It Li S5
|
2006-07-29 21:47:24 +00:00
|
|
|
System shuts down cleanly and powers off.
|
|
|
|
.El
|
|
|
|
.It Va hw.acpi.verbose
|
|
|
|
Enable verbose printing from the various ACPI subsystems.
|
2004-12-14 01:07:44 +00:00
|
|
|
.El
|
2005-07-15 17:35:26 +00:00
|
|
|
.Sh LOADER TUNABLES
|
2004-03-03 03:02:17 +00:00
|
|
|
Tunables can be set at the
|
2001-07-06 08:10:59 +00:00
|
|
|
.Xr loader 8
|
2004-03-03 03:02:17 +00:00
|
|
|
prompt before booting the kernel or stored in
|
|
|
|
.Pa /boot/loader.conf .
|
2006-06-10 08:06:16 +00:00
|
|
|
Many of these tunables also have a matching
|
|
|
|
.Xr sysctl 8
|
|
|
|
entry for access after boot.
|
2004-12-14 01:07:44 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Va acpi_dsdt_load
|
|
|
|
Enables loading of a custom ACPI DSDT.
|
|
|
|
.It Va acpi_dsdt_name
|
|
|
|
Name of the DSDT table to load, if loading is enabled.
|
|
|
|
.It Va debug.acpi.disabled
|
|
|
|
Selectively disables portions of ACPI for debugging purposes.
|
2005-04-22 23:21:09 +00:00
|
|
|
.It Va debug.acpi.max_threads
|
|
|
|
Specify the number of task threads that are started on boot.
|
|
|
|
Limiting this to 1 may help work around various BIOSes that cannot
|
|
|
|
handle parallel requests.
|
|
|
|
The default value is 3.
|
2005-02-13 20:26:04 +00:00
|
|
|
.It Va debug.acpi.quirks
|
|
|
|
Override any automatic quirks completely.
|
2006-06-10 08:06:16 +00:00
|
|
|
.It Va debug.acpi.resume_beep
|
|
|
|
Beep the PC speaker on resume.
|
|
|
|
This can help diagnose suspend/resume problems.
|
|
|
|
Default is 0 (disabled).
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Va hint.acpi.0.disabled
|
|
|
|
Set this to 1 to disable all of ACPI.
|
|
|
|
If ACPI has been disabled on your system due to a blacklist entry for your
|
|
|
|
BIOS, you can set this to 0 to re-enable ACPI for testing.
|
|
|
|
.It Va hw.acpi.ec.poll_timeout
|
|
|
|
Delay in milliseconds to wait for the EC to respond.
|
|
|
|
Try increasing this number if you get the error
|
2004-12-14 09:24:48 +00:00
|
|
|
.Qq Li AE_NO_HARDWARE_RESPONSE .
|
2005-02-13 20:26:04 +00:00
|
|
|
.It Va hw.acpi.host_mem_start
|
|
|
|
Override the assumed memory starting address for PCI host bridges.
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Va hw.acpi.reset_video
|
|
|
|
Enables calling the VESA reset BIOS vector on the resume path.
|
2006-06-10 08:06:16 +00:00
|
|
|
This can fix some graphics cards that have problems such as LCD white-out
|
|
|
|
after resume.
|
|
|
|
Default is 0 (disabled).
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Va hw.acpi.serialize_methods
|
|
|
|
Allow override of whether methods execute in parallel or not.
|
2004-12-14 09:24:48 +00:00
|
|
|
Enable this for serial behavior, which fixes
|
|
|
|
.Qq Li AE_ALREADY_EXISTS
|
2005-01-02 18:26:13 +00:00
|
|
|
errors for
|
2004-12-14 09:24:48 +00:00
|
|
|
AML that really cannot handle parallel method execution.
|
2005-01-02 18:26:13 +00:00
|
|
|
It is off by default since this breaks recursive methods and some IBMs use
|
2004-12-14 01:07:44 +00:00
|
|
|
such code.
|
|
|
|
.It Va hw.acpi.verbose
|
|
|
|
Turn on verbose debugging information about what ACPI is doing.
|
2006-05-01 11:56:18 +00:00
|
|
|
.It Va hw.pci.link.%s.%d.irq
|
2006-07-29 21:47:24 +00:00
|
|
|
Override the interrupt to use for this link and index.
|
|
|
|
This capability should be used carefully, and only if a device is not
|
|
|
|
working with
|
|
|
|
.Nm
|
|
|
|
enabled.
|
|
|
|
.Qq %s
|
|
|
|
is the name of the link (e.g., LNKA).
|
|
|
|
.Qq %d
|
|
|
|
is the resource index when the link supports multiple IRQs.
|
|
|
|
Most PCI links only have one IRQ resource, so the below form should be used.
|
2006-05-01 11:56:18 +00:00
|
|
|
.It Va hw.pci.link.%s.irq
|
|
|
|
Override the interrupt to use.
|
2006-07-29 21:47:24 +00:00
|
|
|
This capability should be used carefully, and only if a device is not
|
|
|
|
working with
|
|
|
|
.Nm
|
|
|
|
enabled.
|
|
|
|
.Qq %s
|
|
|
|
is the name of the link (e.g., LNKA).
|
2001-07-03 07:45:04 +00:00
|
|
|
.El
|
2004-12-14 01:07:44 +00:00
|
|
|
.Sh DISABLING ACPI
|
|
|
|
Since ACPI support on different platforms varies greatly, there are many
|
|
|
|
debugging and tuning options available.
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pp
|
2004-06-30 19:54:29 +00:00
|
|
|
For machines known not to work with
|
|
|
|
.Nm
|
2004-06-30 20:49:34 +00:00
|
|
|
enabled, there is a BIOS blacklist.
|
|
|
|
Currently, the blacklist only controls whether
|
2004-06-30 19:54:29 +00:00
|
|
|
.Nm
|
2004-06-30 20:49:34 +00:00
|
|
|
should be disabled or not.
|
2004-07-07 19:57:16 +00:00
|
|
|
In the future, it will have more granularity to control features (the
|
2004-06-30 20:49:34 +00:00
|
|
|
infrastructure for that is already there).
|
2004-06-30 19:54:29 +00:00
|
|
|
.Pp
|
|
|
|
To enable
|
|
|
|
.Nm
|
2004-07-07 19:57:16 +00:00
|
|
|
(for debugging purposes, etc.) on machines that are on the blacklist, set the
|
2004-06-30 20:49:34 +00:00
|
|
|
kernel environment variable
|
2004-06-30 19:54:29 +00:00
|
|
|
.Va hint.acpi.0.disabled
|
2004-06-30 20:49:34 +00:00
|
|
|
to 0.
|
2004-07-07 19:57:16 +00:00
|
|
|
Before trying this, consider updating your BIOS to a more recent version that
|
2004-06-30 20:49:34 +00:00
|
|
|
may be compatible with ACPI.
|
2004-06-30 19:54:29 +00:00
|
|
|
.Pp
|
2003-05-18 04:21:38 +00:00
|
|
|
To disable the
|
|
|
|
.Nm
|
|
|
|
driver completely, set the kernel environment variable
|
|
|
|
.Va hint.acpi.0.disabled
|
2004-02-18 05:20:31 +00:00
|
|
|
to 1.
|
|
|
|
.Pp
|
2003-05-18 04:21:38 +00:00
|
|
|
Some i386 machines totally fail to operate with some or all of ACPI disabled.
|
|
|
|
Other i386 machines fail with ACPI enabled.
|
2004-12-14 01:07:44 +00:00
|
|
|
Disabling all or part of ACPI on non-i386 platforms (i.e., platforms where
|
|
|
|
ACPI support is mandatory) may result in a non-functional system.
|
2003-05-18 04:21:38 +00:00
|
|
|
.Pp
|
2001-07-03 07:45:04 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver comprises a set of drivers, which may be selectively disabled
|
|
|
|
in case of problems.
|
|
|
|
To disable a sub-driver, list it in the kernel
|
|
|
|
environment variable
|
2004-03-03 03:02:17 +00:00
|
|
|
.Va debug.acpi.disabled .
|
2004-02-22 00:30:43 +00:00
|
|
|
Multiple entries can be listed, separated by a space.
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pp
|
|
|
|
ACPI sub-devices and features that can be disabled:
|
2004-12-14 09:24:48 +00:00
|
|
|
.Bl -tag -width ".Li sysresource"
|
2004-02-22 00:30:43 +00:00
|
|
|
.It Li all
|
2004-02-22 00:50:00 +00:00
|
|
|
Disable all ACPI features and devices.
|
2004-04-20 17:45:47 +00:00
|
|
|
.It Li acad
|
|
|
|
.Pq Vt device
|
|
|
|
Supports AC adapter.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li bus
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt feature
|
|
|
|
Probes and attaches subdevices.
|
|
|
|
Disabling will avoid scanning the ACPI namespace entirely.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li children
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt feature
|
|
|
|
Attaches standard ACPI sub-drivers and devices enumerated in the
|
|
|
|
ACPI namespace.
|
|
|
|
Disabling this has a similar effect to disabling
|
2001-07-06 08:10:59 +00:00
|
|
|
.Dq Li bus ,
|
2001-07-03 07:45:04 +00:00
|
|
|
except that the
|
|
|
|
ACPI namespace will still be scanned.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li button
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
2004-06-16 08:33:57 +00:00
|
|
|
Supports ACPI button devices (typically power and sleep buttons).
|
2004-02-22 00:30:43 +00:00
|
|
|
.It Li cmbat
|
|
|
|
.Pq Vt device
|
|
|
|
Control-method batteries device.
|
|
|
|
.It Li cpu
|
|
|
|
.Pq Vt device
|
|
|
|
Supports CPU power-saving and speed-setting functions.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li ec
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
2004-02-22 00:30:43 +00:00
|
|
|
Supports the ACPI Embedded Controller interface, used to communicate
|
|
|
|
with embedded platform controllers.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li isa
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
|
|
|
Supports an ISA bus bridge defined in the ACPI namespace,
|
|
|
|
typically as a child of a PCI bus.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li lid
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
|
|
|
Supports an ACPI laptop lid switch, which typically puts a
|
|
|
|
system to sleep.
|
2004-03-04 04:42:59 +00:00
|
|
|
.It Li quirks
|
|
|
|
.Pq Vt feature
|
2004-06-16 08:33:57 +00:00
|
|
|
Do not honor quirks.
|
2004-03-04 04:42:59 +00:00
|
|
|
Quirks automatically disable ACPI functionality based on the XSDT table's
|
|
|
|
OEM vendor name and revision date.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li pci
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
|
|
|
Supports Host to PCI bridges.
|
2004-02-22 00:30:43 +00:00
|
|
|
.It Li pci_link
|
2004-02-22 00:50:00 +00:00
|
|
|
.Pq Vt feature
|
2004-02-22 00:30:43 +00:00
|
|
|
Performs PCI interrupt routing.
|
|
|
|
.It Li sysresource
|
|
|
|
.Pq Vt device
|
|
|
|
Pseudo-devices containing resources which ACPI claims.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li thermal
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
|
|
|
Supports system cooling and heat management.
|
2001-07-06 08:10:59 +00:00
|
|
|
.It Li timer
|
2001-07-03 07:45:04 +00:00
|
|
|
.Pq Vt device
|
|
|
|
Implements a timecounter using the ACPI fixed-frequency timer.
|
2005-02-23 07:23:35 +00:00
|
|
|
.It Li video
|
|
|
|
.Pq Vt device
|
2005-06-15 13:31:23 +00:00
|
|
|
Supports
|
|
|
|
.Xr acpi_video 4
|
|
|
|
which may conflict with
|
|
|
|
.Xr agp 4
|
|
|
|
device.
|
2001-07-03 07:45:04 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
It is also possible to avoid portions of the ACPI namespace which
|
|
|
|
may be causing problems, by listing the full path of the root of
|
|
|
|
the region to be avoided in the kernel environment variable
|
|
|
|
.Va debug.acpi.avoid .
|
|
|
|
The object and all of its children will be ignored during the
|
2001-07-06 08:10:59 +00:00
|
|
|
bus/children scan of the namespace.
|
2004-12-14 19:55:54 +00:00
|
|
|
The ACPI CA code will still know about the avoided region.
|
2004-12-14 01:07:44 +00:00
|
|
|
.Sh DEBUGGING OUTPUT
|
|
|
|
To enable debugging output,
|
|
|
|
.Nm
|
|
|
|
must be compiled with
|
2004-12-14 09:24:48 +00:00
|
|
|
.Cd "options ACPI_DEBUG" .
|
2004-12-14 01:07:44 +00:00
|
|
|
Debugging output is separated between layers and levels, where a layer is
|
|
|
|
a component of the ACPI subsystem, and a level is a particular kind
|
|
|
|
of debugging output.
|
|
|
|
.Pp
|
|
|
|
Both layers and levels are specified as a whitespace-separated list of
|
|
|
|
tokens, with layers listed in
|
|
|
|
.Va debug.acpi.layer
|
|
|
|
and levels in
|
|
|
|
.Va debug.acpi.level .
|
2004-12-14 19:55:54 +00:00
|
|
|
.Pp
|
|
|
|
The first set of layers is for ACPI-CA components, and the second is for
|
|
|
|
.Fx
|
|
|
|
drivers.
|
|
|
|
The ACPI-CA layer descriptions include the prefix for the files they
|
|
|
|
refer to.
|
2004-12-14 01:07:44 +00:00
|
|
|
The supported layers are:
|
|
|
|
.Pp
|
2004-12-14 09:24:48 +00:00
|
|
|
.Bl -tag -compact -width ".Li ACPI_CA_DISASSEMBLER"
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_UTILITIES
|
2004-12-14 19:55:54 +00:00
|
|
|
Utility ("ut") functions
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_HARDWARE
|
2004-12-14 19:55:54 +00:00
|
|
|
Hardware access ("hw")
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_EVENTS
|
2004-12-14 19:55:54 +00:00
|
|
|
Event and GPE ("ev")
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_TABLES
|
2004-12-14 19:55:54 +00:00
|
|
|
Table access ("tb")
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_NAMESPACE
|
2004-12-14 19:55:54 +00:00
|
|
|
Namespace evaluation ("ns")
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_PARSER
|
2004-12-14 19:55:54 +00:00
|
|
|
AML parser ("ps")
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_DISPATCHER
|
2004-12-14 19:55:54 +00:00
|
|
|
Internal representation of interpreter state ("ds")
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_EXECUTER
|
2004-12-14 19:55:54 +00:00
|
|
|
Execute AML methods ("ex")
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_RESOURCES
|
2004-12-14 19:55:54 +00:00
|
|
|
Resource parsing ("rs")
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_CA_DEBUGGER
|
2004-12-14 19:55:54 +00:00
|
|
|
Debugger implementation ("db", "dm")
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_OS_SERVICES
|
2004-12-14 19:55:54 +00:00
|
|
|
Usermode support routines ("os")
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_CA_DISASSEMBLER
|
2004-12-14 19:55:54 +00:00
|
|
|
Disassembler implementation (unused)
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_ALL_COMPONENTS
|
|
|
|
All the above ACPI-CA components
|
|
|
|
.It Li ACPI_AC_ADAPTER
|
|
|
|
AC adapter driver
|
|
|
|
.It Li ACPI_BATTERY
|
|
|
|
Control-method battery driver
|
|
|
|
.It Li ACPI_BUS
|
|
|
|
ACPI, ISA, and PCI bus drivers
|
|
|
|
.It Li ACPI_BUTTON
|
|
|
|
Power and sleep button driver
|
|
|
|
.It Li ACPI_EC
|
|
|
|
Embedded controller driver
|
|
|
|
.It Li ACPI_FAN
|
|
|
|
Fan driver
|
|
|
|
.It Li ACPI_OEM
|
|
|
|
Platform-specific driver for hotkeys, LED, etc.
|
|
|
|
.It Li ACPI_POWER
|
|
|
|
Power resource driver
|
|
|
|
.It Li ACPI_PROCESSOR
|
|
|
|
CPU driver
|
|
|
|
.It Li ACPI_THERMAL
|
|
|
|
Thermal zone driver
|
|
|
|
.It Li ACPI_TIMER
|
|
|
|
Timer driver
|
|
|
|
.It Li ACPI_ALL_DRIVERS
|
|
|
|
All the above
|
|
|
|
.Fx
|
|
|
|
ACPI drivers
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The supported levels are:
|
|
|
|
.Pp
|
2004-12-14 09:24:48 +00:00
|
|
|
.Bl -tag -compact -width ".Li ACPI_LV_AML_DISASSEMBLE"
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_LV_ERROR
|
2004-12-14 19:55:54 +00:00
|
|
|
Fatal error conditions
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_LV_WARN
|
2004-12-14 19:55:54 +00:00
|
|
|
Warnings and potential problems
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_LV_INIT
|
2004-12-14 19:55:54 +00:00
|
|
|
Initialization progress
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_LV_DEBUG_OBJECT
|
2004-12-14 19:55:54 +00:00
|
|
|
Stores to objects
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_LV_INFO
|
2004-12-14 19:55:54 +00:00
|
|
|
General information and progress
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_LV_ALL_EXCEPTIONS
|
2004-12-14 19:55:54 +00:00
|
|
|
All the previous levels
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_LV_INIT_NAMES
|
|
|
|
.It Li ACPI_LV_PARSE
|
|
|
|
.It Li ACPI_LV_LOAD
|
|
|
|
.It Li ACPI_LV_DISPATCH
|
|
|
|
.It Li ACPI_LV_EXEC
|
|
|
|
.It Li ACPI_LV_NAMES
|
|
|
|
.It Li ACPI_LV_OPREGION
|
|
|
|
.It Li ACPI_LV_BFIELD
|
|
|
|
.It Li ACPI_LV_TABLES
|
|
|
|
.It Li ACPI_LV_VALUES
|
|
|
|
.It Li ACPI_LV_OBJECTS
|
|
|
|
.It Li ACPI_LV_RESOURCES
|
|
|
|
.It Li ACPI_LV_USER_REQUESTS
|
|
|
|
.It Li ACPI_LV_PACKAGE
|
|
|
|
.It Li ACPI_LV_VERBOSITY1
|
2004-12-14 19:55:54 +00:00
|
|
|
All the previous levels
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_LV_ALLOCATIONS
|
|
|
|
.It Li ACPI_LV_FUNCTIONS
|
|
|
|
.It Li ACPI_LV_OPTIMIZATIONS
|
|
|
|
.It Li ACPI_LV_VERBOSITY2
|
|
|
|
.It Li ACPI_LV_ALL
|
|
|
|
.It Li ACPI_LV_MUTEX
|
|
|
|
.It Li ACPI_LV_THREADS
|
|
|
|
.It Li ACPI_LV_IO
|
|
|
|
.It Li ACPI_LV_INTERRUPTS
|
|
|
|
.It Li ACPI_LV_VERBOSITY3
|
2004-12-14 19:55:54 +00:00
|
|
|
All the previous levels
|
2004-12-14 01:07:44 +00:00
|
|
|
.It Li ACPI_LV_AML_DISASSEMBLE
|
|
|
|
.It Li ACPI_LV_VERBOSE_INFO
|
|
|
|
.It Li ACPI_LV_FULL_TABLES
|
|
|
|
.It Li ACPI_LV_EVENTS
|
|
|
|
.It Li ACPI_LV_VERBOSE
|
2004-12-14 19:55:54 +00:00
|
|
|
All levels after
|
|
|
|
.Qq Li ACPI_LV_VERBOSITY3
|
2004-12-14 01:07:44 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Selection of the appropriate layer and level values is important
|
|
|
|
to avoid massive amounts of debugging output.
|
2004-12-14 19:55:54 +00:00
|
|
|
For example, the following configuration is a good way to gather initial
|
|
|
|
information.
|
|
|
|
It enables debug output for both ACPI-CA and the
|
|
|
|
.Nm
|
|
|
|
driver, printing basic information about errors, warnings, and progress.
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
debug.acpi.layer="ACPI_ALL_COMPONENTS ACPI_ALL_DRIVERS"
|
|
|
|
debug.acpi.level="ACPI_LV_ALL_EXCEPTIONS"
|
|
|
|
.Ed
|
2004-12-14 01:07:44 +00:00
|
|
|
.Pp
|
|
|
|
Debugging output by the ACPI CA subsystem is prefixed with the
|
|
|
|
module name in lowercase, followed by a source line number.
|
|
|
|
Output from the
|
|
|
|
.Fx Ns -local
|
|
|
|
code follows the same format, but
|
|
|
|
the module name is uppercased.
|
2002-07-05 15:36:03 +00:00
|
|
|
.Sh OVERRIDING YOUR BIOS BYTECODE
|
2004-10-05 20:42:16 +00:00
|
|
|
ACPI interprets bytecode named AML
|
|
|
|
(ACPI Machine Language)
|
|
|
|
provided by the BIOS vendor as a memory image at boot time.
|
|
|
|
Sometimes, the AML code contains a bug that does not appear when parsed
|
|
|
|
by the Microsoft implementation.
|
|
|
|
.Fx
|
2004-12-14 09:24:48 +00:00
|
|
|
provides a way to override it with your own AML code to work around
|
2004-10-05 20:42:16 +00:00
|
|
|
or debug such problems.
|
|
|
|
Note that all AML in your DSDT and any SSDT tables is overridden.
|
2002-07-05 15:36:03 +00:00
|
|
|
.Pp
|
2004-10-05 20:42:16 +00:00
|
|
|
In order to load your AML code, you must edit
|
2002-07-05 15:36:03 +00:00
|
|
|
.Pa /boot/loader.conf
|
2004-10-05 20:42:16 +00:00
|
|
|
and include the following lines.
|
2002-07-05 15:36:03 +00:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
acpi_dsdt_load="YES"
|
2004-10-05 20:42:16 +00:00
|
|
|
acpi_dsdt_name="/boot/acpi_dsdt.aml" # You may change this name.
|
2002-07-05 15:36:03 +00:00
|
|
|
.Ed
|
|
|
|
.Pp
|
2002-08-13 13:44:45 +00:00
|
|
|
In order to prepare your AML code, you will need the
|
|
|
|
.Xr acpidump 8
|
|
|
|
and
|
2004-12-14 09:24:48 +00:00
|
|
|
.Xr iasl 8
|
2003-09-26 04:32:40 +00:00
|
|
|
utilities and some ACPI knowledge.
|
2001-07-03 07:45:04 +00:00
|
|
|
.Sh COMPATIBILITY
|
2003-11-15 19:26:06 +00:00
|
|
|
ACPI is only found and supported on i386/ia32, ia64, and amd64.
|
2001-07-03 07:45:04 +00:00
|
|
|
.Sh SEE ALSO
|
2004-02-17 20:38:49 +00:00
|
|
|
.Xr kenv 1 ,
|
2003-12-28 12:56:01 +00:00
|
|
|
.Xr acpi_thermal 4 ,
|
2004-02-17 20:38:49 +00:00
|
|
|
.Xr device.hints 5 ,
|
2002-07-05 15:36:03 +00:00
|
|
|
.Xr loader.conf 5 ,
|
2002-10-24 01:44:50 +00:00
|
|
|
.Xr acpiconf 8 ,
|
2002-07-05 15:36:03 +00:00
|
|
|
.Xr acpidump 8 ,
|
2003-09-26 04:32:40 +00:00
|
|
|
.Xr config 8 ,
|
|
|
|
.Xr iasl 8
|
2002-07-05 15:36:03 +00:00
|
|
|
.Rs
|
2002-08-13 13:44:45 +00:00
|
|
|
.%A "Compaq Computer Corporation"
|
|
|
|
.%A "Intel Corporation"
|
|
|
|
.%A "Microsoft Corporation"
|
|
|
|
.%A "Phoenix Technologies Ltd."
|
|
|
|
.%A "Toshiba Corporation"
|
2003-11-19 20:28:56 +00:00
|
|
|
.%D August 25, 2003
|
2002-07-05 15:36:03 +00:00
|
|
|
.%T "Advanced Configuration and Power Interface Specification"
|
|
|
|
.%O http://acpi.info/spec.htm
|
|
|
|
.Re
|
2001-07-06 08:10:59 +00:00
|
|
|
.Sh AUTHORS
|
|
|
|
.An -nosplit
|
2001-07-03 07:45:04 +00:00
|
|
|
The ACPI CA subsystem is developed and maintained by
|
|
|
|
Intel Architecture Labs.
|
|
|
|
.Pp
|
|
|
|
The following people made notable contributions to the ACPI subsystem
|
|
|
|
in
|
|
|
|
.Fx :
|
2003-08-07 04:46:53 +00:00
|
|
|
.An Michael Smith ,
|
2001-07-06 08:10:59 +00:00
|
|
|
.An Takanori Watanabe Aq takawata@jp.FreeBSD.org ,
|
|
|
|
.An Mitsuru IWASAKI Aq iwasaki@jp.FreeBSD.org ,
|
2001-07-03 07:45:04 +00:00
|
|
|
.An Munehiro Matsuda ,
|
2003-08-07 04:46:53 +00:00
|
|
|
.An Nate Lawson ,
|
2001-07-03 07:45:04 +00:00
|
|
|
the ACPI-jp mailing list at
|
2001-07-06 08:10:59 +00:00
|
|
|
.Aq acpi-jp@jp.FreeBSD.org ,
|
2001-07-03 07:45:04 +00:00
|
|
|
and many other contributors.
|
|
|
|
.Pp
|
|
|
|
This manual page was written by
|
2001-07-06 08:10:59 +00:00
|
|
|
.An Michael Smith Aq msmith@FreeBSD.org .
|
2001-07-03 07:45:04 +00:00
|
|
|
.Sh BUGS
|
2006-07-29 21:47:24 +00:00
|
|
|
Many BIOS versions have serious bugs that may cause system instability,
|
|
|
|
break suspend/resume, or prevent devices from operating properly due to
|
|
|
|
IRQ routing problems.
|
|
|
|
Upgrade your BIOS to the latest version available from the vendor before
|
2006-09-18 15:24:20 +00:00
|
|
|
deciding it is a problem with
|
2006-07-29 21:47:24 +00:00
|
|
|
.Nm .
|
2006-08-04 07:19:01 +00:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
CPU idle power management drive conflicts with the local APIC (LAPIC)
|
|
|
|
timer.
|
|
|
|
Disable APIC mode with
|
|
|
|
.Va hint.apic.0.disabled
|
2006-09-18 15:24:20 +00:00
|
|
|
or do not use the
|
2006-08-07 07:28:47 +00:00
|
|
|
.Li C2
|
2006-08-04 07:19:01 +00:00
|
|
|
and
|
2006-08-07 07:28:47 +00:00
|
|
|
.Li C3
|
2006-08-04 07:19:01 +00:00
|
|
|
states if APIC mode is enabled.
|