From ce50266cf698c0bf0025e4463884a55a6754e61b Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Sat, 7 Apr 2007 20:21:09 +0000 Subject: [PATCH] Clean up the acpi section a bit, removing references to disable acpi with the acpiconf utility. If I messed up the sgml, feel free to fix. --- .../books/handbook/config/chapter.sgml | 69 ++++++++++--------- 1 file changed, 38 insertions(+), 31 deletions(-) diff --git a/en_US.ISO8859-1/books/handbook/config/chapter.sgml b/en_US.ISO8859-1/books/handbook/config/chapter.sgml index e72760a680..153617894c 100644 --- a/en_US.ISO8859-1/books/handbook/config/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/config/chapter.sgml @@ -2513,14 +2513,15 @@ kern.maxvnodes: 100000 Power and Resource Management - It is very important to utilize hardware resources in an + It is important to utilize hardware resources in an efficient manner. Before ACPI was introduced, - it was very difficult and inflexible for operating systems to manage + it was difficult and inflexible for operating systems to manage the power usage and thermal properties of a system. The hardware was - controlled by some sort of BIOS embedded - interface, such as Plug and Play BIOS (PNPBIOS), or - Advanced Power Management (APM) and so on. - Power and Resource Management is one of the key components of a modern + managed by the BIOS and thus the user had less + control and visibility into the power management settings. + Some limited configurability was available via + Advanced Power Management (APM). + Power and resource management is one of the key components of a modern operating system. For example, you may want an operating system to monitor system limits (and possibly alert you) in case your system temperature increased unexpectedly. @@ -2563,7 +2564,8 @@ kern.maxvnodes: 100000 activity. The APM BIOS is supplied by the (system) vendor and it is specific to the hardware platform. An APM driver in the OS mediates access to the APM Software Interface, - which allows management of power levels. + which allows management of power levels. APM should still be used for + systems manufactured at or before the year 2000. There are four major problems in APM. Firstly, power management is done by the (vendor-specific) BIOS, and the OS @@ -2596,33 +2598,37 @@ kern.maxvnodes: 100000 Configuring <acronym>ACPI</acronym> The acpi.ko driver is loaded by default - at start up by the &man.loader.8; and should not - be compiled into the kernel. The reasoning behind this is that modules - are easier to work with, say if switching to another acpi.ko - without doing a kernel rebuild. This has the advantage of making testing easier. - Another reason is that starting ACPI after a system has been - brought up is not too useful, and in some cases can be fatal. In doubt, just - disable ACPI all together. This driver should not and can not - be unloaded because the system bus uses it for various hardware interactions. - ACPI can be disabled with the &man.acpiconf.8; utility. - In fact most of the interaction with ACPI can be done via - &man.acpiconf.8;. Basically this means, if anything about ACPI - is in the &man.dmesg.8; output, then most likely it is already running. + at start up by the &man.loader.8; and should not + be compiled into the kernel. The reasoning behind this is that modules + are easier to work with, say if switching to another + acpi.ko without doing a kernel rebuild. + This has the advantage of making testing easier. + Another reason is that starting ACPI after a + system has been brought up often doesn't work well. + If you are experiencing problems, you can disable ACPI + altogether. This driver should not and can not be unloaded because the + system bus uses it for various hardware interactions. + ACPI can be disabled by setting + hint.acpi.0.disabled="1" in + /boot/loader.conf or at the &man.loader.8; prompt. + - ACPI and APM cannot coexist and - should be used separately. The last one to load will terminate if the driver - notices the other running. + ACPI and APM cannot + coexist and should be used separately. The last one to load will + terminate if the driver notices the other running. - In the simplest form, ACPI can be used to put the - system into a sleep mode with &man.acpiconf.8;, the - flag, and a 1-5 option. Most users will only need - 1. Option 5 will do a soft-off - which is the same action as: + ACPI can be used to put the + system into a sleep mode with &man.acpiconf.8;, the + flag, and a 1-5 option. Most users will only need + 1 or 3 (suspend to RAM). + Option 5 will do a soft-off which is the same + action as: &prompt.root; halt -p - The other options are available. Check out the &man.acpiconf.8; - manual page for more information. + Other options are available via &man.sysctl.8;. Check out the + &man.acpi.4; and &man.acpiconf.8; manual pages for more information. + @@ -2720,7 +2726,7 @@ kern.maxvnodes: 100000 very large. Generate a copy of your ASL by running this command: - &prompt.root; acpidump -t -d > name-system.asl + &prompt.root; acpidump -dt > name-system.asl (Substitute your login name for name and manufacturer/model for @@ -2868,7 +2874,8 @@ hw.acpi.s4bios: 0 /etc/rc.suspend and /etc/rc.resume. There is a commented-out example for unloading and loading a driver. Try - setting to zero (0) if + setting to zero + (0) if your display is messed up after resume. Try setting longer or shorter values for to see if that helps.