1b6695bd0SMike Smith.\" 2b6695bd0SMike Smith.\" Copyright (c) 2001 Michael Smith 3b6695bd0SMike Smith.\" All rights reserved. 4b6695bd0SMike Smith.\" 5b6695bd0SMike Smith.\" Redistribution and use in source and binary forms, with or without 6b6695bd0SMike Smith.\" modification, are permitted provided that the following conditions 7b6695bd0SMike Smith.\" are met: 8b6695bd0SMike Smith.\" 1. Redistributions of source code must retain the above copyright 9b6695bd0SMike Smith.\" notice, this list of conditions and the following disclaimer. 10b6695bd0SMike Smith.\" 2. Redistributions in binary form must reproduce the above copyright 11b6695bd0SMike Smith.\" notice, this list of conditions and the following disclaimer in the 12b6695bd0SMike Smith.\" documentation and/or other materials provided with the distribution. 13b6695bd0SMike Smith.\" 14b6695bd0SMike Smith.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15b6695bd0SMike Smith.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16b6695bd0SMike Smith.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17b6695bd0SMike Smith.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18b6695bd0SMike Smith.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19b6695bd0SMike Smith.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20b6695bd0SMike Smith.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21b6695bd0SMike Smith.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22b6695bd0SMike Smith.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23b6695bd0SMike Smith.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24b6695bd0SMike Smith.\" SUCH DAMAGE. 25b6695bd0SMike Smith.\" 26b6695bd0SMike Smith.\" $FreeBSD$ 27b6695bd0SMike Smith.\" 28edd84e48SNate Lawson.Dd December 13, 2004 29b6695bd0SMike Smith.Dt ACPI 4 30b6695bd0SMike Smith.Os 31b6695bd0SMike Smith.Sh NAME 32b6695bd0SMike Smith.Nm acpi 33b6695bd0SMike Smith.Nd Advanced Configuration and Power Management support 34b6695bd0SMike Smith.Sh SYNOPSIS 3509f84dd1SRuslan Ermilov.Cd "device acpi" 36b6695bd0SMike Smith.Pp 3709f84dd1SRuslan Ermilov.Cd "options ACPI_DEBUG" 38b6695bd0SMike Smith.Sh DESCRIPTION 39b6695bd0SMike SmithThe 40b6695bd0SMike Smith.Nm 41b6695bd0SMike Smithdriver provides support for the Intel/Microsoft/Compaq/Toshiba ACPI 42b6695bd0SMike Smithstandard. 43b6695bd0SMike SmithThis support includes platform hardware discovery (superseding the 44b6695bd0SMike SmithPnP and PCI BIOS), as well as power management (superseding APM) and 45b6695bd0SMike Smithother features. 46b6695bd0SMike SmithACPI core support is provided by the ACPI CA reference implementation 47b6695bd0SMike Smithfrom Intel. 48d1f717d1SMike Smith.Pp 49d1f717d1SMike SmithNote that the 50d1f717d1SMike Smith.Nm 512010c542SRuslan Ermilovdriver is automatically loaded by the 522010c542SRuslan Ermilov.Xr loader 8 , 532010c542SRuslan Ermilovand should only be 54edd84e48SNate Lawsoncompiled into the kernel on platforms where ACPI is mandatory. 55edd84e48SNate Lawson.Sh SYSCTLS 56edd84e48SNate LawsonThe 57edd84e48SNate Lawson.Nm 58edd84e48SNate Lawsondriver is intended to provide power management without user intervention. 59edd84e48SNate LawsonThus, some of these sysctls are controlled automatically by the 602010c542SRuslan Ermilov.Pa power_profile 612010c542SRuslan Ermilov.Xr rc 8 622010c542SRuslan Ermilovscript, which can be configured via 63edd84e48SNate Lawson.Xr rc.conf 5 . 642010c542SRuslan ErmilovIf values are specified manually, they may be overridden. 65edd84e48SNate Lawson.Bl -tag -width indent 66edd84e48SNate Lawson.It Va hw.acpi.cpu.throttle_max 67edd84e48SNate LawsonMaximum value for CPU throttling, equal to 100% of the clock rate. 68edd84e48SNate Lawson.It Va hw.acpi.cpu.throttle_state 69edd84e48SNate LawsonGet or set the current throttling state, from 1 to 70edd84e48SNate Lawson.Va hw.acpi.cpu.throttle_max . 71edd84e48SNate LawsonThis scales back the CPU clock rate and the corresponding power consumption. 72edd84e48SNate Lawson.It Va hw.acpi.cpu.cx_usage 73edd84e48SNate LawsonDebugging information listing the percent of total usage for each sleep state. 74edd84e48SNate LawsonThe values are reset when 75edd84e48SNate Lawson.Va hw.acpi.cpu.cx_lowest 76edd84e48SNate Lawsonis modified. 77edd84e48SNate Lawson.It Va hw.acpi.cpu.cx_lowest 78edd84e48SNate LawsonLowest Cx state to use for idling the CPU. 79edd84e48SNate LawsonA scheduling algorithm will select states between C1 and this setting 80edd84e48SNate Lawsonas system load dictates. 81edd84e48SNate LawsonTo enable ACPI CPU idling control, 82edd84e48SNate Lawson.Va machdep.cpu_idle_hlt 83edd84e48SNate Lawsonmust be set to 1. 84edd84e48SNate Lawson.It Va hw.acpi.cpu.cx_supported 85edd84e48SNate LawsonList of supported CPU idle states and their transition latency 86edd84e48SNate Lawsonin microseconds. 87edd84e48SNate LawsonEach state has a type (e.g., C2). 88edd84e48SNate LawsonC1 is equivalent to the ia32 HLT instruction, C2 provides a deeper 89edd84e48SNate Lawsonsleep with the same semantics, and C3 provides the deepest sleep 90edd84e48SNate Lawsonbut additionally requires bus mastering to be disabled. 91edd84e48SNate LawsonStates greater than C3 provide even more power savings with the same 92edd84e48SNate Lawsonsemantics as the C3 state. 93edd84e48SNate LawsonDeeper sleeps provide more power savings but increased transition 94edd84e48SNate Lawsonlatency when an interrupt occurs. 95edd84e48SNate Lawson.El 96edd84e48SNate Lawson.Sh TUNABLES 973184cf5aSNate LawsonTunables can be set at the 9887b6284aSRuslan Ermilov.Xr loader 8 993184cf5aSNate Lawsonprompt before booting the kernel or stored in 1003184cf5aSNate Lawson.Pa /boot/loader.conf . 101edd84e48SNate Lawson.Bl -tag -width indent 102edd84e48SNate Lawson.It Va acpi_dsdt_load 103edd84e48SNate LawsonEnables loading of a custom ACPI DSDT. 104edd84e48SNate Lawson.It Va acpi_dsdt_name 105edd84e48SNate LawsonName of the DSDT table to load, if loading is enabled. 106edd84e48SNate Lawson.It Va debug.acpi.disabled 107edd84e48SNate LawsonSelectively disables portions of ACPI for debugging purposes. 108edd84e48SNate Lawson.It Va hint.acpi.0.disabled 109edd84e48SNate LawsonSet this to 1 to disable all of ACPI. 110edd84e48SNate LawsonIf ACPI has been disabled on your system due to a blacklist entry for your 111edd84e48SNate LawsonBIOS, you can set this to 0 to re-enable ACPI for testing. 112edd84e48SNate Lawson.It Va hw.acpi.ec.poll_timeout 113edd84e48SNate LawsonDelay in milliseconds to wait for the EC to respond. 114edd84e48SNate LawsonTry increasing this number if you get the error 1152010c542SRuslan Ermilov.Qq Li AE_NO_HARDWARE_RESPONSE . 116edd84e48SNate Lawson.It Va hw.acpi.osname 117edd84e48SNate LawsonSome systems' ASL may have problems because they look for names 118edd84e48SNate Lawsonof Microsoft operating systems. 119edd84e48SNate LawsonThis tunable overrides the value of the 120edd84e48SNate Lawson.Qq Li \e_OS 121edd84e48SNate Lawsonobject from its default of 122edd84e48SNate Lawson.Qq Li FreeBSD . 123edd84e48SNate Lawson.It Va hw.acpi.pci.link.%d.%d.%d.irq 124edd84e48SNate LawsonOverride the interrupt to use. 125edd84e48SNate Lawson.It Va hw.acpi.reset_video 126edd84e48SNate LawsonEnables calling the VESA reset BIOS vector on the resume path. 127edd84e48SNate LawsonSome graphic chips have problems such as LCD white-out after resume. 128edd84e48SNate LawsonTry setting this to 0 if this causes problems for you. 129edd84e48SNate Lawson.It Va hw.acpi.serialize_methods 130edd84e48SNate LawsonAllow override of whether methods execute in parallel or not. 1312010c542SRuslan ErmilovEnable this for serial behavior, which fixes 1322010c542SRuslan Ermilov.Qq Li AE_ALREADY_EXISTS 1332010c542SRuslan Ermiloverrors for 1342010c542SRuslan ErmilovAML that really cannot handle parallel method execution. 135edd84e48SNate LawsonIt is off by default since this breaks recursive methods and some IBMs use 136edd84e48SNate Lawsonsuch code. 137edd84e48SNate Lawson.It Va hw.acpi.verbose 138edd84e48SNate LawsonTurn on verbose debugging information about what ACPI is doing. 139b6695bd0SMike Smith.El 140edd84e48SNate Lawson.Sh DISABLING ACPI 141edd84e48SNate LawsonSince ACPI support on different platforms varies greatly, there are many 142edd84e48SNate Lawsondebugging and tuning options available. 143b6695bd0SMike Smith.Pp 14407e2d046SMark SantcroosFor machines known not to work with 14507e2d046SMark Santcroos.Nm 14655c71dc9SMark Santcroosenabled, there is a BIOS blacklist. 14755c71dc9SMark SantcroosCurrently, the blacklist only controls whether 14807e2d046SMark Santcroos.Nm 14955c71dc9SMark Santcroosshould be disabled or not. 15055c71dc9SMark SantcroosIn the future, it will have more granularity to control features (the 15155c71dc9SMark Santcroosinfrastructure for that is already there). 15207e2d046SMark Santcroos.Pp 15307e2d046SMark SantcroosTo enable 15407e2d046SMark Santcroos.Nm 15555c71dc9SMark Santcroos(for debugging purposes, etc.) on machines that are on the blacklist, set the 15655c71dc9SMark Santcrooskernel environment variable 15707e2d046SMark Santcroos.Va hint.acpi.0.disabled 15855c71dc9SMark Santcroosto 0. 15955c71dc9SMark SantcroosBefore trying this, consider updating your BIOS to a more recent version that 16055c71dc9SMark Santcroosmay be compatible with ACPI. 16107e2d046SMark Santcroos.Pp 1624e3148f4SWarner LoshTo disable the 1634e3148f4SWarner Losh.Nm 1644e3148f4SWarner Loshdriver completely, set the kernel environment variable 1654e3148f4SWarner Losh.Va hint.acpi.0.disabled 166d865f9efSWes Petersto 1. 167d865f9efSWes Peters.Pp 1684e3148f4SWarner LoshSome i386 machines totally fail to operate with some or all of ACPI disabled. 1694e3148f4SWarner LoshOther i386 machines fail with ACPI enabled. 170edd84e48SNate LawsonDisabling all or part of ACPI on non-i386 platforms (i.e., platforms where 171edd84e48SNate LawsonACPI support is mandatory) may result in a non-functional system. 1724e3148f4SWarner Losh.Pp 173b6695bd0SMike SmithThe 174b6695bd0SMike Smith.Nm 175b6695bd0SMike Smithdriver comprises a set of drivers, which may be selectively disabled 176b6695bd0SMike Smithin case of problems. 177b6695bd0SMike SmithTo disable a sub-driver, list it in the kernel 178b6695bd0SMike Smithenvironment variable 1793184cf5aSNate Lawson.Va debug.acpi.disabled . 18037c51fd9SNate LawsonMultiple entries can be listed, separated by a space. 181b6695bd0SMike Smith.Pp 182b6695bd0SMike SmithACPI sub-devices and features that can be disabled: 1832010c542SRuslan Ermilov.Bl -tag -width ".Li sysresource" 18437c51fd9SNate Lawson.It Li all 185e821c364SNate LawsonDisable all ACPI features and devices. 18618974fe8SNate Lawson.It Li acad 18718974fe8SNate Lawson.Pq Vt device 18818974fe8SNate LawsonSupports AC adapter. 18987b6284aSRuslan Ermilov.It Li bus 190b6695bd0SMike Smith.Pq Vt feature 191b6695bd0SMike SmithProbes and attaches subdevices. 192b6695bd0SMike SmithDisabling will avoid scanning the ACPI namespace entirely. 19387b6284aSRuslan Ermilov.It Li children 194b6695bd0SMike Smith.Pq Vt feature 195b6695bd0SMike SmithAttaches standard ACPI sub-drivers and devices enumerated in the 196b6695bd0SMike SmithACPI namespace. 197b6695bd0SMike SmithDisabling this has a similar effect to disabling 19887b6284aSRuslan Ermilov.Dq Li bus , 199b6695bd0SMike Smithexcept that the 200b6695bd0SMike SmithACPI namespace will still be scanned. 20187b6284aSRuslan Ermilov.It Li button 202b6695bd0SMike Smith.Pq Vt device 203bf7f20c2SRuslan ErmilovSupports ACPI button devices (typically power and sleep buttons). 20437c51fd9SNate Lawson.It Li cmbat 20537c51fd9SNate Lawson.Pq Vt device 20637c51fd9SNate LawsonControl-method batteries device. 20737c51fd9SNate Lawson.It Li cpu 20837c51fd9SNate Lawson.Pq Vt device 20937c51fd9SNate LawsonSupports CPU power-saving and speed-setting functions. 21087b6284aSRuslan Ermilov.It Li ec 211b6695bd0SMike Smith.Pq Vt device 21237c51fd9SNate LawsonSupports the ACPI Embedded Controller interface, used to communicate 21337c51fd9SNate Lawsonwith embedded platform controllers. 21487b6284aSRuslan Ermilov.It Li isa 215b6695bd0SMike Smith.Pq Vt device 216b6695bd0SMike SmithSupports an ISA bus bridge defined in the ACPI namespace, 217b6695bd0SMike Smithtypically as a child of a PCI bus. 21887b6284aSRuslan Ermilov.It Li lid 219b6695bd0SMike Smith.Pq Vt device 220b6695bd0SMike SmithSupports an ACPI laptop lid switch, which typically puts a 221b6695bd0SMike Smithsystem to sleep. 2224e376d58SNate Lawson.It Li quirks 2234e376d58SNate Lawson.Pq Vt feature 224bf7f20c2SRuslan ErmilovDo not honor quirks. 2254e376d58SNate LawsonQuirks automatically disable ACPI functionality based on the XSDT table's 2264e376d58SNate LawsonOEM vendor name and revision date. 22787b6284aSRuslan Ermilov.It Li pci 228b6695bd0SMike Smith.Pq Vt device 229b6695bd0SMike SmithSupports Host to PCI bridges. 23037c51fd9SNate Lawson.It Li pci_link 231e821c364SNate Lawson.Pq Vt feature 23237c51fd9SNate LawsonPerforms PCI interrupt routing. 23337c51fd9SNate Lawson.It Li sysresource 23437c51fd9SNate Lawson.Pq Vt device 23537c51fd9SNate LawsonPseudo-devices containing resources which ACPI claims. 23687b6284aSRuslan Ermilov.It Li thermal 237b6695bd0SMike Smith.Pq Vt device 238b6695bd0SMike SmithSupports system cooling and heat management. 23987b6284aSRuslan Ermilov.It Li timer 240b6695bd0SMike Smith.Pq Vt device 241b6695bd0SMike SmithImplements a timecounter using the ACPI fixed-frequency timer. 242b6695bd0SMike Smith.El 243b6695bd0SMike Smith.Pp 244b6695bd0SMike SmithIt is also possible to avoid portions of the ACPI namespace which 245b6695bd0SMike Smithmay be causing problems, by listing the full path of the root of 246b6695bd0SMike Smiththe region to be avoided in the kernel environment variable 247b6695bd0SMike Smith.Va debug.acpi.avoid . 248b6695bd0SMike SmithThe object and all of its children will be ignored during the 24987b6284aSRuslan Ermilovbus/children scan of the namespace. 25087b6284aSRuslan ErmilovThe ACPI CA code will still 251b6695bd0SMike Smithknow about the avoided region. 252edd84e48SNate Lawson.Sh DEBUGGING OUTPUT 253edd84e48SNate LawsonTo enable debugging output, 254edd84e48SNate Lawson.Nm 255edd84e48SNate Lawsonmust be compiled with 2562010c542SRuslan Ermilov.Cd "options ACPI_DEBUG" . 257edd84e48SNate LawsonDebugging output is separated between layers and levels, where a layer is 258edd84e48SNate Lawsona component of the ACPI subsystem, and a level is a particular kind 259edd84e48SNate Lawsonof debugging output. 260edd84e48SNate Lawson.Pp 261edd84e48SNate LawsonBoth layers and levels are specified as a whitespace-separated list of 262edd84e48SNate Lawsontokens, with layers listed in 263edd84e48SNate Lawson.Va debug.acpi.layer 264edd84e48SNate Lawsonand levels in 265edd84e48SNate Lawson.Va debug.acpi.level . 266edd84e48SNate LawsonThe supported layers are: 267edd84e48SNate Lawson.Pp 2682010c542SRuslan Ermilov.Bl -tag -compact -width ".Li ACPI_CA_DISASSEMBLER" 269edd84e48SNate Lawson.It Li ACPI_UTILITIES 270edd84e48SNate Lawson.It Li ACPI_HARDWARE 271edd84e48SNate Lawson.It Li ACPI_EVENTS 272edd84e48SNate Lawson.It Li ACPI_TABLES 273edd84e48SNate Lawson.It Li ACPI_NAMESPACE 274edd84e48SNate Lawson.It Li ACPI_PARSER 275edd84e48SNate Lawson.It Li ACPI_DISPATCHER 276edd84e48SNate Lawson.It Li ACPI_EXECUTER 277edd84e48SNate Lawson.It Li ACPI_RESOURCES 278edd84e48SNate Lawson.It Li ACPI_CA_DEBUGGER 279edd84e48SNate Lawson.It Li ACPI_OS_SERVICES 280edd84e48SNate Lawson.It Li ACPI_CA_DISASSEMBLER 281edd84e48SNate Lawson.It Li ACPI_ALL_COMPONENTS 282edd84e48SNate LawsonAll the above ACPI-CA components 283edd84e48SNate Lawson.It Li ACPI_AC_ADAPTER 284edd84e48SNate LawsonAC adapter driver 285edd84e48SNate Lawson.It Li ACPI_BATTERY 286edd84e48SNate LawsonControl-method battery driver 287edd84e48SNate Lawson.It Li ACPI_BUS 288edd84e48SNate LawsonACPI, ISA, and PCI bus drivers 289edd84e48SNate Lawson.It Li ACPI_BUTTON 290edd84e48SNate LawsonPower and sleep button driver 291edd84e48SNate Lawson.It Li ACPI_EC 292edd84e48SNate LawsonEmbedded controller driver 293edd84e48SNate Lawson.It Li ACPI_FAN 294edd84e48SNate LawsonFan driver 295edd84e48SNate Lawson.It Li ACPI_OEM 296edd84e48SNate LawsonPlatform-specific driver for hotkeys, LED, etc. 297edd84e48SNate Lawson.It Li ACPI_POWER 298edd84e48SNate LawsonPower resource driver 299edd84e48SNate Lawson.It Li ACPI_PROCESSOR 300edd84e48SNate LawsonCPU driver 301edd84e48SNate Lawson.It Li ACPI_THERMAL 302edd84e48SNate LawsonThermal zone driver 303edd84e48SNate Lawson.It Li ACPI_TIMER 304edd84e48SNate LawsonTimer driver 305edd84e48SNate Lawson.It Li ACPI_ALL_DRIVERS 306edd84e48SNate LawsonAll the above 307edd84e48SNate Lawson.Fx 308edd84e48SNate LawsonACPI drivers 309edd84e48SNate Lawson.El 310edd84e48SNate Lawson.Pp 311edd84e48SNate LawsonThe supported levels are: 312edd84e48SNate Lawson.Pp 3132010c542SRuslan Ermilov.Bl -tag -compact -width ".Li ACPI_LV_AML_DISASSEMBLE" 314edd84e48SNate Lawson.It Li ACPI_LV_ERROR 315edd84e48SNate Lawson.It Li ACPI_LV_WARN 316edd84e48SNate Lawson.It Li ACPI_LV_INIT 317edd84e48SNate Lawson.It Li ACPI_LV_DEBUG_OBJECT 318edd84e48SNate Lawson.It Li ACPI_LV_INFO 319edd84e48SNate Lawson.It Li ACPI_LV_ALL_EXCEPTIONS 320edd84e48SNate LawsonAll the above errors and warnings 321edd84e48SNate Lawson.It Li ACPI_LV_INIT_NAMES 322edd84e48SNate Lawson.It Li ACPI_LV_PARSE 323edd84e48SNate Lawson.It Li ACPI_LV_LOAD 324edd84e48SNate Lawson.It Li ACPI_LV_DISPATCH 325edd84e48SNate Lawson.It Li ACPI_LV_EXEC 326edd84e48SNate Lawson.It Li ACPI_LV_NAMES 327edd84e48SNate Lawson.It Li ACPI_LV_OPREGION 328edd84e48SNate Lawson.It Li ACPI_LV_BFIELD 329edd84e48SNate Lawson.It Li ACPI_LV_TABLES 330edd84e48SNate Lawson.It Li ACPI_LV_VALUES 331edd84e48SNate Lawson.It Li ACPI_LV_OBJECTS 332edd84e48SNate Lawson.It Li ACPI_LV_RESOURCES 333edd84e48SNate Lawson.It Li ACPI_LV_USER_REQUESTS 334edd84e48SNate Lawson.It Li ACPI_LV_PACKAGE 335edd84e48SNate Lawson.It Li ACPI_LV_VERBOSITY1 336edd84e48SNate Lawson.It Li ACPI_LV_ALLOCATIONS 337edd84e48SNate Lawson.It Li ACPI_LV_FUNCTIONS 338edd84e48SNate Lawson.It Li ACPI_LV_OPTIMIZATIONS 339edd84e48SNate Lawson.It Li ACPI_LV_VERBOSITY2 340edd84e48SNate Lawson.It Li ACPI_LV_ALL 341edd84e48SNate Lawson.It Li ACPI_LV_MUTEX 342edd84e48SNate Lawson.It Li ACPI_LV_THREADS 343edd84e48SNate Lawson.It Li ACPI_LV_IO 344edd84e48SNate Lawson.It Li ACPI_LV_INTERRUPTS 345edd84e48SNate Lawson.It Li ACPI_LV_VERBOSITY3 346edd84e48SNate Lawson.It Li ACPI_LV_AML_DISASSEMBLE 347edd84e48SNate Lawson.It Li ACPI_LV_VERBOSE_INFO 348edd84e48SNate Lawson.It Li ACPI_LV_FULL_TABLES 349edd84e48SNate Lawson.It Li ACPI_LV_EVENTS 350edd84e48SNate Lawson.It Li ACPI_LV_VERBOSE 351edd84e48SNate Lawson.El 352edd84e48SNate Lawson.Pp 353edd84e48SNate LawsonSelection of the appropriate layer and level values is important 354edd84e48SNate Lawsonto avoid massive amounts of debugging output. 355edd84e48SNate LawsonCheck the code to see which you need. 356edd84e48SNate Lawson.Pp 357edd84e48SNate LawsonDebugging output by the ACPI CA subsystem is prefixed with the 358edd84e48SNate Lawsonmodule name in lowercase, followed by a source line number. 359edd84e48SNate LawsonOutput from the 360edd84e48SNate Lawson.Fx Ns -local 361edd84e48SNate Lawsoncode follows the same format, but 362edd84e48SNate Lawsonthe module name is uppercased. 363f0da5f56STakanori Watanabe.Sh OVERRIDING YOUR BIOS BYTECODE 364287460e8SNate LawsonACPI interprets bytecode named AML 365287460e8SNate Lawson(ACPI Machine Language) 366287460e8SNate Lawsonprovided by the BIOS vendor as a memory image at boot time. 367287460e8SNate LawsonSometimes, the AML code contains a bug that does not appear when parsed 368287460e8SNate Lawsonby the Microsoft implementation. 369287460e8SNate Lawson.Fx 370287460e8SNate Lawsonprovides a way to override it with your own AML code to work around 371287460e8SNate Lawsonor debug such problems. 372287460e8SNate LawsonNote that all AML in your DSDT and any SSDT tables is overridden. 373f0da5f56STakanori Watanabe.Pp 374287460e8SNate LawsonIn order to load your AML code, you must edit 375f0da5f56STakanori Watanabe.Pa /boot/loader.conf 376287460e8SNate Lawsonand include the following lines. 377f0da5f56STakanori Watanabe.Bd -literal -offset indent 378f0da5f56STakanori Watanabeacpi_dsdt_load="YES" 379287460e8SNate Lawsonacpi_dsdt_name="/boot/acpi_dsdt.aml" # You may change this name. 380f0da5f56STakanori Watanabe.Ed 381f0da5f56STakanori Watanabe.Pp 382a627f55aSRuslan ErmilovIn order to prepare your AML code, you will need the 383a627f55aSRuslan Ermilov.Xr acpidump 8 384a627f55aSRuslan Ermilovand 3852010c542SRuslan Ermilov.Xr iasl 8 386297835bcSNate Lawsonutilities and some ACPI knowledge. 387b6695bd0SMike Smith.Sh COMPATIBILITY 3886b74f9b7SNate LawsonACPI is only found and supported on i386/ia32, ia64, and amd64. 389b6695bd0SMike Smith.Sh SEE ALSO 3905413d9e0SWes Peters.Xr kenv 1 , 391673fbcacSRuslan Ermilov.Xr acpi_thermal 4 , 3925413d9e0SWes Peters.Xr device.hints 5 , 393f0da5f56STakanori Watanabe.Xr loader.conf 5 , 394f64a0a56SRobert Watson.Xr acpiconf 8 , 395f0da5f56STakanori Watanabe.Xr acpidump 8 , 396297835bcSNate Lawson.Xr config 8 , 397297835bcSNate Lawson.Xr iasl 8 398f0da5f56STakanori Watanabe.Rs 399a627f55aSRuslan Ermilov.%A "Compaq Computer Corporation" 400a627f55aSRuslan Ermilov.%A "Intel Corporation" 401a627f55aSRuslan Ermilov.%A "Microsoft Corporation" 402a627f55aSRuslan Ermilov.%A "Phoenix Technologies Ltd." 403a627f55aSRuslan Ermilov.%A "Toshiba Corporation" 404c25a3f8aSNate Lawson.%D August 25, 2003 405f0da5f56STakanori Watanabe.%T "Advanced Configuration and Power Interface Specification" 406f0da5f56STakanori Watanabe.%O http://acpi.info/spec.htm 407f0da5f56STakanori Watanabe.Re 40887b6284aSRuslan Ermilov.Sh AUTHORS 40987b6284aSRuslan Ermilov.An -nosplit 410b6695bd0SMike SmithThe ACPI CA subsystem is developed and maintained by 411b6695bd0SMike SmithIntel Architecture Labs. 412b6695bd0SMike Smith.Pp 413b6695bd0SMike SmithThe following people made notable contributions to the ACPI subsystem 414b6695bd0SMike Smithin 415b6695bd0SMike Smith.Fx : 416718a5d6aSNate Lawson.An Michael Smith , 41787b6284aSRuslan Ermilov.An Takanori Watanabe Aq takawata@jp.FreeBSD.org , 41887b6284aSRuslan Ermilov.An Mitsuru IWASAKI Aq iwasaki@jp.FreeBSD.org , 419b6695bd0SMike Smith.An Munehiro Matsuda , 420718a5d6aSNate Lawson.An Nate Lawson , 421b6695bd0SMike Smiththe ACPI-jp mailing list at 42287b6284aSRuslan Ermilov.Aq acpi-jp@jp.FreeBSD.org , 423b6695bd0SMike Smithand many other contributors. 424b6695bd0SMike Smith.Pp 425b6695bd0SMike SmithThis manual page was written by 42687b6284aSRuslan Ermilov.An Michael Smith Aq msmith@FreeBSD.org . 427b6695bd0SMike Smith.Sh BUGS 428d1f717d1SMike SmithIf the 429d1f717d1SMike Smith.Nm 430d1f717d1SMike Smithdriver is loaded as a module when it is already linked as part of the 431d1f717d1SMike Smithkernel, odd things may happen. 432